AW: Routing rules: Mask value for firewall mark

Joerg Pommnitz pommnitz at yahoo.com
Fri Oct 29 04:10:28 EDT 2010


Btw, looking just at the code: Are you sure your patch is complete?
I see RTA_MARK support in the message parsing code, but no complement
in build_rule_msg ...
 -- 
Regards 
Joerg 




----- Ursprüngliche Mail ----
> Von: Thomas Graf <tgraf at infradead.org>
> An: Joerg Pommnitz <pommnitz at yahoo.com>; libnl at lists.infradead.org
> Gesendet: Freitag, den 29. Oktober 2010, 1:36:41 Uhr
> Betreff: Re: Routing rules: Mask value for firewall mark
> 
> 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