Merge pull request #6050 from juhaylinen/emac_ipv6

lwip: enable EMAC IPv6 support
pull/5742/merge
Cruz Monrreal 2018-02-12 10:23:52 -06:00 committed by GitHub
commit 914904d9ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -22,6 +22,7 @@
#include "lwip/tcp.h"
#include "lwip/ip.h"
#include "netif/etharp.h"
#include "lwip/ethip6.h"
static err_t emac_lwip_low_level_output(struct netif *netif, struct pbuf *p)
{
@ -79,6 +80,9 @@ err_t emac_lwip_if_init(struct netif *netif)
#if LWIP_IPV4
netif->output = etharp_output;
#endif /* LWIP_IPV4 */
#if LWIP_IPV6
netif->output_ip6 = ethip6_output;
#endif /* LWIP_IPV6 */
netif->linkoutput = emac_lwip_low_level_output;