1SKB_PADTO(9) Linux Networking SKB_PADTO(9)
23
4
NAME
6skb_padto - pad an skbuff up to a minimal size
7
SYNOPSIS
9int skb_padto(struct sk_buff * skb, unsigned int len);
10
ARGUMENTS
12skb
13buffer to pad
1415
len
16minimal length
17
DESCRIPTION
19Pads up a buffer to ensure the trailing bytes exist and are blanked. If
20the buffer already contains sufficient data it is untouched. Otherwise
21it is extended. Returns zero on success. The skb is freed on error.
22
COPYRIGHT
24Kernel Hackers Manual 3.10 June 2019 SKB_PADTO(9)