]> git.proxmox.com Git - mirror_iproute2.git/commit - ip/iprule.c
ip rule: Add ipproto and port range to filter list
authorDavid Ahern <dsahern@gmail.com>
Tue, 30 Oct 2018 22:03:30 +0000 (15:03 -0700)
committerDavid Ahern <dsahern@gmail.com>
Fri, 2 Nov 2018 16:37:14 +0000 (09:37 -0700)
commitb2e8bf158460568ec5b48cba69f657f95891c901
tree54879f4db6bb54a2f548adcd0a02d70ab992249b
parent70bc1f65500b16fd02c1070f5e39b7083a2d4a43
ip rule: Add ipproto and port range to filter list

Allow ip rule dumps and flushes to filter based on ipproto, sport
and dport. Example:

$ ip ru ls ipproto udp
99: from all to 8.8.8.8 ipproto udp dport 53 lookup 1001
$ ip ru ls dport 53
99: from all to 8.8.8.8 ipproto udp dport 53 lookup 1001

Signed-off-by: David Ahern <dsahern@gmail.com>
ip/iprule.c