AW: Routing rules: Mask value for firewall mark
Joerg Pommnitz
pommnitz at yahoo.com
Fri Oct 29 03:58:56 EDT 2010
Just wait a bit! rtnl_rule_get_mark ??
But this was already there:
void rtnl_rule_set_mark (struct rtnl_rule *rule, uint64_t mark)
uint64_t rtnl_rule_get_mark (struct rtnl_rule *rule)
The problem was the missing *MASK* value.
--
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