]> git.baikalelectronics.ru Git - kernel.git/commit
TPROXY: implemented IP_RECVORIGDSTADDR socket option
authorBalazs Scheidler <bazsi@balabit.hu>
Mon, 17 Nov 2008 03:32:39 +0000 (19:32 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Nov 2008 03:32:39 +0000 (19:32 -0800)
commit214885c4ff8d569e707f271bf8b60c6a41659dbc
tree6f7d497284a8951b8681517f7866851b32a7b02e
parentf0dddf53ca75dcc9fe6af9bcb1ec50cd1dd596ee
TPROXY: implemented IP_RECVORIGDSTADDR socket option

In case UDP traffic is redirected to a local UDP socket,
the originally addressed destination address/port
cannot be recovered with the in-kernel tproxy.

This patch adds an IP_RECVORIGDSTADDR sockopt that enables
a IP_ORIGDSTADDR ancillary message in recvmsg(). This
ancillary message contains the original destination address/port
of the packet being received.

Signed-off-by: Balazs Scheidler <bazsi@balabit.hu>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/in.h
net/ipv4/ip_sockglue.c