Skip to contentSkip to conversation

iproute2 fwmark feature request

DISCUSSION Nguyen Dinh Nam 2 participants 2 messages Jan 18, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hello netdev,
There are 2^32 values for fwmark, it's a hugh number.
netfilter deal with it better than iproute2, particularly, there is an optional mask to apply to the fwmark before comparing it with some value (mark module of iptables). It's very helpful because we can use that 32 bits to store several sub values at the same time. So it'll be cool if the syntax is
SELECTOR := [ from PREFIX ] [ to PREFIX ] [ tos TOS ] [ fwmark FWMARK[/MASK] ]
Regards,
Nam

#1 lore raw

* Nguyen Dinh Nam <[email protected]> 2005-01-18 15:17

Quoted 8 lines

There are 2^32 values for fwmark, it's a hugh number. netfilter deal with it better than iproute2, particularly, there is an optional mask to apply to the fwmark before comparing it with some value (mark module of iptables). It's very helpful because we can use that 32 bits to store several sub values at the same time.
So it'll be cool if the syntax is
SELECTOR := [ from PREFIX ] [ to PREFIX ] [ tos TOS ] [ fwmark FWMARK[/MASK] ]

http://oss.sgi.com/archives/netdev/2005-01/msg00548.html

Wait 2-3 weeks and it will be all finished.