Searched refs:hbhlen (Results 1 – 4 of 4) sorted by relevance
/freebsd/usr.sbin/mld6query/ |
H A D | mld6.c | 202 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 D | print-ip6opts.c | 221 u_int hbhlen = 0; in hbhopt_process() local 224 hbhlen = (GET_U_1(dp->ip6h_len) + 1) << 3; in hbhopt_process() 225 ND_TCHECK_LEN(dp, hbhlen); in hbhopt_process() 228 hbhlen - sizeof(*dp), found_jumbo, jumbolen) == -1) in hbhopt_process() 230 return hbhlen; in hbhopt_process()
|
/freebsd/sys/netinet6/ |
H A D | ip6_input.c | 961 int off = *offp, hbhlen; in ip6_hopopts_input() 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); 988 hbhlen, rtalertp, plenp) < 0) { 1006 * opthead + hbhlen is located in contiguous memory region. in ip6_process_hopopts() 1009 ip6_process_hopopts(struct mbuf *m, u_int8_t *opthead, int hbhlen, in ip6_process_hopopts() 1019 for (; hbhlen > in ip6_process_hopopts() 950 int off = *offp, hbhlen; ip6_hopopts_input() local 998 ip6_process_hopopts(struct mbuf * m,u_int8_t * opthead,int hbhlen,u_int32_t * rtalertp,u_int32_t * plenp) ip6_process_hopopts() argument 1402 u_int hbhlen; ip6_savecontrol() local [all...] |
H A D | ip6_output.c | 3090 int hbhlen; in ip6_setpktopt() local 3112 hbhlen = (hbh->ip6h_len + 1) << 3; in ip6_setpktopt() 3113 if (len != hbhlen) in ip6_setpktopt() 3118 opt->ip6po_hbh = malloc(hbhlen, M_IP6OPT, M_NOWAIT); in ip6_setpktopt() 3121 bcopy(hbh, opt->ip6po_hbh, hbhlen); in ip6_setpktopt()
|