Re: socket query

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 13 Sep 2004 11:32:03 +0200
Jeroen Massar <jeroen@unfix.org> wrote:

> On Mon, 2004-09-13 at 11:23, vijay kalkoti wrote:
> > > No it does not.  Such an interface was (purposely) left out of
> > > the ipv6 socket API.
> > > 
> > 
> > Then how to send a packet containing IPv6 header. i.e, user has filled
> > the IPv6 header, and this has to be sent onto network, what is the API
> > in IPv6.
> 
> RAW sockets, these work for both IPv4 and IPv6 and actually anything
> else. Otherwise you can always employ a tap or tun interface to do the
> trick ;)

Not %100 true.  For ipv6, there is no way to provide your own ipv6
headers as on ipv4.  IPV6 lacks hdrinclude which is the mechanism
by which one does that under ipv4.

If you don't need to provide your own IP headers, yes then RAW
works perfectly fine for both protocols.  If you need to provide
your own IPV6 headers, your only option is something like AF_PACKET.
-
: 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

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux