skb_scrub_packet(9)

skb_scrub_packet9

Scrub an skb

Usage

void skb_scrub_packet(struct sk_buff * skb, bool xnet);

Arguments

skb

buffer to clean

xnet

packet is crossing netns

Overview

skb_scrub_packet can be used after encapsulating or decapsulting a packet into/from a tunnel. Some information have to be cleared during these operations. skb_scrub_packet can also be used to clean a skb before injecting it in another namespace (xnet == true). We have to clear all information in the skb that could impact namespace isolation.

Releases

2 releases since Debian 8 (Jessie); the text changed 1 time.

  1. 8
  2. 9

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.