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

/linux-4.1.27/net/netfilter/
H A Dxt_HL.c33 int new_ttl; ttl_tg() local
42 new_ttl = info->ttl; ttl_tg()
45 new_ttl = iph->ttl + info->ttl; ttl_tg()
46 if (new_ttl > 255) ttl_tg()
47 new_ttl = 255; ttl_tg()
50 new_ttl = iph->ttl - info->ttl; ttl_tg()
51 if (new_ttl < 0) ttl_tg()
52 new_ttl = 0; ttl_tg()
55 new_ttl = iph->ttl; ttl_tg()
59 if (new_ttl != iph->ttl) { ttl_tg()
61 htons(new_ttl << 8)); ttl_tg()
62 iph->ttl = new_ttl; ttl_tg()
/linux-4.1.27/net/openvswitch/
H A Dactions.c358 static void set_ip_ttl(struct sk_buff *skb, struct iphdr *nh, u8 new_ttl, set_ip_ttl() argument
361 new_ttl = MASKED(nh->ttl, new_ttl, mask); set_ip_ttl()
363 csum_replace2(&nh->check, htons(nh->ttl << 8), htons(new_ttl << 8)); set_ip_ttl()
364 nh->ttl = new_ttl; set_ip_ttl()

Completed in 81 milliseconds