Re: 64bit MARK

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2009-10-29 at 23:30 +0100, Patrick McHardy wrote:
> Fran����������������������������������������������� wrote:
> > Hello,
> > 
> > Would it be possible to have 64bit MARKs with 64bit architectures? 
> > 
> > Apparently they are defined as "unsigned long" in linux headers, but
> > iptables limits them to 32bit.
> 
> Thats from far far back. The unsigned long only exists in compatibility
> structures, all new revisions use 32 bit. This is deliberate to make
> sure they're same-sized on all architectures and rulesets don't behave
> differently.

It might be an uncommon case, but many things I do need MARKs and 32bits
is just not enough!

For example, for input traffic I do marking for:
- ip rules (sometimes A LOT of rules)
- tc filters (sometimes A LOT of filters)
- gateway selection (ip rules for multipath)
- marking input interface to use in IMQ

Any ideas then for someone needing more than 32bits MARK? I could use
TOS bits (usable with ip rules and tc filters), but it's just so ugly,
and would screw in any network using it...

Could the other 32 bits be used as a MARK "category" feature available
only for 64bit arch?

Thanks,
François.

--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux