Searched refs:dhcp_msg_t (Results 1 – 2 of 2) sorted by relevance
/external/toybox/toys/pending/ |
D | dhcp.c | 166 } dhcp_msg_t; typedef 171 dhcp_msg_t dhcp; 184 dhcp_msg_t pdhcp; 706 memset(&state->pdhcp, 0, sizeof(dhcp_msg_t)); in read_app() 707 if ((ret = read(state->sockfd, &state->pdhcp, sizeof(dhcp_msg_t))) < 0) { in read_app() 727 memcpy(&packet.dhcp, &state->pdhcp, sizeof(dhcp_msg_t)); in send_raw() 797 if((ret = write(fd, &state->pdhcp, sizeof(dhcp_msg_t) - padding)) < 0) { in send_app() 992 memset(&state->pdhcp, 0, sizeof(dhcp_msg_t)); in dhcpc_sendmsg()
|
D | dhcpd.c | 154 } dhcp_msg_t; typedef 165 dhcp_msg_t dhcp; 276 dhcp_msg_t rcvd_pkt; 281 dhcp_msg_t send_pkt; 913 memcpy(&packet.dhcp, &gstate.send.send_pkt, sizeof(dhcp_msg_t)); 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()
|