git: net: Add initport protosw method to init socket's default protocol port

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


commit ee0be9cabc250df6c078d8ba38a9596d39b98721
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date:   Wed Jun 18 21:16:58 2014 +0800

    net: Add initport protosw method to init socket's default protocol port
    
    Currently only tcp implements this method to distribute pru_attach and
    pru_connect workload.
    
    Nuke no longer necessary protosw flag PR_RAND_INITPORT and sysctl
    kern.ipc.rand_initport.

Summary of changes:
 sys/kern/uipc_socket.c | 21 ++++++++-------------
 sys/netinet/in_proto.c |  4 ++--
 sys/netinet/ip_demux.c |  6 ++++++
 sys/netinet/tcp_var.h  |  2 ++
 sys/sys/protosw.h      |  4 +++-
 5 files changed, 21 insertions(+), 16 deletions(-)

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


-- 
DragonFly BSD source repository



More information about the Commits mailing list