skb_copy_bits(9)

skb_copy_bits9

Copy bits from skb to kernel buffer

Usage

int skb_copy_bits(const struct sk_buff * skb, int offset, void * to, int len);

Arguments

skb

source skb

offset

offset in source

to

destination buffer

len

number of bytes to copy

Overview

Copy the specified number of bytes from the source skb to the destination buffer.

CAUTION ! : If its prototype is ever changed, check arch/{*}/net/{*}.S files, since it is called from BPF assembly code.

Releases

3 releases since Debian 7 (Wheezy); the text changed 2 times.

  1. 7
  2. 8
  3. 9

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