Home
last modified time | relevance | path

Searched refs:new_ttl (Results 1 – 2 of 2) sorted by relevance

/net/netfilter/
Dxt_HL.c33 int new_ttl; in ttl_tg() local
42 new_ttl = info->ttl; in ttl_tg()
45 new_ttl = iph->ttl + info->ttl; in ttl_tg()
46 if (new_ttl > 255) in ttl_tg()
47 new_ttl = 255; in ttl_tg()
50 new_ttl = iph->ttl - info->ttl; in ttl_tg()
51 if (new_ttl < 0) in ttl_tg()
52 new_ttl = 0; in ttl_tg()
55 new_ttl = iph->ttl; in ttl_tg()
59 if (new_ttl != iph->ttl) { in ttl_tg()
[all …]
/net/openvswitch/
Dactions.c213 static void set_ip_ttl(struct sk_buff *skb, struct iphdr *nh, u8 new_ttl) in set_ip_ttl() argument
215 csum_replace2(&nh->check, htons(nh->ttl << 8), htons(new_ttl << 8)); in set_ip_ttl()
216 nh->ttl = new_ttl; in set_ip_ttl()