route.c (2ee692802b8f6c54bd6499addd3d07c2833d84d8) | route.c (c7036d97acd2527cef145b5ef9ad1a37ed21bbe6) |
---|---|
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 */ --- 3170 unchanged lines hidden (view full) --- 3179 fib6_clean_expires(rt); 3180 3181 if (cfg->fc_protocol == RTPROT_UNSPEC) 3182 cfg->fc_protocol = RTPROT_BOOT; 3183 rt->fib6_protocol = cfg->fc_protocol; 3184 3185 rt->fib6_table = table; 3186 rt->fib6_metric = cfg->fc_metric; | 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 */ --- 3170 unchanged lines hidden (view full) --- 3179 fib6_clean_expires(rt); 3180 3181 if (cfg->fc_protocol == RTPROT_UNSPEC) 3182 cfg->fc_protocol = RTPROT_BOOT; 3183 rt->fib6_protocol = cfg->fc_protocol; 3184 3185 rt->fib6_table = table; 3186 rt->fib6_metric = cfg->fc_metric; |
3187 rt->fib6_type = cfg->fc_type; | 3187 rt->fib6_type = cfg->fc_type ? : RTN_UNICAST; |
3188 rt->fib6_flags = cfg->fc_flags & ~RTF_GATEWAY; 3189 3190 ipv6_addr_prefix(&rt->fib6_dst.addr, &cfg->fc_dst, cfg->fc_dst_len); 3191 rt->fib6_dst.plen = cfg->fc_dst_len; 3192 if (rt->fib6_dst.plen == 128) 3193 rt->dst_host = true; 3194 3195#ifdef CONFIG_IPV6_SUBTREES --- 2392 unchanged lines hidden --- | 3188 rt->fib6_flags = cfg->fc_flags & ~RTF_GATEWAY; 3189 3190 ipv6_addr_prefix(&rt->fib6_dst.addr, &cfg->fc_dst, cfg->fc_dst_len); 3191 rt->fib6_dst.plen = cfg->fc_dst_len; 3192 if (rt->fib6_dst.plen == 128) 3193 rt->dst_host = true; 3194 3195#ifdef CONFIG_IPV6_SUBTREES --- 2392 unchanged lines hidden --- |