travelping / vpp

5G User Plane Function (UPF) based on VPP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

upf_buffer_opaque gtpu flags two assigned in a single function

sothy opened this issue · comments

commented

In line 313 of gtpu_decap.c and line 318 assignes upf_buffer_opaque(b)->gtpu.flags one by one differently. I wonder it is possible to delete one line?

They could be merged, but I don't see that as a priority.

It is possible that the compiler sees this and merges them already for the release builds.

Turns out this is actually a real bug, the flags can collide.