lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] contrib tcpip ipv6


From: Edgard Lima
Subject: [lwip-devel] contrib tcpip ipv6
Date: Wed, 26 Dec 2012 09:40:02 -0300

Hello guys,

I'm trying to do a very simple task, ping and get html page with
lwip-contrib/ports/unix/proj/unixsim

I'm able to ping both ipv4 and ipv6 address
I'm able to get html from ipv4
But, I'm not able to get html from ipv6

btw: the output of commands follows bellow

I appreciate any help,
Best Regards,
Edgard


I got the ipv6 address by printing, in simhost.c:init_netifs() - just
after netif_create_ip6_linklocal_address
  printf("%04x:",IP6_ADDR_BLOCK1(&netif.ip6_addr[0]));
  printf("%04x:",IP6_ADDR_BLOCK2(&netif.ip6_addr[0]));
  printf("%04x:",IP6_ADDR_BLOCK3(&netif.ip6_addr[0]));
  printf("%04x:",IP6_ADDR_BLOCK4(&netif.ip6_addr[0]));
  printf("%04x:",IP6_ADDR_BLOCK5(&netif.ip6_addr[0]));
  printf("%04x:",IP6_ADDR_BLOCK6(&netif.ip6_addr[0]));
  printf("%04x:",IP6_ADDR_BLOCK7(&netif.ip6_addr[0]));
  printf("%04x",IP6_ADDR_BLOCK8(&netif.ip6_addr[0]));

$ sudo ./simhost -d

$ ifconfig
...
tap0      Link encap:Ethernet  HWaddr ca:18:60:d8:4b:cd
          inet addr:192.168.0.1  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::c818:60ff:fed8:4bcd/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
...

$ ping6 fe80:0000:0000:0000:0302:03ff:fe04:0506 -Itap0
PING fe80:0000:0000:0000:0302:03ff:fe04:0506(fe80::302:3ff:fe04:506)
from fe80::c818:60ff:fed8:4bcd tap0: 56 data bytes
64 bytes from fe80::302:3ff:fe04:506: icmp_seq=1 ttl=255 time=0.319 ms
64 bytes from fe80::302:3ff:fe04:506: icmp_seq=2 ttl=255 time=0.189 ms

$ ping 192.168.0.2
PING 192.168.0.2 (192.168.0.2) 56(84) bytes of data.
64 bytes from 192.168.0.2: icmp_req=1 ttl=255 time=0.425 ms

$ curl -g -6  http://[fe80:0000:0000:0000:0302:03ff:fe04:0506]:80/
curl: (7) Failed to connect to fe80::302:3ff:fe04:506: Invalid argument

$ curl -g  http://192.168.0.2:80
<html>
<head><title>lwIP - A Lightweight TCP/IP Stack</title></head>
...



--
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]