Lines Matching defs:packet
44 #include "packet.h"
213 /* send release packet */
286 /* struct dhcpMessage packet; */
287 struct udp_dhcp_packet_rcv packet;
472 /* send discover packet */
546 /* send request packet */
576 /* send a request packet */
594 /* send a request packet */
607 /* a packet is ready, read it */
611 /* len = get_packet(&packet, fd); */
612 len = get_packet(&packet.data, fd);
613 /* else len = get_raw_packet(&packet, fd); */
614 else len = get_raw_packet(&packet.data, fd);
624 /* if (packet.xid != xid) { */
625 if (packet.data.xid != xid) {
627 /* (unsigned long) packet.xid, xid); */
628 (unsigned long) packet.data.xid, xid);
632 /* if ((message = get_option(&packet, DHCP_MESSAGE_TYPE)) == NULL) { */
633 if ((message = get_option(&packet.data, DHCP_MESSAGE_TYPE)) == NULL) {
634 DEBUG(LOG_ERR, "couldnt get option from packet -- ignoring");
644 /* if ((temp = get_option(&packet, DHCP_SERVER_ID))) { */
645 if ((temp = get_option(&packet.data, DHCP_SERVER_ID))) {
647 /* xid = packet.xid;
648 requested_ip = packet.yiaddr; */
649 xid = packet.data.xid;
650 requested_ip = packet.data.yiaddr;
667 /* if (!(temp = get_option(&packet, DHCP_LEASE_TIME))) { */
668 if (!(temp = get_option(&packet.data, DHCP_LEASE_TIME))) {
686 /* if (arpping(packet.yiaddr, 0, */
687 if (arpping(packet.data.yiaddr, addr_to_arp,
690 /* send_decline(packet.xid, server_addr, packet.yiaddr); *//* broadcast */
691 send_decline(packet.data.xid, server_addr, packet.data.yiaddr); /* broadcast */
709 /* temp_addr.s_addr = packet.yiaddr; */
710 temp_addr.s_addr = packet.data.yiaddr;
715 /* requested_ip = packet.yiaddr; */
716 requested_ip = packet.data.yiaddr;
718 /* run_script(&packet, */
719 run_script(&packet.data,
733 /* run_script(&packet, "nak"); */
734 run_script(&packet.data, "nak");/* Foxconn modified by Max Ding, 06/11/2010 */