diff options
author | Pavel Roskin <proski@gnu.org> | 2005-11-10 13:03:08 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2005-11-10 13:03:08 -0800 |
commit | ac57d04267383829ce817e522e4ebbb39f50ae75 (patch) | |
tree | 5a011cf76a5aa8698d33fbb80655561e31e8ac47 /Documentation | |
parent | fb286bb2990a107009dbf25f6ffebeb7df77f9be (diff) | |
download | kernel_samsung_smdk4412-ac57d04267383829ce817e522e4ebbb39f50ae75.tar.gz kernel_samsung_smdk4412-ac57d04267383829ce817e522e4ebbb39f50ae75.tar.bz2 kernel_samsung_smdk4412-ac57d04267383829ce817e522e4ebbb39f50ae75.zip |
[NET]: Annotate h_proto in struct ethhdr
The protocol field in ethernet headers is big-endian and should be
annotated as such. This patch allows detection of missing ntohs() calls
on the ethernet protocol field when sparse is run with __CHECK_ENDIAN__
defined.
This is a revised version that includes <linux/types.h> so that the
userspace programs are not confused by __be16. Thanks to David S.
Miller.
Signed-off-by: Pavel Roskin <proski@gnu.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions