Lines Matching refs:ETHER_ADDRLEN
103 #define ETHER_ADDRLEN 6 macro
104 #define ETHER_HDR_SIZE (2+2*ETHER_ADDRLEN)
105 #define ARP_PACKET_SIZE (8+4+4+2*ETHER_ADDRLEN)
116 uint8_t sender_hw_address[ETHER_ADDRLEN], target_hw_address[ETHER_ADDRLEN];
322 r[4] = ETHER_ADDRLEN; /* HLEN */ in packet_new_with_info()
326 memcpy(r+8, info->sender_hw_address, ETHER_ADDRLEN); in packet_new_with_info()
328 memcpy(r+18, info->target_hw_address, ETHER_ADDRLEN); in packet_new_with_info()
339 memcpy(info.sender_hw_address, hw_address, ETHER_ADDRLEN); in packet_new_probe()
350 memcpy(info.sender_hw_address, hw_address, ETHER_ADDRLEN); in packet_new_announcement()
372 if (p[4] != ETHER_ADDRLEN || p[5] != 4 || p[6] != 0 || (p[7] != 1 && p[7] != 2)) in packet_parse()
376 memcpy(info->sender_hw_address, p+8, ETHER_ADDRLEN); in packet_parse()
378 memcpy(info->target_hw_address, p+18, ETHER_ADDRLEN); in packet_parse()
488 if (sa.sll_halen != ETHER_ADDRLEN) { in open_socket()
493 memcpy(hw_address, sa.sll_addr, ETHER_ADDRLEN); in open_socket()
515 sa.sll_halen = ETHER_ADDRLEN; in send_packet()
516 memset(sa.sll_addr, 0xFF, ETHER_ADDRLEN); in send_packet()
576 static uint8_t __lladdr[ETHER_ADDRLEN];
617 memcpy(lladdr, LLADDR(sdl), ETHER_ADDRLEN); in __get_ether_addr()
712 memcpy(hw_address, __lladdr, ETHER_ADDRLEN); in open_socket()
735 memset(eh->ether_dhost, 0xFF, ETHER_ADDRLEN); in send_packet()
736 memcpy(eh->ether_shost, __lladdr, ETHER_ADDRLEN); in send_packet()
1066 uint8_t hw_address[ETHER_ADDRLEN]; in loop()
1120 for (i = 0; i < ETHER_ADDRLEN; i++) in loop()
1224 if (memcmp(hw_address, info.sender_hw_address, ETHER_ADDRLEN)) { in loop()
1233 …lict = info.target_ip_address == addr && memcmp(hw_address, info.sender_hw_address, ETHER_ADDRLEN); in loop()