netdev
[Top] [All Lists]

Re: What's the problem? Help me!

To: zam_ustc@xxxxxxx
Subject: Re: What's the problem? Help me!
From: <venaas@xxxxxxxxxxx>
Date: Sun, 21 Nov 1999 20:51:25 +0100
Cc: netdev@xxxxxxxxxxxxxxx
In-reply-to: <19991118082309.3385.fmail@263.net>; from zam_ustc@263.net on Thu, Nov 18, 1999 at 08:23:09AM -0000
References: <19991118082309.3385.fmail@263.net>
Sender: owner-netdev@xxxxxxxxxxx
On Thu, Nov 18, 1999 at 08:23:09AM -0000, zam_ustc@xxxxxxx wrote:
> hi,everybody!
> I want to use raw socket to send my ipv6 packets.I want to fill the
> ipv6 header myself. But I cannot succeed. My programme goes as follows:

[...stuff deleted...]

>   This is just a  programme to test the setsockopt() using IP_HDRINCL.
>  The packets I receive is not what I want to send. Why?
>  Thanks for any help.

You're not supposed to use IP_HDRINCL with IPv6, see RFC 2292. It
might help to look at some source code, see for instance the ping
code in the inet6-apps package at http://www.inner.net/pub/ipv6/

Stig

-- 
Duct tape is like the force.  It has a light side, and a dark side, and
it holds the universe together ...
                -- Carl Zwanzig

<Prev in Thread] Current Thread [Next in Thread>