Lines Matching refs:ArpPacket
119 typedef struct ArpPacket { struct
122 } ArpPacket; typedef
286 static ArpPacket* packet_new(size_t packet_len) { in packet_new()
287 ArpPacket *p; in packet_new()
293 b = avahi_new0(uint8_t, sizeof(struct ArpPacket) + packet_len); in packet_new()
294 p = (ArpPacket*) b; in packet_new()
296 p->ether_payload = b + sizeof(struct ArpPacket); in packet_new()
299 b = avahi_new0(uint8_t, sizeof(struct ArpPacket) + ETHER_HDR_SIZE + packet_len); in packet_new()
300 p = (ArpPacket*) b; in packet_new()
301 p->ether_header = b + sizeof(struct ArpPacket); in packet_new()
302 p->ether_payload = b + sizeof(struct ArpPacket) + ETHER_HDR_SIZE; in packet_new()
308 static ArpPacket* packet_new_with_info(const ArpPacketInfo *info, size_t *packet_len) { in packet_new_with_info()
309 ArpPacket *p = NULL; in packet_new_with_info()
334 static ArpPacket *packet_new_probe(uint32_t ip_address, const uint8_t*hw_address, size_t *packet_le… 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()
357 static int packet_parse(const ArpPacket *packet, size_t packet_len, ArpPacketInfo *info) { in packet_parse()
504 static int send_packet(int fd, int iface, ArpPacket *packet, size_t packet_len) { in send_packet()
526 static int recv_packet(int fd, ArpPacket **packet, size_t *packet_len) { in recv_packet()
728 static int send_packet(int fd AVAHI_GCC_UNUSED, int iface AVAHI_GCC_UNUSED, ArpPacket *packet, size… in send_packet()
742 static int recv_packet(int fd AVAHI_GCC_UNUSED, ArpPacket **packet, size_t *packet_len) { in recv_packet()
745 ArpPacket *ap; in recv_packet()
1062 ArpPacket *in_packet = NULL; in loop()
1064 ArpPacket *out_packet = NULL; in loop()