summaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2000-02-28 23:41:29 +0000
committerJason Wright <jason@cvs.openbsd.org>2000-02-28 23:41:29 +0000
commitc78147e097b449d4ae702d1d3fd236ea7ddd1e45 (patch)
tree6d1514c217187d28ce2c49eee4a02fb06e4f595c /sys/net
parentd91c081045e5f58219eab514e376c9d4402a01af (diff)
remove unneeded variable and clean
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/if_bridge.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/sys/net/if_bridge.c b/sys/net/if_bridge.c
index f98e4e6fa2e..4879cf27a8d 100644
--- a/sys/net/if_bridge.c
+++ b/sys/net/if_bridge.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_bridge.c,v 1.27 2000/02/21 17:38:07 jason Exp $ */
+/* $OpenBSD: if_bridge.c,v 1.28 2000/02/28 23:41:28 jason Exp $ */
/*
* Copyright (c) 1999, 2000 Jason L. Wright (jason@thought.net)
@@ -1048,7 +1048,6 @@ bridge_input(ifp, eh, m)
int s;
struct bridge_iflist *ifl;
struct arpcom *ac;
- struct ether_header *neh;
struct mbuf *mc;
/*
@@ -1073,11 +1072,10 @@ bridge_input(ifp, eh, m)
mc = m_copym2(m, 0, M_COPYALL, M_NOWAIT);
if (mc == NULL)
return (m);
- M_PREPEND(mc, sizeof(*eh), M_DONTWAIT);
+ M_PREPEND(mc, sizeof(struct ether_header), M_DONTWAIT);
if (mc == NULL)
return (m);
- neh = mtod(mc, struct ether_header *);
- bcopy(eh, neh, sizeof(struct ether_header));
+ bcopy(eh, mtod(mc, caddr_t), sizeof(struct ether_header));
s = splimp();
if (IF_QFULL(&sc->sc_if.if_snd)) {
m_freem(mc);
@@ -1112,11 +1110,10 @@ bridge_input(ifp, eh, m)
}
ifl = LIST_NEXT(ifl, next);
}
- M_PREPEND(m, sizeof(*eh), M_DONTWAIT);
+ M_PREPEND(m, sizeof(struct ether_header), M_DONTWAIT);
if (m == NULL)
return (NULL);
- neh = mtod(m, struct ether_header *);
- bcopy(eh, neh, sizeof(struct ether_header));
+ bcopy(eh, mtod(m, caddr_t), sizeof(struct ether_header));
s = splimp();
if (IF_QFULL(&sc->sc_if.if_snd)) {
m_freem(m);