TPROXY: fill struct flowi->flags in udp_sendmsg()
authorBalazs Scheidler <bazsi@balabit.hu>
Thu, 20 Nov 2008 09:07:24 +0000 (01:07 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Nov 2008 09:07:24 +0000 (01:07 -0800)
commita134f85c131ffd56720e38af2967ec6265480757
tree855f671667da2643274af8d580e16843f4baa393
parentb88ed5cc884e4c28d787cf0912b8635376f16a87
TPROXY: fill struct flowi->flags in udp_sendmsg()

    udp_sendmsg() didn't fill struct flowi->flags, which means that
    the route lookup would fail for non-local IPs even if the
    IP_TRANSPARENT sockopt was set.

    This prevents sendto() to work properly for UDP sockets, whereas
    bind(foreign-ip) + connect() + send() worked fine.

Signed-off-by: Balazs Scheidler <bazsi@balabit.hu>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/udp.c