Home
last modified time | relevance | path

Searched refs:RTN_LOCAL (Results 1 – 28 of 28) sorted by relevance

/linux-4.1.27/net/decnet/
Ddn_fib.c70 [RTN_LOCAL] = { .error = 0, .scope = RT_SCOPE_HOST },
228 if (res.type != RTN_UNICAST && res.type != RTN_LOCAL) in dn_fib_check_nh()
374 if (r->rtm_type != RTN_LOCAL || !attrs[RTA_DST] || in dn_fib_create_info()
376 if (dnet_addr_type(fi->fib_prefsrc) != RTN_LOCAL) in dn_fib_create_info()
428 case RTN_LOCAL: in dn_fib_semantic_match()
601 req.rtm.rtm_scope = (type != RTN_LOCAL ? RT_SCOPE_LINK : RT_SCOPE_HOST); in fib_magic()
613 fib_magic(RTM_NEWROUTE, RTN_LOCAL, ifa->ifa_local, 16, ifa); in dn_fib_add_ifaddr()
650 fib_magic(RTM_DELROUTE, RTN_LOCAL, ifa->ifa_local, 16, ifa); in dn_fib_del_ifaddr()
652 if (dnet_addr_type(ifa->ifa_local) != RTN_LOCAL) { in dn_fib_del_ifaddr()
Ddn_route.c1052 res.type = RTN_LOCAL; in dn_route_output_slow()
1098 res.type = RTN_LOCAL; in dn_route_output_slow()
1120 res.type = RTN_LOCAL; in dn_route_output_slow()
1135 res.type == RTN_LOCAL ? in dn_route_output_slow()
1138 if (fld.saddr == 0 && res.type != RTN_LOCAL) in dn_route_output_slow()
1149 if (res.type == RTN_LOCAL) { in dn_route_output_slow()
1360 res.type = RTN_LOCAL; in dn_route_input_slow()
1419 case RTN_LOCAL: in dn_route_input_slow()
1477 case RTN_LOCAL: in dn_route_input_slow()
/linux-4.1.27/net/ipv4/
Dfib_frontend.c325 (res.type != RTN_LOCAL || !IN_DEV_ACCEPT_LOCAL(idev))) in __fib_validate_source()
787 if (type != RTN_LOCAL) in fib_magic()
815 fib_magic(RTM_NEWROUTE, RTN_LOCAL, addr, 32, prim); in fib_add_ifaddr()
827 dev->flags & IFF_LOOPBACK ? RTN_LOCAL : RTN_UNICAST, in fib_add_ifaddr()
874 dev->flags & IFF_LOOPBACK ? RTN_LOCAL : RTN_UNICAST, in fib_del_ifaddr()
963 fib_magic(RTM_DELROUTE, RTN_LOCAL, ifa->ifa_local, 32, prim); in fib_del_ifaddr()
967 inet_addr_type(dev_net(dev), ifa->ifa_local) != RTN_LOCAL) { in fib_del_ifaddr()
Dip_options.c630 if (rt->rt_type != RTN_LOCAL) in ip_options_rcv_srr()
644 if (err || (rt2->rt_type != RTN_UNICAST && rt2->rt_type != RTN_LOCAL)) { in ip_options_rcv_srr()
650 if (rt2->rt_type != RTN_LOCAL) in ip_options_rcv_srr()
Dfib_semantics.c101 [RTN_LOCAL] = {
631 if (res.type != RTN_UNICAST && res.type != RTN_LOCAL) in fib_check_nh()
902 case RTN_LOCAL: in fib_create_info()
935 if (cfg->fc_type != RTN_LOCAL || !cfg->fc_dst || in fib_create_info()
937 if (inet_addr_type(net, fi->fib_prefsrc) != RTN_LOCAL) in fib_create_info()
Darp.c313 ip_hdr(skb)->saddr) == RTN_LOCAL) in arp_solicit()
320 if (inet_addr_type(dev_net(dev), saddr) == RTN_LOCAL) { in arp_solicit()
745 inet_addr_type(net, tip) == RTN_LOCAL && in arp_process()
758 if (addr_type == RTN_LOCAL) { in arp_process()
Dnetfilter.c32 if (addr_type == RTN_LOCAL || addr_type == RTN_UNICAST) in ip_route_me_harder()
Dping.c323 chk_addr_ret = RTN_LOCAL; in ping_check_bind_addr()
327 chk_addr_ret != RTN_LOCAL) || in ping_check_bind_addr()
Droute.c1771 if (res.type == RTN_LOCAL) { in ip_route_input_slow()
2172 res.type = RTN_LOCAL; in __ip_route_output_key()
2209 if (res.type == RTN_LOCAL) { in __ip_route_output_key()
Dip_fragment.c223 (skb_rtable(head)->rt_type != RTN_LOCAL))) in ip_expire()
Dicmp.c483 if (inet_addr_type(net, fl4_dec.saddr) == RTN_LOCAL) { in icmp_route_lookup()
Draw.c696 if (addr->sin_addr.s_addr && chk_addr_ret != RTN_LOCAL && in raw_bind()
Daf_inet.c466 chk_addr_ret != RTN_LOCAL && in inet_bind()
Dtcp_ipv4.c605 if (!sk && skb_rtable(skb)->rt_type != RTN_LOCAL) in tcp_v4_send_reset()
Dfib_trie.c2341 [RTN_LOCAL] = "LOCAL",
Ddevinet.c167 res.type == RTN_LOCAL) in __ip_dev_find()
/linux-4.1.27/net/ipv4/netfilter/
Dipt_rpfilter.c47 if (res.type != RTN_LOCAL || !(flags & XT_RPFILTER_ACCEPT_LOCAL)) in rpfilter_lookup_reverse()
/linux-4.1.27/net/rds/
Dtcp.c194 if (inet_addr_type(&init_net, addr) == RTN_LOCAL) in rds_tcp_laddr_check()
/linux-4.1.27/include/uapi/linux/
Drtnetlink.h201 RTN_LOCAL, /* Accept locally */ enumerator
/linux-4.1.27/net/l2tp/
Dl2tp_ip.c273 if (addr->l2tp_addr.s_addr && chk_addr_ret != RTN_LOCAL && in l2tp_ip_bind()
/linux-4.1.27/drivers/net/ipvlan/
Dipvlan_core.c356 if (rt->rt_type != RTN_UNICAST && rt->rt_type != RTN_LOCAL) { in ipvlan_process_v4_outbound()
/linux-4.1.27/net/ipv6/
Daf_inet6.c311 chk_addr_ret != RTN_LOCAL && in inet6_bind()
Droute.c2455 if (rtm->rtm_type == RTN_LOCAL) in rtm_to_fib6_config()
2803 rtm->rtm_type = RTN_LOCAL; in rt6_fill_node()
2805 rtm->rtm_type = RTN_LOCAL; in rt6_fill_node()
Dndisc.c335 neigh->type = RTN_LOCAL; in ndisc_constructor()
/linux-4.1.27/net/dccp/
Dipv4.c543 if (skb_rtable(rxskb)->rt_type != RTN_LOCAL) in dccp_v4_ctl_send_reset()
/linux-4.1.27/net/sctp/
Dprotocol.c369 ret != RTN_LOCAL && in sctp_v4_available()
/linux-4.1.27/net/netfilter/ipvs/
Dip_vs_core.c698 ip_route_me_harder(skb, RTN_LOCAL) != 0) in ip_vs_route_me_harder()
Dip_vs_ctl.c883 if (atype != RTN_LOCAL && atype != RTN_UNICAST) in ip_vs_new_dest()