diff options
author | Phoebe Buckheister <phoebe.buckheister@itwm.fraunhofer.de> | 2014-03-31 21:37:45 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-04-01 22:25:51 +0200 |
commit | 336908f6d73ca297bd46948eb5d04d2020a88606 (patch) | |
tree | 9240a0e5acf234c77211c173e626d22f55bd1467 /net/mac802154/mac802154.h | |
parent | net: filter: minor: fix kdoc in __sk_run_filter (diff) | |
download | linux-336908f6d73ca297bd46948eb5d04d2020a88606.tar.xz linux-336908f6d73ca297bd46948eb5d04d2020a88606.zip |
mac802154: allow only one WPAN to be up at any given time
All 802.15.4 PHY devices with drivers in tree can support only one WPAN
at any given time, yet the stack allows arbitrarily many WPAN devices to
be created and up at the same time. This cannot work with what the
hardware provides, and in the current implementation, provides an easy
DoS vector to any process on the system that may call socket() and
sendmsg().
Thus, allow only one WPAN per PHY to be up at once, just like mac80211
does for managed devices.
Signed-off-by: Phoebe Buckheister <phoebe.buckheister@itwm.fraunhofer.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r-- | net/mac802154/mac802154.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/mac802154/mac802154.h b/net/mac802154/mac802154.h index 4619486f1da2..f40522ef288c 100644 --- a/net/mac802154/mac802154.h +++ b/net/mac802154/mac802154.h @@ -71,6 +71,7 @@ struct mac802154_sub_if_data { struct net_device *dev; int type; + bool running; spinlock_t mib_lock; |