Home
last modified time | relevance | path

Searched refs:hop_limit (Results 1 – 25 of 46) sorted by relevance

12

/net/netfilter/
Dxt_hl.c51 return ip6h->hop_limit == info->hop_limit; in hl_mt6()
53 return ip6h->hop_limit != info->hop_limit; in hl_mt6()
55 return ip6h->hop_limit < info->hop_limit; in hl_mt6()
57 return ip6h->hop_limit > info->hop_limit; in hl_mt6()
Dxt_HL.c79 new_hl = info->hop_limit; in hl_tg6()
82 new_hl = ip6h->hop_limit + info->hop_limit; in hl_tg6()
87 new_hl = ip6h->hop_limit - info->hop_limit; in hl_tg6()
92 new_hl = ip6h->hop_limit; in hl_tg6()
96 ip6h->hop_limit = new_hl; in hl_tg6()
118 if (info->mode != IP6T_HL_SET && info->hop_limit == 0) in hl_tg6_check()
Dnft_chain_route.c73 u8 hop_limit; in nf_route_table_hook6() local
83 hop_limit = ipv6_hdr(skb)->hop_limit; in nf_route_table_hook6()
93 ipv6_hdr(skb)->hop_limit != hop_limit || in nf_route_table_hook6()
Dnf_flow_table_ip.c446 if (ip6h->hop_limit <= 1) in nf_flow_tuple_ipv6()
516 ip6h->hop_limit--; in nf_flow_offload_ipv6_hook()
Dnft_fwd_netdev.c132 ip6h->hop_limit--; in nft_fwd_neigh_eval()
/net/ipv6/netfilter/
Dip6table_mangle.c39 u_int8_t hop_limit; in ip6t_mangle_out() local
47 hop_limit = ipv6_hdr(skb)->hop_limit; in ip6t_mangle_out()
58 ipv6_hdr(skb)->hop_limit != hop_limit || in ip6t_mangle_out()
Dnf_dup_ipv6.c63 --iph->hop_limit; in nf_dup_ipv6()
Dnf_reject_ipv6.c76 ip6h->hop_limit = hoplimit; in nf_reject_ip6hdr_put()
/net/ipv6/
Dip6_tunnel.c1055 u8 hop_limit; in ip6_tnl_xmit() local
1059 hop_limit = skb_tunnel_info(skb)->key.ttl; in ip6_tnl_xmit()
1062 hop_limit = t->parms.hop_limit; in ip6_tnl_xmit()
1190 if (hop_limit == 0) { in ip6_tnl_xmit()
1192 hop_limit = ip_hdr(skb)->ttl; in ip6_tnl_xmit()
1194 hop_limit = ipv6_hdr(skb)->hop_limit; in ip6_tnl_xmit()
1196 hop_limit = ip6_dst_hoplimit(dst); in ip6_tnl_xmit()
1221 ipv6h->hop_limit = hop_limit; in ip6_tnl_xmit()
1503 t->parms.hop_limit = p->hop_limit; in ip6_tnl_change()
1542 p->hop_limit = u->hop_limit; in ip6_tnl_parm_from_user()
[all …]
Doutput_core.c120 hoplimit = idev->cnf.hop_limit; in ip6_dst_hoplimit()
122 hoplimit = dev_net(dev)->ipv6.devconf_all->hop_limit; in ip6_dst_hoplimit()
Dseg6_iptunnel.c140 hdr->hop_limit = inner_hdr->hop_limit; in seg6_do_srh_encap()
143 hdr->hop_limit = ip6_dst_hoplimit(skb_dst(skb)); in seg6_do_srh_encap()
Dxfrm6_state.c32 XFRM_MODE_SKB_CB(skb)->ttl = iph->hop_limit; in xfrm6_extract_header()
Dndisc.c443 int hop_limit, int len) in ip6_nd_hdr() argument
462 hdr->hop_limit = hop_limit; in ip6_nd_hdr()
501 ip6_nd_hdr(skb, saddr, daddr, inet6_sk(sk)->hop_limit, skb->len); in ndisc_send_skb()
1344 in6_dev->cnf.hop_limit = ra_msg->icmph.icmp6_hop_limit; in ndisc_router_discovery()
1738 if (ipv6_hdr(skb)->hop_limit != 255) { in ndisc_rcv()
1740 ipv6_hdr(skb)->hop_limit); in ndisc_rcv()
1895 np->hop_limit = 255; in ndisc_net_init()
Dip6_gre.c1195 t->parms.hop_limit = p->hop_limit; in ip6gre_tnl_copy_tnl_parm()
1226 p->hop_limit = u->hop_limit; in ip6gre_tnl_parm_from_user()
1244 u->hop_limit = p->hop_limit; in ip6gre_tnl_parm_to_user()
1378 ipv6h->hop_limit = t->parms.hop_limit; in ip6gre_header()
1809 parms->hop_limit = nla_get_u8(data[IFLA_GRE_TTL]); in ip6gre_netlink_parms()
2169 nla_put_u8(skb, IFLA_GRE_TTL, p->hop_limit) || in ip6gre_fill_info()
Dip6_output.c112 if (ipv6_hdr(skb)->hop_limit == 0) { in ip6_finish_output2()
319 hlimit = np->hop_limit; in ip6_xmit()
328 hdr->hop_limit = hlimit; in ip6_xmit()
544 if (hdr->hop_limit <= 1) { in ip6_forward()
641 hdr->hop_limit--; in ip6_forward()
1363 v6_cork->hop_limit = ipc6->hlimit; in ip6_setup_cork()
1850 hdr->hop_limit = v6_cork->hop_limit; in __ip6_make_skb()
Dexthdrs.c452 if (ipv6_hdr(skb)->hop_limit <= 1) { in ipv6_srh_rcv()
459 ipv6_hdr(skb)->hop_limit--; in ipv6_srh_rcv()
635 if (ipv6_hdr(skb)->hop_limit <= 1) { in ipv6_rthdr_rcv()
642 ipv6_hdr(skb)->hop_limit--; in ipv6_rthdr_rcv()
Dip6_udp_tunnel.c110 ip6h->hop_limit = ttl; in udp_tunnel6_xmit_skb()
Dah6.c407 top_iph->hop_limit = 0; in ah6_output()
599 ip6h->hop_limit = 0; in ah6_input()
Dipv6_sockglue.c560 np->hop_limit = val; in do_ipv6_setsockopt()
1265 val = np->hop_limit; in do_ipv6_getsockopt()
1278 val = sock_net(sk)->ipv6.devconf_all->hop_limit; in do_ipv6_getsockopt()
/net/6lowpan/
Diphc.c652 hdr.hop_limit = lowpan_ttl_values[iphc0 & LOWPAN_IPHC_HLIM_MASK]; in lowpan_header_decompress()
654 if (lowpan_fetch_skb(skb, &hdr.hop_limit, in lowpan_header_decompress()
655 sizeof(hdr.hop_limit))) in lowpan_header_decompress()
770 hdr.hop_limit, &hdr.daddr); in lowpan_header_decompress()
1149 hdr->hop_limit, &hdr->daddr); in lowpan_header_compress()
1212 switch (hdr->hop_limit) { in lowpan_header_compress()
1223 lowpan_push_hc_data(&hc_ptr, &hdr->hop_limit, in lowpan_header_compress()
1224 sizeof(hdr->hop_limit)); in lowpan_header_compress()
/net/xfrm/
Dxfrm_inout.h20 iph->hop_limit = XFRM_MODE_SKB_CB(skb)->ttl; in xfrm6_beet_make_header()
/net/bridge/netfilter/
Dnft_reject_bridge.c209 net->ipv6.devconf_all->hop_limit); in nft_reject_br_send_v6_tcp_reset()
274 net->ipv6.devconf_all->hop_limit); in nft_reject_br_send_v6_unreach()
/net/netfilter/ipvs/
Dip_vs_xmit.c267 if (ipv6_hdr(skb)->hop_limit <= 1) { in decrement_ttl()
283 ipv6_hdr(skb)->hop_limit--; in decrement_ttl()
986 *ttl = old_ipv6h->hop_limit; in ip_vs_prepare_tunneled_skb()
1414 iph->hop_limit = ttl; in ip_vs_tunnel_xmit_v6()
/net/mpls/
Dmpls_iptunnel.c94 ttl = ipv6_hdr(skb)->hop_limit; in mpls_xmit()
/net/openvswitch/
Dactions.c463 new_ttl = OVS_MASKED(nh->hop_limit, new_ttl, mask); in set_ipv6_ttl()
466 csum_replace(&skb->csum, (__force __wsum)(nh->hop_limit << 8), in set_ipv6_ttl()
468 nh->hop_limit = new_ttl; in set_ipv6_ttl()
597 flow_key->ip.ttl = nh->hop_limit; in set_ipv6()

12