Subject: About Raw socket, vlan + ip header

From: Sriram Raghunathan <[email-masked]>
Date: Tue, 03 Mar 2015 10:44:15 +0530

Hi,

My name is Sriram, have a question about raw socket programming.

Writing a socket program where, I'm trying to construct a ether frame
with vlan id and copying ip header there after. By using PF_PACKET
family.

But when I do a sendto, the ip header is stripped off from the
packet. Could you please let me know how to go about?

Having the ip header is necessary for a software here.

Thanks for the time.

Sriram