X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Modules%2FIPStack%2Frouting.c;h=9e298a0ee802bf6fed94c816654bd3a8b4a01da2;hb=2c3ab58b961dea91fdfbf432a7fdf9593c6e7a8e;hp=c37e744148bd299bba08532face17a3298e25a56;hpb=82adac267bc089391397b36413bba210a8e7c68f;p=tpg%2Facess2.git diff --git a/Modules/IPStack/routing.c b/Modules/IPStack/routing.c index c37e7441..9e298a0e 100644 --- a/Modules/IPStack/routing.c +++ b/Modules/IPStack/routing.c @@ -5,7 +5,7 @@ #define DEBUG 0 #define VERSION VER2(0,10) #include -#include +#include #include "ipstack.h" #include "link.h" @@ -348,10 +348,10 @@ tRoute *IPStack_FindRoute(int AddressType, tInterface *Interface, void *Address) { rt = &Interface->Route; // Make sure route is up to date - memcpy(rt->Network, iface->Address, addrSize); + memcpy(rt->Network, Interface->Address, addrSize); memset(rt->NextHop, 0, addrSize); rt->Metric = DEFAUTL_METRIC; - rt->SubnetBits = iface->SubnetBits; + rt->SubnetBits = Interface->SubnetBits; if( IPStack_CompareAddress(AddressType, rt->Network, Address, rt->SubnetBits) ) {