Searched refs:pdhcp (Results 1 – 1 of 1) sorted by relevance
184 dhcp_msg_t pdhcp; member694 memcpy(&state->pdhcp, &packet.dhcp, bytes - (sizeof(packet.iph) + sizeof(packet.udph))); in read_raw()695 if (state->pdhcp.cookie != htonl(DHCP_MAGIC)) { in read_raw()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()711 if (state->pdhcp.cookie != htonl(DHCP_MAGIC)) { in read_app()727 memcpy(&packet.dhcp, &state->pdhcp, sizeof(dhcp_msg_t)); in send_raw()745 padding = 308 - 1 - dhcp_opt_size(state->pdhcp.options); in send_raw()783 cli.sin_addr.s_addr = state->pdhcp.ciaddr; in send_app()796 int padding = 308 - 1 - dhcp_opt_size(state->pdhcp.options); in send_app()[all …]