diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2006-12-07 18:15:30 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2006-12-07 18:15:30 +0000 |
commit | 313afe4cd322ccf6e48879dc37544d137f3b2d08 (patch) | |
tree | eea8b181d9b8060362cf0a005bcfe3b7fe476656 /sys/net/if_ethersubr.c | |
parent | ac8af663f831fa21d73e0db7b9031f576ae077d5 (diff) |
use LINK_STATE_IS_UP(ifp0->if_link_state) instead of
ifp0->if_link_state == LINK_STATE_UP to handle the new half/full
duplex link states. i forgot to commit these snippets before.
ok jsg@
Diffstat (limited to 'sys/net/if_ethersubr.c')
-rw-r--r-- | sys/net/if_ethersubr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_ethersubr.c b/sys/net/if_ethersubr.c index 940b4d9e46d..cdf78cb50c1 100644 --- a/sys/net/if_ethersubr.c +++ b/sys/net/if_ethersubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ethersubr.c,v 1.104 2006/10/31 14:28:29 jason Exp $ */ +/* $OpenBSD: if_ethersubr.c,v 1.105 2006/12/07 18:15:29 reyk Exp $ */ /* $NetBSD: if_ethersubr.c,v 1.19 1996/05/07 02:40:30 thorpej Exp $ */ /* @@ -235,7 +235,7 @@ ether_output(ifp0, m0, dst, rt0) struct ifaddr *ifa; /* loop back if this is going to the carp interface */ - if (dst != NULL && ifp0->if_link_state == LINK_STATE_UP && + if (dst != NULL && LINK_STATE_IS_UP(ifp0->if_link_state) && (ifa = ifa_ifwithaddr(dst)) != NULL && ifa->ifa_ifp == ifp0) return (looutput(ifp0, m, dst, rt0)); |