Bridging and IPT Queueing
I've been looking at IPT Queueing in a bridging environment on a 2.6 kernel and noticed that the indev associated with the queued packet is the bridge device, eg. br0, instead of the physical interface. While this is true, it would be nice to know the physical indev of the packet. Is there a way of finding it? I tried looking at the HW address, but that seems broken. Thanks,
Jim
Quoted 5 lines · Jim Mar
I've been looking at IPT Queueing in a bridging environment on a 2.6 kernel and noticed that the indev associated with the queued packet is the bridge device, eg. br0, instead of the physical interface. While this is true, it would be nice to know the physical indev of the packet. Is there a way of finding it?
The physdev match?
Quoted 1 line
I tried looking at the HW address, but that seems broken.
This should give you the destination HW address of the packet, not the interface it was received on.
Regards
Henrik
Quoted 12 lines · Henrik Nordstrom
Quoted 7 lines · Jim Mar
I've been looking at IPT Queueing in a bridging environment on a 2.6 kernel and noticed that the indev associated with the queued packet is the bridge device, eg. br0, instead of the physical interface. While this is true, it would be nice to know the physical indev of the packet. Is there a way of finding it?
Quoted 3 lines
The physdev match?
Yes, physdev match will work. Thanks. Using physdev match, can I get the physical indev for a redirected packet?
Quoted 14 lines
Quoted 5 lines
I tried looking at the HW address, but that seems broken.
This should give you the destination HW address of the packet, not the interface it was received on.
Regards
Henrik
Quoted 2 lines · Jim Mar
Yes, physdev match will work. Thanks. Using physdev match, can I get the physical indev for a redirected packet?
You should.
Regards
Henrik
Quoted 4 lines · Henrik Nordstrom
On Sun, 11 Jul 2004, Jim Mar wrote:
Quoted 9 lines
Quoted 4 lines
Yes, physdev match will work. Thanks. Using physdev match, can I get the physical indev for a redirected packet?
You should.
Sorry, I meant from user space, and if so, how?
Jim
Quoted 4 lines · Jim Mar
Quoted 2 lines
Quoted 2 lines
Yes, physdev match will work. Thanks. Using physdev match, can I get the physical indev for a redirected packet?
Sorry, I meant from user space, and if so, how?
You can Use MARK to set a unique nfmark depending on the physdev and then make decisions in userspace depending on this.
Regards
Henrik