We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 126e080 commit ce82ecfCopy full SHA for ce82ecf
1 file changed
src/services/pcn-pbforwarder/src/Pbforwarder_dp_parsing.c
@@ -99,6 +99,7 @@ static __always_inline int handle_rx(struct CTXTYPE *ctx,
99
pkt->srcPort = tcp->source;
100
pkt->dstPort = tcp->dest;
101
} else if (ip->protocol == IPPROTO_UDP) {
102
+ uint8_t header_len = 4 * ip->ihl; //we have to redefine this to avoid errors
103
udp = data + sizeof(*ethernet) + header_len;
104
if (data + sizeof(*ethernet) + header_len + sizeof(*udp) > data_end)
105
return RX_DROP;
0 commit comments