Fixes and logging
authorJohn Hodge <tpg@prelude.(none)>
Mon, 18 Jan 2010 05:55:40 +0000 (13:55 +0800)
committerJohn Hodge <tpg@prelude.(none)>
Mon, 18 Jan 2010 05:55:40 +0000 (13:55 +0800)
Kernel/Makefile.BuildNum
Modules/IPStack/ipv4.c
Modules/IPStack/main.c

index fb94758..83ad29a 100644 (file)
@@ -1 +1 @@
-BUILD_NUM = 1369
+BUILD_NUM = 1370
index 282e71b..933b90b 100644 (file)
@@ -74,6 +74,8 @@ int IPv4_SendPacket(tInterface *Iface, tIPv4 Address, int Protocol, int ID, int
        hdr->Destination = Address;
        hdr->HeaderChecksum = htons( IPv4_Checksum(hdr, sizeof(tIPv4Header)) );
        
+       Log("[IPv4 ] Sending packet to %i.%i.%i.%i",
+               Address.B[0], Address.B[1], Address.B[2], Address.B[3]);
        Link_SendPacket(Iface->Adapter, IPV4_ETHERNET_ID, to, bufSize, buf);
        return 1;
 }
index 1a58173..76a18f0 100644 (file)
@@ -192,10 +192,7 @@ int IPStack_IOCtlRoot(tVFS_Node *Node, int ID, void *Data)
        case DRV_IOCTL_LOOKUP:
                if( !CheckString( Data ) )      LEAVE_RET('i', -1);
                LOG("Lookup '%s'", Data);
-               if( Node == &gIP_DriverInfo.RootNode )
-                       tmp = LookupString( (char**)casIOCtls_Root, (char*)Data );
-               else
-                       tmp = LookupString( (char**)casIOCtls_Iface, (char*)Data );
+               tmp = LookupString( (char**)casIOCtls_Root, (char*)Data );
                LEAVE('i', tmp);
                return tmp;
                
@@ -251,10 +248,7 @@ int IPStack_IOCtl(tVFS_Node *Node, int ID, void *Data)
        case DRV_IOCTL_LOOKUP:
                if( !CheckString( Data ) )      LEAVE_RET('i', -1);
                LOG("Lookup '%s'", Data);
-               if( Node == &gIP_DriverInfo.RootNode )
-                       tmp = LookupString( (char**)casIOCtls_Root, (char*)Data );
-               else
-                       tmp = LookupString( (char**)casIOCtls_Iface, (char*)Data );
+               tmp = LookupString( (char**)casIOCtls_Iface, (char*)Data );
                LEAVE('i', tmp);
                return tmp;
        

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