diff options
author | Gleb Smirnoff <glebius@FreeBSD.org> | 2022-10-19 22:15:53 +0000 |
---|---|---|
committer | Gleb Smirnoff <glebius@FreeBSD.org> | 2022-10-19 22:15:53 +0000 |
commit | 24cf7a8d62856552fa800ad81b6f89ec9cdf91be (patch) | |
tree | dbeba5407c3d6a9bd96cfa5dde48318f99dcd9db /sys/netinet/in_pcb.c | |
parent | b6a816f11688185119a1abda2ee08300729cffb9 (diff) | |
download | src-24cf7a8d62856552fa800ad81b6f89ec9cdf91be.tar.gz src-24cf7a8d62856552fa800ad81b6f89ec9cdf91be.zip |
inpcb: provide pcbinfo pointer argument to inp_apply_all()
Allows to clear inpcb layer of TCP knowledge.
Diffstat (limited to 'sys/netinet/in_pcb.c')
-rw-r--r-- | sys/netinet/in_pcb.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/netinet/in_pcb.c b/sys/netinet/in_pcb.c index 10e36760825b..3348526b144e 100644 --- a/sys/netinet/in_pcb.c +++ b/sys/netinet/in_pcb.c @@ -2694,9 +2694,10 @@ inp_unlock_assert(struct inpcb *inp) #endif void -inp_apply_all(void (*func)(struct inpcb *, void *), void *arg) +inp_apply_all(struct inpcbinfo *pcbinfo, + void (*func)(struct inpcb *, void *), void *arg) { - struct inpcb_iterator inpi = INP_ALL_ITERATOR(&V_tcbinfo, + struct inpcb_iterator inpi = INP_ALL_ITERATOR(pcbinfo, INPLOOKUP_WLOCKPCB); struct inpcb *inp; |