Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\filter.h Create Date:2022-07-28 06:07:46
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Compute the linear packet data range [data, data_end) which* will be accessed by various program types (cls_bpf, act_bpf,* lwt, ...). Subsystems allowing direct data access must (!)* ensure that cb[] area can be written to when BPF program is

Proto:static inline void bpf_compute_data_pointers(struct sk_buff *skb)

Type:void

Parameter:

TypeParameterName
struct sk_buff *skb
609  cb = * This is the control buffer. It is free to use for every * layer. Please put your private variables there. If you * want to keep them across layers you have to do a skb_clone() * first. This is owned by whoever has the skb queued ATM.
611  BUILD_BUG_ON - break compile if a condition is true( size of cb > sizeof_field(TYPE, MEMBER)*@TYPE: The structure containing the field of interest*@MEMBER: The field to return the size of(structsk_buff, cb))
612  data_meta = data - skb_metadata_len(skb)
613  data_end = data + skb_headlen(skb)