Home
last modified time | relevance | path

Searched refs:rcvd_pkt (Results 1 – 1 of 1) sorted by relevance

/external/toybox/toys/pending/
Ddhcpd.c162 dhcp_msg_t rcvd_pkt; member
664 memcpy(dest_sll.sll_addr, (broadcast)?bmacaddr:gstate.rcvd_pkt.chaddr , 6); in send_packet()
674 …packet.iph.daddr = (broadcast || (gstate.rcvd_pkt.ciaddr == 0))?INADDR_BROADCAST:gstate.rcvd_pkt.c… in send_packet()
700 memset(&gstate.rcvd_pkt, 0, sizeof(dhcp_msg_t)); in read_packet()
701 ret = read(gstate.listensock, &gstate.rcvd_pkt, sizeof(dhcp_msg_t)); in read_packet()
706 if (gstate.rcvd_pkt.cookie != htonl(DHCP_MAGIC)) { in read_packet()
710 if (gstate.rcvd_pkt.op != 1) { //BOOTPREQUEST in read_packet()
714 if (gstate.rcvd_pkt.hlen != 6) { in read_packet()
729 gstate.send_pkt.xid = gstate.rcvd_pkt.xid; in prepare_send_pkt()
732 memcpy(gstate.send_pkt.chaddr, gstate.rcvd_pkt.chaddr, 16); in prepare_send_pkt()
[all …]