/linux/net/decnet/ |
A D | dn_fib.c | 72 [RTN_LOCAL] = { .error = 0, .scope = RT_SCOPE_HOST }, 231 if (res.type != RTN_UNICAST && res.type != RTN_LOCAL) in dn_fib_check_nh() 377 if (r->rtm_type != RTN_LOCAL || !attrs[RTA_DST] || in dn_fib_create_info() 379 if (dnet_addr_type(fi->fib_prefsrc) != RTN_LOCAL) in dn_fib_create_info() 431 case RTN_LOCAL: in dn_fib_semantic_match() 608 req.rtm.rtm_scope = (type != RTN_LOCAL ? RT_SCOPE_LINK : RT_SCOPE_HOST); in fib_magic() 620 fib_magic(RTM_NEWROUTE, RTN_LOCAL, ifa->ifa_local, 16, ifa); in dn_fib_add_ifaddr() 657 fib_magic(RTM_DELROUTE, RTN_LOCAL, ifa->ifa_local, 16, ifa); in dn_fib_del_ifaddr() 659 if (dnet_addr_type(ifa->ifa_local) != RTN_LOCAL) { in dn_fib_del_ifaddr()
|
A D | dn_route.c | 1044 res.type = RTN_LOCAL; in dn_route_output_slow() 1089 res.type = RTN_LOCAL; in dn_route_output_slow() 1113 res.type = RTN_LOCAL; in dn_route_output_slow() 1128 res.type == RTN_LOCAL ? in dn_route_output_slow() 1131 if (fld.saddr == 0 && res.type != RTN_LOCAL) in dn_route_output_slow() 1142 if (res.type == RTN_LOCAL) { in dn_route_output_slow() 1355 res.type = RTN_LOCAL; in dn_route_input_slow() 1414 case RTN_LOCAL: in dn_route_input_slow() 1473 case RTN_LOCAL: in dn_route_input_slow()
|
/linux/net/ipv4/ |
A D | fib_frontend.c | 381 (res.type != RTN_LOCAL || !IN_DEV_ACCEPT_LOCAL(idev))) in __fib_validate_source() 389 dev_match = dev_match || (res.type == RTN_LOCAL && in __fib_validate_source() 887 if (!err && cfg.fc_type == RTN_LOCAL) in inet_rtm_newroute() 1081 if (type != RTN_LOCAL) in fib_magic() 1109 fib_magic(RTM_NEWROUTE, RTN_LOCAL, addr, 32, prim, 0); in fib_add_ifaddr() 1123 dev->flags & IFF_LOOPBACK ? RTN_LOCAL : RTN_UNICAST, in fib_add_ifaddr() 1149 dev->flags & IFF_LOOPBACK ? RTN_LOCAL : RTN_UNICAST, in fib_modify_prefix_metric() 1154 dev->flags & IFF_LOOPBACK ? RTN_LOCAL : RTN_UNICAST, in fib_modify_prefix_metric() 1198 dev->flags & IFF_LOOPBACK ? RTN_LOCAL : RTN_UNICAST, in fib_del_ifaddr() 1297 fib_magic(RTM_DELROUTE, RTN_LOCAL, ifa->ifa_local, 32, prim, 0); in fib_del_ifaddr() [all …]
|
A D | ip_options.c | 621 if (rt->rt_type != RTN_LOCAL) in ip_options_rcv_srr() 635 if (err || (rt2->rt_type != RTN_UNICAST && rt2->rt_type != RTN_LOCAL)) { in ip_options_rcv_srr() 641 if (rt2->rt_type != RTN_LOCAL) in ip_options_rcv_srr()
|
A D | netfilter.c | 36 if (addr_type == RTN_LOCAL || addr_type == RTN_UNICAST) in ip_route_me_harder()
|
A D | arp.c | 352 ip_hdr(skb)->saddr) == RTN_LOCAL) in arp_solicit() 360 saddr) == RTN_LOCAL) { in arp_solicit() 808 inet_addr_type_dev_table(net, dev, tip) == RTN_LOCAL && in arp_process() 821 if (addr_type == RTN_LOCAL) { in arp_process()
|
A D | fib_semantics.c | 104 [RTN_LOCAL] = { 1172 if (res.type != RTN_UNICAST && res.type != RTN_LOCAL) { in fib_check_nh_v4_gw() 1360 if (cfg->fc_type != RTN_LOCAL || !cfg->fc_dst || in fib_valid_prefsrc() 1371 if (rc != RTN_LOCAL && tb_id != RT_TABLE_LOCAL) { in fib_valid_prefsrc() 1376 if (rc != RTN_LOCAL) in fib_valid_prefsrc() 1509 case RTN_LOCAL: in fib_create_info()
|
A D | ping.c | 315 chk_addr_ret = RTN_LOCAL; in ping_check_bind_addr() 320 chk_addr_ret != RTN_LOCAL) || in ping_check_bind_addr()
|
A D | route.c | 2154 if (rt->rt_type != RTN_LOCAL) in ip_route_use_hint() 2294 if (res->type == RTN_LOCAL) { in ip_route_input_slow() 2523 } else if ((type == RTN_LOCAL) && (orig_oif != 0) && in __mkroute_output() 2724 res->type = RTN_LOCAL; in ip_route_output_key_hash_rcu() 2764 if (res->type == RTN_LOCAL) { in ip_route_output_key_hash_rcu()
|
A D | ip_fragment.c | 185 (skb_rtable(head)->rt_type != RTN_LOCAL)) in ip_expire()
|
A D | raw.c | 735 if (addr->sin_addr.s_addr && chk_addr_ret != RTN_LOCAL && in raw_bind()
|
A D | icmp.c | 529 fl4_dec.saddr) == RTN_LOCAL) { in icmp_route_lookup()
|
A D | af_inet.c | 493 chk_addr_ret != RTN_LOCAL && in __inet_bind()
|
/linux/net/ipv6/netfilter/ |
A D | nft_fib_ipv6.c | 74 ret = RTN_LOCAL; in __nft_fib6_eval_type() 90 ret = RTN_LOCAL; in __nft_fib6_eval_type()
|
/linux/net/ipv4/netfilter/ |
A D | ipt_rpfilter.c | 42 if (res.type != RTN_LOCAL || !(flags & XT_RPFILTER_ACCEPT_LOCAL)) in rpfilter_lookup_reverse()
|
A D | nft_fib_ipv4.c | 127 case RTN_LOCAL: /* Should not see RTN_LOCAL here */ in nft_fib4_eval()
|
/linux/net/mctp/ |
A D | route.c | 698 if (rt->dev->dev == dev && rt->type == RTN_LOCAL && in mctp_route_lookup_null() 918 case RTN_LOCAL: in mctp_route_add() 986 return mctp_route_add(mdev, addr, 0, 0, RTN_LOCAL); in mctp_route_add_local() 991 return mctp_route_remove(mdev, addr, 0, RTN_LOCAL); in mctp_route_remove_local()
|
/linux/include/uapi/linux/ |
A D | rtnetlink.h | 247 RTN_LOCAL, /* Accept locally */ enumerator
|
/linux/net/l2tp/ |
A D | l2tp_ip.c | 270 if (addr->l2tp_addr.s_addr && chk_addr_ret != RTN_LOCAL && in l2tp_ip_bind()
|
/linux/net/rds/ |
A D | tcp.c | 325 if (inet_addr_type(net, addr->s6_addr32[3]) == RTN_LOCAL) in rds_tcp_laddr_check()
|
/linux/drivers/net/ipvlan/ |
A D | ipvlan_core.c | 435 if (rt->rt_type != RTN_UNICAST && rt->rt_type != RTN_LOCAL) { in ipvlan_process_v4_outbound()
|
/linux/net/dccp/ |
A D | ipv4.c | 530 if (skb_rtable(rxskb)->rt_type != RTN_LOCAL) in dccp_v4_ctl_send_reset()
|
/linux/net/ipv6/ |
A D | af_inet6.c | 342 chk_addr_ret != RTN_LOCAL && in __inet6_bind()
|
A D | route.c | 1029 [RTN_LOCAL] = 0, 1092 if (res->fib6_type == RTN_LOCAL || res->fib6_type == RTN_ANYCAST) { in ip6_rt_init_dst() 4587 cfg.fc_type = RTN_LOCAL; in addrconf_f6i_alloc() 5045 if (rtm->rtm_type == RTN_LOCAL) in rtm_to_fib6_config()
|
/linux/net/sctp/ |
A D | protocol.c | 359 ret != RTN_LOCAL && in sctp_v4_available()
|