diff options
author | wollman <wollman@FreeBSD.org> | 1996-12-11 20:38:25 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 1996-12-11 20:38:25 +0000 |
commit | 9b9067caec777892be0e223bef825ffc72c90754 (patch) | |
tree | 12bcc692487d0eb28f370c9d9190da112b407d03 /sys/netinet | |
parent | 46eb306a07907d347c52578792989c6c127df0d5 (diff) | |
download | FreeBSD-src-9b9067caec777892be0e223bef825ffc72c90754.zip FreeBSD-src-9b9067caec777892be0e223bef825ffc72c90754.tar.gz |
Use queue macros for the list of interfaces. Next stop: ifaddrs!
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/raw_ip.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet/raw_ip.c b/sys/netinet/raw_ip.c index b7c8af9..77470d9 100644 --- a/sys/netinet/raw_ip.c +++ b/sys/netinet/raw_ip.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)raw_ip.c 8.7 (Berkeley) 5/15/95 - * $Id: raw_ip.c,v 1.37 1996/10/25 17:57:48 fenner Exp $ + * $Id: raw_ip.c,v 1.38 1996/11/11 04:56:24 fenner Exp $ */ #include <sys/param.h> @@ -375,7 +375,7 @@ rip_usrreq(so, req, m, nam, control) error = EINVAL; break; } - if ((ifnet == 0) || + if (TAILQ_EMPTY(&ifnet) || ((addr->sin_family != AF_INET) && (addr->sin_family != AF_IMPLINK)) || (addr->sin_addr.s_addr && @@ -394,7 +394,7 @@ rip_usrreq(so, req, m, nam, control) error = EINVAL; break; } - if (ifnet == 0) { + if (TAILQ_EMPTY(&ifnet)) { error = EADDRNOTAVAIL; break; } |