Does this IP_HDRINCL works for IPv6 also? man page says it works for IPv4, But there is no pointer to IPv6. Does this PF_RAW and IP_HDRINCL work for IPv6. On Fri, 10 Sep 2004 09:54:53 -0400, Neil Horman <nhorman@redhat.com> wrote: > > > 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