From: Daniel Borkmann Date: Thu, 7 Aug 2014 20:22:47 +0000 (+0200) Subject: netlink: reset network header before passing to taps X-Git-Tag: omap-for-v3.17/fixes-against-rc2~76^2~34 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e48ed883c72e78c5a910f8831ffe90c9b18f0ec;p=pandora-kernel.git netlink: reset network header before passing to taps netlink doesn't set any network header offset thus when the skb is being passed to tap devices via dev_queue_xmit_nit(), it emits klog false positives due to it being unset like: ... [ 124.990397] protocol 0000 is buggy, dev nlmon0 [ 124.990411] protocol 0000 is buggy, dev nlmon0 ... So just reset the network header before passing to the device; for packet sockets that just means nothing will change - mac and net offset hold the same value just as before. Reported-by: Marcel Holtmann Signed-off-by: Daniel Borkmann Signed-off-by: David S. Miller --- Reading git-diff-tree failed