From: Sriram Raghunathan <sriram.r@nsn.com>
To: netdev@vger.kernel.org
Subject: About Raw socket, vlan + ip header
Date: Tue, 03 Mar 2015 10:44:15 +0530 [thread overview]
Message-ID: <54F54327.7090002@nsn.com> (raw)
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
next reply other threads:[~2015-03-03 5:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-03 5:14 Sriram Raghunathan [this message]
2015-03-03 17:03 ` About Raw socket, vlan + ip header Philippe Troin
2015-03-04 4:36 ` Sriram Raghunathan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=54F54327.7090002@nsn.com \
--to=sriram.r@nsn.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.