Commit Graph

122 Commits

Author SHA1 Message Date
Srivats P
c2f36c5cb3 IPv4 now supports options - configured as a hex string for now; fixes #120 2016-10-27 23:51:55 +05:30
Srivats P
a8f9795c85 Fix incorect logic of isNewerVersion 2016-09-17 15:21:31 +05:30
Srivats P
8bfeafddf9 Fix warning 2016-06-25 20:07:34 +05:30
Srivats P
75efed5ec4 Add extension while saving streams and sessions, if user doesn't specify one.
Fixes #187
2016-06-14 18:56:29 +05:30
Srivats P
5e918cf084 Fix STP protocol builder warnings 2016-06-01 20:58:26 +05:30
Srivats P
78957a019f Bugfix: Use char* for kFileMagicValue to avoid dynamic initialization and consequent ordering problems 2016-06-01 19:19:45 +05:30
Srivats P
bdbbd8f0a1 Moved Updater to common ostproto lib, Updater sends UserAgent 2016-05-31 20:23:54 +05:30
Srivats P
24fd176802 Merge pull request #184 from pstavirs/emul
Device Emulation
2016-05-25 18:57:08 +05:30
Srivats P
96ed163ab0 Merge pull request #183 from pstavirs/session
Save/Open Session
2016-05-25 18:43:07 +05:30
Srivats P
a0485cca01 Device Emulation (contd.): took decision on DeviceList+DeviceNeigh vs DeviceInfo API 2016-05-25 18:31:56 +05:30
Srivats P
6cc7231e7f Refactored StreamFileFormat and subclasses' methods to be consistent with SessionFileFormat 2016-05-20 20:30:57 +05:30
Srivats P
ff066ea657 Renamed AbstractFileFormat to StreamFileFormat and FileFormat to OstmFielFormat to be consistent with the new convention introduced with SessionFileFormat/OssnFileFormat 2016-05-19 21:54:28 +05:30
Srivats P
c8a31f3068 Refactor stream file supportedFileTypes() to accept operation - Open/Save and return fileTypes accordingly 2016-05-19 21:05:32 +05:30
Srivats P
822ee2a4b4 Save/Open Session - refactor supportedFileTypes() to accept operation - Open/Save as input parameter and return file types accordingly 2016-05-19 20:50:33 +05:30
Srivats P
29f840c91c Use .ostm as default extension for Saved Stream(s) file and use it as default filter for open stream file 2016-05-18 21:33:26 +05:30
Srivats P
8bea5636ab Open Session: Fixing problem with previous commit where valid format file was also declared invalid/unkonwn 2016-05-17 22:16:52 +05:30
Srivats P
ba754c1043 Open Session - check fileType for native file formats while identifying the file format from filename; also find size of metadata and use it when parsing just the metadata instead of the whole file 2016-05-17 20:47:10 +05:30
Srivats P
bcb5376f9d Save/Open Session - added UI and related infra to invoke OssnFileFormat; code to build sessionContent incomplete 2016-04-14 07:44:07 +05:30
Srivats P
2a77f73e9c Save/Open Session - Implemented OssnFileFormat; code to build SessionContent still pending 2016-03-29 18:55:22 +05:30
Srivats P
c98104f078 Refactored native streams file format to share code with native session file format. Added skeletal code for session/ossn file format 2016-03-28 21:23:10 +05:30
Srivats P
5b46bdd8fc Save/Open Session - Defined the file format for a session file 2016-03-27 11:23:56 +05:30
Srivats P
8b80b4c3ef Device Emulation (contd.): Checked and decided on a couple of FIXMEs/TODOs 2016-03-24 18:47:43 +05:30
Srivats P
fbb56720ba Device Emulation (contd.): Renamed Device List and Device Neighbor List fields so that the names are better reflective of what they contain 2016-03-22 20:18:53 +05:30
Srivats P
803242db38 Device Emulation (contd.): Use portId as part of the default IP address assigned to a deviceGroup 2016-03-19 18:17:50 +05:30
Srivats P
c3fe9b0334 Device Emulation (contd.): Inform user that src/dst mac resolve requires a corresponding device 2016-03-18 19:23:26 +05:30
Srivats P
476bcd850a Bugfix: Preflight check failure strings should not be repeated for each frame in the stream that fails 2016-03-17 20:53:48 +05:30
Srivats P
e7571b2022 Device Emulation (contd.): Add 'resolve' mode for src/dst mac address for GUI configuration of stream 2016-03-08 20:51:02 +05:30
Srivats P
db8ad92738 Device Emulation (contd.): Assign a random mac address to a DeviceGroup at alloc time to ensure unique device keys when enumerating devices from device groups 2016-03-07 21:40:48 +05:30
Srivats P
586a177332 Device Emulation (contd.): Change SpinBoxDelegate for our needs and relicense under GPLv3; use SpinBoxDelegate for the Vlan Table validation 2016-03-03 18:23:25 +05:30
Srivats P
98c8149fbf Device Emulation (contd.): Added SpinBox Delegate (Qt Example) - unmodified code 2016-03-02 22:32:21 +05:30
Srivats P
0ef0c6cfc0 Device Emulation (contd.): Added a IntEdit class and used in DeviceGroup Dialog 2016-03-02 22:14:14 +05:30
Srivats P
2d8510cd3a Device Emulation (contd.): Fix build break due to case typo 2016-03-02 21:41:56 +05:30
Srivats P
ff757d59c6 Device Emulation (contd.): Add default values for IPv6 fields, update IPv6 gateway if addr/pfxlen changes; define and use class Ip6Edit 2016-03-02 06:13:56 +05:30
Srivats P
0edfee8cdf Device Emulation (contd.): Add default values for IPv4 address/gateway, update gateway as address/pfxlen are edited; define and use a Ip4Edit class 2016-03-01 18:48:35 +05:30
Srivats P
9619439e6a Device Emulation (contd.): Use a default Mac address as per RFC 4814; define and use new MacEdit class 2016-02-29 20:12:02 +05:30
Srivats P
a4a654fb02 Device Emulation (contd.): Implemented load/store for the DeviceGroupDialog and supporting code - incomplete 2016-02-25 19:03:00 +05:30
Srivats P
c569328bb3 Device Emulation (contd.): Added DeviceGroupModel on the GUI client 2016-02-12 19:10:19 +05:30
Srivats P
e3a3a0cf1f Device Emulation (contd.): Fix frames not being truncated (introduced by recent changes in StreamBase::frameValue()); add test case for the same and add checksum/error check to pktlentest(s) 2016-01-27 20:39:54 +05:30
Srivats P
754a9ac20e Merge branch 'master' into emul 2016-01-27 18:46:07 +05:30
Srivats P
ad866e3025 Bugfix: Fix incorrect IPv4 pseudo-header checksum calculation for a stream with incrementing/decrementing packet length (regression bug caused by variable fields feature introduced in 0.7) 2016-01-27 18:26:49 +05:30
Srivats P
f1ff9e2616 Device Emulation (contd.) - StreamBase::frameValue() now returns truncated packet content and length instead of bailing out if the passed in buffer size is less than the packet length. This is useful for some of the device emulation code which needs packet content only uptil the IP header but not beyond, so we don't need to unnecessarily create the entire packet with payload for these cases 2016-01-15 09:37:43 +05:30
Srivats P
eff603304e Device Emulation (contd.): Receive, parse IPv6 Neigh Advt and update NDP Table 2016-01-06 18:10:28 +05:30
Srivats P
d9be523827 Device Emulation (contd.) - Implemented sending of IPv6 Neighbor Solicitation packets for IPv6 resolution 2016-01-01 20:17:54 +05:30
Srivats P
0b573d572e Device Emulation (contd.) - added intelligence for single or dual ip stack; fixed pktBuf memory leak 2016-01-01 11:59:31 +05:30
Srivats P
aaf6dbcbf2 Device Emulation (contd.) - Implemented IPv6 device creation and deletion 2015-12-31 20:17:56 +05:30
Srivats P
12d17ef6de Feature (contd.): Device Emulation - added/updated IPv6 fields in emulproto 2015-12-24 19:00:32 +05:30
Srivats P
9cd92c47ab Pull Cleanup: Minor changes and cleanup after merging the STP protocol builder contribution - removal of compilation errors, unncessary code, trailing whitespace 2015-12-17 21:15:47 +05:30
Srivats P
c3c1ca84da Merge branch 'plvision' of https://github.com/tpetriv/ostinato 2015-12-17 18:10:23 +05:30
Srivats P
71d04b63bc Feature (contd.): Device Emulation - refactored and moved EncapEmulation as a native field of DeviceGroup instead of a extension - now the device_count comment of "per encap" makes more sense with encap at the same level as device_count 2015-12-16 20:48:17 +05:30
Srivats P
147469beee Bugfix: Don't use c_str for protobuf type bytes as an intermediate 0x00 is interpreted as terminator; fixes #170 2015-12-11 20:57:48 +05:30