route.c (1ff15a710a862db1101b97810af14aedc835a86a) | route.c (8bda81a4d400cf8a72e554012f0d8c45e07a3904) |
---|---|
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 */ --- 5273 unchanged lines hidden (view full) --- 5282 ret = fib6_gw_from_attr(&r_cfg.fc_gateway, nla, 5283 extack); 5284 if (ret) 5285 return ret; 5286 5287 r_cfg.fc_flags |= RTF_GATEWAY; 5288 } 5289 r_cfg.fc_encap = nla_find(attrs, attrlen, RTA_ENCAP); | 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 */ --- 5273 unchanged lines hidden (view full) --- 5282 ret = fib6_gw_from_attr(&r_cfg.fc_gateway, nla, 5283 extack); 5284 if (ret) 5285 return ret; 5286 5287 r_cfg.fc_flags |= RTF_GATEWAY; 5288 } 5289 r_cfg.fc_encap = nla_find(attrs, attrlen, RTA_ENCAP); |
5290 5291 /* RTA_ENCAP_TYPE length checked in 5292 * lwtunnel_valid_encap_type_attr 5293 */ |
|
5290 nla = nla_find(attrs, attrlen, RTA_ENCAP_TYPE); 5291 if (nla) 5292 r_cfg.fc_encap_type = nla_get_u16(nla); 5293 } 5294 5295 r_cfg.fc_flags |= (rtnh->rtnh_flags & RTNH_F_ONLINK); 5296 rt = ip6_route_info_create(&r_cfg, GFP_KERNEL, extack); 5297 if (IS_ERR(rt)) { --- 1487 unchanged lines hidden --- | 5294 nla = nla_find(attrs, attrlen, RTA_ENCAP_TYPE); 5295 if (nla) 5296 r_cfg.fc_encap_type = nla_get_u16(nla); 5297 } 5298 5299 r_cfg.fc_flags |= (rtnh->rtnh_flags & RTNH_F_ONLINK); 5300 rt = ip6_route_info_create(&r_cfg, GFP_KERNEL, extack); 5301 if (IS_ERR(rt)) { --- 1487 unchanged lines hidden --- |