Searched refs:ttl (Results 1 - 25 of 64) sorted by relevance

123

/net/netfilter/
H A Dxt_hl.c31 const u8 ttl = ip_hdr(skb)->ttl; local
35 return ttl == info->ttl;
37 return ttl != info->ttl;
39 return ttl < info->ttl;
41 return ttl > info->ttl;
[all...]
H A Dxt_HL.c42 new_ttl = info->ttl;
45 new_ttl = iph->ttl + info->ttl;
50 new_ttl = iph->ttl - info->ttl;
55 new_ttl = iph->ttl;
59 if (new_ttl != iph->ttl) {
60 csum_replace2(&iph->check, htons(iph->ttl << 8),
62 iph->ttl = new_ttl;
112 if (info->mode != IPT_TTL_SET && info->ttl
[all...]
H A Dxt_osf.c163 if (info->ttl == XT_OSF_TTL_TRUE)
164 return ip->ttl == f_ttl;
165 if (info->ttl == XT_OSF_TTL_NOCHECK)
167 else if (ip->ttl <= f_ttl)
175 ret = (ip->ttl == f_ttl);
185 return ip->ttl == f_ttl;
236 if (totlen == f->ss && xt_osf_ttl(skb, info, f->ttl)) {
334 f->ttl - ip->ttl);
H A Dxt_recent.c70 u_int8_t ttl; member in struct:recent_entry
124 u_int8_t ttl)
137 (ttl == e->ttl || ttl == 0 || e->ttl == 0))
171 u_int16_t family, u_int8_t ttl)
184 e->ttl = ttl;
237 u_int8_t ttl; local
122 recent_entry_lookup(const struct recent_table *table, const union nf_inet_addr *addrp, u_int16_t family, u_int8_t ttl) argument
170 recent_entry_init(struct recent_table *t, const union nf_inet_addr *addr, u_int16_t family, u_int8_t ttl) argument
[all...]
/net/batman-adv/
H A Dpacket.h207 * @ttl: time to live for this packet, part of the genereal header
214 uint8_t ttl; member in struct:batadv_ogm_packet
233 * @ttl: time to live for this packet, part of the genereal header
247 uint8_t ttl; member in struct:batadv_icmp_header
259 * @ttl: time to live for this packet, part of the genereal header
270 uint8_t ttl; member in struct:batadv_icmp_packet
285 * @ttl: time to live for this packet, part of the genereal header
297 uint8_t ttl; member in struct:batadv_icmp_packet_rr
325 * @ttl: time to live for this packet, part of the genereal header
332 uint8_t ttl; member in struct:batadv_unicast_packet
371 uint8_t ttl; member in struct:batadv_frag_packet
399 uint8_t ttl; member in struct:batadv_bcast_packet
429 uint8_t ttl; member in struct:batadv_coded_packet
460 uint8_t ttl; member in struct:batadv_unicast_tvlv_packet
[all...]
H A Dnetwork-coding.c736 if (last_ttl != ogm_packet->ttl + 1)
1115 coded_packet->ttl = packet1->ttl;
1128 coded_packet->second_ttl = packet2->ttl;
1618 uint8_t *orig_dest, ttl, ttvn; local
1654 ttl = coded_packet_tmp.second_ttl;
1658 ttl = coded_packet_tmp.ttl;
1685 unicast_packet->ttl = ttl;
[all...]
H A Dbat_iv_ogm.c328 batadv_ogm_packet->ttl = 2;
365 batadv_ogm_packet->ttl = BATADV_TTL;
454 batadv_ogm_packet->tq, batadv_ogm_packet->ttl,
576 (batadv_ogm_packet->ttl != 1) &&
591 (new_bat_ogm_packet->ttl == 1) &&
813 if (batadv_ogm_packet->ttl <= 1) {
814 batadv_dbg(BATADV_DBG_BATMAN, bat_priv, "ttl exceeded\n");
833 batadv_ogm_packet->ttl--;
841 "Forwarding packet: tq: %i, ttl: %i\n",
842 batadv_ogm_packet->tq, batadv_ogm_packet->ttl);
[all...]
H A Drouting.c228 icmph->ttl = BATADV_TTL;
259 pr_debug("Warning - can't forward icmp packet from %pM to %pM: ttl exceeded\n",
282 icmp_packet->ttl = BATADV_TTL;
353 if (icmph->ttl < 2)
367 /* decrement ttl */
368 icmph->ttl--;
566 if (unicast_packet->ttl < 2) {
567 pr_debug("Warning - can't forward unicast packet from %pM to %pM: ttl exceeded\n",
582 /* decrement ttl */
584 unicast_packet->ttl
[all...]
/net/mac80211/
H A Dmesh_hwmp.c108 u8 hop_count, u8 ttl,
164 *pos++ = ttl;
228 * @ttl: allowed remaining hops
240 u8 ttl, const u8 *target, u32 target_sn,
278 /* ttl */
279 *pos++ = ttl;
519 u8 target_flags, ttl, flags; local
590 ttl = ifmsh->mshcfg.element_ttl;
591 if (ttl != 0) {
595 target_sn, mgmt->sa, 0, ttl,
104 mesh_path_sel_frame_tx(enum mpath_frame_type action, u8 flags, const u8 *orig_addr, u32 orig_sn, u8 target_flags, const u8 *target, u32 target_sn, const u8 *da, u8 hop_count, u8 ttl, u32 lifetime, u32 metric, u32 preq_id, struct ieee80211_sub_if_data *sdata) argument
239 mesh_path_error_tx(struct ieee80211_sub_if_data *sdata, u8 ttl, const u8 *target, u32 target_sn, u16 target_rcode, const u8 *ra) argument
653 u8 ttl, hopcount, flags; local
714 u8 ttl; local
764 u8 ttl, flags, hopcount; local
978 u8 ttl, target_flags; local
[all...]
/net/ipv4/netfilter/
H A Dnf_reject_ipv4.c45 __be16 protocol, int ttl)
60 niph->ttl = ttl;
43 nf_reject_iphdr_put(struct sk_buff *nskb, const struct sk_buff *oldskb, __be16 protocol, int ttl) argument
/net/ipv4/
H A Dxfrm4_state.c65 XFRM_MODE_SKB_CB(skb)->ttl = iph->ttl;
H A Dah4.c134 top_iph->ttl = iph->ttl;
193 iph->ttl = top_iph->ttl;
210 top_iph->ttl = 0;
248 top_iph->ttl = iph->ttl;
377 iph->ttl = 0;
H A Dudp_tunnel.c80 __u8 tos, __u8 ttl, __be16 df, __be16 src_port,
96 tos, ttl, df, xnet);
78 udp_tunnel_xmit_skb(struct socket *sock, struct rtable *rt, struct sk_buff *skb, __be32 src, __be32 dst, __u8 tos, __u8 ttl, __be16 df, __be16 src_port, __be16 dst_port, bool xnet) argument
H A Dxfrm4_mode_beet.c32 iph->ttl = XFRM_MODE_SKB_CB(skb)->ttl;
H A Dip_tunnel_core.c51 __u8 tos, __u8 ttl, __be16 df, bool xnet)
76 iph->ttl = ttl;
49 iptunnel_xmit(struct sock *sk, struct rtable *rt, struct sk_buff *skb, __be32 src, __be32 dst, __u8 proto, __u8 tos, __u8 ttl, __be16 df, bool xnet) argument
H A Dipip.c168 if (t->parms.iph.ttl == 0 && type == ICMP_TIME_EXCEEDED)
255 if (p.iph.ttl)
334 parms->iph.ttl = nla_get_u8(data[IFLA_IPTUN_TTL]);
335 if (parms->iph.ttl)
455 nla_put_u8(skb, IFLA_IPTUN_TTL, parm->iph.ttl) ||
H A Dip_output.c118 int ttl = inet->uc_ttl; local
120 if (ttl < 0)
121 ttl = ip4_dst_hoplimit(dst);
122 return ttl;
147 iph->ttl = ip_select_ttl(inet, &rt->dst);
314 /* Multicasts with ttl 0 must not go beyond the host */
316 if (ip_hdr(skb)->ttl == 0) {
422 iph->ttl = ip_select_ttl(inet, &rt->dst);
1115 cork->ttl = ipc->ttl;
1333 __u8 ttl; local
[all...]
H A Dip_tunnel.c643 u8 tos, ttl; local
758 ttl = tnl_params->ttl;
759 if (ttl == 0) {
761 ttl = inner_iph->ttl;
764 ttl = ((const struct ipv6hdr *)inner_iph)->hop_limit;
767 ttl = ip4_dst_hoplimit(&rt->dst);
787 tos, ttl, df, !net_eq(tunnel->net, dev_net(dev)));
819 t->parms.iph.ttl
[all...]
H A Dxfrm4_mode_tunnel.c62 top_iph->ttl = ip4_dst_hoplimit(dst->child);
H A Dinetpeer.c388 __u32 delta, ttl; local
392 ttl = 0; /* be aggressive */
394 ttl = inet_peer_maxttl
404 if (delta >= ttl &&
H A Dip_forward.c100 if (ip_hdr(skb)->ttl <= 1)
125 /* Decrease ttl after skb cow done */
/net/ipv6/
H A Dip6_udp_tunnel.c68 __u8 prio, __u8 ttl, __be16 src_port, __be16 dst_port)
96 ip6h->hop_limit = ttl;
65 udp_tunnel6_xmit_skb(struct socket *sock, struct dst_entry *dst, struct sk_buff *skb, struct net_device *dev, struct in6_addr *saddr, struct in6_addr *daddr, __u8 prio, __u8 ttl, __be16 src_port, __be16 dst_port) argument
H A Dsit.c581 if (t->parms.iph.ttl == 0 && type == ICMP_TIME_EXCEEDED)
822 u8 ttl; local
974 ttl = tiph->ttl;
975 if (ttl == 0)
976 ttl = iph6->hop_limit;
987 protocol, tos, ttl, df,
1094 t->parms.iph.ttl = p->iph.ttl;
1203 if (p.iph.ttl)
[all...]
/net/openvswitch/
H A Dflow.h77 tun_info->tunnel.ipv4_ttl = iph->ttl;
108 u8 ttl; /* IP TTL/hop limit. */ member in struct:sw_flow_key::__anon117
/net/netfilter/ipvs/
H A Dip_vs_xmit.c829 * opportunity to figure out what the payload_len, dsfield, ttl, and df
836 __u32 *payload_len, __u8 *dsfield, __u8 *ttl,
864 *ttl = old_ipv6h->hop_limit;
879 *ttl = old_iph->ttl;
934 __u8 ttl = 0; local
968 &ttl, dfp);
994 iph->ttl = ttl;
1030 __u8 ttl local
834 ip_vs_prepare_tunneled_skb(struct sk_buff *skb, int skb_af, unsigned int max_headroom, __u8 *next_protocol, __u32 *payload_len, __u8 *dsfield, __u8 *ttl, __be16 *df) argument
[all...]

Completed in 251 milliseconds

123