lwip-devel
[Top][All Lists]
Advanced

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

Re: [lwip-devel] contrib tcpip ipv6


From: Edgard Lima
Subject: Re: [lwip-devel] contrib tcpip ipv6
Date: Wed, 26 Dec 2012 11:31:33 -0300

Now got at a least a 'hit' on ./simhost side, but no html response.

please look bellow the print generated by -d (debug) option when I run curl

$ curl   -6 -g http://[fe80:0000:0000:0000:0302:03ff:fe04:0506%2517]/
curl: (7) couldn't connect to host at fe80:0000:0000:0000:0302:03ff:fe04:0506:80

$ sudo ./simhost -d
netif: added interface tp IP addr 192.168.0.2 netmask 255.255.255.0 gw
192.168.0.1
netif: setting default interface tp
ipv6=fe80:0000:0000:0000:0302:03ff:fe04:0506

... after run curl ...

tcpip_thread: PACKET 0x640b88
tcpip_thread: PACKET 0x640b88
TCP header:
+-------------------------------+
|    58220      |       80      | (src port, dest port)
+-------------------------------+
|           3834350476          | (seq no)
+-------------------------------+
|           0000000000          | (ack no)
+-------------------------------+
| 10 |   |000010|     14400     | (hdrlen, flags (SYN
), win)
+-------------------------------+
|    0xc903     |         0     | (chksum, urgp)
+-------------------------------+
+-+-+-+-+-+-+-+-+-+-+-+-+-+- tcp_input: flags SYN
-+-+-+-+-+-+-+-+-+-+-+-+-+-+
tcp_input: no PCB match found, resetting.
tcp_rst: seqno 0 ackno 3834350477.

TIA,
Edgard


On Wed, Dec 26, 2012 at 11:04 AM, Sylvain Rochet <address@hidden> wrote:
> Hi Edgard
>
> On Wed, Dec 26, 2012 at 10:48:21AM -0300, Edgard Lima wrote:
>> Now I got this error:
>>
>> $ curl --interface tap0 -g -6
>> http://[fe80:0000:0000:0000:0302:03ff:fe04:0506]:80/
>> curl: (45) bind failed with errno 22: Invalid argument
>
> Well, curl does not cope well with IPv6 link local.
>
> I found something which works:
>
> 0. Use "ip address show dev $IFNAME" to get the interface -numerical- 
> indentifier.
>
> $ ip a s dev eth1
> 2: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP 
> qlen 1000
>
> 1. curl -g -6 http://[LL-ADDR%25NUMERICAL-ID]/
>
> %25 is an escaped % sign, with numerical identifier 2 it looks like:
>
> $ curl -6 -g http://[fe80:0000:0000:0000:0302:03ff:fe04:0506%252]/
>
> Sylvain
>
> _______________________________________________
> lwip-devel mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/lwip-devel
>



--
Edgard Lima
http://EdgardLima.com
http://www.linkedin.com/in/edgardlima
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]