aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/mroute6.h
diff options
context:
space:
mode:
authorNicolas Dichtel <nicolas.dichtel@6wind.com>2013-01-21 06:00:25 +0000
committerDavid S. Miller <davem@davemloft.net>2013-01-21 13:55:14 -0500
commitbbb923a4c2d17ebd5ec34755fe19a33914cbd86f (patch)
treef9e3f172e6d157bafa94c3722b4427f90c9c241e /include/uapi/linux/mroute6.h
parentDocumentation: remove obsolete networking/multicast.txt file (diff)
downloadlinux-dev-bbb923a4c2d17ebd5ec34755fe19a33914cbd86f.tar.xz
linux-dev-bbb923a4c2d17ebd5ec34755fe19a33914cbd86f.zip
mcast: define and use MRT[6]_MAX in ip[6]_mroute_opt()
This will ease further addition of new MRT[6]_* values and avoid to update in6.h each time. Note that we reduce the maximum value from 210 to 209, but 210 does not match any known value in ip[6]_mroute_setsockopt(). Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com> Acked-by: David L Stevens <dlstevens@us.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--include/uapi/linux/mroute6.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/mroute6.h b/include/uapi/linux/mroute6.h
index 3e89b5e7f9e3..c206ae3a2327 100644
--- a/include/uapi/linux/mroute6.h
+++ b/include/uapi/linux/mroute6.h
@@ -26,6 +26,7 @@
#define MRT6_ASSERT (MRT6_BASE+7) /* Activate PIM assert mode */
#define MRT6_PIM (MRT6_BASE+8) /* enable PIM code */
#define MRT6_TABLE (MRT6_BASE+9) /* Specify mroute table ID */
+#define MRT6_MAX (MRT6_BASE+9)
#define SIOCGETMIFCNT_IN6 SIOCPROTOPRIVATE /* IP protocol privates */
#define SIOCGETSGCNT_IN6 (SIOCPROTOPRIVATE+1)