]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit02f7fe8f5c379f16edc992d58f120bcd89f5d9d9
tree50c16643d9b828d95f795863653a12739e111224
parent8cce548262dc06c6b444f26fec54bb930bea2abf
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