summaryrefslogtreecommitdiff
path: root/sys/net/if_bridge.c
AgeCommit message (Collapse)Author
2001-05-11check for 'fastroute' condition (like ip_input) in bridge_filter() andJason Wright
deal with it.
2001-03-22strlcpy instead of strncpy + \0Jason Wright
2001-03-19m_freem not m_free if we're dropping the packet because we're not inJason Wright
the forwarding stp state
2001-03-06Eeep, don't reset the checksum when checking it! Noticed by bugfix@123.netAngelos D. Keromytis
2001-03-05Clear ip_sum before calculating IP checksum (closes PR 1667)Angelos D. Keromytis
2001-02-06allow for configuring number of bridge ifaces in ukc; jason@ ok and helpMichael Shalayeff
2001-02-04For unicast packets destined for the bridge machine itself, learn from theJason Wright
SRC address (not the DST).
2001-02-02In the broadcast received on gif case, throw the packet up the stack ifJason Wright
we -found- an appropriate interface.
2001-02-01packets received on gif's for local processing can't just fall down theJason Wright
stack, they have to be pushed; when calling ether_input(): 1 - unicast packets have the ifp of the matching interface 2 - bcast/mcast packets have the ifp of the first IFT_ETHER bridge member based on discussion with angelos.
2001-01-30change ip_compat.h to ip_fil_compat.h for clarity. Impending ipf mergeKjell Wooding
2001-01-17IPF 3.4.15. (IPv6 not working yet).Federico G. Schwindt
Note: before building the userland part you need to do make includes.
2000-12-30For bridged IPsec, use the gif* interfaces.Angelos D. Keromytis
2000-12-12Add support for 802.1D spanning tree protocol.Jason Wright
NOTE: this requires recompiling brconfig with updated include files.
2000-11-10it doesn't matter what kind of interface it is if the bridge_iflist allocationJason Wright
fails.. it's still ENOMEM.
2000-11-07- Since the actual frame processing takes place from softnet(), splhighJason Wright
is not needed (the only other two places that modify the state of the bridge are bridge_ioctl() and bridge_rtage(), both of which can easily be wrapped in splsoftnet). - compute a random hashkey each time the bridge is brought up
2000-11-06use the macros from queue.h more consistentlyJason Wright
update if_omcasts and call IF_DROP when necessary
2000-10-18use IFT_BRIDGEJason Wright
correctly update member interface obytes+lastchange; patch from camield@
2000-10-18revamped llc handling using if_llc.hJason Wright
removed unused structure
2000-10-18get the bounds checking right for the data used in copyout() in severalJason Wright
ioctl calls.
2000-10-09uninitialized variable; spotted by Andrew Lunn <andrew.lunn@ascom.ch>Jason Wright
2000-06-26timeout is in seconds, not ticks.Artur Grabowski
2000-06-22Convert to new timeouts.Artur Grabowski
2000-06-20knfJason Wright
2000-06-16use memcmp() instead of bcmp(), memcmp is <,=,> but bcmp is =,!=Theo de Raadt
2000-06-02On input if the packet matches one of the member interface MAC addresses,Jason Wright
set the receiving interface to be that interface for further processing; thanks to dorcula@uncool.org for reporting and testing.
2000-05-25on packets incoming to the bridge machine itself, respect theJason Wright
LEARNING flag on the receiving interface (ie. don't learn when you're not supposed to).
2000-04-10don't return directly from bridge_ioctl without splx() on invalid encJason Wright
interfaces; modified version of patch from Armin Wolfermann <armin@wolfermann.org>.
2000-02-28remove unneeded variable and cleanJason Wright
2000-02-21Rework bridge_filter() so that it does not require a full packet copyJason Wright
Allow for reusing the current mbuf (rather than a copy) for the last interface in the list in bridge_output(). Replace some pointer derefs with on the stack copies of the data.
2000-02-19set interface fields to null when detaching substructuresNiklas Hallqvist
in preparation for softc retainment.
2000-01-25add ethernet MAC filtering capabilityJason Wright
also includes split of bridgeintr() with some optimizations for quicker frame handling
2000-01-15Don't allow enc0 to be added to a bridge, as it's used for allAngelos D. Keromytis
non-bound SAs...
2000-01-15Handle the SNAP encapsulated IP/Non-IP case.Jason Wright
2000-01-10Implement the blocknonip flagAngelos D. Keromytis
1999-11-04allow 'enc' interfaces to be bridge membersJason Wright
check to make sure rx'd packets aren't from any of our interfaces fix some bogus comments
1999-10-27packets addressed "for us" should be entered into the bridge address cache.Jason Wright
1999-10-26rewriting the header for packets originating from the bridge isJason Wright
unncessary since we check for incoming frames destined to any of the bridged interfaces. Also change the full mbuf copy to a referenced copy.
1999-09-30simplify bridge_broadcast():Jason Wright
don't bother returning an mbuf just to free it only free it if NOT used
1999-09-03Don't delete the cache on down/up transitions unless it's empty. InsteadJason Wright
flush the dynamics. Required other handling of the cache table to accomodate. Modify SIOCBRDGFLUSH to handle flushall and flush dynamic requests.
1999-09-01o simpler handling of "forme" packetsJason Wright
o when ~IFF_UP, don't act like a bridge for output either
1999-08-20uninitialized variable; art@Jason Wright
1999-08-08Fix cases when wanting to communicate with the bridge'Niklas Hallqvist
s remote interfaces, both ARP and local delivery had bugs
1999-08-08Support detaching of network interfaces. Still work to do in ipf, andNiklas Hallqvist
other families than inet.
1999-07-24fix size calculation in SIOCBRDGRTSJason Wright
code size reduction from deraadt@
1999-06-30bpfattach bridge's and provide tap for queued packetsJason Wright
1999-06-03Repair amiga builds (int schedules need some machine-specific macros)Marc Espie
1999-05-24Only do basic work in the ethernet interrupt context, and queue packets toJason Wright
be bridged. Do the real work in a scheduled netisr.
1999-03-19Add flag to allow some interfaces to not see packets with unknown destination.Jason Wright
1999-03-19Add the ability to mark an interface as "non-learning"Jason Wright
1999-03-12big overhaul:Jason Wright
o SNAP encapsulated IP filtering o static address cache entries o address deletion from cache o dynamic & full cache flush o filter packets based on each interface, not on the bridge as a whole o KNF nits o allow addition of ~IFF_UP interfaces o man page & user level fixes to match the above