git: inet/inet6: Randomize local port
Sepherosa Ziehau
sephe at crater.dragonflybsd.org
Fri Sep 22 02:53:33 PDT 2017
commit 3b9ff503343d91b43d23c31f8236fb012dc4eb2d
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date: Fri Sep 22 09:09:10 2017 +0800
inet/inet6: Randomize local port
Due to avoid lock intruction, this also improves connect(2)
performance a bit.
Summary of changes:
sys/netinet/in_pcb.c | 290 +++++++++++++++++--------------------------------
sys/netinet/in_pcb.h | 5 -
sys/netinet6/in6_src.c | 100 +++++++----------
3 files changed, 142 insertions(+), 253 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/3b9ff503343d91b43d23c31f8236fb012dc4eb2d
--
DragonFly BSD source repository
More information about the Commits
mailing list