diff options
author | rwatson <rwatson@FreeBSD.org> | 2007-04-30 23:12:05 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2007-04-30 23:12:05 +0000 |
commit | c27ef034149379823d3f1a1ed091d766fe5abb17 (patch) | |
tree | 119273487ff879cda562b2fa2b8c40c1b950e2b0 /sys/netinet6/in6_src.c | |
parent | 7af8abc0c5540217c84e7fef30f265f5ebdee5c6 (diff) | |
download | FreeBSD-src-c27ef034149379823d3f1a1ed091d766fe5abb17.zip FreeBSD-src-c27ef034149379823d3f1a1ed091d766fe5abb17.tar.gz |
Rename some fields of struct inpcbinfo to have the ipi_ prefix,
consistent with the naming of other structure field members, and
reducing improper grep matches. Clean up and comment structure
fields in structure definition.
Diffstat (limited to 'sys/netinet6/in6_src.c')
-rw-r--r-- | sys/netinet6/in6_src.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet6/in6_src.c b/sys/netinet6/in6_src.c index 204781e..bee583c 100644 --- a/sys/netinet6/in6_src.c +++ b/sys/netinet6/in6_src.c @@ -773,7 +773,7 @@ in6_pcbsetport(laddr, inp, cred) if (inp->inp_flags & INP_HIGHPORT) { first = ipport_hifirstauto; /* sysctl */ last = ipport_hilastauto; - lastport = &pcbinfo->lasthi; + lastport = &pcbinfo->ipi_lasthi; } else if (inp->inp_flags & INP_LOWPORT) { error = priv_check_cred(cred, PRIV_NETINET_RESERVEDPORT, SUSER_ALLOWJAIL); @@ -781,11 +781,11 @@ in6_pcbsetport(laddr, inp, cred) return error; first = ipport_lowfirstauto; /* 1023 */ last = ipport_lowlastauto; /* 600 */ - lastport = &pcbinfo->lastlow; + lastport = &pcbinfo->ipi_lastlow; } else { first = ipport_firstauto; /* sysctl */ last = ipport_lastauto; - lastport = &pcbinfo->lastport; + lastport = &pcbinfo->ipi_lastport; } /* * Simple check to ensure all ports are not used up causing |