Lines Matching refs:send_pkt
281 dhcp_msg_t send_pkt; member
913 memcpy(&packet.dhcp, &gstate.send.send_pkt, sizeof(dhcp_msg_t)); in send_packet()
931 padding = 308 - 1 - dhcp_opt_size(gstate.send.send_pkt.options); in send_packet()
1015 memset((void*)&gstate.send.send_pkt, 0, sizeof(gstate.send.send_pkt)); in prepare_send_pkt()
1016 gstate.send.send_pkt.op = 2; //BOOTPREPLY in prepare_send_pkt()
1017 gstate.send.send_pkt.htype = 1; in prepare_send_pkt()
1018 gstate.send.send_pkt.hlen = 6; in prepare_send_pkt()
1019 gstate.send.send_pkt.xid = gstate.rcvd.rcvd_pkt.xid; in prepare_send_pkt()
1020 gstate.send.send_pkt.cookie = htonl(DHCP_MAGIC); in prepare_send_pkt()
1021 gstate.send.send_pkt.nsiaddr = gconfig.server_nip; in prepare_send_pkt()
1022 memcpy(gstate.send.send_pkt.chaddr, gstate.rcvd.rcvd_pkt.chaddr, 16); in prepare_send_pkt()
1023 gstate.send.send_pkt.options[0] = DHCP_OPT_END; in prepare_send_pkt()
1024 return gstate.send.send_pkt.options; in prepare_send_pkt()
2013 gstate.send.send_pkt.yiaddr = getip_from_pool(requested_nip, in dhcpd_main()
2015 if(!gstate.send.send_pkt.yiaddr){ in dhcpd_main()
2040 gstate.send.send_pkt.yiaddr = getip_from_pool(requested_nip, in dhcpd_main()
2043 if (!gstate.send.send_pkt.yiaddr) { in dhcpd_main()