lwip-users
[Top][All Lists]
Advanced

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

[lwip-users] Not able to ping on IPV6 address in lwIP 2.0.2


From: Shailesh Korat
Subject: [lwip-users] Not able to ping on IPV6 address in lwIP 2.0.2
Date: Fri, 1 Sep 2017 10:00:54 +0000

I doing below configuration to enable IPv6 in lwIP 2.0.2.

But some how I am not able to ping on link local or global address.


I am using Ethernet.

#define LWIP_IPV6                               1
#define LWIP_IPV6_MLD                      1
 
#define LWIP_IPV6_AUTOCONFIG      1
#define LWIP_ICMP6                             1
#define LWIP_IPV6_NUM_ADDRESSES     6

 

ip_addr_t addr6;
// for setting global address
 
IP6_ADDR_PART(&addr6.u_addr.ip6,0, 0xaa, 0xaa, 0x00, 0x00);
IP6_ADDR_PART(&addr6.u_addr.ip6,1, 0x00, 0x00, 0x00, 0x00);
IP6_ADDR_PART(&addr6.u_addr.ip6,2, 0x00, 0x00, 0x00, 0x00);
IP6_ADDR_PART(&addr6.u_addr.ip6,3, 0x00, 0x00, 0x00, 0x07);

netif->output_ip6 = ethip6_output;

netif_add(netif, ipaddr, netmask, gw,mac_baseaddr,xemacpsif_init,ethernet_input)
 
echo_netif->ip6_autoconfig_enabled = 1;
netif_create_ip6_linklocal_address(echo_netif, 1);
netif_ip6_addr_set_state(echo_netif, 0, IP6_ADDR_TENTATIVE);

ip6_addr_copy(echo_netif->ip6_addr[1].u_addr.ip6, addr6.u_addr.ip6);
netif_ip6_addr_set_state(echo_netif, 1, IP6_ADDR_TENTATIVE);

netif_set_default(echo_netif);
 
netif_set_up(echo_netif);

Is that anything that I missed to enable IPV6 in lwIP 2.0.2?

I want to test ping on IPv6 link local and global address.
Plese any help will be appreciated. 

Regards,

Shailesh Korat


reply via email to

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