[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4B41F292.8080908@trash.net>
Date: Mon, 04 Jan 2010 14:52:18 +0100
From: Patrick McHardy <kaber@...sh.net>
To: Milan Dadok <milan@...ok.name>
CC: uaca@...mni.uv.es, johann.baudy@...-log.net,
linux-kernel@...r.kernel.org, netdev@...r.kernel.org
Subject: Re: [PATCH] 1/1 net: packet: Keep 802.1Q VLAN tag in packet on SOCK_DGRAM
socket - resend
[please don't remove the mailing list from CC]
Milan Dadok wrote:
> Keep 802.1Q VLAN tag on non HW vlan accelerated network card received to SOCK_DGRAM socket.
Quoting from Documentation/networking/packet_mmap.txt:
fd= socket(PF_PACKET, mode, htons(ETH_P_ALL))
where mode is SOCK_RAW for the raw interface were link level
information can be captured or SOCK_DGRAM for the cooked
interface where link level information capture is not
supported and a link level pseudo-header is provided
by the kernel.
So not including the link layer header for SOCK_DGRAM sockets
seems to be the intended behaviour.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists