summaryrefslogtreecommitdiffstats
path: root/sys/net/bridge.c
diff options
context:
space:
mode:
authormjacob <mjacob@FreeBSD.org>2001-10-19 18:29:57 +0000
committermjacob <mjacob@FreeBSD.org>2001-10-19 18:29:57 +0000
commit7d137e3ffb9f873f301def92f781d7837a7c480b (patch)
treefeab0f48ede692dffa2a173d37ac52c86df516b5 /sys/net/bridge.c
parent46810589e3eac80def1a6aabd5a412cbdb890592 (diff)
downloadFreeBSD-src-7d137e3ffb9f873f301def92f781d7837a7c480b.zip
FreeBSD-src-7d137e3ffb9f873f301def92f781d7837a7c480b.tar.gz
Fix this so it compiles cleanly for alpha. Tried to do some minimal testing.
Reviewed by: freebsd-net
Diffstat (limited to 'sys/net/bridge.c')
-rw-r--r--sys/net/bridge.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/sys/net/bridge.c b/sys/net/bridge.c
index d4f6fa3..f0c5ab9 100644
--- a/sys/net/bridge.c
+++ b/sys/net/bridge.c
@@ -556,16 +556,16 @@ bridge_in(struct ifnet *ifp, struct ether_header *eh)
* for outgoing packets from ether_output().
*/
BDG_STAT(ifp, BDG_IN);
- switch ((int)dst) {
- case (int)BDG_BCAST:
- case (int)BDG_MCAST:
- case (int)BDG_LOCAL:
- case (int)BDG_UNKNOWN:
- case (int)BDG_DROP:
+ switch ((uintptr_t)dst) {
+ case (uintptr_t) BDG_BCAST:
+ case (uintptr_t) BDG_MCAST:
+ case (uintptr_t) BDG_LOCAL:
+ case (uintptr_t) BDG_UNKNOWN:
+ case (uintptr_t) BDG_DROP:
BDG_STAT(ifp, dst);
break ;
default :
- if (dst == ifp || dropit )
+ if (dst == ifp || dropit)
BDG_STAT(ifp, BDG_DROP);
else
BDG_STAT(ifp, BDG_FORWARD);
@@ -649,7 +649,7 @@ bdg_forward(struct mbuf *m0, struct ether_header *const eh, struct ifnet *dst)
ifp = dst ;
once = 1 ;
}
- if ( (u_int)(ifp) <= (u_int)BDG_FORWARD )
+ if (ifp <= BDG_FORWARD)
panic("bdg_forward: bad dst");
/*
OpenPOWER on IntegriCloud