diff options
author | Nikolay Aleksandrov <nikolay@cumulusnetworks.com> | 2016-02-26 15:20:01 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-03-01 16:55:07 -0500 |
commit | 7f0aec7a668419bdbff12de6e8016544f874e708 (patch) | |
tree | 8727a9261d9b5774797bce259a45b648f0d76bed /include/uapi | |
parent | ec1606c0906de35dbc6f21aea75c2b950104cae5 (diff) |
bridge: mcast: use names for the different multicast_router types
Using raw values makes it difficult to extend and also understand the
code, give them names and do explicit per-option manipulation in
br_multicast_set_port_router.
Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi')
-rw-r--r-- | include/uapi/linux/if_bridge.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/uapi/linux/if_bridge.h b/include/uapi/linux/if_bridge.h index 0890b217580d..e47f3bc7f323 100644 --- a/include/uapi/linux/if_bridge.h +++ b/include/uapi/linux/if_bridge.h | |||
@@ -177,6 +177,13 @@ enum { | |||
177 | }; | 177 | }; |
178 | #define MDBA_MDB_EATTR_MAX (__MDBA_MDB_EATTR_MAX - 1) | 178 | #define MDBA_MDB_EATTR_MAX (__MDBA_MDB_EATTR_MAX - 1) |
179 | 179 | ||
180 | /* multicast router types */ | ||
181 | enum { | ||
182 | MDB_RTR_TYPE_DISABLED, | ||
183 | MDB_RTR_TYPE_TEMP_QUERY, | ||
184 | MDB_RTR_TYPE_PERM, | ||
185 | }; | ||
186 | |||
180 | enum { | 187 | enum { |
181 | MDBA_ROUTER_UNSPEC, | 188 | MDBA_ROUTER_UNSPEC, |
182 | MDBA_ROUTER_PORT, | 189 | MDBA_ROUTER_PORT, |