mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 16:13:19 +09:00
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>
This commit is contained in:
committed by
David S. Miller
parent
202dc3fc59
commit
bbb923a4c2
@@ -9,7 +9,7 @@
|
||||
#ifdef CONFIG_IP_MROUTE
|
||||
static inline int ip_mroute_opt(int opt)
|
||||
{
|
||||
return (opt >= MRT_BASE) && (opt <= MRT_BASE + 10);
|
||||
return (opt >= MRT_BASE) && (opt <= MRT_MAX);
|
||||
}
|
||||
#else
|
||||
static inline int ip_mroute_opt(int opt)
|
||||
|
||||
Reference in New Issue
Block a user