Home | History | Annotate | Download | only in net

Lines Matching defs:mh

217 	union mpls_shim mh, *pms;
236 memset(&mh, 0, sizeof(mh));
237 mh.s_addr = MPLS_GETSADDR(rt);
238 mh.shim.bos = 1;
239 mh.shim.exp = 0;
240 mh.shim.ttl = mpls_defttl;
244 while (psize <= rt_gettag(rt)->sa_len - sizeof(mh)) {
246 if (mh.shim.label != MPLS_LABEL_IMPLNULL &&
247 ((m = mpls_prepend_shim(m, &mh)) == NULL))
249 memset(&mh, 0, sizeof(mh));
250 mh.s_addr = ntohl(pms->s_addr);
251 mh.shim.bos = mh.shim.exp = 0;
252 mh.shim.ttl = mpls_defttl;
253 psize += sizeof(mh);
259 m = mpls_label_inet(m, &mh, psize - sizeof(struct sockaddr_mpls));
264 m = mpls_label_inet6(m, &mh, psize - sizeof(struct sockaddr_mpls));
268 m = mpls_prepend_shim(m, &mh);