Commit Graph

51 Commits

Author SHA1 Message Date
Srivats P
f86ce2603d Bugfix: use default gateway for off subnet destinations in all cases - fixes #196 2016-09-17 12:16:53 +05:30
Srivats P
c5487067e5 Fix build of pcap import test code 2016-06-26 17:26:06 +05:30
Srivats P
8f08fc92c9 Update TODO Test cases for Session Save/Open 2016-05-19 20:02:32 +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
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
0e32a1942d Device Emulation (contd.): Verify ARP/NDP cache is cleared after clearNeighbors(); also rename dev_cfg var to devcfg to avoid clash with the test param dev_cfg 2016-03-21 18:19:15 +05:30
Srivats P
259dafa3e9 Device Emulation (contd.): Fixed bug where DeviceNeighborList.device_index did not match the correct device in PortDeviceList 2016-03-15 18:15:35 +05:30
Srivats P
f6c852495d Device Emulation (contd.): resolveNeighbors() now resolves the device gateway also in addition to looking at transmit packet content to figure out which IPs to resolve 2016-01-28 20:01: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
d309bc9362 Device Emulation(contd.): Specify minimum tshark version that supports the filters we need for verification 2016-01-26 14:05:26 +05:30
Srivats P
83e4aeb992 Device Emulation: Remove path for windows' tshark - expect it to be part of user env $PATH 2016-01-24 13:45:13 +05:30
Srivats P
8efdb44e6a Device Emulation (contd.): Enhanced the VLAN Devices test case to include IPv6 (and dual stack) scenario(s) 2016-01-23 21:01:47 +05:30
Srivats P
efe22149e1 Device Emulation (contd.): Minor refactoring in test case 2016-01-21 18:41:21 +05:30
Srivats P
6b772bfabe Device Emulation (contd.): Fix IPv6 test case to work with non-zero step value and vary IPv6 dst-addr correctly 2016-01-15 18:47:02 +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
07dd945f50 Device Emulation (contd.): Lookup NDP Cache for IPv6 neighbor mac 2016-01-13 21:15:47 +05:30
Srivats P
04147076c4 Device Emulation (contd.): Implemented responding IPv6 NS with NA 2016-01-08 20:01:42 +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
aaf6dbcbf2 Device Emulation (contd.) - Implemented IPv6 device creation and deletion 2015-12-31 20:17:56 +05:30
Srivats P
ea68b42059 Feature (contd.): Device Emulation - added test case for IPv6 - currently failing pending IPv6 implementation 2015-12-30 18:25:13 +05:30
Srivats P
e0f9e6a703 Feature (contd.): Device Emulation - minor cleanup of emultest.py 2015-12-24 18:28:47 +05:30
Srivats P
414d89860d Pull cleanup: minor changes after merging pull request #172 2015-12-24 14:16:35 +05:30
Srivats P
ea44e55e78 Feature (contd.): Device Emulation - Test case and code to support sending ping echo reply in response to received ping echo request 2015-12-23 21:18:25 +05:30
Raja Krishnamoorthy
1e268080c2 fixed the testcases in rpctest.py
fixed the testcases in rpctest.py
2015-12-22 21:18:58 +05:30
Srivats P
b135cb8df7 Feature (contd.): Device Emulation - add test case for non-default VLAN step value 2015-12-21 18:41:46 +05:30
Srivats P
baef6c2ea6 Feature (contd.): Device Emulation - add test for non default mac step value 2015-12-21 18:28:35 +05:30
Srivats P
03f427ce91 Feature (contd.): Device Emulation - Test case and code to support non default vlan TPID 2015-12-20 19:33:02 +05:30
Srivats P
6b5a8105e6 Feature (contd.): Device Emulation - parameterized test case to check for IP step value other than 1 (default) 2015-12-19 20:51:04 +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
ad1fb5fc37 Feature (contd.): Device Emulation - fixed problems in code and in test case for multi-tagged vlans 2015-12-14 21:04:58 +05:30
Srivats P
cb1e16976d Feature (contd.): Device Emulation - refactored the vlan test case to work for multiple tags and parametrized it to verify 1 to 4 tags 2015-12-13 18:41:39 +05:30
Srivats P
c022290da1 Merge branch 'master' of https://github.com/pstavirs/ostinato into emul
Conflicts:
	server/pcapport.cpp
2015-12-01 21:00:41 +05:30
Srivats P
cad62c1fd7 Feature (contd.): Device Emulatiom - converted emulation tests to use the py.test framework 2015-11-29 12:52:08 +05:30
Srivats P
f8d5cbd252 Bugfix: Fixed frameVariableCount() for the stream when it doesn't contain the payload protocol and is configured to generate increment/decrement/random length packets
Fixes #168
2015-11-22 20:03:24 +05:30
Srivats P
3a5396c865 Feature (contd.): Device Emulation - Got rid of a bunch of FIXMEs and all trailing whitespace (in the code added for this feature) 2015-11-14 17:06:43 +05:30
Srivats P
7daf75c95a Feature (contd.): Device Emulation - added getDeviceList() RPC 2015-11-11 13:05:15 +05:30
Srivats P
492a207ede Feature (contd.): Device Emulation - reorganized/renamed some emulation RPCs and messages 2015-11-11 10:52:29 +05:30
Srivats P
280d4bedaa Feature (contd.): Device Emulation - Mac protocol can now 'resolve' src/dst mac corresponding to the packet from the Device Emulation infra 2015-11-10 19:40:32 +05:30
Srivats P
9302e5f17c Feature (contd.): Device Emulation - added resolveNeighbors() and related RPC code and implementation to send out ARP Requests and build the ARP Table on each device 2015-11-04 18:50:08 +05:30
Srivats P
fcfcfe6887 Feature (contd.): Device Emulation - Removed 'mode' from both vlan and device; will reintroduce or replace with something else when needed 2015-10-03 20:15:20 +05:30
Srivats P
0c98e30a93 Feature (contd.): Device Emulation - added test cases for multiple ip4 devices with and without VLANs; fixed bugs discovered via these cases 2015-10-03 13:18:44 +05:30
Srivats P
246bc95c74 Feature (contd.): Device Emulation - user now configures a device group instead of a single device for easier creation of multiple devices; refactored and redistributed functionality between DeviceManager and Device; external functionality wise same as last commit; added initial code for vlans but not tested 2015-09-20 17:49:15 +05:30
Srivats P
ab433dc22b Feature: Device Emulation - first cut working code 2015-09-14 18:19:52 +05:30
Srivats P.
6bb64a3b26 Feature (contd.): Variable Fields - renamed variable_fields as singular; this makes it consistent with other repeated variables in protocol.proto and in any case the C++/Python generated code "sounds" better with a repeated field named in its singular form, rather than plural 2015-05-31 20:14:32 +05:30
Srivats P.
77f5b124e7 Feature (contd.): Variable Fields - fixed the code to use 'step' while varying fields which was missed out earlier. Updated the test suite and made sure all test cases pass 2015-05-31 18:02:06 +05:30
Srivats P.
4093e52d48 Feature (contd.): Variable fields - filled in the placeholder with the actual test suite; some tests are failing - need to fix the code 2015-05-30 13:26:14 +05:30
Srivats P.
df24cf8b15 Feature: Variable Fields - any field of any protocol can now be varied by specifying it as a generic 8/16/32 bit field at a specified offset (relative to the protocol frame value) with a certain mask and a (initial) value alongwith count and step; this is working code - but incomplete. Bunch of FIXME/TODOs and testing pending 2015-05-26 21:43:37 +05:30