summaryrefslogtreecommitdiff
path: root/sys/netinet/in_var.h
diff options
context:
space:
mode:
authorcheloha <cheloha@cvs.openbsd.org>2018-10-18 15:23:05 +0000
committercheloha <cheloha@cvs.openbsd.org>2018-10-18 15:23:05 +0000
commit05292dcaf537fa837d13e46cc5fe2e9b85ab78e9 (patch)
tree8b16b1e80a8983864a5d40fb99efa09654da1c58 /sys/netinet/in_var.h
parente2a1e605ac06938b2ae1aa32418bd9994b8818c1 (diff)
igmp, struct router_info: use queue(3)
In particular, use LIST_* to preserve O(n) removal in rti_delete(). While here, clean up two malloc(9) calls. Suggested by mpi@. ok visa@
Diffstat (limited to 'sys/netinet/in_var.h')
-rw-r--r--sys/netinet/in_var.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/in_var.h b/sys/netinet/in_var.h
index d1f7d1fcd21..77153c5bf8f 100644
--- a/sys/netinet/in_var.h
+++ b/sys/netinet/in_var.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: in_var.h,v 1.40 2017/05/29 14:36:22 mpi Exp $ */
+/* $OpenBSD: in_var.h,v 1.41 2018/10/18 15:23:04 cheloha Exp $ */
/* $NetBSD: in_var.h,v 1.16 1996/02/13 23:42:15 christos Exp $ */
/*
@@ -102,7 +102,7 @@ struct router_info {
unsigned int rti_ifidx;
int rti_type; /* type of router on this interface */
int rti_age; /* time since last v1 query */
- struct router_info *rti_next;
+ LIST_ENTRY(router_info) rti_list;
};
#ifdef _KERNEL