Verified Commit 948873b0 authored by Martin Petráček's avatar Martin Petráček
Browse files

fixing another turris compile error (the last one, hopefully)

parent 320befac
Pipeline #4171 passed with stage
in 2 minutes and 31 seconds
......@@ -179,7 +179,9 @@ Packet::Packet(struct nfq_data *data, const unordered_map<string, string> &flags
struct nfqnl_msg_packet_hdr *header = nfq_get_msg_packet_hdr(data);
if (!header)
throw Unparsable("Can't parse the packet id");
store<PKT_id>(ntohl(header->packet_id));
// passing just header->packet_id to ntohl causes compile error: "cannot bind packed field 'header->nfqnl_msg_packet_hdr::packet_id' to 'unsigned int&'"
unsigned long packet_id_n = header->packet_id;
store<PKT_id>(ntohl(packet_id_n));
uint8_t *data_ptr;
int len = nfq_get_payload(data, &data_ptr);
this->data = data_ptr;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment