]> git.proxmox.com Git - mirror_iproute2.git/commit - misc/ssfilter.h
ss: Support displaying and filtering on socket marks.
authorLorenzo Colitti <lorenzo@google.com>
Wed, 21 Sep 2016 16:02:50 +0000 (01:02 +0900)
committerStephen Hemminger <stephen@networkplumber.org>
Thu, 22 Sep 2016 23:34:40 +0000 (16:34 -0700)
commitec75249b141e99b978e6494345d468595f5b829f
tree8810989178a0750c48d123d76287103966cd3d15
parent4bfe6825367010112853d1763a51bcf20f16565c
ss: Support displaying and filtering on socket marks.

This allows the user to dump sockets with a given mark (via
"fwmark = 0x1234/0x1234" or "fwmark = 12345", etc.) , and to
display the socket marks of dumped sockets.

The relevant kernel commits are: d545caca827b ("net: inet: diag:
expose the socket mark to privileged processes.") and
a52e95abf772 ("net: diag: allow socket bytecode filters to
match socket marks")

Signed-off-by: Lorenzo Colitti <lorenzo@google.com>
misc/ss.c
misc/ssfilter.h
misc/ssfilter.y