Lines Matching refs:send
283 } send;
478 if (write(sigfd.wr, &ch, 1) != 1) dbg("can't send signal\n");
862 memcpy(&packet.dhcp6, &gstate.send.send_pkt6, sizeof(dhcp6_msg_t));
866 dbg("SEND : ipv6 socket failed\n");
877 dbg("SEND : bind failed\n");
899 if (result < 0) dbg("PACKET send error\n");
913 memcpy(&packet.dhcp, &gstate.send.send_pkt, sizeof(dhcp_msg_t));
916 dbg("SEND : socket failed\n");
927 dbg("SEND : bind failed\n");
931 padding = 308 - 1 - dhcp_opt_size(gstate.send.send_pkt.options);
952 if (result < 0) dbg("PACKET send error\n");
1015 memset((void*)&gstate.sendsend.send_pkt));
1016 gstate.send.send_pkt.op = 2; //BOOTPREPLY
1017 gstate.send.send_pkt.htype = 1;
1018 gstate.send.send_pkt.hlen = 6;
1019 gstate.send.send_pkt.xid = gstate.rcvd.rcvd_pkt.xid;
1020 gstate.send.send_pkt.cookie = htonl(DHCP_MAGIC);
1021 gstate.send.send_pkt.nsiaddr = gconfig.server_nip;
1022 memcpy(gstate.send.send_pkt.chaddr, gstate.rcvd.rcvd_pkt.chaddr, 16);
1023 gstate.send.send_pkt.options[0] = DHCP_OPT_END;
1024 return gstate.send.send_pkt.options;
1029 memset((void*)&gstate.send.send_pkt6, 0, sizeof(gstate.send.send_pkt6));
1030 gstate.send.send_pkt6.msgtype = opt;
1031 memcpy(gstate.send.send_pkt6.transaction_id, gstate.rcvd.rcvd_pkt6.transaction_id, 3);
1032 return gstate.send.send_pkt6.options;
1817 //TODO send failed status code
1926 //TODO send failed status code
2013 gstate.send.send_pkt.yiaddr = getip_from_pool(requested_nip,
2015 if(!gstate.send.send_pkt.yiaddr){
2040 gstate.send.send_pkt.yiaddr = getip_from_pool(requested_nip,
2043 if (!gstate.send.send_pkt.yiaddr) {