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/netinet/ip_divert.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/netinet/ip_divert.c')
-rw-r--r-- | sys/netinet/ip_divert.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/netinet/ip_divert.c b/sys/netinet/ip_divert.c index 24806ef..bec12a2 100644 --- a/sys/netinet/ip_divert.c +++ b/sys/netinet/ip_divert.c @@ -147,14 +147,15 @@ div_init(void) { INP_INFO_LOCK_INIT(&divcbinfo, "div"); LIST_INIT(&divcb); - divcbinfo.listhead = &divcb; + divcbinfo.ipi_listhead = &divcb; /* * XXX We don't use the hash list for divert IP, but it's easier * to allocate a one entry hash list than it is to check all * over the place for hashbase == NULL. */ - divcbinfo.hashbase = hashinit(1, M_PCB, &divcbinfo.hashmask); - divcbinfo.porthashbase = hashinit(1, M_PCB, &divcbinfo.porthashmask); + divcbinfo.ipi_hashbase = hashinit(1, M_PCB, &divcbinfo.ipi_hashmask); + divcbinfo.ipi_porthashbase = hashinit(1, M_PCB, + &divcbinfo.ipi_porthashmask); divcbinfo.ipi_zone = uma_zcreate("divcb", sizeof(struct inpcb), NULL, NULL, div_inpcb_init, div_inpcb_fini, UMA_ALIGN_PTR, UMA_ZONE_NOFREE); @@ -575,7 +576,7 @@ div_pcblist(SYSCTL_HANDLER_ARGS) return ENOMEM; INP_INFO_RLOCK(&divcbinfo); - for (inp = LIST_FIRST(divcbinfo.listhead), i = 0; inp && i < n; + for (inp = LIST_FIRST(divcbinfo.ipi_listhead), i = 0; inp && i < n; inp = LIST_NEXT(inp, inp_list)) { INP_LOCK(inp); if (inp->inp_gencnt <= gencnt && |