netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* question on raw sockets and source IP address validation
@ 2009-09-24 17:53 Chris Friesen
  2009-09-24 19:26 ` Neil Horman
  0 siblings, 1 reply; 3+ messages in thread
From: Chris Friesen @ 2009-09-24 17:53 UTC (permalink / raw)
  To: Linux Network Development list

Hi all,

Normally when sending a packet on a SOCK_RAW socket the source IP
address is validated against the addresses configured on the host.  If
the address isn't configured, the packet isn't sent.

This can be avoided by setting IP_HDRINCL, but then the app needs to
handle all the fragmentation itself.

Is there any way to bypass the source address validation without IP_HDRINCL?

Thanks,

Chris

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

end of thread, other threads:[~2009-09-24 19:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-24 17:53 question on raw sockets and source IP address validation Chris Friesen
2009-09-24 19:26 ` Neil Horman
2009-09-24 19:37   ` Chris Friesen

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).