On Fri, 03 Nov 2017 10:19:22 -0700
Greg Greenway wrote:
> 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]);
> >> +
> 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 Greenway wrote:
>>>
+if (tb[FOU_ATTR_AF]) {
+
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 Greenway wrote:
>>
>>> +if (tb[FOU_ATTR_AF]) {
>>> +family = rta_getattr_u8(tb[FOU_ATTR_AF]);
>>> +if (fami
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)
>> +family_str = "AF_INET";
>
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)
> + family_str = "AF_INET";
> + else if (family == AF_INET6)
> +
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/