Name

skb_scrub_packet — scrub an skb before sending it to another netns

Synopsis

void skb_scrub_packet (struct sk_buff * skb);
 

Arguments

skb

buffer to clean

Description

skb_scrub_packet can be used to clean an skb before injecting it in another namespace. We have to clear all information in the skb that could impact namespace isolation.