Lines Matching refs:ar_hln
283 ah->ar_hln = ME->sll_halen; in send_pack()
287 memcpy(p, &ME->sll_addr, ah->ar_hln); in send_pack()
294 memcpy(p, &ME->sll_addr, ah->ar_hln); in send_pack()
296 memcpy(p, &HE->sll_addr, ah->ar_hln); in send_pack()
297 p+=ah->ar_hln; in send_pack()
303 err = sendto(s, buf, p-buf, 0, (struct sockaddr*)HE, SLL_LEN(ah->ar_hln)); in send_pack()
406 if (ah->ar_hln != ((struct sockaddr_ll *)&me)->sll_halen) in recv_pack()
408 if (len < sizeof(*ah) + 2*(4 + ah->ar_hln)) in recv_pack()
410 memcpy(&src_ip, p+ah->ar_hln, 4); in recv_pack()
411 memcpy(&dst_ip, p+ah->ar_hln+4+ah->ar_hln, 4); in recv_pack()
417 if (memcmp(p+ah->ar_hln+4, ((struct sockaddr_ll *)&me)->sll_addr, ah->ar_hln)) in recv_pack()
445 print_hex(p, ah->ar_hln); in recv_pack()
451 if (memcmp(p+ah->ar_hln+4, ((struct sockaddr_ll *)&me)->sll_addr, ah->ar_hln)) { in recv_pack()
455 print_hex(p+ah->ar_hln+4, ah->ar_hln); in recv_pack()