Searched refs:new_ttl (Results 1 – 3 of 3) sorted by relevance
/openbmc/linux/net/netfilter/ |
H A D | xt_HL.c | 30 int new_ttl; in ttl_tg() local 39 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 …]
|
/openbmc/linux/net/openvswitch/ |
H A D | actions.c | 459 static void set_ipv6_ttl(struct sk_buff *skb, struct ipv6hdr *nh, u8 new_ttl, u8 mask) in set_ipv6_ttl() argument 461 new_ttl = OVS_MASKED(nh->hop_limit, new_ttl, mask); in set_ipv6_ttl() 465 (__force __wsum)(new_ttl << 8)); in set_ipv6_ttl() 466 nh->hop_limit = new_ttl; in set_ipv6_ttl() 469 static void set_ip_ttl(struct sk_buff *skb, struct iphdr *nh, u8 new_ttl, in set_ip_ttl() argument 472 new_ttl = OVS_MASKED(nh->ttl, new_ttl, mask); in set_ip_ttl() 474 csum_replace2(&nh->check, htons(nh->ttl << 8), htons(new_ttl << 8)); in set_ip_ttl() 475 nh->ttl = new_ttl; in set_ip_ttl()
|
/openbmc/linux/net/mpls/ |
H A D | af_mpls.c | 296 u8 new_ttl; in mpls_egress() local 306 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()
|