aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet/raw_ip.c
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2001-02-04 13:13:25 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2001-02-04 13:13:25 +0000
commitfc2ffbe6040d6630a06229c5c9be77601fb635eb (patch)
tree328f91e23b34b382d998fba4c7e55796b240b62b /sys/netinet/raw_ip.c
parentef9e85abba5ce45c8b3fc840db320edb1abe0160 (diff)
downloadsrc-fc2ffbe6040d6630a06229c5c9be77601fb635eb.tar.gz
src-fc2ffbe6040d6630a06229c5c9be77601fb635eb.zip
Mechanical change to use <sys/queue.h> macro API instead of
fondling implementation details. Created with: sed(1) Reviewed by: md5(1)
Notes
Notes: svn path=/head/; revision=71999
Diffstat (limited to 'sys/netinet/raw_ip.c')
-rw-r--r--sys/netinet/raw_ip.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/netinet/raw_ip.c b/sys/netinet/raw_ip.c
index 0342d391c067..a6e850f5ecc2 100644
--- a/sys/netinet/raw_ip.c
+++ b/sys/netinet/raw_ip.c
@@ -385,8 +385,8 @@ rip_ctlinput(cmd, sa, vip)
switch (cmd) {
case PRC_IFDOWN:
- for (ia = in_ifaddrhead.tqh_first; ia;
- ia = ia->ia_link.tqe_next) {
+ for (ia = TAILQ_FIRST(&in_ifaddrhead); ia;
+ ia = TAILQ_NEXT(ia, ia_link)) {
if (ia->ia_ifa.ifa_addr == sa
&& (ia->ia_flags & IFA_ROUTE)) {
/*
@@ -406,8 +406,8 @@ rip_ctlinput(cmd, sa, vip)
break;
case PRC_IFUP:
- for (ia = in_ifaddrhead.tqh_first; ia;
- ia = ia->ia_link.tqe_next) {
+ for (ia = TAILQ_FIRST(&in_ifaddrhead); ia;
+ ia = TAILQ_NEXT(ia, ia_link)) {
if (ia->ia_ifa.ifa_addr == sa)
break;
}
@@ -609,8 +609,8 @@ rip_pcblist(SYSCTL_HANDLER_ARGS)
return ENOMEM;
s = splnet();
- for (inp = ripcbinfo.listhead->lh_first, i = 0; inp && i < n;
- inp = inp->inp_list.le_next) {
+ for (inp = LIST_FIRST(ripcbinfo.listhead), i = 0; inp && i < n;
+ inp = LIST_NEXT(inp, inp_list)) {
if (inp->inp_gencnt <= gencnt)
inp_list[i++] = inp;
}