[LARTC] tc and iptables --set-mark question
Jose Luis Domingo Lopez
lartc@24x7linux.com
Tue, 8 Jul 2003 21:01:15 +0200
On Thursday, 03 July 2003, at 18:30:20 +0200,
Stef Coene wrote:
> > From the examples i have seen, it seems to me that the mark can be as big
> > as one Byte - is this correct ?
> 1 byte = 2^8 = 256. I think it can be bigger.
>
You are correct. If I understand correctly the code in:
/usr/src/linux-2.5.73/include/linux/netfilter_ipv4/ipt_mark.h
marks are "unsigned longs", so at least 2^32 of them should be available.
Hope this helps.
--
Jose Luis Domingo Lopez
Linux Registered User #189436 Debian Linux Sid (Linux 2.5.73)