Thread (3 messages) 3 messages, 2 authors, 2018-03-06

Re: [PATCH iproute2 net-next v2] iprule: support for ip_proto, sport and dport match options

flat view

From: David Ahern <hidden>
Date: 2018-03-06 16:18:21

On 3/5/18 11:22 AM, Roopa Prabhu wrote:
quoted hunk ↗ jump to hunk
diff --git a/ip/iprule.c b/ip/iprule.c
index 6fdc9b5..a6a16e6 100644
--- a/ip/iprule.c
+++ b/ip/iprule.c
@@ -45,7 +45,10 @@ static void usage(void)
 		"       ip rule [ list [ SELECTOR ]]\n"
 		"SELECTOR := [ not ] [ from PREFIX ] [ to PREFIX ] [ tos TOS ] [ fwmark FWMARK[/MASK] ]\n"
 		"            [ iif STRING ] [ oif STRING ] [ pref NUMBER ] [ l3mdev ]\n"
-		"            [ uidrange NUMBER-NUMBER ]\n"
+		"            [ uidrange NUMBER-NUMBER ]"
+		"            [ ip_proto [tcp | udp | sctp] ]"
+		"            [ sport [ NUMBER | NUMBER-NUMBER ]"
+		"            [ dport [ NUMBER | NUMBER-NUMBER ] ]\n"
 		"ACTION := [ table TABLE_ID ]\n"
 		"          [ protocol PROTO ]\n"
 		"          [ nat ADDRESS ]\n"
missing newlines at the end of uidrange, ip_proto and sport lines; makes
the help impossible to read
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help