Lines Matching refs:ttl
57 uint8_t ttl;
79 printf("mpls_input: iface %s label=%d, ttl=%d BoS %d\n",
86 ttl = ntohl(shim->shim_label & MPLS_TTL_MASK);
87 if (ttl <= 1) {
94 ttl = ntohl(shim->shim_label & MPLS_TTL_MASK);
96 ttl--;
125 m = mpls_ip_adjttl(m, ttl);
135 m = mpls_ip6_adjttl(m, ttl);
211 if ((m = mpls_ip_adjttl(m, ttl)) == NULL)
216 if ((m = mpls_ip6_adjttl(m, ttl)) == NULL)
250 shim->shim_label = (shim->shim_label & ~MPLS_TTL_MASK) | htonl(ttl);
301 mpls_ip_adjttl(struct mbuf *m, u_int8_t ttl)
315 new = htons(ttl << 8);
318 ip->ip_ttl = ttl;
327 mpls_ip6_adjttl(struct mbuf *m, u_int8_t ttl)
338 ip6->ip6_hlim = ttl;