Home
last modified time | relevance | path

Searched refs:ttl (Results 1 – 25 of 75) sorted by relevance

123

/net/netfilter/
A Dxt_hl.c28 const u8 ttl = ip_hdr(skb)->ttl; in ttl_mt() local
32 return ttl == info->ttl; in ttl_mt()
34 return ttl != info->ttl; in ttl_mt()
36 return ttl < info->ttl; in ttl_mt()
38 return ttl > info->ttl; in ttl_mt()
A Dnft_osf.c10 u8 ttl; member
47 if (!nf_osf_find(skb, nf_osf_fingers, priv->ttl, &data)) { in nft_osf_eval()
66 u8 ttl; in nft_osf_init() local
72 ttl = nla_get_u8(tb[NFTA_OSF_TTL]); in nft_osf_init()
73 if (ttl > 2) in nft_osf_init()
75 priv->ttl = ttl; in nft_osf_init()
95 if (nla_put_u8(skb, NFTA_OSF_TTL, priv->ttl)) in nft_osf_dump()
143 priv->ttl != osf->ttl) { in nft_osf_reduce()
A Dxt_recent.c71 u_int8_t ttl; member
126 u_int8_t ttl) in recent_entry_lookup() argument
139 (ttl == e->ttl || ttl == 0 || e->ttl == 0)) in recent_entry_lookup()
180 u_int16_t family, u_int8_t ttl) in recent_entry_init() argument
195 e->ttl = ttl; in recent_entry_init()
248 u_int8_t ttl; in recent_mt() local
259 ttl = iph->ttl; in recent_mt()
268 ttl = iph->hop_limit; in recent_mt()
274 ttl++; in recent_mt()
282 (info->check_set & XT_RECENT_TTL) ? ttl : 0); in recent_mt()
[all …]
A Dnfnetlink_osf.c40 return ip->ttl == f_ttl; in nf_osf_ttl()
43 else if (ip->ttl <= f_ttl) in nf_osf_ttl()
48 ret = (ip->ttl == f_ttl); in nf_osf_ttl()
75 if (ctx->totlen != f->ss || !nf_osf_ttl(skb, ttl_check, f->ttl)) in nf_osf_match_one()
218 ttl_check = (info->flags & NF_OSF_TTL) ? info->ttl : 0; in nf_osf_match()
241 f->ttl - ip->ttl); in nf_osf_match()
/net/mac80211/
A Dmesh_hwmp.c159 *pos++ = ttl; in mesh_path_sel_frame_tx()
275 *pos++ = ttl; in mesh_path_error_tx()
687 --ttl; in hwmp_preq_frame_process()
742 if (ttl <= 1) { in hwmp_prep_frame_process()
759 --ttl; in hwmp_prep_frame_process()
787 u8 ttl; in hwmp_perr_frame_process() local
794 if (ttl <= 1) { in hwmp_perr_frame_process()
798 ttl--; in hwmp_perr_frame_process()
914 if (ttl <= 1) { in hwmp_rann_frame_process()
919 ttl--; in hwmp_rann_frame_process()
[all …]
/net/xfrm/
A Dxfrm_inout.h17 XFRM_MODE_SKB_CB(skb)->ttl = iph->ttl; in xfrm4_extract_header()
32 XFRM_MODE_SKB_CB(skb)->ttl = iph->hop_limit; in xfrm6_extract_header()
52 iph->hop_limit = XFRM_MODE_SKB_CB(skb)->ttl; in xfrm6_beet_make_header()
67 iph->ttl = XFRM_MODE_SKB_CB(skb)->ttl; in xfrm4_beet_make_header()
/net/mpls/
A Dmpls_iptunnel.c52 unsigned int ttl; in mpls_xmit() local
78 ttl = tun_encap_info->default_ttl; in mpls_xmit()
81 ttl = net->mpls.default_ttl; in mpls_xmit()
83 ttl = ip_hdr(skb)->ttl; in mpls_xmit()
87 ttl = tun_encap_info->default_ttl; in mpls_xmit()
90 ttl = net->mpls.default_ttl; in mpls_xmit()
92 ttl = ipv6_hdr(skb)->hop_limit; in mpls_xmit()
127 ttl, 0, bos); in mpls_xmit()
A Dinternal.h13 u8 ttl; member
180 result.ttl = (entry & MPLS_LS_TTL_MASK) >> MPLS_LS_TTL_SHIFT; in mpls_entry_decode()
/net/ipv4/
A Dip_tunnel.c596 u8 tos, ttl; in ip_md_tunnel_xmit() local
652 ttl = key->ttl; in ip_md_tunnel_xmit()
653 if (ttl == 0) { in ip_md_tunnel_xmit()
655 ttl = inner_iph->ttl; in ip_md_tunnel_xmit()
659 ttl = ip4_dst_hoplimit(&rt->dst); in ip_md_tunnel_xmit()
696 u8 tos, ttl; in ip_tunnel_xmit() local
835 ttl = tnl_params->ttl; in ip_tunnel_xmit()
836 if (ttl == 0) { in ip_tunnel_xmit()
838 ttl = inner_iph->ttl; in ip_tunnel_xmit()
891 t->parms.iph.ttl = p->iph.ttl; in ip_tunnel_update()
[all …]
A Dah4.c133 top_iph->ttl = iph->ttl; in ah_output_done()
192 iph->ttl = top_iph->ttl; in ah_output()
209 top_iph->ttl = 0; in ah_output()
249 top_iph->ttl = iph->ttl; in ah_output()
383 iph->ttl = 0; in ah_input()
A Dinetpeer.c140 __u32 delta, ttl; in inet_peer_gc() local
148 ttl = 0; /* be aggressive */ in inet_peer_gc()
150 ttl = peer_maxttl - (peer_maxttl - peer_minttl) / HZ * in inet_peer_gc()
157 if (delta < ttl || !refcount_dec_if_one(&p->refcnt)) in inet_peer_gc()
A Dip_output.c138 int ttl = READ_ONCE(inet->uc_ttl); in ip_select_ttl() local
140 if (ttl < 0) in ip_select_ttl()
141 ttl = ip4_dst_hoplimit(dst); in ip_select_ttl()
142 return ttl; in ip_select_ttl()
406 if (ip_hdr(skb)->ttl == 0) { in ip_mc_output()
1329 cork->ttl = ipc->ttl; in ip_setup_cork()
1406 u8 pmtudisc, ttl; in __ip_make_skb() local
1447 if (cork->ttl != 0) in __ip_make_skb()
1448 ttl = cork->ttl; in __ip_make_skb()
1450 ttl = READ_ONCE(inet->mc_ttl); in __ip_make_skb()
[all …]
A Dip_tunnel_core.c52 __u8 tos, __u8 ttl, __be16 df, bool xnet, in iptunnel_xmit() argument
81 iph->ttl = ttl; in iptunnel_xmit()
241 .ttl = iph->ttl, in iptunnel_pmtud_build_icmp()
706 tun_info->key.ttl = nla_get_u8(tb[LWTUNNEL_IP_TTL]); in ip_tun_build_state()
857 nla_put_u8(skb, LWTUNNEL_IP_TTL, tun_info->key.ttl) || in ip_tun_fill_encap_info()
992 tun_info->key.ttl = nla_get_u8(tb[LWTUNNEL_IP6_HOPLIMIT]); in ip6_tun_build_state()
1027 nla_put_u8(skb, LWTUNNEL_IP6_HOPLIMIT, tun_info->key.ttl) || in ip6_tun_fill_encap_info()
1149 parms->iph.ttl = nla_get_u8(data[IFLA_IPTUN_TTL]); in ip_tunnel_netlink_parms()
1150 if (parms->iph.ttl) in ip_tunnel_netlink_parms()
/net/openvswitch/
A Dactions.c450 nh->ttl = new_ttl; in set_ip_ttl()
494 flow_key->ip.ttl = nh->ttl; in set_ipv4()
582 u8 ttl; in set_nsh() local
610 ttl = nsh_get_ttl(nh); in set_nsh()
611 ttl = OVS_MASKED(ttl, key.base.ttl, mask.base.ttl); in set_nsh()
612 flow_key->nsh.base.ttl = ttl; in set_nsh()
1255 key->ip.ttl = --nh->hop_limit; in execute_dec_ttl()
1266 if (nh->ttl <= 1) in execute_dec_ttl()
1269 old_ttl = nh->ttl--; in execute_dec_ttl()
1271 htons(nh->ttl << 8)); in execute_dec_ttl()
[all …]
A Dflow_netlink.c735 SW_FLOW_KEY_PUT(match, tun_key.ttl, in ip_tun_from_nlattr()
737 ttl = true; in ip_tun_from_nlattr()
841 match->key->tun_key.ttl || in ip_tun_from_nlattr()
857 if (!ttl && !info_bridge_mode) { in ip_tun_from_nlattr()
1314 u8 ttl = 0; in nsh_hdr_from_nlattr() local
1330 ttl = base->ttl; in nsh_hdr_from_nlattr()
1447 SW_FLOW_KEY_PUT(match, nsh.base.ttl, in nsh_key_put_from_nlattr()
1448 base->ttl, is_mask); in nsh_key_put_from_nlattr()
1577 SW_FLOW_KEY_PUT(match, ip.ttl, in ovs_key_from_nlattrs()
1610 SW_FLOW_KEY_PUT(match, ip.ttl, in ovs_key_from_nlattrs()
[all …]
/net/batman-adv/
A Dbat_v_ogm.c335 ntohl(ogm_packet->throughput), ogm_packet->ttl, in batadv_v_ogm_send_meshif()
551 if (ogm_received->ttl <= 1) { in batadv_v_ogm_forward()
574 ogm_forward->ttl--; in batadv_v_ogm_forward()
579 ogm_forward->ttl, if_incoming->net_dev->name); in batadv_v_ogm_forward()
648 orig_ifinfo->last_ttl = ogm2->ttl; in batadv_v_ogm_metric_update()
659 neigh_ifinfo->last_ttl = ogm2->ttl; in batadv_v_ogm_metric_update()
870 ntohl(ogm_packet->seqno), ogm_throughput, ogm_packet->ttl, in batadv_v_ogm_process()
1051 ogm_packet->ttl = BATADV_TTL; in batadv_v_ogm_init()
A Drouting.c247 icmph->ttl = BATADV_TTL; in batadv_recv_my_icmp_packet()
313 icmp_packet->ttl = BATADV_TTL; in batadv_recv_icmp_ttl_exceeded()
396 if (icmph->ttl < 2) in batadv_recv_icmp_packet()
411 icmph->ttl--; in batadv_recv_icmp_packet()
669 if (unicast_packet->ttl < 2) { in batadv_route_unicast_packet()
687 unicast_packet->ttl--; in batadv_route_unicast_packet()
1201 if (bcast_packet->ttl-- < 2) in batadv_recv_bcast_packet()
1308 if (mcast_packet->ttl-- < 2) in batadv_recv_mcast_packet()
A Dnetwork-coding.c775 if (last_ttl != ogm_packet->ttl + 1) in batadv_can_nc_with_orig()
1147 coded_packet->ttl = packet1->ttl; in batadv_nc_code_packets()
1160 coded_packet->second_ttl = packet2->ttl; in batadv_nc_code_packets()
1644 u8 *orig_dest, ttl, ttvn; in batadv_nc_skb_decode_packet() local
1680 ttl = coded_packet_tmp.second_ttl; in batadv_nc_skb_decode_packet()
1684 ttl = coded_packet_tmp.ttl; in batadv_nc_skb_decode_packet()
1711 unicast_packet->ttl = ttl; in batadv_nc_skb_decode_packet()
A Dbat_iv_ogm.c217 batadv_ogm_packet->ttl = 2; in batadv_iv_ogm_iface_enable()
271 batadv_ogm_packet->ttl = BATADV_TTL; in batadv_iv_ogm_primary_iface_set()
374 batadv_ogm_packet->tq, batadv_ogm_packet->ttl, in batadv_iv_ogm_send_to_if()
500 batadv_ogm_packet->ttl != 1 && in batadv_iv_ogm_can_aggregate()
515 new_bat_ogm_packet->ttl == 1 && in batadv_iv_ogm_can_aggregate()
700 if (batadv_ogm_packet->ttl <= 1) { in batadv_iv_ogm_forward()
720 batadv_ogm_packet->ttl--; in batadv_iv_ogm_forward()
1010 orig_ifinfo->last_ttl = batadv_ogm_packet->ttl; in batadv_iv_ogm_orig_update()
1011 neigh_ifinfo->last_ttl = batadv_ogm_packet->ttl; in batadv_iv_ogm_orig_update()
1457 if (ogm_packet->ttl <= 2 && in batadv_iv_ogm_process_per_outif()
[all …]
/net/netfilter/ipvs/
A Dip_vs_xmit.c280 if (ip_hdr(skb)->ttl <= 1) { in decrement_ttl()
922 __u32 *payload_len, __u8 *dsfield, __u8 *ttl, in ip_vs_prepare_tunneled_skb() argument
953 *ttl = old_ipv6h->hop_limit; in ip_vs_prepare_tunneled_skb()
968 *ttl = old_iph->ttl; in ip_vs_prepare_tunneled_skb()
1116 __u8 ttl = 0; in ip_vs_tunnel_xmit() local
1171 &ttl, dfp); in ip_vs_tunnel_xmit()
1230 iph->ttl = ttl; in ip_vs_tunnel_xmit()
1262 __u8 ttl = 0; in ip_vs_tunnel_xmit_v6() local
1314 &dsfield, &ttl, NULL); in ip_vs_tunnel_xmit_v6()
1373 iph->hop_limit = ttl; in ip_vs_tunnel_xmit_v6()
/net/sched/
A Dact_tunnel_key.c375 u8 tos, ttl; in tunnel_key_init() local
441 ttl = 0; in tunnel_key_init()
443 ttl = nla_get_u8(tb[TCA_TUNNEL_KEY_ENC_TTL]); in tunnel_key_init()
453 metadata = __ip_tun_set_dst(saddr, daddr, tos, ttl, in tunnel_key_init()
464 metadata = __ipv6_tun_set_dst(&saddr, &daddr, tos, ttl, dst_port, in tunnel_key_init()
761 if (key->ttl && nla_put_u8(skb, TCA_TUNNEL_KEY_ENC_TTL, key->ttl)) in tunnel_key_dump()
/net/ipv6/
A Dsit.c594 if (t->parms.iph.ttl == 0 && type == ICMP_TIME_EXCEEDED) in ipip6_err()
872 u8 ttl; in ipip6_tunnel_xmit() local
1025 ttl = tiph->ttl; in ipip6_tunnel_xmit()
1026 if (ttl == 0) in ipip6_tunnel_xmit()
1027 ttl = iph6->hop_limit; in ipip6_tunnel_xmit()
1037 iptunnel_xmit(NULL, rt, skb, fl4.saddr, fl4.daddr, protocol, tos, ttl, in ipip6_tunnel_xmit()
1155 t->parms.iph.ttl = p->iph.ttl; in ipip6_tunnel_update()
1269 if (p->iph.ttl) in __ipip6_tunnel_ioctl_validate()
1476 iph->ttl = 64; in ipip6_fb_tunnel_init()
1505 parms->iph.ttl = 64; in ipip6_netlink_parms()
[all …]
A Dip6_udp_tunnel.c82 __u8 prio, __u8 ttl, __be32 label, in udp_tunnel6_xmit_skb() argument
108 ip6h->hop_limit = ttl; in udp_tunnel6_xmit_skb()
/net/ipv4/netfilter/
A Dnf_reject_ipv4.c170 __u8 protocol, int ttl) in nf_reject_iphdr_put() argument
185 niph->ttl = ttl; in nf_reject_iphdr_put()
/net/tipc/
A Dudp_media.c175 int ttl, err; in tipc_udp_xmit() local
197 ttl = ip4_dst_hoplimit(&rt->dst); in tipc_udp_xmit()
199 dst->ipv4.s_addr, 0, ttl, 0, src->port, in tipc_udp_xmit()
219 ttl = ip6_dst_hoplimit(ndst); in tipc_udp_xmit()
221 &src->ipv6, &dst->ipv6, 0, ttl, 0, in tipc_udp_xmit()

Completed in 69 milliseconds

123