X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Modules%2FIPStack%2Fipv6.c;h=16c9bbdc5994f2a5da607304cfb58a9b87ecff9c;hb=f035491c949cb86d92a93fc3d9d033538704256b;hp=31aedcb3e564808b57eebb71082037d55063aae2;hpb=6c5a509b5e14e097ca537c539bc9babe3b8f0c4c;p=tpg%2Facess2.git diff --git a/Modules/IPStack/ipv6.c b/Modules/IPStack/ipv6.c index 31aedcb3..16c9bbdc 100644 --- a/Modules/IPStack/ipv6.c +++ b/Modules/IPStack/ipv6.c @@ -7,6 +7,7 @@ #include "ipv6.h" // === IMPORTS === +extern tInterface *gIP_Interfaces; extern Uint32 IPv4_Netmask(int FixedBits); // === PROTOTYPES === @@ -46,8 +47,11 @@ tInterface *IPv6_GetInterface(tAdapter *Adapter, tIPv6 Address, int Broadcast) tInterface *iface = NULL; Uint32 netmask; - for( iface = Adapter->Interfaces; iface; iface = iface->Next) + for( iface = gIP_Interfaces; iface; iface = iface->Next) { + // Check for this adapter + if( iface->Adapter != Adapter ) continue; + // Skip non-IPv6 Interfaces if( iface->Type != 6 ) continue;