Routing rules: Mask value for firewall mark

Thomas Graf tgraf at infradead.org
Thu Oct 28 19:36:41 EDT 2010


On Thu, Oct 28, 2010 at 07:15:32PM -0400, Thomas Graf wrote:
> On Mon, Oct 25, 2010 at 04:10:30AM -0700, Joerg Pommnitz wrote:
> > Replying to myself: it seems the support is completely missing.
> > Looking at fib_rules.c in the kernel, FWMASK is an independent
> > attribute. Grep for "FWMASK" over the libnl sources doesn't find
> > anything. Seems strange, because fib_rules.c is (c) Thomas Graf.
> 
> Seems no one ever needed this. I've written libnl rule.c before
> adding mark support to the kernel so it wasn't included so far.
> 
> This is trivial through, I'll add it in the next day or two.

Comitted to git tree.

void     rtnl_rule_set_mark(struct rtnl_rule *rule, uint32_t mark);
uint32_t rtnl_rule_get_mark(struct rtnl_rule *rule);



More information about the libnl mailing list