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;
}
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;
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;