summaryrefslogtreecommitdiff
path: root/sys/net/if_bridge.c
AgeCommit message (Collapse)Author
2002-08-07consistently check byte order of ether_type; pointed out by dhartmeiJason Wright
2002-07-02make it compile w/ ipsec and no pf ; smth that was left for homeworkMichael Shalayeff
2002-07-01Fix really long standing bug with fetching address cache entries:Jason Wright
handle ifbac_len == 0 as per the man page; Benny Holmgren <bigfoot@astrakan.hig.se>
2002-06-30allocate sockaddr_dl for ifnet in if_alloc_sadl(), as we don't always knowJun-ichiro itojun Hagino
the size of sockaddr_dl on if_attach() - for instance, see ether_ifattach(). from netbsd. fgs ok
2002-06-15unnecessary () on castJason Wright
2002-06-15Transparent IPsec processing on the bridge; for now works only withAngelos D. Keromytis
static keys.
2002-06-11splassert(IPL_NET) where comment says that we should.Artur Grabowski
2002-06-10prevent mbuf leak on icmp_do_error() failure.Jun-ichiro itojun Hagino
NOTE: under 4.4BSD mbuf coding discipline, once you pass mbuf to a function like f(m), you no longer have ownership of the mbuf. the mbuf will always be freed by the called function f(). by keeping the programming rule you have less chance of memory leak.
2002-06-09don't need device.hJason Wright
2002-06-08use consistent style in function declarationsjasoni
2002-06-08If a IP packet is too large for the outgoing interface and DF is set,jasoni
drop the packet and send a icmp needfrag.. blessed by jason@
2002-06-07Move all duplicated enqueueing code into one function,jasoni
bridge_ifenqueu(). - ok jason@, dhartmei@
2002-05-31respect rmx_mtu (cached PMTUD result) on outbound. deraadt/angelos okJun-ichiro itojun Hagino
2002-05-28refragment ip packets if too large for the outgoing interfacejasoni
- ok jason@, dhartmei@
2002-04-08Credit DARPA/USAF appropriately.Jason Wright
2002-03-18filter ipv6 on the bridge.jasoni
- ok jason@
2002-03-14First round of __P removal in sysTodd C. Miller
2002-02-14If helps to loop over the correct variable *sigh*Jason Wright
2002-02-07bridge_output() needs a forcibly aligned copy just like bridge_broadcast()Jason Wright
because of calls it makes to altq; thanks to art for testing and kjc for pointing that I forgot this case.
2002-01-02Don't forget to deallocate on failure.Jason Wright
2002-01-01This is ugly: make a specialized deep copy in bridge_broadcast() thatJason Wright
ensures that the payload after the ethernet header is nicely aligned (basically this is two copies, one for the ethernet header and one for the payload) and glue the two copies together. bridge_filter() assumes it has been handed a nicely aligned packet. This should address pr#2248.
2001-12-15add support for creating span ports so that one can snoop a bridgeJason Wright
from another interface/machine/network.
2001-12-13remove redundant #if NPF. ok jason@jasoni
2001-12-10update ip stats when dropping an ip packetjasoni
ok jason@
2001-12-08mflags and len were uninitialized in bridge_broadcast (source of someJason Wright
accounting errors me thinks).
2001-11-26add fastroute options similar to what is found in ipfjasoni
ok dhartmei@, frantzen@
2001-08-21cut/pasto in rule flushing code (using wrong list); base on patch from Henk ↵Jason Wright
van Lingen <henk@vanlingen.net>
2001-08-12now, that kernel compiles, i can go get an ash tray somewhereMichael Shalayeff
2001-07-27PF_IN/PF_OUT aren't defined if NPF <= 0, deal with it.Jason Wright
2001-07-25Make sure pkthdr.rcvif is correct before calling pf_test()Jason Wright
2001-07-25- unconditionalize call to bridge_input() (fewer #ifdef's and NPF>0 is ↵Jason Wright
default case anyway). - add support for filtering on interface output (and call pf_test() appropriately) What all this means: nonstateful and stateful PF filtering now works with the bridge.
2001-07-17split ip normalization out into a separate file, okay dhartmei@Niels Provos
2001-06-28first stab at packet normalization. includes full ip reassembly.Niels Provos
okay dhartmei@, dugsong@
2001-06-27IPFILTER->NPFAngelos D. Keromytis
2001-06-27introduce the ALTQ queue macros into sys/net files.Kenjiro Cho
the new model removes direct references to the fields in ifp->if_snd, and defines the following macros to manipulate ifp->if_snd. IFQ_ENQUEUE(ifq, m, pktattr, err) IFQ_DEQUEUE(ifq, m) IFQ_POLL(ifq, m) IFQ_PURGE(ifq) IFQ_IS_EMPTY(ifq) the new model also enforces some rules regarding how to use these macros. details are descrined in http://www.csl.sony.co.jp/~kjc/software/altq-new-design.txt
2001-06-26no longer pass around **mTheo de Raadt
2001-06-25PACKETFILTER -> NPFKjell Wooding
remove IPF cruft. ok jason
2001-06-24Use ETHER_IS_MULTICAST macro; jason@ ok.Federico G. Schwindt
2001-06-24pf mods for bridge; not yet testedJason Wright
2001-06-23UDP/IP/TCP packets that hit a bridge and need hardware checksummingAngelos D. Keromytis
are simply dropped.
2001-06-23Remember to compute IP/TCP/UDP checksum if we're going to broadcast onAngelos D. Keromytis
bridge.
2001-06-22KNFTheo de Raadt
2001-06-15change the meaning of ifnet.if_lastchange to meet RFC1573 ifLastChange.Jun-ichiro itojun Hagino
follows BSD/OS practice and ucd-snmp code (FreeBSD does it for specific interfaces only). was: if_lastchange get updated on every packet transmission/receipt. now: if_lastchange get updated when IFF_UP is changed.
2001-06-07use faster arc4random() instead of get_random_bytes(); jason@ okMichael Shalayeff
2001-06-06in bridge_filter(), pullup hlen, not sizeof(struct ip); ok jason@jasoni
2001-06-01Don't let packets that need IPsec crypto processing at the NIC beAngelos D. Keromytis
bridge-broadcast; rather, turn off offloading for now. The IPsec stack will do its own crypto for subsequent packets, which will be broadcast. Once the bridge knows which interface to send packets for that MAC to, if that interface supports IPsec offloading it'll turn it back on.
2001-05-30Remove ipf. Darren Reed has interpreted his (old, new, whichever)Theo de Raadt
licence in a way that makes ipf not free according to the rules we established over 5 years ago, at www.openbsd.org/goals.html (and those same basic rules govern the other *BSD projects too). Specifically, Darren says that modified versions are not permitted. But software which OpenBSD uses and redistributes must be free to all (be they people or companies), for any purpose they wish to use it, including modification, use, peeing on, or even integration into baby mulching machines or atomic bombs to be dropped on Australia. Furthermore, we know of a number of companies using ipf with modification like us, who are now in the same situation, and we hope that some of them will work with us to fill this gap that now exists in OpenBSD (temporarily, we hope).
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