From: John Hodge Date: Sat, 10 Aug 2013 12:08:07 +0000 (+0800) Subject: Modules/IPStack - Added log when adapter is registered X-Git-Tag: rel0.15~285 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=5bffc7fd1aaceee14922fd93a18c7479bfe50e3c;p=tpg%2Facess2.git Modules/IPStack - Added log when adapter is registered --- diff --git a/KernelLand/Modules/IPStack/adapters.c b/KernelLand/Modules/IPStack/adapters.c index 7bf10d56..e121eca4 100644 --- a/KernelLand/Modules/IPStack/adapters.c +++ b/KernelLand/Modules/IPStack/adapters.c @@ -83,7 +83,13 @@ void *IPStack_Adapter_Add(const tIPStack_AdapterType *Type, void *Ptr, const voi gpIP_AdapterList_Last->Next = ret; gpIP_AdapterList_Last = ret; Mutex_Release( &glIP_Adapters ); - + + Log_Log("IPStack", "Adapter %i: %s %02x:%02x:%02x:%02x:%02x:%02x", + ret->Index, Type->Name, + ret->HWAddr[0], ret->HWAddr[1], ret->HWAddr[2], + ret->HWAddr[3], ret->HWAddr[4], ret->HWAddr[5] + ); + // Watch the adapter for incoming packets void *worker = Proc_SpawnWorker(Adapter_int_WatchThread, ret); if(!worker) { diff --git a/KernelLand/Modules/IPStack/include/adapters_int.h b/KernelLand/Modules/IPStack/include/adapters_int.h index c474818a..f4f3c438 100644 --- a/KernelLand/Modules/IPStack/include/adapters_int.h +++ b/KernelLand/Modules/IPStack/include/adapters_int.h @@ -23,7 +23,7 @@ struct sAdapter tVFS_Node Node; - char HWAddr[]; + Uint8 HWAddr[]; }; extern void Adapter_SendPacket(tAdapter *Handle, tIPStackBuffer *Buffer);