tcp: Avoid unnecessary calling of in_pcbladdr() in tcp_connect()
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Wed, 18 Jun 2014 13:15:52 +0000 (21:15 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Wed, 18 Jun 2014 13:15:52 +0000 (21:15 +0800)
commitf5f6af915d3103c1fd60d618d3efc2b35235f94a
tree6eaa4a8e9ca819c3e375259bb55d7e45cad8ff96
parente809f39bcc90ab958b1d184ab5f125bbdff3da9e
tcp: Avoid unnecessary calling of in_pcbladdr() in tcp_connect()

If in_pcbladdr() was called and inp_laddr was saved, there would be
no need to call in_pcbladdr() again, after the inp was forwarded to
its owner netisr.
sys/net/netmsg.h
sys/netinet/tcp_usrreq.c