Commit Graph

24 Commits (c7a38de76ee583adf3f4aa276d834e2e753be321)

Author SHA1 Message Date
Tobias Klauser 22d8ee41e5 net: move parseNetLine and parseNetAddr to net_unix.go
These funcs are only used in net_unix.go which is only compiled for
darwin and freebsd.
Snow Fox 018950cf06
Merge pull request #2 from shirou/master
merge master
litong 1f9466536e Add ifIndex support
litong 7ffe40e0db Add ifIndex support
Curtis Mattoon 648bf4eebc Adds ConntrackStats to get conntrack summary stats
Kamil Dziedzic b76d065dff
PMM-2643: Support listing unix sockets in ConnectionsPid and ConnectionsPidWithContext.
Signed-off-by: Kamil Dziedzic <arvenil@klecza.pl>
Laurie Clark-Michalek 413cb32b6c Use static initialisation for invoke instances, instead of init funcs
The order of init function execution is dependant on the order that the
source files are passed to the compiler. This causes issues when
building under other build systems, such as bazel or buck, as they are
not guarenteed to maintain the same file order as the default go tool.
shirou 4c73494c78 Add WithContext functions.
Jean Kahrs cba0992ab3 add Uids field to net_linux
sandlbn 480ccb89e1 Added support for linux net interface fifo errors
Shirou WAKAYAMA 4bb84648bf JSON representation is renamed to fit Google JSON style, camelCase.
Shirou WAKAYAMA ea152ea901 [BREAKING CHANGE] rename functions to pass golint. ex) net.NetIOCounters -> net.IOCounters
Masayoshi Sekimura 3a1fa5dc80 format go program with go 1.5.2 "go fmt"
James Lamb a9e946c7dd change the snakecase to reflect the files being read
James Lamb 5700150054 Updated README.rst and included updated syntax to be more uniform with the other code
James Lamb 22f35fd518 add netfilter counter support
James Lamb dfff8af4df add nf_conntrack statistics to net_linux to query iptables/netfilter conntrack limits
Nathaniel Cook da832b3f12 add system wide network protocol stats
Daniel Theophanes 0af895258e common: rename package common to internal/common. Add ENV helper funcs.
Package common wasn't used for public functions. Place it in an
internal directory to prevent other packages from using.

Remove the distributed references to "HOST_PROC" and "HOST_SYS"
consts and combine into a common function. This also helps so that
if a env var is defined with a trailing slash all will continue to
work as expected.

Fixes #100
Shirou WAKAYAMA 8d21be591e net[linux]: implements NetConnections() using lsof.
Shirou WAKAYAMA c50db4f462 net[darwin]: implement NetConnections().
Shirou WAKAYAMA 406cbe9b87 implements pernic of NetIOCounters.
Shirou WAKAYAMA 13cd195a7e change package name.
Shirou WAKAYAMA a4671fcc2a move subdirectories. refer to issue #24