Home
last modified time | relevance | path

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

/netbsd/usr.sbin/mld6query/
H A Dmld6.c161 int cmsglen, hbhlen = 0; in make_msg() local
193 if ((hbhlen = inet6_opt_init(NULL, 0)) == -1) in make_msg()
195 if ((hbhlen = inet6_opt_append(NULL, 0, hbhlen, IP6OPT_ROUTER_ALERT, 2, in make_msg()
198 if ((hbhlen = inet6_opt_finish(NULL, 0, hbhlen)) == -1) in make_msg()
202 hbhlen = sizeof(raopt); in make_msg()
204 inet6_option_space(hbhlen); in make_msg()
222 cmsgp->cmsg_len = CMSG_LEN(hbhlen); in make_msg()
226 if ((currentlen = inet6_opt_init(hbhbuf, hbhlen)) == -1) in make_msg()
227 errx(1, "inet6_opt_init(len = %d) failed", hbhlen); in make_msg()
228 if ((currentlen = inet6_opt_append(hbhbuf, hbhlen, currentlen, in make_msg()
[all …]
/netbsd/external/bsd/tcpdump/dist/
H A Dprint-ip6opts.c182 int hbhlen = 0; in hbhopt_print() local
185 hbhlen = (int)((dp->ip6h_len + 1) << 3); in hbhopt_print()
186 ND_TCHECK2(*dp, hbhlen); in hbhopt_print()
189 ip6_opt_print(ndo, (const u_char *)dp + sizeof(*dp), hbhlen - sizeof(*dp)); in hbhopt_print()
191 return(hbhlen); in hbhopt_print()
/netbsd/sys/netinet6/
H A Dip6_input.c861 int off = *offp, hbhlen; in ip6_hopopts_input() local
871 hbhlen = (hbh->ip6h_len + 1) << 3; in ip6_hopopts_input()
873 hbhlen); in ip6_hopopts_input()
879 off += hbhlen; in ip6_hopopts_input()
880 hbhlen -= sizeof(struct ip6_hbh); in ip6_hopopts_input()
883 hbhlen, rtalertp, plenp) < 0) in ip6_hopopts_input()
912 for (; hbhlen > 0; hbhlen -= optlen, opt += optlen) { in ip6_process_hopopts()
918 if (hbhlen < IP6OPT_MINLEN) { in ip6_process_hopopts()
1008 if (hbhlen < IP6OPT_MINLEN) { in ip6_process_hopopts()
1140 int hbhlen; in ip6_savecontrol() local
[all …]
H A Dip6_output.c3031 int hbhlen; in ip6_setpktopt() local
3053 hbhlen = (hbh->ip6h_len + 1) << 3; in ip6_setpktopt()
3054 if (len != hbhlen) in ip6_setpktopt()
3059 opt->ip6po_hbh = malloc(hbhlen, M_IP6OPT, M_NOWAIT); in ip6_setpktopt()
3062 memcpy(opt->ip6po_hbh, hbh, hbhlen); in ip6_setpktopt()
/netbsd/sys/kern/
H A Duipc_mbufdebug.c655 int hbhlen; in m_examine_ip6() local
690 hbhlen = (hbh.ip6h_len + 1) << 3; in m_examine_ip6()
692 off += hbhlen; in m_examine_ip6()