From 3880eed1bce4a7f2f6bf275a58e9ece26fc21a79 Mon Sep 17 00:00:00 2001 From: "Matthew N. Dodd" Date: Fri, 29 Mar 2002 10:29:10 +0000 Subject: [PATCH] - Use ifp->if_broadcastaddr when possible. - Remove unnecessary preprocessor conditional. --- sys/net/if_fddisubr.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sys/net/if_fddisubr.c b/sys/net/if_fddisubr.c index ba2f45f52cf8..8285268ea0f7 100644 --- a/sys/net/if_fddisubr.c +++ b/sys/net/if_fddisubr.c @@ -371,8 +371,8 @@ fddi_input(ifp, fh, m) * Set mbuf flags for bcast/mcast. */ if (fh->fddi_dhost[0] & 1) { - if (bcmp((caddr_t)fddibroadcastaddr, (caddr_t)fh->fddi_dhost, - FDDI_ADDR_LEN) == 0) + if (bcmp((caddr_t)ifp->if_broadcastaddr, + (caddr_t)fh->fddi_dhost, FDDI_ADDR_LEN) == 0) m->m_flags |= M_BCAST; else m->m_flags |= M_MCAST; @@ -403,7 +403,6 @@ fddi_input(ifp, fh, m) l = mtod(m, struct llc *); switch (l->llc_dsap) { -#if defined(INET) || defined(INET6) || defined(NS) || defined(DECNET) || defined(IPX) || defined(NETATALK) case LLC_SNAP_LSAP: { u_int16_t type; @@ -496,7 +495,6 @@ fddi_input(ifp, fh, m) } break; } -#endif /* INET || NS */ default: /* printf("fddi_input: unknown dsap 0x%x\n", l->llc_dsap); */