diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2015-12-03 16:27:33 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2015-12-03 16:27:33 +0000 |
commit | dff17dbfaf3a4db17a3050046e0cf30ecc6bb481 (patch) | |
tree | f7d9ff7fdadb1d71a9a1b78d7ab61009859afa0b /sys/netinet | |
parent | 2e0cebfa9ec8d0eeb0b3f46ff26648b7e10e885f (diff) |
Use SRPL_HEAD() and SRPL_ENTRY() to be consistent with and allow to
fallback to a SLIST.
ok dlg@, jasper@
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/ip_carp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/netinet/ip_carp.c b/sys/netinet/ip_carp.c index f8e7e66d7f6..4dbb6e5616b 100644 --- a/sys/netinet/ip_carp.c +++ b/sys/netinet/ip_carp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_carp.c,v 1.282 2015/11/18 13:53:59 mpi Exp $ */ +/* $OpenBSD: ip_carp.c,v 1.283 2015/12/03 16:27:32 mpi Exp $ */ /* * Copyright (c) 2002 Michael Shalayeff. All rights reserved. @@ -94,7 +94,7 @@ struct carp_mc_entry { enum { HMAC_ORIG=0, HMAC_NOV6LL=1, HMAC_MAX=2 }; struct carp_vhost_entry { - struct srpl_entry vhost_entries; + SRPL_ENTRY(carp_vhost_entry) vhost_entries; struct refcnt vhost_refcnt; struct carp_softc *parent_sc; @@ -133,7 +133,7 @@ struct carp_softc { struct ip6_moptions sc_im6o; #endif /* INET6 */ - struct srpl_entry sc_list; + SRPL_ENTRY(carp_softc) sc_list; struct refcnt sc_refcnt; int sc_suppress; @@ -147,7 +147,7 @@ struct carp_softc { char sc_curlladdr[ETHER_ADDR_LEN]; - struct srpl carp_vhosts; + SRPL_HEAD(, carp_vhost_entry) carp_vhosts; int sc_vhe_count; u_int8_t sc_vhids[CARP_MAXNODES]; u_int8_t sc_advskews[CARP_MAXNODES]; |