---
name: "skb_padto"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/skb_padto"
---

# skb\_padto(9)

pad an skbuff up to a minimal size

## NAME

skb\_padto - pad an skbuff up to a minimal size

## SYNOPSIS

**int skb\_padto(struct sk\_buff \*** *skb***, unsigned int** *len***);**

## ARGUMENTS

*skb*

buffer to pad

*len*

minimal length

## DESCRIPTION

Pads up a buffer to ensure the trailing bytes exist and are blanked. If the buffer already contains sufficient data it is untouched. Otherwise it is extended. Returns zero on success. The skb is freed on error.

## COPYRIGHT
