Lines Matching defs:shim

211  * prepend shim and deliver
238 mh.shim.bos = 1;
239 mh.shim.exp = 0;
240 mh.shim.ttl = mpls_defttl;
246 if (mh.shim.label != MPLS_LABEL_IMPLNULL &&
251 mh.shim.bos = mh.shim.exp = 0;
252 mh.shim.ttl = mpls_defttl;
373 while ((dst.smpls_addr.shim.label == MPLS_LABEL_IPV4NULL ||
374 dst.smpls_addr.shim.label == MPLS_LABEL_IPV6NULL) &&
375 __predict_false(dst.smpls_addr.shim.bos == 0)) {
384 if (__predict_false(dst.smpls_addr.shim.label == MPLS_LABEL_RTALERT) &&
385 dst.smpls_addr.shim.bos == 0) {
393 if (dst.smpls_addr.shim.label <= MPLS_LABEL_RESMAX) {
395 switch (dst.smpls_addr.shim.label) {
398 /* Pop shim and push mbuf to IP stack */
399 if (dst.smpls_addr.shim.bos) {
406 /* Pop shim and push mbuf to IPv6 stack */
407 if (dst.smpls_addr.shim.bos) {
426 dst.smpls_addr.shim.ttl = 0;
427 dst.smpls_addr.shim.bos = 0;
428 dst.smpls_addr.shim.exp = 0;
451 htag->shim.label = tshim.shim.label;
460 tshim.shim.bos = tshim.shim.exp = 0;
461 tshim.shim.ttl = mpls_defttl;
462 if (tshim.shim.label != MPLS_LABEL_IMPLNULL &&
474 tshim.shim.bos = tshim.shim.exp = 0;
475 tshim.shim.ttl = mpls_defttl;
506 if (msh.shim.label == MPLS_LABEL_IMPLNULL ||
539 /* get shim info */
573 iph->ip_ttl = ms.shim.ttl;
578 iph->ip_tos |= ms.shim.exp << 5;
617 ms->shim.ttl = iphdr.ip_ttl;
621 ms->shim.exp = ((u_int8_t)iphdr.ip_tos) >> 5;
651 ip6hdr->ip6_hlim = ms.shim.ttl + 1;
681 ms->shim.ttl = ip6h.ip6_hlim;
684 ms->shim.exp = ip6h.ip6_vfc << 1 >> 5;
697 union mpls_shim *shim;
707 shim = mtod(m, union mpls_shim *);
709 memcpy(shim, ms, sizeof(*shim));
710 shim->s_addr = htonl(shim->s_addr);