In TCP PRU_CONNECT handling, install inp's route with the route entry on the
commit0ba140955e5af9a71e46d6507723e6aa9913beca
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Sat, 9 Feb 2008 13:38:03 +0000 (9 13:38 +0000)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Sat, 9 Feb 2008 13:38:03 +0000 (9 13:38 +0000)
treecd9981ab1b3a90a686b3d26dcc10865a9232e65b
parentd2bf82afdd61136a0548b3c2f93a2a402e30c412
In TCP PRU_CONNECT handling, install inp's route with the route entry on the
correct CPU:
If the TCP connection's target port is not tcp_thread[0]'s port on which TCP
PRU_CONNECT is processed, then
- In tcp_connect(), the route entry installed in inp's route by in_pcbladdr()
  is freed, so the next fix could take effect.
- In tcp_usr_connect(), tcp_output() is dispatched to the connection's target
  port to be called, so the route entry on the connection's target CPU will
  be installed in inp's route.

Approved-by: dillon@
sys/netinet/tcp_usrreq.c