Lines Matching refs:packet
151 unsigned char *buf = client->packet.options; in cons_options()
454 struct dhcp_packet *packet = &client->packet; in do_packet() local
461 if (packet->hlen > sizeof(packet->chaddr)) { in do_packet()
470 if ((ifi->hw_address.hlen != packet->hlen) || in do_packet()
471 (memcmp(ifi->hw_address.haddr, packet->chaddr, packet->hlen))) in do_packet()
476 if (memcmp(&packet->options, DHCP_OPTIONS_COOKIE, 4) == 0) { in do_packet()
479 &packet->options[4], sizeof(packet->options) - 4); in do_packet()
487 (unsigned char *)packet->file, in do_packet()
488 sizeof(packet->file)); in do_packet()
492 (unsigned char *)packet->sname, in do_packet()
493 sizeof(packet->sname)); in do_packet()
518 } else if (options_valid && packet->op == BOOTREPLY) { in do_packet()
523 if (handler && client->xid == client->packet.xid) { in do_packet()