diff options
author | Jason Wright <jason@cvs.openbsd.org> | 2000-06-02 00:36:43 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 2000-06-02 00:36:43 +0000 |
commit | 00682f21ecb50642c0b6a474b0f1896e66ab83ca (patch) | |
tree | 99e310e2d6c2555a6401aaaa888d3579a3677a85 /sys/net/if_bridge.c | |
parent | dae2ea569d8a8612b8fd67fc2c1e74983d42ed04 (diff) |
On input if the packet matches one of the member interface MAC addresses,
set the receiving interface to be that interface for further processing;
thanks to dorcula@uncool.org for reporting and testing.
Diffstat (limited to 'sys/net/if_bridge.c')
-rw-r--r-- | sys/net/if_bridge.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net/if_bridge.c b/sys/net/if_bridge.c index 3c3b32a50f9..8fb46449a13 100644 --- a/sys/net/if_bridge.c +++ b/sys/net/if_bridge.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_bridge.c,v 1.30 2000/05/25 00:30:27 jason Exp $ */ +/* $OpenBSD: if_bridge.c,v 1.31 2000/06/02 00:36:42 jason Exp $ */ /* * Copyright (c) 1999, 2000 Jason L. Wright (jason@thought.net) @@ -1102,6 +1102,7 @@ bridge_input(ifp, eh, m) bridge_rtupdate(sc, (struct ether_addr *)&eh->ether_dhost, ifp, 0, IFBAF_DYNAMIC); + m->m_pkthdr.rcvif = ifl->ifp; return (m); } if (bcmp(ac->ac_enaddr, eh->ether_shost, ETHER_ADDR_LEN) == 0) { |