Lines Matching refs:rcvd
278 } rcvd; member
924 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()
962 memset(&gstate.rcvd.rcvd_pkt6, 0, sizeof(dhcp6_msg_t)); in read_packet6()
963 ret = recvfrom(gstate.listensock, &gstate.rcvd.rcvd_pkt6, sizeof(dhcp6_msg_t), in read_packet6()
971 if (gstate.rcvd.rcvd_pkt6.msgtype < 1) { in read_packet6()
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()
1022 memcpy(gstate.send.send_pkt.chaddr, gstate.rcvd.rcvd_pkt.chaddr, 16); in prepare_send_pkt()
1031 memcpy(gstate.send.send_pkt6.transaction_id, gstate.rcvd.rcvd_pkt6.transaction_id, 3); in prepare_send_pkt6()
1096 …if ((overloaded == 1) | (overloaded == 3)) get_optval((uint8_t*)&gstate.rcvd.rcvd_pkt.file, opt, v… in get_optval()
1097 …if ((overloaded == 2) | (overloaded == 3)) get_optval((uint8_t*)&gstate.rcvd.rcvd_pkt.sname, opt, … in get_optval()
1133 for (optptr = gstate.rcvd.rcvd_pkt.options; in get_reqparam()
1742 memcpy(&gstate.rqcode, &gstate.rcvd.rcvd_pkt6.msgtype, sizeof(uint8_t)); in dhcpd_main()
1743 memcpy(&transactionid, &gstate.rcvd.rcvd_pkt6.transaction_id, in dhcpd_main()
1751 if (memcmp(gstate.rcvd.rcvd_pkt6.transaction_id, transactionid, 3)) { in dhcpd_main()
1767 get_optval6((uint8_t*)&gstate.rcvd.rcvd_pkt6.options, in dhcpd_main()
1771 if(get_optval6((uint8_t*)&gstate.rcvd.rcvd_pkt6.options, in dhcpd_main()
1847 else if(get_optval6((uint8_t*)&gstate.rcvd.rcvd_pkt6.options, in dhcpd_main()
1890 get_optval6((uint8_t*)&gstate.rcvd.rcvd_pkt6.options, in dhcpd_main()
1899 if(get_optval6((uint8_t*)&gstate.rcvd.rcvd_pkt6.options, in dhcpd_main()
1956 get_optval6((uint8_t*)&gstate.rcvd.rcvd_pkt6.options, in dhcpd_main()
1986 get_optval((uint8_t*)&gstate.rcvd.rcvd_pkt.options, in dhcpd_main()
1993 get_optval((uint8_t*) &gstate.rcvd.rcvd_pkt.options, in dhcpd_main()
2005 get_optval((uint8_t*) &gstate.rcvd.rcvd_pkt.options, in dhcpd_main()
2007 get_optval((uint8_t*) &gstate.rcvd.rcvd_pkt.options, in dhcpd_main()
2013 gstate.rcvd.rcvd_pkt.chaddr, &reqested_lease, hstname); in dhcpd_main()
2020 get_optval((uint8_t*) &gstate.rcvd.rcvd_pkt.options, in dhcpd_main()
2033 get_optval((uint8_t*) &gstate.rcvd.rcvd_pkt.options, in dhcpd_main()
2035 get_optval((uint8_t*) &gstate.rcvd.rcvd_pkt.options, in dhcpd_main()
2037 get_optval((uint8_t*) &gstate.rcvd.rcvd_pkt.options, in dhcpd_main()
2040 gstate.rcvd.rcvd_pkt.chaddr, &reqested_lease, hstname); in dhcpd_main()
2058 get_optval((uint8_t*) &gstate.rcvd.rcvd_pkt.options, in dhcpd_main()
2061 get_optval((uint8_t*) &gstate.rcvd.rcvd_pkt.options, in dhcpd_main()
2063 delip_from_lease(requested_nip, gstate.rcvd.rcvd_pkt.chaddr, in dhcpd_main()