diff options
| author | Bjoern A. Zeeb <bz@FreeBSD.org> | 2009-06-11 10:26:38 +0000 |
|---|---|---|
| committer | Bjoern A. Zeeb <bz@FreeBSD.org> | 2009-06-11 10:26:38 +0000 |
| commit | 259d2d5431065a08380b0791b6c5d01b285b0215 (patch) | |
| tree | f98bbcd30eb93d910b0d5de7940c01d2a7e71764 /sys/net/if_ethersubr.c | |
| parent | 493f0f17094cc6f7c366ab86df111fe59011fcb3 (diff) | |
Notes
Diffstat (limited to 'sys/net/if_ethersubr.c')
| -rw-r--r-- | sys/net/if_ethersubr.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/net/if_ethersubr.c b/sys/net/if_ethersubr.c index 7c68908b9321..5d536aa4528a 100644 --- a/sys/net/if_ethersubr.c +++ b/sys/net/if_ethersubr.c @@ -79,9 +79,11 @@ #include <netinet6/nd6.h> #endif +#if defined(INET) || defined(INET6) #ifdef DEV_CARP #include <netinet/ip_carp.h> #endif +#endif #ifdef IPX #include <netipx/ipx.h> @@ -393,11 +395,13 @@ ether_output(struct ifnet *ifp, struct mbuf *m, return (error); } +#if defined(INET) || defined(INET6) #ifdef DEV_CARP if (ifp->if_carp && (error = carp_output(ifp, m, dst, NULL))) goto bad; #endif +#endif /* Handle ng_ether(4) processing, if any */ if (IFP2AC(ifp)->ac_netgraph != NULL) { @@ -712,6 +716,7 @@ ether_input(struct ifnet *ifp, struct mbuf *m) } } +#if defined(INET) || defined(INET6) #ifdef DEV_CARP /* * Clear M_PROMISC on frame so that carp(4) will see it when the @@ -727,6 +732,7 @@ ether_input(struct ifnet *ifp, struct mbuf *m) m->m_flags &= ~M_PROMISC; } else #endif +#endif { /* * If the frame received was not for our MAC address, set the |
