Skip to content

Commit 813ae64

Browse files
juhaylinenadbridge
authored andcommitted
lwip: enable EMAC IPv6 support
1 parent 569159b commit 813ae64

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

features/FEATURE_LWIP/lwip-interface/emac_lwip.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#include "lwip/tcp.h"
2323
#include "lwip/ip.h"
2424
#include "netif/etharp.h"
25+
#include "lwip/ethip6.h"
2526

2627
static err_t emac_lwip_low_level_output(struct netif *netif, struct pbuf *p)
2728
{
@@ -79,6 +80,9 @@ err_t emac_lwip_if_init(struct netif *netif)
7980
#if LWIP_IPV4
8081
netif->output = etharp_output;
8182
#endif /* LWIP_IPV4 */
83+
#if LWIP_IPV6
84+
netif->output_ip6 = ethip6_output;
85+
#endif /* LWIP_IPV6 */
8286

8387
netif->linkoutput = emac_lwip_low_level_output;
8488

0 commit comments

Comments
 (0)