diff options
| author | Simon Goldschmidt <goldsimon@gmx.de> | 2011-08-24 20:00:08 +0200 |
|---|---|---|
| committer | Simon Goldschmidt <goldsimon@gmx.de> | 2011-08-24 20:00:08 +0200 |
| commit | 1494ad391947268e0f5e0db9defc0a5a9ebd9d6c (patch) | |
| tree | 9bcf19a426eadceb84dcb1b9a66b606796026a25 | |
| parent | 2f3fdb4c9718aeb22bda658d0ab88f8bae3a3cd9 (diff) | |
| download | lwip-contrib-1494ad391947268e0f5e0db9defc0a5a9ebd9d6c.tar.gz | |
Added IPv6 support to unix tapif driver: patch by Dan Pomohaci, couldn't test it, yet :-(
| -rw-r--r-- | ports/unix/netif/tapif.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ports/unix/netif/tapif.c b/ports/unix/netif/tapif.c index 49bca65..562acfe 100644 --- a/ports/unix/netif/tapif.c +++ b/ports/unix/netif/tapif.c @@ -52,6 +52,7 @@ #include "lwip/sys.h" #include "netif/etharp.h" +#include "lwip/ethip6.h" #if defined(LWIP_DEBUG) && defined(LWIP_TCPDUMP) #include "netif/tcpdump.h" @@ -300,6 +301,9 @@ tapif_input(struct netif *netif) /* IP or ARP packet? */ case ETHTYPE_IP: case ETHTYPE_ARP: +#if LWIP_IPV6 + case ETHTYPE_IPV6: +#endif /* LWIP_IPV6 */ #if PPPOE_SUPPORT /* PPPoE packet? */ case ETHTYPE_PPPOEDISC: @@ -340,6 +344,9 @@ tapif_init(struct netif *netif) netif->name[0] = IFNAME0; netif->name[1] = IFNAME1; netif->output = etharp_output; +#if LWIP_IPV6 + netif->output_ip6 = ethip6_output; +#endif /* LWIP_IPV6 */ netif->linkoutput = low_level_output; netif->mtu = 1500; /* hardware address length */ |
