linux_dsm_epyc7002/net/bridge
stephen hemminger 14f98f258f bridge: range check STP parameters
Apply restrictions on STP parameters based 802.1D 1998 standard.
   * Fixes missing locking in set path cost ioctl
   * Uses common code for both ioctl and sysfs

This is based on an earlier patch Sasikanth V but with overhaul.

Note:
1. It does NOT enforce the restriction on the relationship max_age and
   forward delay or hello time because in existing implementation these are
   set as independant operations.

2. If STP is disabled, there is no restriction on forward delay

3. No restriction on holding time because users use Linux code to act
   as hub or be sticky.

4. Although standard allow 0-255, Linux only allows 0-63 for port priority
   because more bits are reserved for port number.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2011-04-04 17:22:29 -07:00
..
netfilter bridge: netfilter: fix information leak 2011-02-14 16:49:23 +01:00
br_device.c bridge: allow creating bridge devices with netlink 2011-04-04 17:22:28 -07:00
br_fdb.c bridge: allow creating/deleting fdb entries via netlink 2011-04-04 17:22:28 -07:00
br_forward.c net: bridge: check the length of skb after nf_bridge_maybe_copy_header() 2011-01-06 11:33:05 -08:00
br_if.c bridge: allow creating bridge devices with netlink 2011-04-04 17:22:28 -07:00
br_input.c bridge: track last used time in forwarding table 2011-04-04 17:22:26 -07:00
br_ioctl.c bridge: range check STP parameters 2011-04-04 17:22:29 -07:00
br_multicast.c bridge: mcast snooping, fix length check of snooped MLDv1/2 2011-03-30 02:28:20 -07:00
br_netfilter.c bridge: Reset IPCB when entering IP stack on NF_FORWARD 2011-03-18 15:13:12 -07:00
br_netlink.c bridge: allow creating bridge devices with netlink 2011-04-04 17:22:28 -07:00
br_notify.c bridge: allow creating bridge devices with netlink 2011-04-04 17:22:28 -07:00
br_private_stp.h bridge: range check STP parameters 2011-04-04 17:22:29 -07:00
br_private.h bridge: range check STP parameters 2011-04-04 17:22:29 -07:00
br_stp_bpdu.c Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 2011-01-04 11:57:25 -08:00
br_stp_if.c bridge: range check STP parameters 2011-04-04 17:22:29 -07:00
br_stp_timer.c bridge: control carrier based on ports online 2011-03-14 14:29:02 -07:00
br_stp.c bridge: range check STP parameters 2011-04-04 17:22:29 -07:00
br_sysfs_br.c bridge: range check STP parameters 2011-04-04 17:22:29 -07:00
br_sysfs_if.c bridge: range check STP parameters 2011-04-04 17:22:29 -07:00
br.c bridge: allow creating bridge devices with netlink 2011-04-04 17:22:28 -07:00
Kconfig net: bridge builtin vs. ipv6 modular 2011-03-10 13:45:57 -08:00
Makefile bridge: Add core IGMP snooping support 2010-02-28 00:48:45 -08:00