Modules/IPStack - Added log when adapter is registered
authorJohn Hodge <[email protected]>
Sat, 10 Aug 2013 12:08:07 +0000 (20:08 +0800)
committerJohn Hodge <[email protected]>
Sat, 10 Aug 2013 12:08:07 +0000 (20:08 +0800)
KernelLand/Modules/IPStack/adapters.c
KernelLand/Modules/IPStack/include/adapters_int.h

index 7bf10d5..e121eca 100644 (file)
@@ -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) {
index c474818..f4f3c43 100644 (file)
@@ -23,7 +23,7 @@ struct sAdapter
 
        tVFS_Node       Node;
 
-       char    HWAddr[];
+       Uint8   HWAddr[];
 };
 
 extern void    Adapter_SendPacket(tAdapter *Handle, tIPStackBuffer *Buffer);

UCC git Repository :: git.ucc.asn.au