diff options
author | dwmalone <dwmalone@FreeBSD.org> | 2006-03-19 11:48:48 +0000 |
---|---|---|
committer | dwmalone <dwmalone@FreeBSD.org> | 2006-03-19 11:48:48 +0000 |
commit | 2dd230f5c3b1fcc26c7cbcf8fd6067cebfec0d10 (patch) | |
tree | 42e7dc0e36634f484a2981e672c28b262c3fded7 /sys/netinet | |
parent | 5990508a1595e266d9025df3bc34333be67d53a2 (diff) | |
download | FreeBSD-src-2dd230f5c3b1fcc26c7cbcf8fd6067cebfec0d10.zip FreeBSD-src-2dd230f5c3b1fcc26c7cbcf8fd6067cebfec0d10.tar.gz |
Make net.inet.ip.portrange.reservedhigh and
net.inet.ip.portrange.reservedlow apply to IPv6 aswell as IPv4.
We could have made new sysctls for IPv6, but that potentially makes
things complicated for mapped addresses. This seems like the least
confusing option and least likely to cause obscure problems in the
future.
This change makes the mac_portacl module useful with IPv6 apps.
Reviewed by: ume
MFC after: 1 month
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/in_pcb.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/netinet/in_pcb.h b/sys/netinet/in_pcb.h index fc4dfe4..eeecb9e 100644 --- a/sys/netinet/in_pcb.h +++ b/sys/netinet/in_pcb.h @@ -329,6 +329,8 @@ struct inpcbinfo { /* XXX documentation, prefixes */ #define INP_CHECK_SOCKAF(so, af) (INP_SOCKAF(so) == af) #ifdef _KERNEL +extern int ipport_reservedhigh; +extern int ipport_reservedlow; extern int ipport_lowfirstauto; extern int ipport_lowlastauto; extern int ipport_firstauto; |