Commit graph

10 commits

Author SHA1 Message Date
Pankaj Garg 945d59c33b
Add support for throttling in Bandwidth tests, ToS and improved external mode. (#135)
* Intermediate checkin

* Last check-in before deleting ACK message in Ethr.

* Support for client port, throttling and tos almost working.

* Most functionality working as expected with code all cleaned up.

* Linux/OSX Fixes.

* Fix handshake mechanism.

* Minor cleanup.

* More improvements for external mode.

* Improve admin-mode, root user permission checking.

* Improve detection of IP version for ICMP.

* Update README.md
2020-11-30 18:20:57 -08:00
Pankaj Garg 05f36c63fb
Add IPv6 support for TraceRoute and MyTraceRoute. (#132)
* Add IPv6 support for TraceRoute and MyTraceRoute.

Co-authored-by: Pankaj Garg <pankaj@intellectualheaven.com>
Co-authored-by: Pankaj Garg <ipankajg@l0n3c0d3r.com>
2020-11-24 00:06:46 -08:00
Pankaj Garg b8f0005dd9
Add TraceRoute and MyTraceRoute functionality for ICMP & TCP. (#131)
Tested on both Windows and Linux and fixed bugs related to handling on Linux.
2020-11-23 18:55:20 -08:00
Pankaj Garg ea28260abc
Flatten the file structure (#115)
* Flatten the file structure

* Fix build errors

Co-authored-by: Pankaj Garg <pankaj@intellectualheaven.com>
2020-06-18 10:07:05 -07:00
Boyan Soubachov 0e781d974b Refactor plotter and stats-gathering functionality (#90)
* Refactor the command line plotting & management code into a package
* Refactor the stats-gathering code into a new package
* Switch to build flags for non-portable packages/code
2019-07-22 20:08:04 -07:00
fsouza 8f4b6edb3d darwin: gen struct from C for TCP stats (#48)
This way CGO isn't required. The struct was generated using the same
script that the Go teams uses in golang.org/x/sys/unix, which uses `cgo
-godefs` (see https://golang.org/cmd/cgo/#hdr-Go_references_to_C).

Since we're not calling any C functions but rather using a struct, the
struct can be defined in Go and the bytes can be read into the Go
struct, `cgo -godefs` handles the difference in alignment between Go and
C.
2018-12-13 16:31:03 -08:00
Y.Horie d50efa8ccd Issue 43 (#46)
* Add travis.yml #43

* Fix dep command in travis.yml #43

* Add go vet,goimports and golint #43

* Fix failed golint #43

* fix goimports and golint exclude vendor #43
2018-12-13 08:46:59 -08:00
girishmotwani a8b80fc760 tcpstats for OS X (#30)
Use low level syscall to fetch the tcpstats

Use cgo to get the systems definition for struct tcpstats.

This makes the solution portable across different versions of the OS.
2018-12-13 01:50:30 -08:00
lylex aecdaf9239 Add lint target and fix its warnings. (#37) 2018-12-11 07:28:33 -08:00
fsouza 6fcc37915d MacOS support (#27)
* Implement getNetDevStats for Darwin

* darwin: add dummy functions

It compiles now! :)

* darwin: implement hideCursor

* darwin: add missing padding to ifMsghdr2
2018-12-09 14:25:56 -08:00