[PATCH iproute2 v2] Add "show" subcommand to "ip fou"

2017-11-16 Thread Greg Greenway
Sample output: $ sudo ./ip/ip fou add port 111 ipproto 11 $ sudo ./ip/ip fou add port 222 ipproto 22 -6 $ ./ip/ip fou show port 222 ipproto 22 -6 port 111 ipproto 11 Signed-off-by: Greg Greenway --- ip/ipfou.c | 60 1 file changed

Re: [PATCH iproute2] Add "show" subcommand to "ip fou"

2017-11-16 Thread Greg Greenway
> On Nov 3, 2017, at 10:25 AM, Tom Herbert wrote: > > On Fri, Nov 3, 2017 at 10:19 AM, Greg Greenway wrote: >> On Nov 1, 2017, at 2:03 PM, Stephen Hemminger >> wrote: >>> >>> On Tue, 31 Oct 2017 13:00:47 -0700 >>> Greg Gr

Re: [PATCH iproute2] Add "show" subcommand to "ip fou"

2017-11-03 Thread Greg Greenway
On Nov 1, 2017, at 2:03 PM, Stephen Hemminger wrote: > > On Tue, 31 Oct 2017 13:00:47 -0700 > Greg Greenway wrote: > >> +if (tb[FOU_ATTR_AF]) { >> +family = rta_getattr_u8(tb[FOU_ATTR_AF]); >> +if (family == AF_INET) >> +

[PATCH iproute2] Add "show" subcommand to "ip fou"

2017-10-31 Thread Greg Greenway
Sample output: $ ip fou show port 4 af AF_INET ipproto 4 Signed-off-by: Greg Greenway --- ip/ipfou.c | 66 ++ 1 file changed, 66 insertions(+) diff --git a/ip/ipfou.c b/ip/ipfou.c index 00dbe15..2eb5bfd 100644 --- a/ip/ipfou.c +++ b