netdev
[Top] [All Lists]

scope id question

To: netdev@xxxxxxxxxxx, Hideaki YOSHIFUJI <yoshfuji@xxxxxxxxxxxxxxxxx>
Subject: scope id question
From: Arkadiusz Miskiewicz <misiek@xxxxxxxxxx>
Date: Sun, 24 Sep 2000 13:19:34 +0200
Sender: owner-netdev@xxxxxxxxxxx
User-agent: Mutt/1.2.4i
Hi,

I have scope_id (ipv6) related question. Is it required (or maybe optional)
to pass sockaddr_in6 structure with filled sin6_scope_id with interface
number/site prefix to connect() when I want to connect to link-local or
site-local address ?

If it's required then (almost) all currently available v6 applications will
not work with {link,site}-local adresses: connect(): Invalid argument.
on 2.4 kernels.

Draft scopedaddr-format says that quering getaddrinfo() with
only link-local address (without scope id/interface name) is ok
so I assume that connect()tion to link local address
(with sin6_scope_id = 0) should be ok for kernel, too.

Bye,

-- 
Arkadiusz Miśkiewicz         http://www.misiek.eu.org/ipv6/
PLD GNU/Linux [IPv6 enabled]    http://www.pld.org.pl/

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