From: Pavel Roskin Date: Thu, 10 Nov 2005 21:03:08 +0000 (-0800) Subject: [NET]: Annotate h_proto in struct ethhdr X-Git-Tag: v2.6.15-rc1~43^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac57d04267383829ce817e522e4ebbb39f50ae75;p=pandora-kernel.git [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 so that the userspace programs are not confused by __be16. Thanks to David S. Miller. Signed-off-by: Pavel Roskin Signed-off-by: David S. Miller --- Reading git-diff-tree failed