Home
last modified time | relevance | path

Searched refs:hbhlen (Results 1 – 4 of 4) sorted by relevance

/freebsd/usr.sbin/mld6query/
H A Dmld6.c202 int cmsglen, hbhlen = 0; in make_msg() local
249 if ((hbhlen = inet6_opt_init(NULL, 0)) == -1) in make_msg()
251 if ((hbhlen = inet6_opt_append(NULL, 0, hbhlen, IP6OPT_ROUTER_ALERT, 2, in make_msg()
254 if ((hbhlen = inet6_opt_finish(NULL, 0, hbhlen)) == -1) in make_msg()
256 cmsglen = CMSG_SPACE(sizeof(struct in6_pktinfo)) + CMSG_SPACE(hbhlen); in make_msg()
272 cmsgp->cmsg_len = CMSG_LEN(hbhlen); in make_msg()
276 if ((currentlen = inet6_opt_init(hbhbuf, hbhlen)) == -1) in make_msg()
277 errx(1, "inet6_opt_init(len = %d) failed", hbhlen); in make_msg()
278 if ((currentlen = inet6_opt_append(hbhbuf, hbhlen, currentlen, in make_msg()
282 currentlen, hbhlen); in make_msg()
[all …]
/freebsd/contrib/tcpdump/
H A Dprint-ip6opts.c190 u_int hbhlen = 0; in hbhopt_process() local
193 hbhlen = (GET_U_1(dp->ip6h_len) + 1) << 3; in hbhopt_process()
194 ND_TCHECK_LEN(dp, hbhlen); in hbhopt_process()
198 hbhlen - sizeof(*dp), found_jumbo, jumbolen) == -1) in hbhopt_process()
200 return hbhlen; in hbhopt_process()
/freebsd/sys/netinet6/
H A Dip6_input.c961 int off = *offp, hbhlen; in ip6_hopopts_input() local
974 hbhlen = (hbh->ip6h_len + 1) << 3; in ip6_hopopts_input()
976 if (m->m_len < off + hbhlen) { in ip6_hopopts_input()
977 m = m_pullup(m, off + hbhlen); in ip6_hopopts_input()
985 off += hbhlen; in ip6_hopopts_input()
986 hbhlen -= sizeof(struct ip6_hbh); in ip6_hopopts_input()
988 hbhlen, rtalertp) < 0) { in ip6_hopopts_input()
1009 ip6_process_hopopts(struct mbuf *m, u_int8_t *opthead, int hbhlen, in ip6_process_hopopts() argument
1017 for (; hbhlen > 0; hbhlen -= optlen, opt += optlen) { in ip6_process_hopopts()
1023 if (hbhlen < IP6OPT_MINLEN) { in ip6_process_hopopts()
[all …]
H A Dip6_output.c2933 int hbhlen; in ip6_setpktopt() local
2955 hbhlen = (hbh->ip6h_len + 1) << 3; in ip6_setpktopt()
2956 if (len != hbhlen) in ip6_setpktopt()
2961 opt->ip6po_hbh = malloc(hbhlen, M_IP6OPT, M_NOWAIT); in ip6_setpktopt()
2964 bcopy(hbh, opt->ip6po_hbh, hbhlen); in ip6_setpktopt()