Lines Matching defs:decoded_packet
4021 struct packet *decoded_packet;
4030 decoded_packet = NULL;
4031 if (!packet_allocate(&decoded_packet, MDL)) {
4035 decoded_packet->raw = packet;
4036 decoded_packet->packet_length = len;
4037 decoded_packet->client_port = from_port;
4038 decoded_packet->client_addr = from;
4039 interface_reference(&decoded_packet->interface, interface, MDL);
4040 decoded_packet->haddr = hfrom;
4043 packet_dereference(&decoded_packet, MDL);
4049 decoded_packet->options_valid = 0;
4050 if (!option_state_allocate (&decoded_packet->options, MDL)) {
4051 packet_dereference(&decoded_packet, MDL);
4056 if (decoded_packet->packet_length >= DHCP_FIXED_NON_UDP + 4) {
4057 if (!parse_options(decoded_packet)) {
4058 packet_dereference (&decoded_packet, MDL);
4062 if (decoded_packet->options_valid &&
4064 decoded_packet->options,
4068 evaluate_option_cache(&dp, decoded_packet, NULL, NULL,
4069 decoded_packet->options, NULL,
4072 decoded_packet->packet_type = dp.data[0];
4074 decoded_packet->packet_type = 0;
4079 if (validate_packet(decoded_packet) != 0) {
4080 if (decoded_packet->packet_type)
4081 libdhcp_callbacks.dhcp(decoded_packet);
4083 libdhcp_callbacks.bootp(decoded_packet);
4087 packet_dereference(&decoded_packet, MDL);
4133 struct packet *decoded_packet;
4145 decoded_packet = NULL;
4146 if (!packet_allocate(&decoded_packet, MDL)) {
4151 if (!option_state_allocate(&decoded_packet->options, MDL)) {
4153 packet_dereference(&decoded_packet, MDL);
4158 /* decoded_packet->packet_type = 0; */
4159 /* memset(&decoded_packet->haddr, 0, sizeof(decoded_packet->haddr)); */
4160 /* decoded_packet->circuit_id = NULL; */
4161 /* decoded_packet->circuit_id_len = 0; */
4162 /* decoded_packet->remote_id = NULL; */
4163 /* decoded_packet->remote_id_len = 0; */
4164 decoded_packet->raw = (struct dhcp_packet *)packet;
4165 decoded_packet->packet_length = (unsigned)len;
4166 decoded_packet->client_port = from_port;
4167 decoded_packet->client_addr = *from;
4168 interface_reference(&decoded_packet->interface, interface, MDL);
4170 decoded_packet->unicast = was_unicast;
4177 decoded_packet->dhcpv6_msg_type = relay->msg_type;
4180 decoded_packet->dhcpv6_hop_count = relay->hop_count;
4181 memcpy(&decoded_packet->dhcpv6_link_address,
4183 memcpy(&decoded_packet->dhcpv6_peer_address,
4186 if (!parse_option_buffer(decoded_packet->options,
4191 packet_dereference(&decoded_packet, MDL);
4200 decoded_packet->dhcpv6_msg_type = msg46->msg_type;
4203 memcpy(decoded_packet->dhcp4o6_flags,
4205 sizeof(decoded_packet->dhcp4o6_flags));
4207 if (!parse_option_buffer(decoded_packet->options,
4212 packet_dereference(&decoded_packet, MDL);
4219 decoded_packet->dhcpv6_msg_type = msg->msg_type;
4222 memcpy(decoded_packet->dhcpv6_transaction_id,
4224 sizeof(decoded_packet->dhcpv6_transaction_id));
4226 if (!parse_option_buffer(decoded_packet->options,
4231 packet_dereference(&decoded_packet, MDL);
4236 libdhcp_callbacks.dhcpv6(decoded_packet);
4238 packet_dereference(&decoded_packet, MDL);