1SKB_SCRUB_PACKET(9) Linux Networking SKB_SCRUB_PACKET(9)
2
3
4
6 skb_scrub_packet - scrub an skb
7
9 void skb_scrub_packet(struct sk_buff * skb, bool xnet);
10
12 skb
13 buffer to clean
14
15 xnet
16 packet is crossing netns
17
19 skb_scrub_packet can be used after encapsulating or decapsulting a
20 packet into/from a tunnel. Some information have to be cleared during
21 these operations. skb_scrub_packet can also be used to clean a skb
22 before injecting it in another namespace (xnet == true). We have to
23 clear all information in the skb that could impact namespace isolation.
24
26Kernel Hackers Manual 3.10 June 2019 SKB_SCRUB_PACKET(9)