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
_______________________________________________
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to