summaryrefslogtreecommitdiffstats
path: root/sys/netinet/in_pcb.h
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2008-10-20 18:43:59 +0000
committerbz <bz@FreeBSD.org>2008-10-20 18:43:59 +0000
commit0991899a98572c9cfb8466895fc7966cdd80fa66 (patch)
tree46345a122f5598cb6a5912d8f36bb4a9d8912bb4 /sys/netinet/in_pcb.h
parent732eb6cbef318aa86bee198ed954ddbf74ad853a (diff)
downloadFreeBSD-src-0991899a98572c9cfb8466895fc7966cdd80fa66.zip
FreeBSD-src-0991899a98572c9cfb8466895fc7966cdd80fa66.tar.gz
Bring over the change switching from using sequential to random
ephemeral port allocation as implemented in netinet/in_pcb.c rev. 1.143 (initially from OpenBSD) and follow-up commits during the last four and a half years including rev. 1.157, 1.162 and 1.199. This now is relying on the same infrastructure as has been implemented in in_pcb.c since rev. 1.199. Reviewed by: silby, rpaulo, mlaier MFC after: 2 months
Diffstat (limited to 'sys/netinet/in_pcb.h')
-rw-r--r--sys/netinet/in_pcb.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/netinet/in_pcb.h b/sys/netinet/in_pcb.h
index b393c18..9a43511 100644
--- a/sys/netinet/in_pcb.h
+++ b/sys/netinet/in_pcb.h
@@ -449,6 +449,9 @@ extern int ipport_firstauto;
extern int ipport_lastauto;
extern int ipport_hifirstauto;
extern int ipport_hilastauto;
+extern int ipport_randomized;
+extern int ipport_stoprandom;
+extern int ipport_tcpallocs;
extern struct callout ipport_tick_callout;
void in_pcbpurgeif0(struct inpcbinfo *, struct ifnet *);
OpenPOWER on IntegriCloud