From: David Miller <davem@davemloft.net>
To: katterjohn@gmail.com
Cc: netdev@vger.kernel.org
Subject: Re: [PATCH] IPv4 raw_hdrincl_nomangle sysctl
Date: Wed, 17 Dec 2008 12:48:41 -0800 (PST) [thread overview]
Message-ID: <20081217.124841.169000877.davem@davemloft.net> (raw)
In-Reply-To: <494964CA.5050109@gmail.com>
From: Kris Katterjohn <katterjohn@gmail.com>
Date: Wed, 17 Dec 2008 14:44:58 -0600
> I've attached a patch to add a net.ipv4.raw_hdrincl_nomangle sysctl (defaults
> to 0) to control whether or not Linux changes the header passed using
> IP_HDRINCL (checksum, IPID, etc). This way it's not required to build a
> special kernel simply to have control over what you send. This was needed,
> for example, in this discussion[1] on Nmap's packet handling.
If you want full control, use AF_PACKET to send your frames.
Yes, this means you'll need to choose the outgoing device and compose
the link level header, but that's the price for control.
Using IPV4 RAW sockets implies you want some help from that
part of the stack, if you don't then simply use direct pure
packet sends via AF_PACKET.
next prev parent reply other threads:[~2008-12-17 20:48 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-17 20:44 [PATCH] IPv4 raw_hdrincl_nomangle sysctl Kris Katterjohn
2008-12-17 20:48 ` David Miller [this message]
2008-12-17 21:11 ` Kris Katterjohn
2008-12-17 22:21 ` Rémi Denis-Courmont
2008-12-18 0:52 ` Herbert Xu
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=20081217.124841.169000877.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=katterjohn@gmail.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 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).