On Wed, 25 Sep 2002, MIP Team wrote:

> Hello,
>  I have encountered a very strange problem. While trying to connect
> (via a SOCK_STREAM socket) to a remote system and supplying its link
> local address (FE80:... ) the connect call failed with perror saying
> that the arguments were invalid.

what's the exact address you used? did you specify an interface?

> However when i added a globally unique IP to the same remote system
> (3ffe::4f) and supplied this address to the client, the same
> client-server program worked perfectly fine.

sounds like you missed the interface.

>  My question is this: are the link local addresses somethings that
> cannot be used for communicating in the berkley API? or is there
> something that I am missing over here?

again, let me state that i think you missed the interface.

        inet6 fe80::200:39ff:fe90:582c%fxp0 prefixlen 64 scopeid 0x1

the interface (..:583c%fxp0) is needed when doing anything over link local
addresses, and you don't have a route set up for the v6 traffic.

        [jan@pustulio jan] {57}$ ping6 fe80::a00:20ff:fec0:ffee%fxp0
        PING6(56=40+8+8 bytes) fe80::200:39ff:fe90:582c%fxp0 -->
        fe80::a00:20ff:fec0:ffee%fxp0
        16 bytes from fe80::a00:20ff:fec0:ffee%fxp0, icmp_seq=0 hlim=64
        time=8.138 ms
        16 bytes from fe80::a00:20ff:fec0:ffee%fxp0, icmp_seq=1 hlim=64
        time=8.095 ms
        ^C
        --- fe80::a00:20ff:fec0:ffee%fxp0 ping6 statistics ---
        2 packets transmitted, 2 packets received, 0% packet loss
        round-trip min/avg/max/std-dev = 8.095/8.117/8.138/0.021 ms

if, on the other hand, i don't include the interface, i shouldn't be able
to hit that address.

a better example is off of lo0, since i have a default route heading out
the fxp0 interface.

        [jan@pustulio jan] {58}$ ping6 fe80::1%lo0
        PING6(56=40+8+8 bytes) fe80::1%lo0 --> fe80::1%lo0
        16 bytes from fe80::1%lo0, icmp_seq=0 hlim=64 time=0.133 ms
        ^C
        --- fe80::1%lo0 ping6 statistics ---
        1 packets transmitted, 1 packets received, 0% packet loss
        round-trip min/avg/max/std-dev = 0.133/0.133/0.133/0.000 ms

        [jan@pustulio jan] {59}$ ping6 fe80::1
        PING6(56=40+8+8 bytes) fe80::200:39ff:fe90:582c%fxp0 --> fe80::1
        ^C
        --- fe80::1 ping6 statistics ---
        5 packets transmitted, 0 packets received, 100% packet loss


it's 3am here. i should be asleep.


---------------------------------------------------------------------
The IPv6 Users Mailing List
Unsubscribe by sending "unsubscribe users" to [EMAIL PROTECTED]

Reply via email to