route.c (715a1284d89a740b197b3bad5eb20d36a397382f) | route.c (6b2e04bc240fe9be9e690059f710e9f95346d34d) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * Linux INET6 implementation 4 * FIB front-end. 5 * 6 * Authors: 7 * Pedro Roque <roque@di.fc.ul.pt> 8 */ --- 4238 unchanged lines hidden (view full) --- 4247 rt = NULL; 4248 rcu_read_unlock(); 4249 return rt; 4250} 4251 4252struct fib6_info *rt6_add_dflt_router(struct net *net, 4253 const struct in6_addr *gwaddr, 4254 struct net_device *dev, | 1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * Linux INET6 implementation 4 * FIB front-end. 5 * 6 * Authors: 7 * Pedro Roque <roque@di.fc.ul.pt> 8 */ --- 4238 unchanged lines hidden (view full) --- 4247 rt = NULL; 4248 rcu_read_unlock(); 4249 return rt; 4250} 4251 4252struct fib6_info *rt6_add_dflt_router(struct net *net, 4253 const struct in6_addr *gwaddr, 4254 struct net_device *dev, |
4255 unsigned int pref) | 4255 unsigned int pref, 4256 u32 defrtr_usr_metric) |
4256{ 4257 struct fib6_config cfg = { 4258 .fc_table = l3mdev_fib_table(dev) ? : RT6_TABLE_DFLT, | 4257{ 4258 struct fib6_config cfg = { 4259 .fc_table = l3mdev_fib_table(dev) ? : RT6_TABLE_DFLT, |
4259 .fc_metric = IP6_RT_PRIO_USER, | 4260 .fc_metric = defrtr_usr_metric, |
4260 .fc_ifindex = dev->ifindex, 4261 .fc_flags = RTF_GATEWAY | RTF_ADDRCONF | RTF_DEFAULT | 4262 RTF_UP | RTF_EXPIRES | RTF_PREF(pref), 4263 .fc_protocol = RTPROT_RA, 4264 .fc_type = RTN_UNICAST, 4265 .fc_nlinfo.portid = 0, 4266 .fc_nlinfo.nlh = NULL, 4267 .fc_nlinfo.nl_net = net, --- 2310 unchanged lines hidden --- | 4261 .fc_ifindex = dev->ifindex, 4262 .fc_flags = RTF_GATEWAY | RTF_ADDRCONF | RTF_DEFAULT | 4263 RTF_UP | RTF_EXPIRES | RTF_PREF(pref), 4264 .fc_protocol = RTPROT_RA, 4265 .fc_type = RTN_UNICAST, 4266 .fc_nlinfo.portid = 0, 4267 .fc_nlinfo.nlh = NULL, 4268 .fc_nlinfo.nl_net = net, --- 2310 unchanged lines hidden --- |