[ros-diffs] [cgutman] 36962: - Fail earlier when we try to send on a non-connected adapter - This commit dedicated to blight_
cgutman at svn.reactos.org
cgutman at svn.reactos.org
Sat Oct 25 20:11:58 CEST 2008
- Previous message: [ros-diffs] [sginsberg] 36961: - Make serial build for 64 bit -- explicitly cast first parameter to InterlockedCompareExchangePointer to PVOID (not needed, with ros headers, on 32-bit for whatever reason)
- Next message: [ros-diffs] [hyperion] 36963: Visual C++ backend for rbuild (for now just a hacked mingw backend) and related compilation fixes. Just run vcvars.bat from a RosBE console and "make"! modified dll/win32/aclui/guid.c modified dll/win32/aclui/precomp.h modified drivers/bus/acpi/include/actypes.h modified drivers/bus/acpi/include/platform/acenv.h Miscellaneous compilation fixes modified dll/win32/aclui/sidcache.c Damn, forgot to commit this to trunk deleted include/psdk/intrin.h added include/psdk/intrin.h.bak intrin.h is positively not a PSDK header modified lib/3rdparty/mingw/wcrt1.c Port to Visual C++ modified ReactOS-generic.rbuild Use Visual C++'s built-in CRT headers for now modified ReactOS-i386.rbuild Translate global compiler flags to Visual C++ modified tools/rbuild/backend/mingw/mingw.cpp No need for -pipe in Visual C++ Disable precompiled headers for now Enable a whole lotta warnings, and disable a few. Should move this to a response file somewhere modified tools/rbuild/backend/mingw/modulehandler.cpp .a -> .lib .o -> .obj .coff -> .res.obj, fix windres command line to remove the ambiguity ${gcc}/${gpp} -> ${cl}, translate command line options ECHO_CC -> ECHO_CL Pass *_RCFLAGS to gas instead of *_CFLAGS, for now, so that gas only sees includes and defines (in the future we'll have something like *_ASFLAGS) Disabled some gcc-specific code for now modified tools/rbuild/module.cpp .a -> .lib, .o -> .obj, lib<name>.a -> <name>.lib; and why the hell is this in the front-end?
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: cgutman
Date: Sat Oct 25 13:11:57 2008
New Revision: 36962
URL: http://svn.reactos.org/svn/reactos?rev=36962&view=rev
Log:
- Fail earlier when we try to send on a non-connected adapter
- This commit dedicated to blight_
Modified:
branches/aicom-network-fixes/drivers/network/tcpip/datalink/lan.c
Modified: branches/aicom-network-fixes/drivers/network/tcpip/datalink/lan.c
URL: http://svn.reactos.org/svn/reactos/branches/aicom-network-fixes/drivers/network/tcpip/datalink/lan.c?rev=36962&r1=36961&r2=36962&view=diff
==============================================================================
--- branches/aicom-network-fixes/drivers/network/tcpip/datalink/lan.c [iso-8859-1] (original)
+++ branches/aicom-network-fixes/drivers/network/tcpip/datalink/lan.c [iso-8859-1] Sat Oct 25 13:11:57 2008
@@ -628,6 +628,11 @@
("Called( NdisPacket %x, Offset %d, Adapter %x )\n",
NdisPacket, Offset, Adapter));
+ if (Adapter->State != LAN_STATE_STARTED) {
+ ProtocolSendComplete(Context, NdisPacket, NDIS_STATUS_NOT_ACCEPTED);
+ return;
+ }
+
TI_DbgPrint(DEBUG_DATALINK,
("Adapter Address [%02x %02x %02x %02x %02x %02x]\n",
Adapter->HWAddress[0] & 0xff,
@@ -643,7 +648,6 @@
LanChainCompletion( Adapter, NdisPacket );
- if (Adapter->State == LAN_STATE_STARTED) {
switch (Adapter->Media) {
case NdisMedium802_3:
EHeader = (PETH_HEADER)Data;
@@ -713,9 +717,6 @@
* the situation with IRPs. */
if (NdisStatus != NDIS_STATUS_PENDING)
ProtocolSendComplete((NDIS_HANDLE)Context, NdisPacket, NdisStatus);
- } else {
- ProtocolSendComplete((NDIS_HANDLE)Context, NdisPacket, NDIS_STATUS_CLOSED);
- }
}
static NTSTATUS
- Previous message: [ros-diffs] [sginsberg] 36961: - Make serial build for 64 bit -- explicitly cast first parameter to InterlockedCompareExchangePointer to PVOID (not needed, with ros headers, on 32-bit for whatever reason)
- Next message: [ros-diffs] [hyperion] 36963: Visual C++ backend for rbuild (for now just a hacked mingw backend) and related compilation fixes. Just run vcvars.bat from a RosBE console and "make"! modified dll/win32/aclui/guid.c modified dll/win32/aclui/precomp.h modified drivers/bus/acpi/include/actypes.h modified drivers/bus/acpi/include/platform/acenv.h Miscellaneous compilation fixes modified dll/win32/aclui/sidcache.c Damn, forgot to commit this to trunk deleted include/psdk/intrin.h added include/psdk/intrin.h.bak intrin.h is positively not a PSDK header modified lib/3rdparty/mingw/wcrt1.c Port to Visual C++ modified ReactOS-generic.rbuild Use Visual C++'s built-in CRT headers for now modified ReactOS-i386.rbuild Translate global compiler flags to Visual C++ modified tools/rbuild/backend/mingw/mingw.cpp No need for -pipe in Visual C++ Disable precompiled headers for now Enable a whole lotta warnings, and disable a few. Should move this to a response file somewhere modified tools/rbuild/backend/mingw/modulehandler.cpp .a -> .lib .o -> .obj .coff -> .res.obj, fix windres command line to remove the ambiguity ${gcc}/${gpp} -> ${cl}, translate command line options ECHO_CC -> ECHO_CL Pass *_RCFLAGS to gas instead of *_CFLAGS, for now, so that gas only sees includes and defines (in the future we'll have something like *_ASFLAGS) Disabled some gcc-specific code for now modified tools/rbuild/module.cpp .a -> .lib, .o -> .obj, lib<name>.a -> <name>.lib; and why the hell is this in the front-end?
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Ros-diffs
mailing list