free5gc / gtp5g

GTP-U Linux Kernel Module
GNU General Public License v2.0
53 stars 63 forks source link

fix: remove all the header in the correct way #79

Closed Roy-Hu closed 1 year ago

Roy-Hu commented 1 year ago
  1. perform ip4_rm_header before the gtp5g_push_header in the gtp5g_fwd_skb_ipv4 to prevent calculate the volume of the pushed header
  2. Not sure why pskb_may_pull in gtp1u_udp_encap_recv do not move the skb->data & skb-len forward hdrlen. Therefore, instead of deducting the Ipv4 & TCP header under GPRS tunneling protocol, it repeatedly deducts the hdrlen.