Swapnil Nagle wrote:
I have a buffer which contains the IP header. I want to send this
packet onto to the network (can be an IPv4 network or IPv6 network).
Please tell me which type of socket I have to use ( for linux 2.4.x ).
PF_PACKET ?
-- Swapnil.
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Or the older PF_RAW with the IP_HDRINCL socket option set.
Neil
--
/***************************************************
*Neil Horman
*Software Engineer
*Red Hat, Inc.
*nhorman@redhat.com
*gpg keyid: 1024D / 0x92A74FA1
*http://pgp.mit.edu
***************************************************/
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html