Srivats P
677d56bf32
Don't inline sumUInt128 since it's used elsewhere as well
2019-04-04 21:38:47 +05:30
Srivats P
75c8f44079
Fix MacOS specific Hostdev bugs
...
* Fix SA_SIZE definition for MacOS
* Use sdl_index instead of rtm_index as the ifIndex
* Remove the embedded ifIndex in link local addresses
* Extract default IPv6 gateway correctly
2019-04-03 20:41:46 +05:30
Srivats P
0fb81e4d8e
Send ARP/NDP request from emuldevice if unresolved
2019-03-12 19:04:59 +05:30
Srivats P
1c2e833c4a
Don't trigger ARP/NDP if already resolved
2019-03-11 18:25:07 +05:30
Srivats P
44357178c4
Rename var 'fail' as 'error'
...
This better reflects the following -
RPC fail : complete failure of the RPC; no changes were made
RPC error: partial failure of the RPC; some changes were made, some had
errors
2019-02-21 20:57:24 +05:30
Srivats P
fcca47e652
Rename kRpcFail as kRpcError
...
Distinguish RPC Failure and RPC Error - the latter is in case of partial
failures
Also make Ack.status required - missed out in last commit
2019-02-16 20:54:11 +05:30
Srivats P
7ea8c96543
Populate Ack for every RPC
...
Also make error strings in Ack and RPC failure consistent
2019-02-16 20:38:25 +05:30
Srivats P
8b9cceb7ed
HostDev: Return smac/dmac resolve failure via RPC
2019-02-09 17:16:31 +05:30
Srivats P
88b3c287d0
Track smac/dmac resolve failures when building packet list
2019-02-05 18:31:43 +05:30
Srivats P
2726192b9c
HostDev: Print interfaceInfo for debug purposes
2019-01-15 19:07:55 +05:30
Srivats P
86150a7e46
HostDev: Create Host Device even if no IP is configured
2019-01-14 18:26:24 +05:30
Srivats P
bac7fba1de
HostDev: Fix Win crash if a NIC doesn't have IP address
2019-01-14 18:10:47 +05:30
Srivats P
178b942d6e
HostDev: Start/stop emulation based on no. of deviceGroups
...
Host Devices are included in deviceCount() but not in deviceGroupCount()
and emulation is not applicable to Host devices
2018-12-23 21:54:38 +05:30
Srivats P
7e476a8361
HostDev: Return QString to avoid accessing out of scope variable
...
errMsg used toLocal8Bit() which uses a temporary stack variable which
could go out of scope if the function is not inlined by compiler, so
avoid it by returning QString and use qPrintable
2018-12-23 21:50:46 +05:30
Srivats P
edd326fb24
HostDev: Refactor device list(s) ops
...
Use function(s) to hide the insertion/removal from multiple internal
lists
2018-12-23 21:49:21 +05:30
Srivats P
e6592c03a2
HostDev: Fix another bunch of FIXME/TODOs
2018-12-12 22:00:09 +05:30
Srivats P
112c3ff788
HostDev: Fix typo causing Linux build break
2018-12-11 21:27:57 +05:30
Srivats P
545f740676
HostDev: Fixed a bunch of FIXME/TODOs
2018-12-11 18:57:53 +05:30
Srivats P
12d6713491
Fix MacOS build break due to missing SA_SIZE definition
2018-12-10 18:00:00 +05:30
Srivats P
5956de4f6f
HostDev: Add BSD host device
2018-12-08 11:40:57 +05:30
Srivats P
d8bae11144
HostDev: Fix MacOS build break
2018-10-31 21:19:01 +05:30
Srivats P
7696f7d8f9
HostDev: Add BSD interface info
2018-10-31 19:59:08 +05:30
Srivats P
db446966f7
HostDev: Fix symbol clash between net/if.h and libnl use of linux/if.h
2018-09-08 13:18:46 +05:30
Srivats P
a1155b0022
HostDev: Fix IPv6 gw search code
2018-09-08 17:08:53 +05:30
Srivats P
c5c071ee56
HostDev: Fix linux scope in qmake .pro
2018-09-02 21:06:08 +05:30
Srivats P
73043f6fe6
HostDev: Added Linux host device code
2018-09-02 19:45:08 +05:30
Srivats P
f58c4e309c
HostDev: Add IPv6 support for Windows hosts
2018-08-15 10:51:04 +05:30
Srivats P
ffa0fdaa74
HostDev: Use unused constants
2018-07-31 22:24:31 +05:30
Srivats P
86ab58ae8c
HostDev: Remove unused constants
2018-07-31 22:04:10 +05:30
Srivats P
34323bb187
Merge branch 'master' of D:/srivatsp/projects/ostinato/master into hostdev
2018-07-31 20:27:40 +05:30
Srivats P
fce1df8dab
HostDev: Print both code and string for errors (win32)
2018-07-31 18:11:29 +05:30
Srivats P
1b74c55fee
HostDev: Squelch unused warning
2018-07-27 18:54:21 +05:30
Srivats P
205663e59e
Enable c++11 for drone server
2018-07-27 17:25:43 +05:30
Srivats P
fc31e52f61
HostDev: #ifdef Windows code
2018-07-26 21:20:58 +05:30
Srivats P
bc972e4476
HostDev: Added infra and windows IPv4 implementation
2018-07-26 20:53:33 +05:30
Srivats P
0d5e836d3f
HostDev: Refactored Device into base Device and EmulDevice
2018-07-19 18:54:01 +05:30
Srivats P
9a4e7e7550
Silence warnings
2018-05-22 21:48:21 +05:30
Bernhard Ehlers
1d8bb9f4df
Fix warnings about DumpView::dataChanged and struct StatsTuple
2018-05-21 21:31:44 +02:00
Srivats P
016694f1fe
Use %ll instead of PRI since Windows dev env has been upgraded
2018-05-20 13:33:38 +05:30
Srivats P
e1194a1db3
Check for active stream count when building interleaved packet list
2018-05-10 21:34:51 +05:30
Srivats P
1cddfbf2ec
Use Windows' connection name as the port description
...
... instead of the PCAP returned description. This allows for a better
UX since user can more easily identify which port is which.
This will work only Windows Vista and higher since IPHLPAPI.DLL has
published APIs only for these versions. Older windows versions such as
XP will continue to use the PCAP returned description
Fixes #222
2018-05-07 22:05:04 +05:30
Srivats P
a16eefbff4
Treat warnings as errors and fix existing warnings
2018-04-20 20:50:51 +05:30
Srivats P
90fe2080c1
Debug Xcode build failure 8/...
2018-03-19 20:14:30 +05:30
Srivats P
7a61d14243
Fix Travis build issues
2018-03-16 21:59:34 +05:30
Srivats P
9f4b70c5a8
Port server code from Qt4 to Qt5
...
Verification/testing of porting changes is pending
2018-03-15 19:34:42 +05:30
Srivats P
f82cf933b4
Print PCAP library version at drone startup
2018-02-08 22:39:22 +05:30
Srivats P
f756ead433
Add Tx/Rx bps to GUI stats window
...
bps stats are derived from the Bps stats and represent line rate taking
into account the per packet overhead on the line with the following
assumptions -
* Link type is Ethernet
* Bps (and total Bytes) stats don't include the 4-byte FCS
Fixes #241
2018-01-31 16:03:34 +05:30
Srivats P
c0f94ec58c
Use static linking on win32
2017-12-07 19:04:18 +05:30
Srivats P
6dd6511269
Merge branch 'master' into sign
2017-12-03 12:59:26 +05:30
Srivats P
81e7e735bc
sign: Resolve a few FIXMEs
...
* Rename track_stream_stats to is_tracking_stream_stats for consistency
with other bool params
* Change signature magic value to CODA
* Resolve notify memory leak
2017-12-03 11:26:09 +05:30