netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* sendmsg() and vlan tags
@ 2013-07-26 21:30 Ani Sinha
  2013-07-31  0:29 ` Ani Sinha
  0 siblings, 1 reply; 4+ messages in thread
From: Ani Sinha @ 2013-07-26 21:30 UTC (permalink / raw)
  To: netdev

Hi folks,

We know that (since Linux 3.0) on raw sockets, the recvmsg() api
returns the vlan tag information of the packet in the packet aux data.
I looked at the kernel code and it seems on the TX side, in sendmsg(),
we do not accept the vlan tag data from userland for a raw packet. So
if the userland sends a raw packet using sendmsg() with vlan tag
information in aux data, it will be discarded.

Is my analysis correct?

Cheers,
Ani

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-07-31 21:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-26 21:30 sendmsg() and vlan tags Ani Sinha
2013-07-31  0:29 ` Ani Sinha
2013-07-31  0:56   ` Eric Dumazet
2013-07-31 21:01     ` Ani Sinha

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).