Re: AF_PACKET how to get the original netdev from a packet received from a bonded master

2007-04-23 Thread Laurent Chavey
Thank you for the pointer, I am looking at the patch ad see if it help. In my case, that will do the trick, but as mentioned by Dave it may not have its place in a general distro. Perso I would rather cloning -- do not flame me, it is not my intent to

Re: AF_PACKET how to get the original netdev from a packet received from a bonded master

2007-04-19 Thread Chris Friesen
Chris Leech wrote: Just to give you an idea of our motivation around this, we're looking at layer 2 configuration protocols implemented from user space. I'd like to second the intent of this patch. We've been maintaining a patch against 2.6.10 for a while now that exports the original

AF_PACKET how to get the original netdev from a packet received from a bonded master

2007-04-18 Thread Laurent Chavey
When using PF_PACKET socket with bonded interfaces, there is no way to get the slave interface (physical interface) the packet was actually received on. It looks like there isn't a way to pass the original device {see packet_rcv() in ./net/packet/af_packet.c} to the socket reader. When an

Re: AF_PACKET how to get the original netdev from a packet received from a bonded master

2007-04-18 Thread David Miller
From: Laurent Chavey [EMAIL PROTECTED] Date: Wed, 18 Apr 2007 16:05:27 -0700 When using PF_PACKET socket with bonded interfaces, there is no way to get the slave interface (physical interface) the packet was actually received on. That's right. There isn't a real good solution to this problem

Re: AF_PACKET how to get the original netdev from a packet received from a bonded master

2007-04-18 Thread Chris Leech
On 4/18/07, David Miller [EMAIL PROTECTED] wrote: Ok, it will give you one level of decapsulation. What do we tell people who want 2 devices previous? :-) I can tell you that the intent of PJs patch was to provide the ifindex of the physical interface that a packet entered the system on,

Re: AF_PACKET how to get the original netdev from a packet received from a bonded master

2007-04-18 Thread David Miller
From: Chris Leech [EMAIL PROTECTED] Date: Wed, 18 Apr 2007 17:17:45 -0700 On 4/18/07, David Miller [EMAIL PROTECTED] wrote: Ok, it will give you one level of decapsulation. What do we tell people who want 2 devices previous? :-) I can tell you that the intent of PJs patch was to provide

Re: AF_PACKET how to get the original netdev from a packet received from a bonded master

2007-04-18 Thread Chris Leech
On 4/18/07, David Miller [EMAIL PROTECTED] wrote: Ok, I'll try to remember to high-priority reviewing PJ's patch on my next rebase of the net-2.6.22 tree which should be tonight or tomorrow sometime. Thanks Dave, PJ is offline this week so I'm trying to keep an eye out for discussions related