bondagit / ravenna-alsa-lkm

RAVENNA ALSA LKM
20 stars 9 forks source link

c_wrapper_lib: fix skb pointers prior to xmit #16

Closed zonque closed 8 months ago

zonque commented 8 months ago

The current code resets the network header pointer to the beginning of the skb, which is wrong. The skb's linear section starts with the MAC header, followed by the IP header.

This is not an issue as long as the kernel's IP stack passes the skb unmodified to the network interface for egress. If the flow in intercepted by an nft hook, however, the correctness of the header pointers matters.

bondagit commented 8 months ago

Thanks for the contribution. I will verify and merge it with the next driver version.