table of contents
other versions
SKB_PADTO(9) | Linux Networking | SKB_PADTO(9) |
NAME¶
skb_padto - pad an skbuff up to a minimal size
SYNOPSIS¶
int skb_padto(struct sk_buff * skb, unsigned int len);
ARGUMENTS¶
struct sk_buff * skb
buffer to pad
unsigned int 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¶
September 2017 | Kernel Hackers Manual 4.12 |