Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:ll_header must have at least hard_header_len allocated

Proto:static inline bool dev_validate_header(const struct net_device *dev, char *ll_header, int len)

Type:bool

Parameter:

TypeParameterName
const struct net_device *dev
char *ll_header
intlen
2973  If Value is more likely to compile time(len >= hard_header_len) Then Return true
2975  If len < min_header_len Then Return false
2978  If Check operation authority Then
2979  memset(ll_header + len, 0, hard_header_len - len)
2980  Return true
2983  If header_ops && validate Then Return validate(ll_header, len)
2986  Return false