modulepackage
0.0.0-20220404100349-2854774d085e
Repository: https://github.com/asphaltt/go-iproute2.git
Documentation: pkg.go.dev
# README
go-iproute2
Some net tools of iproute2 implement with Go.
Completions
ip
- ip neigh list
- ip link list
- ip addr list
- ip rourte list
bridge
- bridge monitor fdb
- bridge fdb list
ss
- ss -s: print summary of socket stat
- ss -l: list all udp and tcp listening sockets
- ss -t: list all tcp connections
- ss -lt: list all tcp listeners
- ss -u: list all udp sockets, excluding the listening ones
- ss -lu: list all udp listening sockets
All the above listings support IPv4 and IPv6 version.
TO-DO
- ip
- bridge
- ss (basically complete)
Maybe more tools, like dcb, devlink, nstat, tc, will be implemented in some day.
# Constants
copied from syscall.
states for socket.
states for socket.
states for socket.
states for socket.
states for socket.
states for socket.
families for netlink socket.
states for socket.
states for socket.
copied from src/cmd/vendor/golang.org/x/sys/unix/ztypes_linux.go TODO(Asphaltt): use ztypes_linux.go instead.
request as INET_DIAG_VEGASINFO */.
attribute types for sock diag message.
request as INET_DIAG_TCLASS */.
attribute types for sock diag message.
request as INET_DIAG_VEGASINFO */.
attribute types for sock diag message.
attribute types for sock diag message.
only with CAP_NET_ADMIN */.
attribute types for sock diag message.
attribute types for sock diag message.
attribute types for sock diag message.
attribute types for sock diag message.
attribute types for sock diag message.
response attribute only */.
attribute types for sock diag message.
attribute types for sock diag message.
attribute types for sock diag message.
attribute types for sock diag message.
attribute types for sock diag message.
attribute types for sock diag message.
attribute types for sock diag message.
attribute types for sock diag message.
attribute types for sock diag message.
states for socket.
states for socket.
message types for netlink message.
types for error message attribute.
types for error message attribute.
types for error message attribute.
types for error message attribute.
types for error message attribute.
types for error message attribute.
types for error message attribute.
types for error message attribute.
types for error message attribute.
types for error message attribute.
types for error message attribute.
types for error message attribute.
types for error message attribute.
types for error message attribute.
types for error message attribute.
copied from golang.org/x/sys/unix.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
copied from syscall.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
copied from golang.org/x/sys/unix.
copied from golang.org/x/sys/unix.
copied from golang.org/x/sys/unix.
copied from golang.org/x/sys/unix.
size of some structures.
size of some structures.
size of some structures.
size of some structures.
size of some structures.
size of some structures.
size of some structures.
states for socket.
states for socket.
states for socket.
states for socket.
# Structs
An InetDiagMsg is a response message for sock diag netlink.
An InetDiagReq is a request message for sock diag netlink.
An InetDiagSockID contains some info about a socket.
A NdAttrCacheInfo is the cache info in the neighbour/fdb message.
# Type aliases
IfaCacheinfo is an interface address information, that's an alias of golang.org/x/sys/unix.IfaCacheinfo.
IfAddrMsg is an interface address message, that's an alias of golang.org/x/sys/unix.IfAddrmsg.
IfInfoMsg is an interface information message, that's an alias of golang.org/x/sys/unix.IfInfomsg.
No description provided by the author
NdMsg is a neighbour message, that's an alias of golang.org/x/sys/unix.NdMsg.
No description provided by the author
No description provided by the author
RtMsg is a route message, that's an alias of golang.org/x/sys/unix.RtMsg.
New extended info filters for IFLA_EXT_MASK */.
SockDiagAttrType is the type for sock diag's attribute.
SockStateType is the type for socket's state.