From 65796cd82734ffd1716225b4fa17a88749ff763a Mon Sep 17 00:00:00 2001 From: Dirk Ziegelmeier Date: Thu, 29 Sep 2016 12:02:50 +0200 Subject: [PATCH] "Fix" bug #49078: lwip cannot establish ipv6 connection, because of failed to fill ipv6 source address in Neighbor Solicitation Message by adding a note to netif_add not to forget to create a link-local IPv6 address --- src/core/netif.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/core/netif.c b/src/core/netif.c index 9adb50be..3f074813 100644 --- a/src/core/netif.c +++ b/src/core/netif.c @@ -228,9 +228,12 @@ netif_input(struct pbuf *p, struct netif *inp) * to decide whether to forward to ethernet_input() or ip_input(). * In other words, the functions only work when the netif * driver is implemented correctly!\n - * Members of struct netif should be be initialized by the - * netif init function = netif driver (init parameter of this function). - * + * Most members of struct netif should be be initialized by the + * netif init function = netif driver (init parameter of this function).\n + * IPv6: Don't forget to call netif_create_ip6_linklocal_address() after + * setting the MAC address in struct netif.hwaddr + * (IPv6 requires a link-local address). + * * @return netif, or NULL if failed. */ struct netif *