[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20130725221116.GC10216@zirkel.wertarbyte.de>
Date: Fri, 26 Jul 2013 00:11:16 +0200
From: Stefan Tomanek <stefan.tomanek@...tarbyte.de>
To: netdev@...r.kernel.org
Cc: Andrew Collins <bsderandrew@...il.com>
Subject: Re: [PATCH] fib_rules: add minimum prefix length
Dies schrieb Andrew Collins (bsderandrew@...il.com):
> > I've just completed the patch and sent it to the list, and I also placed the
> > changes in my github account, just in case anyone wants to take a quick peek:
> > https://github.com/wertarbyte/linux/compare/prefixlength
>
> > + if (arg->result) { ...
>
> This NULL check seems unnecessary (fib_table_lookup doesn't check).
I wasn't sure if it was possible for fib_table_lookup to put a NULL pointer there,
so I wanted to make sure following it with ->prefixlen was possible.
> I like the idea, but I agree with Hannes that it'd be nice to split
> this out into a fib constraint callback.
I'm still not convinced that creating such a callback that will never be called
from outside fib{4,}_rule_action() is worth the effort, but my insight into the code
is still limited; if it's the right thing to do [tm], I won't stand in the way :-)
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists