Searched refs:rcvd_pkt (Results 1 – 1 of 1) sorted by relevance
276 dhcp_msg_t rcvd_pkt; member924 memcpy(dest_sll.sll_addr, (broadcast)?bmacaddr:gstate.rcvd.rcvd_pkt.chaddr , 6); in send_packet()934 packet.iph.daddr = (broadcast || (gstate.rcvd.rcvd_pkt.ciaddr == 0))? in send_packet()935 INADDR_BROADCAST : gstate.rcvd.rcvd_pkt.ciaddr; in send_packet()987 memset(&gstate.rcvd.rcvd_pkt, 0, sizeof(dhcp_msg_t)); in read_packet()988 ret = recvfrom(gstate.listensock, &gstate.rcvd.rcvd_pkt, sizeof(dhcp_msg_t), in read_packet()996 if (gstate.rcvd.rcvd_pkt.cookie != htonl(DHCP_MAGIC)) { in read_packet()1000 if (gstate.rcvd.rcvd_pkt.op != 1) { //BOOTPREQUEST in read_packet()1004 if (gstate.rcvd.rcvd_pkt.hlen != 6) { in read_packet()1019 gstate.send.send_pkt.xid = gstate.rcvd.rcvd_pkt.xid; in prepare_send_pkt()[all …]