Lines Matching refs:hw_address
334 static ArpPacket *packet_new_probe(uint32_t ip_address, const uint8_t*hw_address, size_t *packet_le… in packet_new_probe() argument
339 memcpy(info.sender_hw_address, hw_address, ETHER_ADDRLEN); in packet_new_probe()
345 static ArpPacket *packet_new_announcement(uint32_t ip_address, const uint8_t* hw_address, size_t *p… in packet_new_announcement() argument
350 memcpy(info.sender_hw_address, hw_address, ETHER_ADDRLEN); in packet_new_announcement()
459 static int open_socket(int iface, uint8_t *hw_address) { in open_socket() argument
493 memcpy(hw_address, sa.sll_addr, ETHER_ADDRLEN); in open_socket()
627 static int open_socket(int iface, uint8_t *hw_address) { in open_socket() argument
712 memcpy(hw_address, __lladdr, ETHER_ADDRLEN); in open_socket()
1066 uint8_t hw_address[ETHER_ADDRLEN]; in loop() local
1081 if ((fd = open_socket(iface, hw_address)) < 0) in loop()
1104 hw_address[0], hw_address[1], in loop()
1105 hw_address[2], hw_address[3], in loop()
1106 hw_address[4], hw_address[5]); in loop()
1121 a += hw_address[i]*i; in loop()
1166 out_packet = packet_new_probe(addr, hw_address, &out_packet_len); in loop()
1175 out_packet = packet_new_probe(addr, hw_address, &out_packet_len); in loop()
1185 out_packet = packet_new_announcement(addr, hw_address, &out_packet_len); in loop()
1224 if (memcmp(hw_address, info.sender_hw_address, ETHER_ADDRLEN)) { in loop()
1233 …conflict = info.target_ip_address == addr && memcmp(hw_address, info.sender_hw_address, ETHER_ADDR… in loop()
1296 out_packet = packet_new_announcement(addr, hw_address, &out_packet_len); in loop()
1347 if ((fd = open_socket(iface, hw_address)) < 0) in loop()