[AF_PACKET]: Add option to return orig_dev to userspace.
authorPeter P. Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
Fri, 20 Apr 2007 23:05:39 +0000 (16:05 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Thu, 26 Apr 2007 05:29:14 +0000 (22:29 -0700)
commit80feaacb8a6400a9540a961b6743c69a5896b937
treea4f07e635de521f5e283e0f4081923a98c0256d5
parent1370b5a59b941ac3873b5e8614d496e9f481d670
[AF_PACKET]: Add option to return orig_dev to userspace.

Add a packet socket option to allow the orig_dev index to be returned
to userspace when passing traffic through a decapsulated device, such
as the bonding driver.

This is very useful for layer 2 traffic being able to report which
physical device actually received the traffic, instead of having the
encapsulating device hide that information.

The new option is called PACKET_ORIGDEV.

Signed-off-by: Peter P. Waskiewicz Jr. <peter.p.waskiewicz.jr@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/if_packet.h
net/packet/af_packet.c