'\" t .\" Title: skb_scrub_packet .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: Linux Networking .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "SKB_SCRUB_PACKET" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "Linux Networking" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" skb_scrub_packet \- scrub an skb .SH "SYNOPSIS" .HP \w'void\ skb_scrub_packet('u .BI "void skb_scrub_packet(struct\ sk_buff\ *\ " "skb" ", bool\ " "xnet" ");" .SH "ARGUMENTS" .PP \fIskb\fR .RS 4 buffer to clean .RE .PP \fIxnet\fR .RS 4 packet is crossing netns .RE .SH "DESCRIPTION" .PP 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 (\fIxnet\fR == true)\&. We have to clear all information in the skb that could impact namespace isolation\&. .SH "COPYRIGHT" .br