Searched defs:ttl (Results 1 - 22 of 22) sorted by relevance

/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_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/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/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 Dip6_flowlabel.c323 static unsigned long check_linger(unsigned long ttl) argument
325 if (ttl < FL_MIN_LINGER)
327 if (ttl > FL_MAX_LINGER && !capable(CAP_NET_ADMIN))
329 return ttl*HZ;
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/ipv4/
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 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 Dgeneve.c116 __u8 ttl, __be16 df, __be16 src_port, __be16 dst_port,
150 tos, ttl, df, src_port, dst_port, xnet);
114 geneve_xmit_skb(struct geneve_sock *gs, struct rtable *rt, struct sk_buff *skb, __be32 src, __be32 dst, __u8 tos, __u8 ttl, __be16 df, __be16 src_port, __be16 dst_port, __be16 tun_flags, u8 vni[3], u8 opt_len, u8 *opt, bool xnet) argument
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_sockglue.c71 int ttl = ip_hdr(skb)->ttl; local
72 put_cmsg(msg, SOL_IP, IP_TTL, sizeof(int), &ttl);
240 ipc->ttl = val;
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...]
/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...]
H A Dip_vs_sync.c1293 static void set_mcast_ttl(struct sock *sk, u_char ttl) argument
1297 /* setsockopt(sock, SOL_IP, IP_MULTICAST_TTL, &ttl, sizeof(ttl)); */
1299 inet->mc_ttl = ttl;
/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
H A Dflow_netlink.c348 bool ttl = false; local
401 ttl = true;
483 if (!ttl) {
672 SW_FLOW_KEY_PUT(match, ip.ttl,
705 SW_FLOW_KEY_PUT(match, ip.ttl,
1118 ipv4_key->ipv4_ttl = output->ip.ttl;
1134 ipv6_key->ipv6_hlimit = output->ip.ttl;
/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...]
/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...]
H A Dieee80211_i.h1335 u8 ttl; member in struct:ieee80211_csa_ie
1653 * @csa_ie: parsed 802.11 csa elements on count, mode, chandef and mesh ttl.
/net/core/
H A Ddev.c3489 u32 ttl = G_TC_RTTL(skb->tc_verd); local
3493 if (unlikely(MAX_RED_LOOP < ttl++)) {
3499 skb->tc_verd = SET_TC_RTTL(skb->tc_verd, ttl);

Completed in 346 milliseconds