In TCP PRU_CONNECT handling, install inp's route with the route entry on the
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Sat, 9 Feb 2008 13:38:03 +0000 (13:38 +0000)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Sat, 9 Feb 2008 13:38:03 +0000 (13:38 +0000)
commita46456f3228e1c5c20b2f94061239758450f939c
tree5af0e05be8c7b55fcb5287a025a65fd5ade6935e
parent4bb4c06e481825f9cc6b5a18b10cbac692df9cd0
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