Lines Matching refs:hbhlen
183 int cmsglen, hbhlen = 0;
240 if ((hbhlen = inet6_opt_init(NULL, 0)) == -1)
242 if ((hbhlen = inet6_opt_append(NULL, 0, hbhlen, IP6OPT_ROUTER_ALERT, 2,
245 if ((hbhlen = inet6_opt_finish(NULL, 0, hbhlen)) == -1)
247 cmsglen = CMSG_SPACE(sizeof(struct in6_pktinfo)) + CMSG_SPACE(hbhlen);
249 hbhlen = sizeof(raopt);
251 inet6_option_space(hbhlen);
269 cmsgp->cmsg_len = CMSG_LEN(hbhlen);
273 if ((currentlen = inet6_opt_init(hbhbuf, hbhlen)) == -1)
274 errx(1, "inet6_opt_init(len = %d) failed", hbhlen);
275 if ((currentlen = inet6_opt_append(hbhbuf, hbhlen, currentlen,
278 errx(1, "inet6_opt_append(currentlen = %d, hbhlen = %d) failed",
279 currentlen, hbhlen);
281 if ((currentlen = inet6_opt_finish(hbhbuf, hbhlen, currentlen)) == -1)