summaryrefslogtreecommitdiffhomepage
path: root/bridge.c
AgeCommit message (Collapse)Author
2013-11-29netifd: Fix possible segfault in bridge codeHelmut Schaa
Need to check calloc result. In case of failure the bridge member will be missing. Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
2013-10-29bridge: fix stray semicolon, fixes a bug in bridge primary port resetFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-08-29bridge: fix corner case with network reloadLuka Perkov
After removing all ifname options from bridge interface and executing network reload the configuration was not applied properly on the system. With this change that is no longer a issue. Signed-off-by: Luka Perkov <luka@openwrt.org>
2013-07-13bridge: add bridge_empty option which allows creation of empty bridgesLuka Perkov
Signed-off-by: Luka Perkov <luka@openwrt.org>
2013-06-10config: use the new uci_blob library codeFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-04-27bridge: disable multicast snooping by defaultJo-Philipp Wich
2013-04-23set default bridge priority to 0x7FFFJo-Philipp Wich
2013-04-23add bridge priority optionNiels Boehm
[netifd] add bridge priority option Using the bridge priority (lower numbers are higher in the hierarchy), one can ensure that the router is chosen as root bridge in a setup with spanning tree protocol. For instance, one can set the priority of network lan to 32767, causing the router to win over all directly and indirectly connected nodes that have a default priority of 32768. The reason for doing that is that otherwise it has a default priority 32768 as well and any other connected node could win and get root bridge. In a home setup, those nodes are often desktop or laptop boxes and get switched off from time to time. As a consequence, root bridges vanish or new root bridges get chosen relatively often, resulting in frequent topology changes to the STP network. While the new topology has not settled, packets can get lost, causing noticeable interruptions of network traffic. Setting the router's bridge on a lower numbered priority (and thus higher in the selection hierarchy) solves the problem in the vast majority of the cases by ensuring that the device that is most likely powered on 24/7 gets chosen as root and prevents topology changes. Signed-off-by: Niels Boehm <blubberdiblub@gmail.com>
2012-10-19bridge: toggle device present state after freeing a bridge member to ensure ↵Felix Fietkau
that it can be reassigned to a different bridge
2012-06-27bridge: fix getting the mac address from the first member deviceFelix Fietkau
2012-05-24bridge: keep existing mac address if specified in the configFelix Fietkau
2012-05-23bridge: set the mac address based on the first active memberFelix Fietkau
2012-05-04add copyright headersFelix Fietkau
2012-03-19move device cleanup to common code, fixes use-after-free in tunnel codeFelix Fietkau
2012-03-05bridge: turn stp off by defaultFelix Fietkau
2012-03-05bridge: increase the default forward delay to 2 seconds (minimum enforced by ↵Felix Fietkau
the kernel)
2012-03-05bridge: fix removal of present bridge membersFelix Fietkau
2012-03-05bridge: implement config reload support, preserves hotplug interfaces and ↵Felix Fietkau
adds fast updates for adding/removing bridge members
2012-03-05bridge: add a debug message when a device could not be addedFelix Fietkau
2012-03-04bridge: fix hotplug device removalFelix Fietkau
2012-03-04bridge: fix member list handlingFelix Fietkau
2012-03-04remove redundant variable assignmentFelix Fietkau
2012-03-04bridge: use vlist instead of listFelix Fietkau
2012-01-19export carrier status in device statsFelix Fietkau
2011-11-04add a hotplug op for preparing an interface bridge so that it's ready when ↵Felix Fietkau
an external process adds interfaces
2011-11-04bridge: fix cleanup path, avoid double free on hotplug device removeFelix Fietkau
2011-10-23fix handling bridge interfaces with no initial deviceFelix Fietkau
2011-10-21fix initial bridge member bringupFelix Fietkau
2011-10-21fix duplicate bridge addifFelix Fietkau
2011-10-19rework device hotplug handling some more, add device_lock/device_unlock to ↵Felix Fietkau
prevent use-after-free bugs
2011-10-19set the igmp snooping option for bridgesFelix Fietkau
2011-10-18directly pass the device name to the device create functionFelix Fietkau
2011-10-11implement a new ubus object "network.device", add a method for dumping ↵Felix Fietkau
detailed device information
2011-10-09add more options for bridges, enable stp by default and set forwarding delay ↵Felix Fietkau
to 1
2011-10-05rename a variable for clarityFelix Fietkau
2011-10-03bridge: add missing device cleanupFelix Fietkau
2011-09-04make device_claim/device_release operate on the device_user instead of the ↵Felix Fietkau
device to avoid refcount bugs
2011-09-04do not reverse bridge member devices orderFelix Fietkau
2011-09-04make bridge configuration more dynamicFelix Fietkau
2011-07-29s/release_device/device_release/Felix Fietkau
2011-07-29s/claim_device/device_claim/Felix Fietkau
2011-07-29s/init_device/device_init/Felix Fietkau
2011-07-29s/get_device/device_get/Felix Fietkau
2011-07-29s/set_device_present/device_set_present/Felix Fietkau
2011-07-29s/add_device_user/device_add_user/Felix Fietkau
2011-07-29s/remove_device_user/device_remove_user/gFelix Fietkau
2011-03-29rework includesFelix Fietkau
2011-03-27implement a dump status call for bridge devicesFelix Fietkau
2011-03-27Initial importFelix Fietkau