Home
last modified time | relevance | path

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

/f-stack/freebsd/netinet6/
H A Dip6_input.c951 int off = *offp, hbhlen; in ip6_hopopts_input() local
964 hbhlen = (hbh->ip6h_len + 1) << 3; in ip6_hopopts_input()
966 if (m->m_len < off + hbhlen) { in ip6_hopopts_input()
967 m = m_pullup(m, off + hbhlen); in ip6_hopopts_input()
975 off += hbhlen; in ip6_hopopts_input()
976 hbhlen -= sizeof(struct ip6_hbh); in ip6_hopopts_input()
978 hbhlen, rtalertp, plenp) < 0) { in ip6_hopopts_input()
1009 for (; hbhlen > 0; hbhlen -= optlen, opt += optlen) { in ip6_process_hopopts()
1015 if (hbhlen < IP6OPT_MINLEN) { in ip6_process_hopopts()
1105 if (hbhlen < IP6OPT_MINLEN) { in ip6_process_hopopts()
[all …]
H A Dip6_output.c3093 int hbhlen; in ip6_setpktopt() local
3115 hbhlen = (hbh->ip6h_len + 1) << 3; in ip6_setpktopt()
3116 if (len != hbhlen) in ip6_setpktopt()
3121 opt->ip6po_hbh = malloc(hbhlen, M_IP6OPT, M_NOWAIT); in ip6_setpktopt()
3124 bcopy(hbh, opt->ip6po_hbh, hbhlen); in ip6_setpktopt()