Lines Matching refs:hbhlen
969 int off = *offp, hbhlen; in ip6_hopopts_input() local
982 hbhlen = (hbh->ip6h_len + 1) << 3; in ip6_hopopts_input()
984 if (m->m_len < off + hbhlen) { in ip6_hopopts_input()
985 m = m_pullup(m, off + hbhlen); in ip6_hopopts_input()
993 off += hbhlen; in ip6_hopopts_input()
994 hbhlen -= sizeof(struct ip6_hbh); in ip6_hopopts_input()
996 hbhlen, rtalertp, plenp) < 0) { in ip6_hopopts_input()
1017 ip6_process_hopopts(struct mbuf *m, u_int8_t *opthead, int hbhlen, in ip6_process_hopopts() argument
1027 for (; hbhlen > 0; hbhlen -= optlen, opt += optlen) { in ip6_process_hopopts()
1033 if (hbhlen < IP6OPT_MINLEN) { in ip6_process_hopopts()
1041 if (hbhlen < IP6OPT_RTALERT_LEN) { in ip6_process_hopopts()
1058 if (hbhlen < IP6OPT_JUMBO_LEN) { in ip6_process_hopopts()
1123 if (hbhlen < IP6OPT_MINLEN) { in ip6_process_hopopts()
1421 u_int hbhlen; in ip6_savecontrol() local
1424 hbhlen = (hbh->ip6h_len + 1) << 3; in ip6_savecontrol()
1433 *mp = sbcreatecontrol(hbh, hbhlen, in ip6_savecontrol()