diff options
| author | Matt Jacob <mjacob@FreeBSD.org> | 2001-10-19 18:29:57 +0000 |
|---|---|---|
| committer | Matt Jacob <mjacob@FreeBSD.org> | 2001-10-19 18:29:57 +0000 |
| commit | e58c2b8381e273f2528cc3a501628079692be3b5 (patch) | |
| tree | feab0f48ede692dffa2a173d37ac52c86df516b5 /sys/net/bridge.c | |
| parent | 32c798f806aab31353cccafff6d54d8f968c5a8a (diff) | |
Notes
Diffstat (limited to 'sys/net/bridge.c')
| -rw-r--r-- | sys/net/bridge.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sys/net/bridge.c b/sys/net/bridge.c index d4f6fa3cfab4..f0c5ab95ea3b 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"); /* |
