diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-06-26 18:17:55 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-06-26 18:17:55 +0000 |
commit | bdc0f5c45c706103e152c0beab9b55a7480c1af8 (patch) | |
tree | 0ba24243e4b1382beb8fbfd4a191a3d058297df2 /sys/net/if_bridge.c | |
parent | 989450b1bff0f90ab71e253c215cdc79a7f895df (diff) |
no longer pass around **m
Diffstat (limited to 'sys/net/if_bridge.c')
-rw-r--r-- | sys/net/if_bridge.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/net/if_bridge.c b/sys/net/if_bridge.c index ea50f267f6b..5690b6c5e76 100644 --- a/sys/net/if_bridge.c +++ b/sys/net/if_bridge.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_bridge.c,v 1.66 2001/06/25 05:04:43 kjell Exp $ */ +/* $OpenBSD: if_bridge.c,v 1.67 2001/06/26 18:17:53 deraadt Exp $ */ /* * Copyright (c) 1999, 2000 Jason L. Wright (jason@thought.net) @@ -1880,7 +1880,6 @@ bridge_filter(sc, ifp, eh, m) struct llc llc; int hassnap = 0; struct ip *ip; - struct mbuf *m1; int hlen; if (eh->ether_type != htons(ETHERTYPE_IP)) { @@ -1948,10 +1947,8 @@ bridge_filter(sc, ifp, eh, m) } /* Finally, we get to filter the packet! */ - m1 = m; - if (pf_test(PF_IN, m->m_pkthdr.rcvif, &m1) != PF_PASS) + if (pf_test(PF_IN, m->m_pkthdr.rcvif, m) != PF_PASS) goto dropit; - m = m1; /* Rebuild the IP header */ if (m->m_len < hlen && ((m = m_pullup(m, hlen)) == NULL)) |