Searched refs:new_ttl (Results 1 – 3 of 3) sorted by relevance
30 int new_ttl; in ttl_tg() local39 new_ttl = info->ttl; in ttl_tg()42 new_ttl = iph->ttl + info->ttl; in ttl_tg()43 if (new_ttl > 255) in ttl_tg()44 new_ttl = 255; in ttl_tg()47 new_ttl = iph->ttl - info->ttl; in ttl_tg()48 if (new_ttl < 0) in ttl_tg()49 new_ttl = 0; in ttl_tg()52 new_ttl = iph->ttl; in ttl_tg()56 if (new_ttl != iph->ttl) { in ttl_tg()[all …]
434 static void set_ip_ttl(struct sk_buff *skb, struct iphdr *nh, u8 new_ttl, in set_ip_ttl() argument437 new_ttl = OVS_MASKED(nh->ttl, new_ttl, mask); in set_ip_ttl()439 csum_replace2(&nh->check, htons(nh->ttl << 8), htons(new_ttl << 8)); in set_ip_ttl()440 nh->ttl = new_ttl; in set_ip_ttl()
295 u8 new_ttl; in mpls_egress() local305 new_ttl = dec.ttl; in mpls_egress()307 new_ttl = hdr4->ttl ? hdr4->ttl - 1 : 0; in mpls_egress()311 htons(new_ttl << 8)); in mpls_egress()312 hdr4->ttl = new_ttl; in mpls_egress()