udp: Use flow key information instead of rt->rt_{src,dst}
authorDavid S. Miller <davem@davemloft.net>
Sun, 8 May 2011 23:38:45 +0000 (16:38 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 9 May 2011 04:12:48 +0000 (21:12 -0700)
commite474995f290ff7bc236b549aa9a89ae445ee5b1b
tree50c16643d9b828d95f795863653a12739e111224
parenteed2a12f1ed9aabf0676f4d0db34aad51976c5c6
udp: Use flow key information instead of rt->rt_{src,dst}

We have two cases.

Either the socket is in TCP_ESTABLISHED state and connect() filled
in the inet socket cork flow, or we looked up the route here and
used an on-stack flow.

Track which one it was, and use it to obtain src/dst addrs.

Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/udp.c