aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet/in_pcb.c
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2022-10-19 22:15:53 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2022-10-19 22:15:53 +0000
commit24cf7a8d62856552fa800ad81b6f89ec9cdf91be (patch)
treedbeba5407c3d6a9bd96cfa5dde48318f99dcd9db /sys/netinet/in_pcb.c
parentb6a816f11688185119a1abda2ee08300729cffb9 (diff)
downloadsrc-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.c5
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;