git: tcp: Avoid unnecessary calling of in_pcbladdr() in tcp_connect()

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Wed Jun 18 06:21:38 PDT 2014


commit f5f6af915d3103c1fd60d618d3efc2b35235f94a
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date:   Wed Jun 18 21:15:52 2014 +0800

    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.

Summary of changes:
 sys/net/netmsg.h         |  1 +
 sys/netinet/tcp_usrreq.c | 10 +++++-----
 2 files changed, 6 insertions(+), 5 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/f5f6af915d3103c1fd60d618d3efc2b35235f94a


-- 
DragonFly BSD source repository


More information about the Commits mailing list