Searched refs:new_ttl (Results 1 – 3 of 3) sorted by relevance
33 int new_ttl; in ttl_tg() local42 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 …]
506 static void set_ip_ttl(struct sk_buff *skb, struct iphdr *nh, u8 new_ttl, in set_ip_ttl() argument509 new_ttl = OVS_MASKED(nh->ttl, new_ttl, mask); in set_ip_ttl()511 csum_replace2(&nh->check, htons(nh->ttl << 8), htons(new_ttl << 8)); in set_ip_ttl()512 nh->ttl = new_ttl; in set_ip_ttl()
296 u8 new_ttl; in mpls_egress() local306 new_ttl = dec.ttl; in mpls_egress()308 new_ttl = hdr4->ttl ? hdr4->ttl - 1 : 0; in mpls_egress()312 htons(new_ttl << 8)); in mpls_egress()313 hdr4->ttl = new_ttl; in mpls_egress()