Commit c71a1521 authored by Franck Messaoudi's avatar Franck Messaoudi

Fix: fixing the trasport protocol ports machine order

parent 7139447d
......@@ -705,8 +705,8 @@ static __always_inline struct session_id* pfcp_session_lookup_over_n6(
return NULL;
}
packet_filter_out->src_port = udph->source;
packet_filter_out->dst_port = udph->dest;
packet_filter_out->src_port = bpf_htons(udph->source);
packet_filter_out->dst_port = bpf_htons(udph->dest);
break;
}
case IPPROTO_TCP: {
......@@ -717,8 +717,8 @@ static __always_inline struct session_id* pfcp_session_lookup_over_n6(
return NULL;
}
packet_filter_out->src_port = tcph->source;
packet_filter_out->dst_port = tcph->dest;
packet_filter_out->src_port = bpf_htons(tcph->source);
packet_filter_out->dst_port = bpf_htons(tcph->dest);
break;
}
case IPPROTO_ICMP: {
......
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