[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <D53252F45158EF44B1DF124FDC9AF2A35AD9E1FB@FEYNMAN.fokus.fraunhofer.de>
Date: Mon, 17 Feb 2014 19:11:05 +0000
From: "Kretschmer, Mathias" <mathias.kretschmer@...us.fraunhofer.de>
To: David Miller <davem@...emloft.net>
CC: "arend@...adcom.com" <arend@...adcom.com>,
"sw@...onwunderlich.de" <sw@...onwunderlich.de>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"linux-wireless@...r.kernel.org" <linux-wireless@...r.kernel.org>
Subject: RE: [net-next v2 3/3] cfg80211: add MPLS and 802.21 classification
> > Thought so, as well. But it seems that skb->protocol is not properly
> > set when the packet originates from a packet socket. And in our case
> > we cannot set it to a fixed etherType in the bind() call since we use
> > three different etherTypes on the same socket.
>
> So many things break if the skb->protocol isn't set correctly that I would
> consider such SKBs mal-formed.
Agreed.
> You can specify the protocol number in the msghdr passed into the send.
Will take a look. Thx. Need to check if there is also a way to set the protocol number when using TX_RINGs, where we use one send() call to signal the kernel that a bunch of frames (with potentially different protocol numbers) is ready for consumption.
--
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