summaryrefslogtreecommitdiff
path: root/sys/net/if_bridge.c
AgeCommit message (Expand)Author
2020-08-06Allow pf(4) to divert packets from bridge(4) to local socket.Alexander Bluhm
2020-07-30`struct bstp_state' stores pointer to parent `ifnet' as `bs_ifp'.mvs
2020-07-22Use interface index instead of pointer to `ifnet' in `struct bstp_port'.mvs
2020-07-22register as a bridge port, not an input handler, on member ifaces.David Gwynne
2020-07-13when adding a non-existent interface as a port, don't try create missing ones.David Gwynne
2020-06-24kernel: use gettime(9)/getuptime(9) in lieu of time_second(9)/time_uptime(9)cheloha
2020-04-12ifpromisc() requires NET_LOCK(), so acquire the lock when changingVisa Hankala
2019-11-06replace the hooks used with if_detachhooks with a task list.David Gwynne
2019-07-20When multiple ports share the same MAC, pick the physical one for delivery.Martin Pieuchot
2019-07-17Introduce ETHER_IS_BROADCAST/ANYADDR/EQ() and use them where appropriate.Martin Pieuchot
2019-06-09Always return EEXIST if an interface is already part of a bridge.Martin Pieuchot
2019-06-09Remove code for non-Ethernet members, these are no longer supported.Martin Pieuchot
2019-05-13Deal with the case where bridge_getbif() can return NULL.Martin Pieuchot
2019-05-12Switch the list of span interfaces and interfaces to SMR.Martin Pieuchot
2019-05-12pushing NET_LOCK() further down from if_clone_{create,destroy}()Alexandr Nedvedicky
2019-05-10Move bridge_filterrule() before doing the mbuf copy. Fixes a memory leakClaudio Jeker
2019-05-03An if_put() was missing in one branch of bridge_process(). ThisAlexander Bluhm
2019-04-28Removes the KERNEL_LOCK() from bridge(4)'s output fast-path.Martin Pieuchot
2019-04-15Use timeout_del_barrier(9) instead of timeout_del(9) followed byVisa Hankala
2019-03-31Fix output accounting when bridge(4) is down.Martin Pieuchot
2019-03-12Merge copy/pasted code to export STP states via ioctl into a function.Martin Pieuchot
2019-03-08Do not grab a `bif' pointer again, we already have it.Martin Pieuchot
2019-03-08Move the tag mechanism outside of net/if_bridge.c.Martin Pieuchot
2019-02-20Protect the hash table with a mutex.Martin Pieuchot
2019-02-14Use timeout_barrier() when bringing the bridge(4) down and only executeMartin Pieuchot
2019-02-14Remove mpw(4) hacks now that all the world is Ethernet.Martin Pieuchot
2019-01-29Plumbing to simplify upcoming locking.Martin Pieuchot
2019-01-23Pass an `ifp' pointer to bridge_ourether().Martin Pieuchot
2019-01-23Only copy packets for span ports if the bridge is UP.Martin Pieuchot
2019-01-17Convert interface lists from TAILQ to SLIST in preparation for fineMartin Pieuchot
2018-12-12Various cleanups:Martin Pieuchot
2018-12-07Stop passing `sc' when it isn't needed and use `ifp' where it's goodMartin Pieuchot
2018-11-14Batch copyout(9)s in preparation for finer locking.Martin Pieuchot
2018-10-01Put bridge_input & output back under the KERNEL_LOCK().Martin Pieuchot
2018-09-27Coherently name "struct bridge_iflist" variables `bif'.Martin Pieuchot
2018-09-26Move bridge input/output paths outside of the KERNEL_LOCK().Martin Pieuchot
2018-09-19Always call bridge_iflist `bif'.Martin Pieuchot
2018-04-19when adding span ports, restrict them to ether and mplstunnel interfaces.David Gwynne
2018-02-19Remove almost unused `flags' argument of suser().Martin Pieuchot
2018-02-11if an interface is added to the bridge that doesn't exist, try to create itHenning Brauer
2018-02-08Add a new '-protected' option for bridge members.Martin Pieuchot
2018-02-07Unbreak carp(4) MAC check in bridge_process().Martin Pieuchot
2018-02-05bcmp -> memcmp; kinda req'd / not-just-kinda ok'd by claudioHenning Brauer
2018-02-05implement an arp filterHenning Brauer
2018-01-10get rid of struct carp_if by moving the srpl into struct ifnet if_carp.David Gwynne
2018-01-09Creating a cloned interface could return ENOMEM due to temporaryAlexander Bluhm
2017-11-20Remove duplicated code working around the fact that ifpromisc() requiredMartin Pieuchot
2017-08-17Skip SPD lookups for short packets on IPsec-enabled bridgeMike Belopuhov
2017-05-16Replace remaining splsoftassert(IPL_SOFTNET) by NET_ASSERT_LOCKED().Martin Pieuchot
2017-05-15bridge_ioctl() doesn't need to call splnet().Martin Pieuchot