Lines Matching refs:hlen
217 ip_nce_resolve_all(ill_t *ill, uchar_t *src_haddr, uint32_t hlen,
244 if (NCE_MYADDR(ncec) && hlen == ncec->ncec_ill->ill_phys_addr_length &&
245 bcmp(lladdr, src_haddr, hlen) == 0) {
295 * update ncec with src_haddr, hlen.
311 ll_changed = nce_cmp_ll_addr(ncec, src_haddr, hlen);
817 uint32_t hlen, plen;
876 hlen = arh->arh_hlen;
878 if (MBLKL(mp1) < ARH_FIXED_LEN + 2 * hlen + 2 * plen) {
883 * hlen 0 is used for RFC 1868 UnARP.
885 * Note that the rest of the code checks that hlen is what we expect
889 if ((hlen > 0 && hlen != ill->ill_phys_addr_length) || plen == 0) {
891 arp_drop_packet("Bogus hlen or plen", mp, ill);
912 arhp += hlen;
917 arhp += hlen;
960 err = ip_nce_resolve_all(ill, src_haddr, hlen, &src_paddr,
1021 if (hlen != dst_ncec->ncec_ill->ill_phys_addr_length) {
1029 if (!nce_cmp_ll_addr(dst_ncec, src_haddr, hlen)) {
1045 (nce_cmp_ll_addr(dst_ncec, dst_haddr, hlen) == 0)) {
1123 err = nce_lookup_then_add_v4(ill, src_haddr, hlen,
1554 uint_t hlen;
1561 hlen = ill->ill_phys_addr_length; /* ar$hln from RFC 826 */
1562 mp = ill_dlur_gen(dst_lladdr, hlen, ETHERTYPE_ARP, ill->ill_sap_length);
1573 mp->b_cont = allocb(AR_LL_HDR_SLACK + ARH_FIXED_LEN + (hlen * 4) +
1581 cp = mp->b_cont->b_rptr + (AR_LL_HDR_SLACK + hlen + hlen);
1586 arh->arh_hlen = (uint8_t)hlen;
1590 bcopy(haddr1, cp, hlen);
1591 cp += hlen;
1598 bzero(cp, hlen);
1600 bcopy(haddr2, cp, hlen);
1601 cp += hlen;