netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "w.szukalski" <szukw000@students.uni-mainz.de>
To: <netdev@oss.sgi.com>
Subject: linux-2.4.21 and IPv6: problem solved
Date: Sun, 17 Aug 2003 15:27:25 GMT	[thread overview]
Message-ID: <20030817152725.A2212@keun> (raw)

First I regret: I did not mention the socket creation:

	reader = socket(AF_INET6, SOCK_DGRAM, PF_UNSPEC);
	writer = socket(AF_INET6, SOCK_DGRAM, PF_UNSPEC);

In the meantime I inserted some 'printk(KERN_DEBUG "")' into the
kernel code.

Test program without connect():

linux/net/ipv6/af_inet6.c, inet6_bind():

        /* Binding to link-local address requires an interface */
        if (sk->bound_dev_if == 0) {
            release_sock(sk);
printk(KERN_DEBUG "%s:%d:link-local address without IF:EINVAL\n", 
__FILE__,__LINE__);
            return -EINVAL;
        }
After setting for 'ff02::1':
	read6.sin6_scope_id = 2;

the reader succeeded.

Test program with connect():

linux/net/ipv6/udp.c, udpv6_connect():
	
        /* Connect to link-local address requires an interface */
        if (sk->bound_dev_if == 0)
  {
printk(KERN_DEBUG "%s:%d:sk->bound_dev_if == 0:EINVAL\n", 
__FILE__,__LINE__);
            return -EINVAL;
  }

After setting for 'ff02::1':
	write6.sin6_scope_id = 2;

the writer succeeded.


winfried

             reply	other threads:[~2003-08-17 15:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-17 15:27 w.szukalski [this message]
2003-08-17 14:38 ` linux-2.4.21 and IPv6: problem solved YOSHIFUJI Hideaki / 吉藤英明

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030817152725.A2212@keun \
    --to=szukw000@students.uni-mainz.de \
    --cc=netdev@oss.sgi.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).