summaryrefslogtreecommitdiffhomepage
path: root/device.h
diff options
context:
space:
mode:
authorHans Dedecker <dedeckeh@gmail.com>2016-02-01 10:56:29 +0100
committerFelix Fietkau <nbd@openwrt.org>2016-02-01 11:09:58 +0100
commitabbea9ebe8a8b56032e0f85b8572f0671dc094e5 (patch)
tree08e964c7f96ca12e6827c07c7a198d4300d5fc93 /device.h
parentfa624787a83347039ff690ec0a8e209fd1642c2e (diff)
device: Support multicast config option
Make multicast device flag configurable by extending device attributes with the multicast attribute Signed-off-by: Hans Dedecker <dedeckeh@gmail.com> Signed-off-by: Nick Podolak <nicholas.podolak@dtechlabs.com>
Diffstat (limited to 'device.h')
-rw-r--r--device.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/device.h b/device.h
index a6c131a..ac77cfb 100644
--- a/device.h
+++ b/device.h
@@ -44,6 +44,7 @@ enum {
DEV_ATTR_DADTRANSMITS,
DEV_ATTR_MULTICAST_TO_UNICAST,
DEV_ATTR_MULTICAST_ROUTER,
+ DEV_ATTR_MULTICAST,
__DEV_ATTR_MAX,
};
@@ -86,6 +87,7 @@ enum {
DEV_OPT_DADTRANSMITS = (1 << 13),
DEV_OPT_MULTICAST_TO_UNICAST = (1 << 14),
DEV_OPT_MULTICAST_ROUTER = (1 << 15),
+ DEV_OPT_MULTICAST = (1 << 16),
};
/* events broadcasted to all users of a device */
@@ -146,6 +148,7 @@ struct device_settings {
unsigned int dadtransmits;
bool multicast_to_unicast;
unsigned int multicast_router;
+ bool multicast;
};
/*