Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
- Loading branch information