Compare commits

...

339 Commits

Author SHA1 Message Date
Cameron Gutman
69ead42532 - Add support for manually setting the adapter's network address
svn path=/branches/aicom-network-fixes/; revision=39995
2009-03-12 23:29:23 +00:00
Cameron Gutman
cc2ee40615 - Add a check for an empty NetworkAddress registry entry
svn path=/branches/aicom-network-fixes/; revision=39994
2009-03-12 23:23:57 +00:00
Cameron Gutman
1389b963fb - Add an extra parameter check
svn path=/branches/aicom-network-fixes/; revision=39990
2009-03-12 21:33:21 +00:00
Cameron Gutman
11675dd9e2 - Separate AfdGetSockOrPeerName into AfdGetSockName and AfdGetPeerName
- Rewrite AfdGetPeerName
 - I will change SEH to SEH2 before merging

svn path=/branches/aicom-network-fixes/; revision=39988
2009-03-12 21:14:03 +00:00
Cameron Gutman
80c7dca644 - Use the permanent address as the current address if we can't read the current address from the registry
svn path=/branches/aicom-network-fixes/; revision=39943
2009-03-11 00:51:27 +00:00
Cameron Gutman
fd65c07255 - Fix NdisReadNetworkAddress
- This should increase compatibility with third-party NIC drivers

svn path=/branches/aicom-network-fixes/; revision=39941
2009-03-10 21:43:21 +00:00
Cameron Gutman
477c2a93ac - Read the network address in all cases
svn path=/branches/aicom-network-fixes/; revision=39939
2009-03-10 21:33:36 +00:00
Cameron Gutman
4af8a8a33e - Implement the MiniportReset handler
svn path=/branches/aicom-network-fixes/; revision=39935
2009-03-10 19:54:08 +00:00
Cameron Gutman
d6cef0ab6a - Remove some redundant code
svn path=/branches/aicom-network-fixes/; revision=39924
2009-03-09 23:12:29 +00:00
Cameron Gutman
afe6467db2 - Replace TcpipBugCheck(0) with ASSERT(FALSE) so memtrack doesn't crash release builds
- Remove bug.c and supporting files

svn path=/branches/aicom-network-fixes/; revision=39923
2009-03-09 20:07:33 +00:00
Cameron Gutman
ce6005412d - Release the cancel spin lock before queuing the work item
svn path=/branches/aicom-network-fixes/; revision=39293
2009-02-02 22:36:26 +00:00
Cameron Gutman
501f388fe2 - Call IRPFinish directly instead of through DispDataRequestComplete in DispCancelListenRequest
svn path=/branches/aicom-network-fixes/; revision=38871
2009-01-18 05:51:13 +00:00
Cameron Gutman
65ef1ebecc - Change SatisfyAccept and SatisfyPreAccept to return an NTSTATUS value
- Don't modify an IRP that is already complete (again)

svn path=/branches/aicom-network-fixes/; revision=38870
2009-01-18 05:10:46 +00:00
Cameron Gutman
54179235d0 - More memtrack fixes
svn path=/branches/aicom-network-fixes/; revision=38869
2009-01-18 04:39:45 +00:00
Cameron Gutman
391816b58f - Fix some IRP tracking bugs
- Don't change the status of a previously completed IRP (found by memtrack)

svn path=/branches/aicom-network-fixes/; revision=38867
2009-01-18 04:34:00 +00:00
Cameron Gutman
b55e17bf61 - Fix an NCE state check
svn path=/branches/aicom-network-fixes/; revision=38864
2009-01-18 01:36:06 +00:00
Cameron Gutman
c1ce43adcc - Don't bugcheck if there is already an existing entry
- This likely means that someone freed the memory without memtrack knowing (oskittcp does this sometimes)

svn path=/branches/aicom-network-fixes/; revision=38812
2009-01-17 13:33:59 +00:00
Cameron Gutman
7d40072e9f - Enable IRP tracking
svn path=/branches/aicom-network-fixes/; revision=38806
2009-01-17 02:12:39 +00:00
Cameron Gutman
d2685e02cc - More memtrack fixes
svn path=/branches/aicom-network-fixes/; revision=38805
2009-01-17 01:40:06 +00:00
Cameron Gutman
3987303740 - FreeNdisPacket untracks the packet so we shouldn't do it here
- Fixes a potential bugcheck

svn path=/branches/aicom-network-fixes/; revision=38804
2009-01-17 01:25:49 +00:00
Cameron Gutman
eefeac2bbb - Don't call IPAddInterfaceRoute from IPRegisterInterface
- Now we don't create NCEs with IPv4Address == 0 during adapter binding

svn path=/branches/aicom-network-fixes/; revision=38799
2009-01-16 23:15:41 +00:00
Cameron Gutman
0271252d71 - Don't store a null pointer to the protocol table
svn path=/branches/aicom-network-fixes/; revision=38747
2009-01-13 17:42:01 +00:00
Cameron Gutman
658315006f - Discard unrecognized packets instead of passing them to protocol 0
svn path=/branches/aicom-network-fixes/; revision=38730
2009-01-12 18:07:37 +00:00
Cameron Gutman
a94e638818 - Don't crash if IPRemoveInterfaceRoute is called twice
- Found by memtrack :)

svn path=/branches/aicom-network-fixes/; revision=38729
2009-01-12 18:04:14 +00:00
Cameron Gutman
38cf68ec37 - Set the address type for the broadcast address
- Zero the broadcast address in DispTdiDeleteIPAddress

svn path=/branches/aicom-network-fixes/; revision=38727
2009-01-12 17:46:05 +00:00
Cameron Gutman
6be96a9b59 - Set ConnectionCallInfo and ConnectionReturnInfo to NULL after we free them so they don't get freed again
svn path=/branches/aicom-network-fixes/; revision=38541
2009-01-04 04:10:54 +00:00
Cameron Gutman
f3d5605ffe - The caller has already built RequestConnectionInfo so don't do it again
- Fixes a memory leak

svn path=/branches/aicom-network-fixes/; revision=38539
2009-01-04 02:46:05 +00:00
Cameron Gutman
add7b9c1c8 - Don't free memory allocated with ExAllocateFromNPagedLookasideList by using ExFreePool
svn path=/branches/aicom-network-fixes/; revision=38358
2008-12-26 18:18:04 +00:00
Cameron Gutman
86463b5e92 - Enable memtrack on debug builds only
svn path=/branches/aicom-network-fixes/; revision=38299
2008-12-23 13:28:02 +00:00
Cameron Gutman
9cb8cab9f8 Huge memtrack commit (part 2 of 2)
svn path=/branches/aicom-network-fixes/; revision=38298
2008-12-23 12:40:58 +00:00
Cameron Gutman
18ee68c4a8 Huge memtrack commit (part 1 of 2)
- Add checking for proper tags
 - Enable memtrack by default
 - Display the conflicting entries when an error occurs
 - Remove pool* routines and replace with ex* routines

svn path=/branches/aicom-network-fixes/; revision=38297
2008-12-23 12:39:55 +00:00
Cameron Gutman
5e1ec0921e - Fix compilation of tcpip with MEMTRACK defined
svn path=/branches/aicom-network-fixes/; revision=38257
2008-12-22 02:52:45 +00:00
Cameron Gutman
4d427c823b - Remove a leftover variable
svn path=/branches/aicom-network-fixes/; revision=38205
2008-12-20 22:20:36 +00:00
Cameron Gutman
76410d3926 - Revert r37479
svn path=/branches/aicom-network-fixes/; revision=38200
2008-12-20 20:08:53 +00:00
Cameron Gutman
5fe04de3c3 Check the status of IPSendDatagram
svn path=/branches/aicom-network-fixes/; revision=38158
2008-12-17 20:48:52 +00:00
Cameron Gutman
ce582fdee7 - Fix a memory leak
svn path=/branches/aicom-network-fixes/; revision=38145
2008-12-17 12:15:31 +00:00
Cameron Gutman
07b4acd386 - Don't redo things that have already been done in AddGenericHeaderIPv4
svn path=/branches/aicom-network-fixes/; revision=38144
2008-12-17 12:14:26 +00:00
Cameron Gutman
4049fd9ad8 - Unregister the interface before destroying it
svn path=/branches/aicom-network-fixes/; revision=37993
2008-12-10 01:51:32 +00:00
Cameron Gutman
74435b494d - Remove some hacky double completion code
svn path=/branches/aicom-network-fixes/; revision=37864
2008-12-05 05:12:01 +00:00
Cameron Gutman
aaea0910b9 - Make sure we're in the correct state
svn path=/branches/aicom-network-fixes/; revision=37715
2008-11-29 03:47:58 +00:00
Cameron Gutman
0df840694c - Fix queuing request and reset work items
- Fix a problem that could result in packets being sent in the wrong order

svn path=/branches/aicom-network-fixes/; revision=37712
2008-11-29 00:06:25 +00:00
Cameron Gutman
bd89cce0a8 - Make sure we're not trying to close the file object
svn path=/branches/aicom-network-fixes/; revision=37605
2008-11-24 02:59:37 +00:00
Cameron Gutman
fc05bbdda3 - Merge r37593 which I accidentally committed to trunk
svn path=/branches/aicom-network-fixes/; revision=37594
2008-11-23 16:58:14 +00:00
Cameron Gutman
6c5b42ab39 - Don't store an invalid interrupt in the miniport block if IoConnectInterrupt fails
- Stop using MiniportBusy
 - MiniQueueWorkItem can now be used to properly requeue a failed packet
 - Change MiniDequeueWorkItem to dequeue the FirstPendingPacket if there is one
 - Allocate the Lookahead buffer as needed
 - Break apart ProSend

svn path=/branches/aicom-network-fixes/; revision=37556
2008-11-22 15:47:48 +00:00
Cameron Gutman
d6ddb0ac45 - Fix the status returned to NDIS when it supplies a buffer which is too small
- Set BytesNeeded to the correct value
 - Return the correct status to NDIS if it gives us an invalid lookahead size

svn path=/branches/aicom-network-fixes/; revision=37495
2008-11-21 02:51:48 +00:00
Cameron Gutman
91afdef74c - Queue a work item for each packet instead of looping all packets currently on the work list
- Round trip ping time to the loopback adapter is now about 1 ms

svn path=/branches/aicom-network-fixes/; revision=37479
2008-11-20 00:08:26 +00:00
Cameron Gutman
4583e6bad1 - Acquire the AddrFile lock before removing an irp from the queue
svn path=/branches/aicom-network-fixes/; revision=37478
2008-11-19 23:55:57 +00:00
Cameron Gutman
2b635f7b01 - Use ExInterlocked* routines for list manipulation
- Store the NdisMiniportBlock in the interrupt and use it in the ISR

svn path=/branches/aicom-network-fixes/; revision=37471
2008-11-19 21:49:29 +00:00
Cameron Gutman
fbc17ffe78 - Fail if we aren't in the right state
svn path=/branches/aicom-network-fixes/; revision=37350
2008-11-14 02:43:36 +00:00
Cameron Gutman
a26a058289 - Enable some code that works now
svn path=/branches/aicom-network-fixes/; revision=37349
2008-11-14 02:31:03 +00:00
Cameron Gutman
005be0ac9b - Fix protocol binding
svn path=/branches/aicom-network-fixes/; revision=37348
2008-11-14 00:54:26 +00:00
Cameron Gutman
9fac384cb4 - Split NdisRegisterProtocol so I can reuse the code for NdisReEnumerateProtocolBindings
- Move NdisReEnumerateProtocolBindings into protocol.c
 - Implement NdisReEnumerateProtocolBindings

svn path=/branches/aicom-network-fixes/; revision=37342
2008-11-13 19:52:11 +00:00
Cameron Gutman
dcb2b37340 - Merge r37399 from trunk
svn path=/branches/aicom-network-fixes/; revision=37341
2008-11-13 18:54:11 +00:00
Cameron Gutman
6a61dfb558 - adns_if_noserver is no longer used in adns
svn path=/branches/aicom-network-fixes/; revision=37326
2008-11-12 23:42:33 +00:00
Cameron Gutman
eecb9b0c52 - Add back some ROS-specific stuff
svn path=/branches/aicom-network-fixes/; revision=37325
2008-11-12 23:40:06 +00:00
Cameron Gutman
e3f7b88a4b - Update adns to the latest version
svn path=/branches/aicom-network-fixes/; revision=37321
2008-11-12 22:06:44 +00:00
Cameron Gutman
97aca8752b - Fix CID 1380 and 1382 (Run 2)
svn path=/branches/aicom-network-fixes/; revision=37317
2008-11-12 20:26:29 +00:00
Cameron Gutman
f2bb35de4b - Remove the irp from the queue when it gets canceled
- Initialize BytesReceived to 0

svn path=/branches/aicom-network-fixes/; revision=37299
2008-11-12 01:06:54 +00:00
Cameron Gutman
65506703ac - Fix the parameter check
- Now AfdGetSockOrPeerName should work with Local == FALSE
 - "MSAFD: STATUS_INVALID_PARAMETER" shouldn't fill the debug log anymore when AfdGetSockOrPeerName gets called with Local == FALSE

svn path=/branches/aicom-network-fixes/; revision=37266
2008-11-09 17:39:55 +00:00
Cameron Gutman
b234302487 - We should wait in KernelMode
svn path=/branches/aicom-network-fixes/; revision=37251
2008-11-08 17:16:15 +00:00
Cameron Gutman
01c5e9a750 - Don't hardcode the access mode
svn path=/branches/aicom-network-fixes/; revision=37249
2008-11-08 03:13:30 +00:00
Cameron Gutman
568fb50c5d - Check the status of IPSendDatagram
- Validate the protocol
 - Use the hash value of the NCE address to get the lock
 - Simplify TCPAbortListenForSocket
 - Hardcode the length of the array

svn path=/branches/aicom-network-fixes/; revision=37248
2008-11-07 20:31:34 +00:00
Cameron Gutman
3698628a70 - Close the connection before freeing it
svn path=/branches/aicom-network-fixes/; revision=37247
2008-11-07 19:12:26 +00:00
Cameron Gutman
ce05be31c6 - Fix a memory leak
svn path=/branches/aicom-network-fixes/; revision=37238
2008-11-07 03:46:26 +00:00
Cameron Gutman
689b816633 - Properly free the connection endpoint
svn path=/branches/aicom-network-fixes/; revision=37237
2008-11-07 02:53:46 +00:00
Cameron Gutman
4148565f34 - Patch by hto: Fix a typo
svn path=/branches/aicom-network-fixes/; revision=37197
2008-11-05 03:30:40 +00:00
Cameron Gutman
7cbd7b25b1 - We don't need allowwarnings="true"
svn path=/branches/aicom-network-fixes/; revision=37045
2008-10-29 01:04:58 +00:00
Cameron Gutman
3254f1246a - Set the loopback adapter's broadcast address
svn path=/branches/aicom-network-fixes/; revision=37044
2008-10-28 23:42:32 +00:00
Cameron Gutman
8a659bee0a - Add another validity check
svn path=/branches/aicom-network-fixes/; revision=37029
2008-10-27 20:04:29 +00:00
Cameron Gutman
a7c7d8fcf4 - Fix several port issues
- We don't allocate ports out of range anymore
 - Dhcp doesn't crash when run from the command line anymore

svn path=/branches/aicom-network-fixes/; revision=37010
2008-10-27 04:30:53 +00:00
Cameron Gutman
43328a0c55 - Check that we got the port that we wanted if we specified one
svn path=/branches/aicom-network-fixes/; revision=37009
2008-10-27 03:26:21 +00:00
Cameron Gutman
899740702f - Fix a leak
- Fail if the port is out of range

svn path=/branches/aicom-network-fixes/; revision=37005
2008-10-26 21:44:18 +00:00
Cameron Gutman
c464ab5975 - Simplify port allocation
svn path=/branches/aicom-network-fixes/; revision=37003
2008-10-26 21:33:06 +00:00
Cameron Gutman
ceb06e3213 - Check the status of AddGenericHeaderIPv4
- Fix a leak

svn path=/branches/aicom-network-fixes/; revision=37000
2008-10-26 20:57:26 +00:00
Cameron Gutman
555759c55a - Don't free ConnectionReturnInfo and ConnectionCallInfo because they get freed in the completion routine
- Fixes Abyss Web Server regression

svn path=/branches/aicom-network-fixes/; revision=36973
2008-10-25 23:02:07 +00:00
Cameron Gutman
85d97dd078 - Check the status of OskitTCPBind
svn path=/branches/aicom-network-fixes/; revision=36970
2008-10-25 22:44:56 +00:00
Cameron Gutman
3229860fcc - Fail earlier when we try to send on a non-connected adapter
- This commit dedicated to blight_

svn path=/branches/aicom-network-fixes/; revision=36962
2008-10-25 18:11:57 +00:00
Cameron Gutman
d1fc6c5686 - Return if we aren't connected
svn path=/branches/aicom-network-fixes/; revision=36959
2008-10-25 17:50:53 +00:00
Cameron Gutman
48fcb89aa9 - Move the checks inside of the lock
svn path=/branches/aicom-network-fixes/; revision=36921
2008-10-24 02:56:16 +00:00
Cameron Gutman
478eb663a9 - Check for a NULL NCE
- Mark the IRP pending before queuing it

svn path=/branches/aicom-network-fixes/; revision=36920
2008-10-23 23:23:48 +00:00
Cameron Gutman
5cffb1e7ea - Fix a typo
- Add one more lock that I forgot
 - Fix a possible irp double completion

svn path=/branches/aicom-network-fixes/; revision=36918
2008-10-23 19:44:30 +00:00
Cameron Gutman
2ab512f211 - Add and broaden some locks
- Pass BytesSent to DispDataRequestComplete

svn path=/branches/aicom-network-fixes/; revision=36884
2008-10-22 00:53:00 +00:00
Cameron Gutman
8a131189fa - Revert an unintended change
svn path=/branches/aicom-network-fixes/; revision=36883
2008-10-22 00:16:35 +00:00
Cameron Gutman
30e0ac9a77 - Fix a bug where we may not complete an irp
- Don't complete the irp in DispPrepareIrpForCancel if it has already been canceled
 - Fail if we have a bad transport context
 - Call DispDataRequestComplete if we aren't pending in DispTdiListen and DispTdiConnect

svn path=/branches/aicom-network-fixes/; revision=36882
2008-10-22 00:13:26 +00:00
Cameron Gutman
26154ae577 - Mark the irp pending when needed
svn path=/branches/aicom-network-fixes/; revision=36881
2008-10-21 23:11:33 +00:00
Cameron Gutman
42f68b49dc - Pass the correct status to the completion routine
svn path=/branches/aicom-network-fixes/; revision=36861
2008-10-20 21:12:13 +00:00
Cameron Gutman
0932777f9f - Check status for success
- Change a check

svn path=/branches/aicom-network-fixes/; revision=36860
2008-10-20 21:05:24 +00:00
Cameron Gutman
06f1ca33fa - Change the possible return statuses
svn path=/branches/aicom-network-fixes/; revision=36859
2008-10-20 20:42:09 +00:00
Cameron Gutman
093fefe816 - Add some ASSERTs
svn path=/branches/aicom-network-fixes/; revision=36858
2008-10-20 20:32:53 +00:00
Cameron Gutman
96bf783e97 - Don't start looking at 0
svn path=/branches/aicom-network-fixes/; revision=36857
2008-10-20 20:17:58 +00:00
Cameron Gutman
88388b4a5c - Implement most of MiniResetComplete
svn path=/branches/aicom-network-fixes/; revision=36823
2008-10-19 01:55:16 +00:00
Cameron Gutman
c107275812 - Forgot this file
svn path=/branches/aicom-network-fixes/; revision=36822
2008-10-19 01:33:17 +00:00
Cameron Gutman
7ed8c6efd8 - Implement ProSendPackets (NdisSendPackets)
svn path=/branches/aicom-network-fixes/; revision=36821
2008-10-19 01:30:07 +00:00
Cameron Gutman
9ee1dedde5 - Disable the locking debug prints
svn path=/branches/aicom-network-fixes/; revision=36803
2008-10-18 03:47:13 +00:00
Cameron Gutman
d6fdba1f09 - Remove some empty folders
svn path=/branches/aicom-network-fixes/; revision=36802
2008-10-18 03:28:34 +00:00
Cameron Gutman
2bb2b3df0e - There is no reason to open the registry key if we aren't going to do anything with it
svn path=/branches/aicom-network-fixes/; revision=36798
2008-10-17 19:09:44 +00:00
Cameron Gutman
538f4588e0 - Fix the order that we shutdown things
svn path=/branches/aicom-network-fixes/; revision=36785
2008-10-17 10:29:14 +00:00
Cameron Gutman
cf4bfa6b30 - Kill the thread if KeWaitForSingleObject didn't return STATUS_TIMEOUT
svn path=/branches/aicom-network-fixes/; revision=36784
2008-10-17 10:27:20 +00:00
Cameron Gutman
75bf957daf - Change the trace level on some debug prints so you get debug info when a protocol driver fails to be registered
- Add a debug print

svn path=/branches/aicom-network-fixes/; revision=36755
2008-10-14 23:35:33 +00:00
Cameron Gutman
a0707ecf35 - Fix a crash that happens when DriverEntry doesn't complete successfully
- Return the correct status when LoopRegisterAdapter fails

svn path=/branches/aicom-network-fixes/; revision=36754
2008-10-14 23:15:22 +00:00
Cameron Gutman
45185de53e - Fix branch build
svn path=/branches/aicom-network-fixes/; revision=36742
2008-10-13 01:14:20 +00:00
Cameron Gutman
6532da2ccb - Implement ProtocolResetComplete
- Store the status that gets passed to the completion routine

svn path=/branches/aicom-network-fixes/; revision=36740
2008-10-13 00:55:33 +00:00
Cameron Gutman
b01ceaabdc - Make sure NBAddNeighbor completed successfully
- Return the actual status instead of STATUS_SUCCESS always

svn path=/branches/aicom-network-fixes/; revision=36739
2008-10-13 00:52:25 +00:00
Cameron Gutman
23d01c2592 - Queue the work item directly from MiniQueueWorkItem
- Handle an invalid SelectedMediumIndex separately
 - Cancel the hang timer before calling MiniportHalt
 - Handle a BindAdapter failure

svn path=/branches/aicom-network-fixes/; revision=36738
2008-10-13 00:41:48 +00:00
Cameron Gutman
3d33a2e976 - More work on NDIS 6.0
- Part 2 of X

svn path=/branches/aicom-network-fixes/; revision=36700
2008-10-08 22:25:01 +00:00
Cameron Gutman
1e22a89acc - Some of my work on NDIS 6.0
- Doesn't compile yet
 - Part 1 of X

svn path=/branches/aicom-network-fixes/; revision=36699
2008-10-08 21:17:10 +00:00
Cameron Gutman
cc68183962 - Partially implement ProtocolStatus in tcpip
svn path=/branches/aicom-network-fixes/; revision=36670
2008-10-06 23:19:22 +00:00
Cameron Gutman
a033d44691 - Implement a MiniportShutdown routine for both NIC drivers
svn path=/branches/aicom-network-fixes/; revision=36669
2008-10-06 21:39:39 +00:00
Cameron Gutman
b3443bcbb9 - Call the MiniportShutdown handler at the right time
- Now we call it upon system shutdown and if a bug check occurred

svn path=/branches/aicom-network-fixes/; revision=36667
2008-10-06 18:56:44 +00:00
Cameron Gutman
31b506837b - Add NDIS_OBJECT_HEADER and NDIS_GENERIC_OBJECT (NDIS 6.0)
svn path=/branches/aicom-network-fixes/; revision=36659
2008-10-06 01:40:07 +00:00
Cameron Gutman
30f8dc548c - Only call the ProtocolReceivePacket handler if the protocol registered one
- Remove some unneeded code
 - Immediately send the loopback packet if possible

svn path=/branches/aicom-network-fixes/; revision=36649
2008-10-04 21:55:01 +00:00
Cameron Gutman
38d2e13461 - Properly implement MiniIndicateReceivePacket
svn path=/branches/aicom-network-fixes/; revision=36648
2008-10-04 21:31:36 +00:00
Cameron Gutman
b0e7e05ba2 - Send NDIS_STATUS_RESET_START to all bound protocols before we reset
- Send NDIS_STATUS_RESET_END to all bound protocols after we reset
 - Set MiniportBusy to TRUE if the MiniportReset handler returned NDIS_STATUS_PENDING

svn path=/branches/aicom-network-fixes/; revision=36635
2008-10-03 21:44:12 +00:00
Cameron Gutman
e92e21d4cf - Move the implementation of NdisMIndicateStatus to MiniStatus and call it from NdisMIndicateStatus
- Move the implementation of NdisMIndicateStatusComplete to MiniStatusComplete and call it from NdisMIndicateStatusComplete

svn path=/branches/aicom-network-fixes/; revision=36633
2008-10-03 18:38:40 +00:00
Cameron Gutman
aed6591143 - Implement NdisMIndicateStatusComplete
svn path=/branches/aicom-network-fixes/; revision=36632
2008-10-03 18:16:43 +00:00
Cameron Gutman
c3bf439096 - Implement NdisMIndicateStatus
svn path=/branches/aicom-network-fixes/; revision=36631
2008-10-03 09:49:37 +00:00
Cameron Gutman
177f7f87d8 - Adapter is PLOGICAL_ADAPTER not PNDIS_MINIPORT_BLOCK
svn path=/branches/aicom-network-fixes/; revision=36621
2008-10-02 02:13:19 +00:00
Cameron Gutman
2e295e7d36 - Only call MiniportISR if the miniport driver called NdisMRegisterInterrupt with RequestIsr TRUE
- If RequestIsr is FALSE call the MiniportDisableInterrupt handler

svn path=/branches/aicom-network-fixes/; revision=36620
2008-10-02 02:04:57 +00:00
Cameron Gutman
769eadf101 - Adapter not NdisMiniportBlock is passed to ServiceRoutine
svn path=/branches/aicom-network-fixes/; revision=36619
2008-10-01 23:10:00 +00:00
Cameron Gutman
2197413b36 - Send the packet immediately if the miniport is not busy
- Change KeAcquireSpinLockAtDpcLevel/KeReleaseSpinLockFromDpcLevel to KeAcquireSpinLock/KeReleaseSpinLock since we aren't at DISPATCH_LEVEL
 - Fix some comments

svn path=/branches/aicom-network-fixes/; revision=36594
2008-09-30 00:09:23 +00:00
Cameron Gutman
48af47e451 - Code cleanup
svn path=/branches/aicom-network-fixes/; revision=36593
2008-09-30 00:04:52 +00:00
Cameron Gutman
9536865b31 - Fix a memory leak
svn path=/branches/aicom-network-fixes/; revision=36592
2008-09-30 00:02:53 +00:00
Cameron Gutman
576e6e7961 - Use the proper flags so NDIS knows that our NIC doesn't have hardware loopback support
- Fixes the loopback adapter

svn path=/branches/aicom-network-fixes/; revision=36591
2008-09-29 23:57:32 +00:00
Cameron Gutman
f37a431c9a - Call the ProtocolReceive handler at DISPATCH_LEVEL
svn path=/branches/aicom-network-fixes/; revision=36581
2008-09-28 20:05:38 +00:00
Cameron Gutman
1a255263e6 - Raise IRQL to DISPATCH_LEVEL before using KeAcquireSpinLockAtDpcLevel/KeReleaseSpinLockFromDpcLevel
svn path=/branches/aicom-network-fixes/; revision=36580
2008-09-28 19:58:09 +00:00
Cameron Gutman
1d8b2f1556 - Set MiniportBusy to TRUE if a request is pending
- Hold spin lock when setting MiniportBusy (forgot one from last time)

svn path=/branches/aicom-network-fixes/; revision=36558
2008-09-27 19:54:58 +00:00
Cameron Gutman
63ed3d8b4f - Don't add the protocol to the protocol list if binding failed
svn path=/branches/aicom-network-fixes/; revision=36557
2008-09-27 19:26:17 +00:00
Cameron Gutman
72f9da2665 - Protect MiniportBusy with a spin lock
- Adapter is PLOGICAL_ADAPTER not PNDIS_MINIPORT_BLOCK
 - Make sure memory allocation was successful
 - Cleanup code in ProRequest

svn path=/branches/aicom-network-fixes/; revision=36556
2008-09-27 19:00:47 +00:00
Cameron Gutman
a4c5f0d79c - Call ResetHandler directly
svn path=/branches/aicom-network-fixes/; revision=36552
2008-09-27 18:30:11 +00:00
Cameron Gutman
9826b2ad04 - Queue a work item in MiniReset if the adapter is currently busy
- Handle NdisWorkItemResetRequested in MiniportWorker
 - Remove a fixme

svn path=/branches/aicom-network-fixes/; revision=36551
2008-09-27 18:00:08 +00:00
Cameron Gutman
337a43d553 - Remove dead code
- Fixes coverity error 85

svn path=/branches/aicom-network-fixes/; revision=36538
2008-09-26 18:10:50 +00:00
Cameron Gutman
82e25f4548 - Fix a typo
- Fixes coverity error 388

svn path=/branches/aicom-network-fixes/; revision=36528
2008-09-26 03:43:07 +00:00
Cameron Gutman
0820ee7a4e - Return early if there aren't any packets to be sent
- Fixes coverity error 458

svn path=/branches/aicom-network-fixes/; revision=36527
2008-09-26 03:35:56 +00:00
Cameron Gutman
d9db39f82d - Return early if NBAddNeighbor or RouterAddRoute fails
- Fixes coverity error 389

svn path=/branches/aicom-network-fixes/; revision=36526
2008-09-26 03:23:56 +00:00
Cameron Gutman
9023e12475 - Return early if ProtocolNumber is too large
- Fixes coverity error 600

svn path=/branches/aicom-network-fixes/; revision=36525
2008-09-26 03:12:18 +00:00
Cameron Gutman
d8398cc719 - Fail if From is NULL
- Fixes Coverity error 652

svn path=/branches/aicom-network-fixes/; revision=36524
2008-09-26 03:03:55 +00:00
Cameron Gutman
975e8109a2 - Don't call NdisMSendComplete in MiniportSend
svn path=/branches/aicom-network-fixes/; revision=36501
2008-09-25 03:23:15 +00:00
Cameron Gutman
2f05ba10c9 - Created a dummy nic driver for testing purposes
- Still a work in progress

svn path=/branches/aicom-network-fixes/; revision=36500
2008-09-25 01:02:08 +00:00
Cameron Gutman
df2275e5e3 - Add a debug print
svn path=/branches/aicom-network-fixes/; revision=36496
2008-09-24 22:00:02 +00:00
Cameron Gutman
b4f76ec0bb - MiniportAdapterHandle is PLOGICAL_ADAPTER not PNDIS_MINIPORT_BLOCK
svn path=/branches/aicom-network-fixes/; revision=36495
2008-09-24 21:56:07 +00:00
Cameron Gutman
23c2ae170f - Use timers so the code is much more simple and works better
svn path=/branches/aicom-network-fixes/; revision=36442
2008-09-23 23:59:43 +00:00
Cameron Gutman
0cabe4ffdb - Check for miniport hangs at the appropriate time
- Call MiniReset if required

svn path=/branches/aicom-network-fixes/; revision=36441
2008-09-23 20:54:02 +00:00
Cameron Gutman
be3ff9cec9 - Uncomment the stubbed CheckForHang handler
svn path=/branches/aicom-network-fixes/; revision=36440
2008-09-23 20:48:43 +00:00
Cameron Gutman
63c5133b1c - Set CheckForHangSeconds to a default value of 2 if it wasn't set in MiniportInitialize
svn path=/branches/aicom-network-fixes/; revision=36438
2008-09-23 20:17:59 +00:00
Cameron Gutman
2d8a1d38bb - Set CheckForHangSeconds
svn path=/branches/aicom-network-fixes/; revision=36437
2008-09-23 20:10:35 +00:00
Cameron Gutman
8f1a94b39b - Call the CheckForHang handler at DISPATCH_LEVEL
- Implement MiniReset

svn path=/branches/aicom-network-fixes/; revision=36433
2008-09-23 18:44:17 +00:00
Cameron Gutman
faa10907ca - Implement MiniCheckForHang
svn path=/branches/aicom-network-fixes/; revision=36432
2008-09-23 18:24:19 +00:00
Cameron Gutman
274d2f50e8 - We must check that NdisWrapperHandle is non-NULL to see if NdisMInitializeWrapper succeeded
svn path=/branches/aicom-network-fixes/; revision=36430
2008-09-23 18:07:26 +00:00
Cameron Gutman
521d849d25 - Add some IRQL checks for ne2000 like those in r36406
svn path=/branches/aicom-network-fixes/; revision=36408
2008-09-23 04:53:59 +00:00
Cameron Gutman
751bd9fb71 - Change NdisAcquireSpinLock to NdisDprAcquireSpinLock because we are running at DISPATCH_LEVEL
svn path=/branches/aicom-network-fixes/; revision=36407
2008-09-23 04:39:31 +00:00
Cameron Gutman
be9e073137 - Add some IRQL checks
- Fix some comments

svn path=/branches/aicom-network-fixes/; revision=36406
2008-09-23 04:29:30 +00:00
Cameron Gutman
e6330c4049 - Set the InFlightRequest to NULL when we complete
svn path=/branches/aicom-network-fixes/; revision=36381
2008-09-21 14:40:28 +00:00
Cameron Gutman
86e1d71934 - There are 4 in flight requests not 3
svn path=/branches/aicom-network-fixes/; revision=36371
2008-09-21 12:31:14 +00:00
Cameron Gutman
24402d079c - Remove more useless code
svn path=/branches/aicom-network-fixes/; revision=36364
2008-09-21 03:21:34 +00:00
Cameron Gutman
252f7c71da - Set MiniportBusy to TRUE in MiniDequeueWorkItem instead of MiniQueueWorkItem
- Fail if another miniport request is still in progress

svn path=/branches/aicom-network-fixes/; revision=36363
2008-09-21 02:35:23 +00:00
Cameron Gutman
e6386dff73 - Remove some unneeded code
- Set MiniportBusy to TRUE if MiniDoRequest returns NDIS_STATUS_PENDING

svn path=/branches/aicom-network-fixes/; revision=36362
2008-09-21 01:55:16 +00:00
Cameron Gutman
36a831e55c - Only call MiniSendComplete if ProIndicatePacket didn't return NDIS_STATUS_PENDING
svn path=/branches/aicom-network-fixes/; revision=36359
2008-09-20 23:08:56 +00:00
Cameron Gutman
08288ba535 - Revert r36337 because the callers don't depend on the memory being zeroed
svn path=/branches/aicom-network-fixes/; revision=36358
2008-09-20 21:29:31 +00:00
Cameron Gutman
b7872654ed - The handle passed to MiniRequestComplete, NdisMQueryInformationComplete, and NdisMSetInformationComplete is the Adapter not the MiniportBlock
- Set MiniportBusy to FALSE in all the completion routines
 - Set MiniportBusy to TRUE in MiniQueueWorkItem
 - Only requeue the packet if it's a serialized miniport that returned NDIS_STATUS_RESOURCES
 - Hold the spin lock when requeuing the packet

svn path=/branches/aicom-network-fixes/; revision=36356
2008-09-20 17:10:30 +00:00
Cameron Gutman
5faf248d96 - Zero the memory after we allocate it
svn path=/branches/aicom-network-fixes/; revision=36337
2008-09-20 00:31:02 +00:00
Cameron Gutman
d8dfacc28d - Queue the packet again if we currently don't have enough resources to process it
svn path=/branches/aicom-network-fixes/; revision=36336
2008-09-19 23:51:26 +00:00
Cameron Gutman
5620a8ecff - Initialize the callback record before calling KeRegisterBugCheckCallback so NdisMRegisterAdapterShutdownHandler should work now
svn path=/branches/aicom-network-fixes/; revision=36335
2008-09-19 23:41:28 +00:00
Cameron Gutman
face815dd6 - Code cleanup
- Set Status to NDIS_STATUS_NOT_SUPPORTED if we don't support the parameter type

svn path=/branches/aicom-network-fixes/; revision=36334
2008-09-19 23:18:12 +00:00
Cameron Gutman
f0e952b4b6 - Store the current thread
svn path=/branches/aicom-network-fixes/; revision=36333
2008-09-19 23:16:29 +00:00
Cameron Gutman
0b7d92c4b3 - Fail if TCPSocket doesn't complete successfully
svn path=/branches/aicom-network-fixes/; revision=36311
2008-09-19 04:38:25 +00:00
Cameron Gutman
249fa88dd2 - Add the adapter to the adapter list only after it is bound to the IP layer
svn path=/branches/aicom-network-fixes/; revision=36310
2008-09-19 04:18:59 +00:00
Cameron Gutman
56d37e6da3 - Exit the loop when we find the matching Bucket
- Make sure we allocated Bucket
 - Remove a useless if
 - Return OSK_ENOBUFS if we can't allocate SleepingThread

svn path=/branches/aicom-network-fixes/; revision=36309
2008-09-19 02:12:55 +00:00
Cameron Gutman
15d003fb13 - Only continue sending fragments if the last one succeeded
svn path=/branches/aicom-network-fixes/; revision=36308
2008-09-19 00:40:13 +00:00
Cameron Gutman
340fdfa3ff - Add the spin locks back that I removed
svn path=/branches/aicom-network-fixes/; revision=36256
2008-09-15 12:54:53 +00:00
Cameron Gutman
cfcc5a1f53 - Queue a work item for all packets
- Now I can add the spin locks back that I removed

svn path=/branches/aicom-network-fixes/; revision=36255
2008-09-15 12:44:16 +00:00
Cameron Gutman
72d8191116 - Use NDIS_GET_PACKET_STATUS to get the real status for the packet
- Set MiniportBusy to FALSE if Send/SendPacket didn't return NDIS_STATUS_PENDING

svn path=/branches/aicom-network-fixes/; revision=36250
2008-09-14 21:17:44 +00:00
Cameron Gutman
e43328b916 - Pass the status we were given to the completion routine
svn path=/branches/aicom-network-fixes/; revision=36249
2008-09-14 20:47:22 +00:00
Cameron Gutman
20165883fc - Merge r35555, r35575, r35576, and r36243 into my branch
svn path=/branches/aicom-network-fixes/; revision=36248
2008-09-14 20:01:36 +00:00
Cameron Gutman
479f0c8d37 - Release the spin lock before calling NCETimeout
- Should fix the crash Wax had when using the kvmnet driver

svn path=/branches/aicom-network-fixes/; revision=36215
2008-09-14 06:05:47 +00:00
Cameron Gutman
3c6651a64e - Call a serialized miniport's Send/SendPackets handler at DISPATCH_LEVEL
svn path=/branches/aicom-network-fixes/; revision=36212
2008-09-14 05:30:06 +00:00
Cameron Gutman
91ac8bce6e - Change our method of queuing work items so we don't leak anymore
svn path=/branches/aicom-network-fixes/; revision=36211
2008-09-14 05:16:32 +00:00
Cameron Gutman
ac40a36ce9 - Queue a work item to do our work that was previously done in MiniportDpc so SendHandler gets called at the correct IRQL
svn path=/branches/aicom-network-fixes/; revision=36206
2008-09-14 04:02:04 +00:00
Cameron Gutman
86ca4446aa - Call KeAcquireSpinLockAtDpcLevel instead of KeAcquireSpinLock when possible
- Don't hold the spin lock as long in MiniportDpc

svn path=/branches/aicom-network-fixes/; revision=36198
2008-09-13 19:00:32 +00:00
Cameron Gutman
bd9013b5ae - Read the maximum packets that the driver allows to be sent at one time
- We don't use it yet

svn path=/branches/aicom-network-fixes/; revision=36195
2008-09-13 18:33:16 +00:00
Cameron Gutman
e1800f7c53 - unimplemented -> implemented
svn path=/branches/aicom-network-fixes/; revision=36193
2008-09-13 17:07:30 +00:00
Cameron Gutman
70f9713881 - Implement NdisDprFreePacket
- Implement NdisDprFreePacketNonInterlocked

svn path=/branches/aicom-network-fixes/; revision=36192
2008-09-13 16:40:45 +00:00
Cameron Gutman
8bea43b223 - Implement NdisDprAllocatePacketNonInterlocked
svn path=/branches/aicom-network-fixes/; revision=36191
2008-09-13 16:36:43 +00:00
Cameron Gutman
08c2fa4ccb - Implement NdisDprAllocatePacket
svn path=/branches/aicom-network-fixes/; revision=36190
2008-09-13 16:33:23 +00:00
Cameron Gutman
c875c6ffac - Hints from MSDN show that we should use MmGetSystemAddressForMdl instead of MmGetMdlVirtualAddress
svn path=/branches/aicom-network-fixes/; revision=36186
2008-09-13 12:45:26 +00:00
Cameron Gutman
e96b8c3c83 - Fix a possible crash
svn path=/branches/aicom-network-fixes/; revision=36185
2008-09-13 12:22:45 +00:00
Cameron Gutman
cba47cf99e - Call MiniportTransferData at DISPATCH_LEVEL
svn path=/branches/aicom-network-fixes/; revision=36169
2008-09-12 17:59:45 +00:00
Cameron Gutman
526d298a08 - Revert r36141 and r36102
- They cause a strange mIRC crash

svn path=/branches/aicom-network-fixes/; revision=36151
2008-09-12 03:53:09 +00:00
Cameron Gutman
d4fe4b7aa4 - We must call MiniDequeueWorkItem while holding a spin lock
svn path=/branches/aicom-network-fixes/; revision=36150
2008-09-12 03:06:31 +00:00
Cameron Gutman
b26b70ddba - Call ProtocolRequestComplete at the correct IRQL
- Call ProtocolSendComplete at the correct IRQL

svn path=/branches/aicom-network-fixes/; revision=36149
2008-09-12 02:58:08 +00:00
Cameron Gutman
151277c30a - Set Status to STATUS_SUCCESS
svn path=/branches/aicom-network-fixes/; revision=36148
2008-09-12 02:43:05 +00:00
Cameron Gutman
dc4e15ac9b - Call MiniportQueryInformation at the correct IRQL
- Call MiniportSetInformation at the correct IRQL
 - Call QueryInformationComplete at the correct IRQL
 - Call SetInformationComplete at the correct IRQL
 - All IRQLs verified by MSDN

svn path=/branches/aicom-network-fixes/; revision=36147
2008-09-11 20:57:51 +00:00
Cameron Gutman
f56eb2a402 - Make sure we successfully allocated memory
svn path=/branches/aicom-network-fixes/; revision=36144
2008-09-11 19:43:19 +00:00
Cameron Gutman
03e6d425e5 - Fix 2 typos
svn path=/branches/aicom-network-fixes/; revision=36143
2008-09-11 19:15:35 +00:00
Cameron Gutman
8e9ec3d648 - Nicer solution for the problem fixed in r36102
svn path=/branches/aicom-network-fixes/; revision=36141
2008-09-11 18:17:11 +00:00
Cameron Gutman
4b72cb5e0f - We must call MiniQueueWorkItem while holding a spin lock
svn path=/branches/aicom-network-fixes/; revision=36134
2008-09-11 09:37:54 +00:00
Cameron Gutman
acb347a4eb - Fix 3 handle leaks
- Fix 2 memory leaks

svn path=/branches/aicom-network-fixes/; revision=36115
2008-09-10 09:34:28 +00:00
Cameron Gutman
48c47e07e6 - Return the correct status
svn path=/branches/aicom-network-fixes/; revision=36107
2008-09-10 07:43:05 +00:00
Cameron Gutman
8cf22aef05 - Don't call IoCompleteRequest while holding a spin lock because it can cause deadlocks
svn path=/branches/aicom-network-fixes/; revision=36102
2008-09-10 04:59:12 +00:00
Cameron Gutman
e39210e30a - Remove the spin locks around NdisSend because it causes a crash in kvmnet
svn path=/branches/aicom-network-fixes/; revision=36101
2008-09-10 03:54:46 +00:00
Cameron Gutman
55a1919cbf - Set ContextSize when we allocate it
- Remove the context size check so we always create a new one now
 - Now we succeed regardless of the current context size

svn path=/branches/aicom-network-fixes/; revision=36100
2008-09-10 02:52:22 +00:00
Cameron Gutman
16fabd560b - Fix a memory leak
svn path=/branches/aicom-network-fixes/; revision=36094
2008-09-09 19:47:12 +00:00
Cameron Gutman
8b9d9a57c7 - Release the spin lock before returning
svn path=/branches/aicom-network-fixes/; revision=36075
2008-09-09 00:58:44 +00:00
Cameron Gutman
dc08835ad7 - Remove the adapter from the global adapter list if we fail
svn path=/branches/aicom-network-fixes/; revision=36074
2008-09-09 00:17:02 +00:00
Cameron Gutman
128aeae543 - Make sure we set a failure status when we fail so we don't complete with NDIS_STATUS_SUCCESS when we really failed
svn path=/branches/aicom-network-fixes/; revision=36071
2008-09-08 23:42:14 +00:00
Cameron Gutman
8ea40ee79e - Return the actual status not NDIS_STATUS_SUCCESS always
svn path=/branches/aicom-network-fixes/; revision=36070
2008-09-08 23:27:52 +00:00
Cameron Gutman
23787cbeb2 - Make sure we successfully allocated memory
svn path=/branches/aicom-network-fixes/; revision=36042
2008-09-07 19:38:21 +00:00
Cameron Gutman
f410547dd1 - Return NDIS_STATUS_RESOURCES not NDIS_STATUS_NOT_ACCEPTED when we fail to allocate memory
svn path=/branches/aicom-network-fixes/; revision=36009
2008-09-06 21:45:23 +00:00
Cameron Gutman
38a8193915 - Forgot this file from r36006
svn path=/branches/aicom-network-fixes/; revision=36008
2008-09-06 21:42:58 +00:00
Cameron Gutman
0658669a1e - Check status from RawIPStartup, UDPStartup, and TCPStartup
svn path=/branches/aicom-network-fixes/; revision=36007
2008-09-06 21:36:55 +00:00
Cameron Gutman
2044568591 - Make PortsStartup return NTSTATUS so we can make sure memory allocated succeeded
- Change the callers to check the return status

svn path=/branches/aicom-network-fixes/; revision=36006
2008-09-06 21:30:09 +00:00
Cameron Gutman
4c942b62d6 - Fix a code typo
svn path=/branches/aicom-network-fixes/; revision=36004
2008-09-06 20:52:54 +00:00
Cameron Gutman
36b4bed9c8 - Use NewBuf instead of Data so we actually use the buffer we allocate
svn path=/branches/aicom-network-fixes/; revision=36003
2008-09-06 20:42:10 +00:00
Cameron Gutman
b732baa632 - Return NDIS_STATUS_RESOURCES not STATUS_NO_MEMORY
svn path=/branches/aicom-network-fixes/; revision=36002
2008-09-06 20:37:06 +00:00
Cameron Gutman
0d461c29a8 - Return TDI_NO_RESOURCES instead of TDI_INVALID_REQUEST when we can't allocate memory
svn path=/branches/aicom-network-fixes/; revision=36001
2008-09-06 20:27:56 +00:00
Cameron Gutman
6132fa321c - Code cleanup
svn path=/branches/aicom-network-fixes/; revision=36000
2008-09-06 20:18:42 +00:00
Cameron Gutman
85672737e6 - Handle AllocatedResources and AllocatedResourcesTranslated separately
- Fix a memory leak
 - Fix a handle leak

svn path=/branches/aicom-network-fixes/; revision=35964
2008-09-05 19:51:18 +00:00
Cameron Gutman
16427a1482 - Fix cleanup code
- We could possibly end up there with a NULL FileHandleObject and return a garbage FileHandle or crash
 - Now we always return a NULL FileHandle when we fail and free FileHandleObject if it has been allocated

svn path=/branches/aicom-network-fixes/; revision=35946
2008-09-04 19:08:08 +00:00
Cameron Gutman
4ff5fc5caa - Fix 2 memory leaks
- Set ParameterValue to NULL on failure

svn path=/branches/aicom-network-fixes/; revision=35944
2008-09-04 18:42:49 +00:00
Cameron Gutman
14d8dfbd90 - Accept STATUS_SUCCESS also as done in config.c
svn path=/branches/aicom-network-fixes/; revision=35919
2008-09-03 23:37:09 +00:00
Cameron Gutman
8d622c2821 - Fail if PrepareARPPacket returned NULL
- Fixes another possible crash

svn path=/branches/aicom-network-fixes/; revision=35899
2008-09-02 23:47:05 +00:00
Cameron Gutman
f398b8d6eb - Move the NULL check immediately after the memory is allocated
svn path=/branches/aicom-network-fixes/; revision=35898
2008-09-02 23:36:46 +00:00
Cameron Gutman
fe270e9c66 - Fail if we didn't successfully add the header
svn path=/branches/aicom-network-fixes/; revision=35897
2008-09-02 23:26:32 +00:00
Cameron Gutman
d75a5f4d04 - Set UDPInitialized to FALSE at the end of UDPShutdown
svn path=/branches/aicom-network-fixes/; revision=35896
2008-09-02 23:15:28 +00:00
Cameron Gutman
26b1ba0f02 - Initially set NdisProtocolHandle to NULL
svn path=/branches/aicom-network-fixes/; revision=35889
2008-09-02 18:38:42 +00:00
Cameron Gutman
87315e4ac4 - STATUS_SUCCESS -> NDIS_STATUS_SUCCESS
svn path=/branches/aicom-network-fixes/; revision=35868
2008-09-01 22:59:04 +00:00
Cameron Gutman
ae2f6e5543 - Set Status
svn path=/branches/aicom-network-fixes/; revision=35867
2008-09-01 22:48:03 +00:00
Cameron Gutman
480dd52090 - Initially set Packet to NULL
svn path=/branches/aicom-network-fixes/; revision=35856
2008-09-01 13:12:34 +00:00
Cameron Gutman
bbf9cb252c - Don't return NDIS_STATUS_SUCCESS when we really failed
svn path=/branches/aicom-network-fixes/; revision=35849
2008-09-01 03:58:34 +00:00
Cameron Gutman
1443f6833b - Initially set PoolHandle, ConfigurationHandle, KeyHandle, and Filter to NULL
- Initially set PortOffset to 0
 - Fix 4 memory leaks
 - Remove a useless if

svn path=/branches/aicom-network-fixes/; revision=35848
2008-09-01 03:13:35 +00:00
Cameron Gutman
954aed91f2 - Change the status to STATUS_SUCCESS if TdiReceive returns STATUS_PENDING
svn path=/branches/aicom-network-fixes/; revision=35787
2008-08-30 03:29:41 +00:00
Cameron Gutman
1cc8981800 - Check if TdiBuildNullConnectionInfo completed successfully
- Add a comment
 - Fail if we can't allocate Qelt

svn path=/branches/aicom-network-fixes/; revision=35786
2008-08-30 02:53:20 +00:00
Cameron Gutman
b8a0800ce6 - FCB->State gets set to SOCKET_STATE_CONNECTED in MakeSocketIntoConnection
svn path=/branches/aicom-network-fixes/; revision=35785
2008-08-30 02:40:26 +00:00
Cameron Gutman
60899277f8 - Check if MakeSocketIntoConnection succeeded
- Check if TaCopyTransportAddress succeeded

svn path=/branches/aicom-network-fixes/; revision=35784
2008-08-30 02:30:27 +00:00
Cameron Gutman
17c1d9b828 - Check that we successfully allocated memory
- Return TDI_NO_RESOURCES instead of STATUS_NO_MEMORY

svn path=/branches/aicom-network-fixes/; revision=35783
2008-08-30 02:04:30 +00:00
Cameron Gutman
ac9f7a78b0 - Returning STATUS_BUFFER_OVERFLOW is ok also since we're only trying to get DriverKeyLength
svn path=/branches/aicom-network-fixes/; revision=35761
2008-08-29 14:33:42 +00:00
Cameron Gutman
b4b79146c7 - Revert my last commit
- Looks like this is meant to fail
 - I added a comment so no one does this again

svn path=/branches/aicom-network-fixes/; revision=35745
2008-08-29 04:23:10 +00:00
Cameron Gutman
cf392f00f6 - Fix a code typo resulting in calls to MiQueryResources to return early
svn path=/branches/aicom-network-fixes/; revision=35744
2008-08-29 03:59:25 +00:00
Cameron Gutman
8fa497277d - Free the address we've previously allocated if needed
svn path=/branches/aicom-network-fixes/; revision=35743
2008-08-29 02:19:16 +00:00
Cameron Gutman
976fe9f031 - Set Handle to NULL so we don't try to close it later
svn path=/branches/aicom-network-fixes/; revision=35741
2008-08-29 01:08:55 +00:00
Cameron Gutman
906dfdd979 - Don't handle OSK_EINPROGRESS since TCPTranslateError already has done the conversion to STATUS_PENDING
svn path=/branches/aicom-network-fixes/; revision=35714
2008-08-27 21:45:45 +00:00
Cameron Gutman
92073dfb72 - Fix many memory leaks
- Complete with the correct status

svn path=/branches/aicom-network-fixes/; revision=35656
2008-08-26 02:57:12 +00:00
Cameron Gutman
d4296ce6a5 - Fix a memory leak
svn path=/branches/aicom-network-fixes/; revision=35653
2008-08-26 00:47:22 +00:00
Cameron Gutman
abd660f2dc - Revert my whole ASSERT mess
- This fixes Qemu

svn path=/branches/aicom-network-fixes/; revision=35611
2008-08-24 19:53:16 +00:00
Cameron Gutman
0a84b51976 - Apply the same change in my branch as I did to trunk in r35602
svn path=/branches/aicom-network-fixes/; revision=35610
2008-08-24 19:28:25 +00:00
Cameron Gutman
7a30e67498 - Add another missing PollReeval
svn path=/branches/aicom-network-fixes/; revision=35609
2008-08-24 19:21:41 +00:00
Cameron Gutman
63ba865297 - Revert r35601
- This should always be set if FCB->CurrentThread is non-NULL

svn path=/branches/aicom-network-fixes/; revision=35607
2008-08-24 18:32:19 +00:00
Cameron Gutman
d70ad469a8 - Set FCB->Locked to TRUE after we increment the lock count
svn path=/branches/aicom-network-fixes/; revision=35601
2008-08-24 16:20:14 +00:00
Cameron Gutman
a66142aff9 - Add some missing calls to PollReeval
- Move an existing PollReeval to always be called

svn path=/branches/aicom-network-fixes/; revision=35597
2008-08-24 13:56:35 +00:00
Cameron Gutman
e4a04351f2 - Fail if DatagramRecv->Address is NULL
svn path=/branches/aicom-network-fixes/; revision=35596
2008-08-24 13:25:19 +00:00
Cameron Gutman
963205e8b8 - Set *ConnectionInfo to NULL if we can't allocate memory for ConnInfo
svn path=/branches/aicom-network-fixes/; revision=35589
2008-08-24 02:55:26 +00:00
Cameron Gutman
4f54a68190 - Skip ObReferenceObjectByHandle if HandleArray[i].Handle is NULL
- Fail if ObReferenceObjectByHandle didn't succeed
 - Remove a bad ASSERT I added in my last commit

svn path=/branches/aicom-network-fixes/; revision=35583
2008-08-24 01:34:17 +00:00
Cameron Gutman
98c2a1ea67 - Fail if MmProbeAndLockPages doesn't succeed
- Fail if IoAllocateMdl returns NULL
 - Add some ASSERTs

svn path=/branches/aicom-network-fixes/; revision=35582
2008-08-24 01:09:48 +00:00
Cameron Gutman
e2c0738526 - Make sure IPAddr is non-NULL
- Change STATUS_UNSUCCESSFUL to STATUS_INVALID_PARAMETER

svn path=/branches/aicom-network-fixes/; revision=35579
2008-08-23 22:06:49 +00:00
Cameron Gutman
055139fc07 - Code cleanup
- Make sure FCB->RemoteAddress is non-NULL

svn path=/branches/aicom-network-fixes/; revision=35578
2008-08-23 21:53:37 +00:00
Cameron Gutman
2d966ffcfb - Make sure FCB->AddressFrom is non-NULL
svn path=/branches/aicom-network-fixes/; revision=35577
2008-08-23 21:41:10 +00:00
Cameron Gutman
fb0a6601f9 - More STATUS_UNSUCCESSFUL to STATUS_INVALID_PARAMETER changes
svn path=/branches/aicom-network-fixes/; revision=35538
2008-08-22 19:35:20 +00:00
Cameron Gutman
f337da0bfb - Handle STATUS_INVALID_PARAMETER
svn path=/branches/aicom-network-fixes/; revision=35537
2008-08-22 19:30:33 +00:00
Cameron Gutman
e233f4f784 - Return a more accurate status (STATUS_INVALID_PARAMETER) than STATUS_UNSUCCESSFUL when a parameter is NULL
svn path=/branches/aicom-network-fixes/; revision=35536
2008-08-22 19:26:30 +00:00
Cameron Gutman
3b1ae0bb37 - Replace MmMapLockedPages with MmGetSystemAddressForMdlSafe
- Add a check to UnlockRequest
 - Enclose MmProbeAndLockPages in SEH
 - Fixes bug 3672

svn path=/branches/aicom-network-fixes/; revision=35507
2008-08-21 14:46:03 +00:00
Cameron Gutman
3b40e9b047 - Reapply r35481
svn path=/branches/aicom-network-fixes/; revision=35486
2008-08-20 19:06:43 +00:00
Cameron Gutman
df19533df7 - Fix IRP cancellation issues
- Ping doesn't hang anymore

svn path=/branches/aicom-network-fixes/; revision=35485
2008-08-20 18:50:26 +00:00
Cameron Gutman
67fae61a27 - Revert 35477-35481
svn path=/branches/aicom-network-fixes/; revision=35484
2008-08-20 18:46:38 +00:00
Cameron Gutman
9b492699af - Fix handling of cancelled IRPs
svn path=/branches/aicom-network-fixes/; revision=35481
2008-08-20 17:29:01 +00:00
Cameron Gutman
6159e6d129 - Don't forget about ConnectIrp (This fix was lost in the merge)
- Don't destroy the same socket twice
 - Don't unlock the same socket twice
 - Don't destroy a socket with pending IRPs

svn path=/branches/aicom-network-fixes/; revision=35480
2008-08-20 14:56:12 +00:00
Cameron Gutman
3def13f731 - Fix build
svn path=/branches/aicom-network-fixes/; revision=35479
2008-08-20 14:48:42 +00:00
Cameron Gutman
a796846871 - The rest of the merge
- This will most likely need fixing later

svn path=/branches/aicom-network-fixes/; revision=35478
2008-08-20 14:43:33 +00:00
Cameron Gutman
8b269440fd - Reapply arty's datagram cancellation work
- Part 1 of 3

svn path=/branches/aicom-network-fixes/; revision=35477
2008-08-20 14:21:08 +00:00
Cameron Gutman
fcdbf0c9d5 - Move LockBuffers
- Remove a duplicate debug print

svn path=/branches/aicom-network-fixes/; revision=35469
2008-08-20 01:42:12 +00:00
Cameron Gutman
95efddbf54 - Use FCB->Connection.Object instead of FCB->AddressFile.Object
- Spotted by Arty

svn path=/branches/aicom-network-fixes/; revision=35468
2008-08-20 01:10:13 +00:00
Cameron Gutman
5c1039783c - Fix a bug that resulted in the status getting changed if TdiQueryInformation failed
svn path=/branches/aicom-network-fixes/; revision=35467
2008-08-19 23:50:41 +00:00
Cameron Gutman
0afe589112 - Use MmGetSystemAddressForMdlSafe instead of MmMapLockedPages
- Noticed by Alex

svn path=/branches/aicom-network-fixes/; revision=35466
2008-08-19 23:44:11 +00:00
Cameron Gutman
717ec21981 - Fix a memory leak
svn path=/branches/aicom-network-fixes/; revision=35463
2008-08-19 21:45:08 +00:00
Cameron Gutman
735fdd1782 - Make sure we have an mdl and a buffer
svn path=/branches/aicom-network-fixes/; revision=35457
2008-08-19 17:45:53 +00:00
Cameron Gutman
2a199d0cb2 - SEHify LockRequest
- Free everything and return if MmMapLockedPages fails

svn path=/branches/aicom-network-fixes/; revision=35454
2008-08-19 16:23:01 +00:00
Cameron Gutman
ea2d464b14 - MmMapLockedPages takes KPROCESSOR_MODE not LOCK_OPERATION as the second parameter
svn path=/branches/aicom-network-fixes/; revision=35453
2008-08-19 16:06:36 +00:00
Cameron Gutman
1c3484cdd1 - Make sure we don't complete with STATUS_SUCCESS if MmMapLockedPages fails
- Move and enable MmUnlockPages and IoFreeMdl

svn path=/branches/aicom-network-fixes/; revision=35446
2008-08-19 04:36:05 +00:00
Cameron Gutman
34a1b59e0a - Release the spin lock
svn path=/branches/aicom-network-fixes/; revision=35441
2008-08-19 00:19:18 +00:00
Cameron Gutman
6b5a88dd52 - Use the correct ioctl
svn path=/branches/aicom-network-fixes/; revision=35439
2008-08-18 23:41:23 +00:00
Cameron Gutman
e57331851c - Don't hardcode the Ioctl
svn path=/branches/aicom-network-fixes/; revision=35438
2008-08-18 23:35:32 +00:00
Cameron Gutman
bd043fd1cf - Call MmProbeAndLockPages for SysMdl
svn path=/branches/aicom-network-fixes/; revision=35431
2008-08-18 14:00:27 +00:00
Cameron Gutman
6634c6a919 - Handle STATUS_FILE_CLOSED
svn path=/branches/aicom-network-fixes/; revision=35420
2008-08-18 00:05:05 +00:00
Cameron Gutman
8b67a0b644 - Change STATUS_UNSUCCESSFUL to STATUS_FILE_CLOSED
- Move the Irp->Cancel check after SocketAcquireStateLock to fix a possible crash
 - Change STATUS_INVALID_PARAMETER to STATUS_FILE_CLOSED
 - Move SocketAcquireStateLock in front of the check for a NULL return from LockRequest to prevent another possible crash

svn path=/branches/aicom-network-fixes/; revision=35419
2008-08-17 22:12:31 +00:00
Cameron Gutman
ec037e4d9d - Call SocketStateUnlock before returning
- Don't complete the IRP again in the completion routine

svn path=/branches/aicom-network-fixes/; revision=35418
2008-08-17 21:48:09 +00:00
Cameron Gutman
e070cbeb39 - Add debug prints for failure statuses
svn path=/branches/aicom-network-fixes/; revision=35404
2008-08-17 08:17:03 +00:00
Cameron Gutman
54a02c3ea8 - Make sure we successfully allocated ConnectionReturnInfo and ConnectionCallInfo
- Make sure ObReferenceObjectByHandle was successful

svn path=/branches/aicom-network-fixes/; revision=35398
2008-08-16 21:16:41 +00:00
Cameron Gutman
05a4dffa6e - Move SocketAcquireStateLock out of SEH
svn path=/branches/aicom-network-fixes/; revision=35393
2008-08-16 15:06:12 +00:00
Cameron Gutman
3f184e689d - Move MmUnlockPages to the proper place (still commented out though)
svn path=/branches/aicom-network-fixes/; revision=35391
2008-08-16 14:23:58 +00:00
Cameron Gutman
0c3f9f9d05 - Fix another memory leak
svn path=/branches/aicom-network-fixes/; revision=35385
2008-08-16 11:59:54 +00:00
Cameron Gutman
19d28c4deb - Raise the maximum IRQL that this routine is callable to APC_LEVEL
svn path=/branches/aicom-network-fixes/; revision=35363
2008-08-16 00:28:33 +00:00
Cameron Gutman
6696dcbc45 - Fix a memory leak that occurs when AfdSetContext is called with a buffer that is too small
- Properly return STATUS_BUFFER_TOO_SMALL when the buffer passed is too small

svn path=/branches/aicom-network-fixes/; revision=35358
2008-08-15 18:26:52 +00:00
Cameron Gutman
3f603adf26 - Fix a typo resulting in any call to AfdGetSockOrPeerName with Local set to FALSE to return STATUS_NO_MEMORY
svn path=/branches/aicom-network-fixes/; revision=35356
2008-08-15 18:14:55 +00:00
Cameron Gutman
76f11722e8 - Fix a possible crash
- Fix 2 memory leaks

svn path=/branches/aicom-network-fixes/; revision=35343
2008-08-14 17:13:11 +00:00
Cameron Gutman
5cf6890ee7 - Always set Irp->IoStatus.Status
- Clear the cancel routine only when completing

svn path=/branches/aicom-network-fixes/; revision=35340
2008-08-14 15:14:32 +00:00
Cameron Gutman
e8c5f099c5 - Handle STATUS_BUFFER_TOO_SMALL
- Handle STATUS_NO_MEMORY

svn path=/branches/aicom-network-fixes/; revision=35320
2008-08-13 22:33:48 +00:00
Cameron Gutman
e5e4035c8d - Set Buf to NULL so we don't try to free it again later
svn path=/branches/aicom-network-fixes/; revision=35306
2008-08-13 14:53:22 +00:00
Cameron Gutman
4afbde3127 - Revert r35279 due to some odd problems with UnlockBuffers when completing
svn path=/branches/aicom-network-fixes/; revision=35298
2008-08-13 04:40:39 +00:00
Cameron Gutman
e07f679c75 - Don't crash if we are already freed
- Some code frees the buffers right after an operation fails which is fine

svn path=/branches/aicom-network-fixes/; revision=35297
2008-08-13 02:55:05 +00:00
Cameron Gutman
90f6b947b8 - Move memory freeing to ListenComplete
svn path=/branches/aicom-network-fixes/; revision=35296
2008-08-13 00:19:34 +00:00
Cameron Gutman
70fd5e3314 - Check for FCB->TdiDeviceName.Buffer before attempting to access it
- Fix 2 more memory leaks

svn path=/branches/aicom-network-fixes/; revision=35292
2008-08-12 20:03:53 +00:00
Cameron Gutman
8f5e892fbf - Free the MDL on failure
- Use _SEH_YIELD

svn path=/branches/aicom-network-fixes/; revision=35291
2008-08-12 18:34:07 +00:00
Cameron Gutman
b50e9e3146 - Make sure both FCB->Recv.Window and FCB->Send.Window were created before returning STATUS_SUCCESS
- Make sure MakeSocketIntoConnection() completed successfully
 - Make sure WarmSocketForConnection() completed successfully
 - Don't continue if TdiBuildNullConnectionInfoInPlace() fails
 - SEHify TdiBuildConnectionInfoInPlace()
 - Make sure we have a non-NULL TargetAddress before calling TdiSendDatagram()

svn path=/branches/aicom-network-fixes/; revision=35290
2008-08-12 18:18:03 +00:00
Cameron Gutman
5d9c71ed13 - Fix another memory leak
svn path=/branches/aicom-network-fixes/; revision=35289
2008-08-12 15:27:15 +00:00
Cameron Gutman
f0d01cf5aa - Don't forget to call UnlockBuffers()
- Use Irp->IoStatus.Information instead of RecvReq->BufferArray[0].len

svn path=/branches/aicom-network-fixes/; revision=35283
2008-08-12 03:20:52 +00:00
Cameron Gutman
bfa1b80f5f - Don't continue if locking failed
svn path=/branches/aicom-network-fixes/; revision=35282
2008-08-11 22:44:24 +00:00
Cameron Gutman
ce24947336 - Only call LockBuffers() if we must
svn path=/branches/aicom-network-fixes/; revision=35279
2008-08-11 15:32:45 +00:00
Cameron Gutman
4873208286 - Set the MDL we just freed to NULL so we don't try to free it again later
svn path=/branches/aicom-network-fixes/; revision=35274
2008-08-11 14:38:17 +00:00
Cameron Gutman
d6823d52cf - Move check for NULL FCB before trying to access it
- Should fix a random crash I got when testing my web server

svn path=/branches/aicom-network-fixes/; revision=35260
2008-08-10 11:23:05 +00:00
Cameron Gutman
55ca1bda96 - Uncomment TdiQueryAddress and get it to compile
svn path=/branches/aicom-network-fixes/; revision=35251
2008-08-09 23:44:44 +00:00
Cameron Gutman
98c4b74c0d - Uncomment TdiQueryInformationEx and make it compile
svn path=/branches/aicom-network-fixes/; revision=35250
2008-08-09 23:25:46 +00:00
Cameron Gutman
1364b76b4d - Fix another memory leak
svn path=/branches/aicom-network-fixes/; revision=35246
2008-08-09 19:03:37 +00:00
Cameron Gutman
9ff6170e6f - Remove ASSERTs and return STATUS_INVALID_PARAMETER
- Should fix Christoph's problem with ROS crashing when closing emule

svn path=/branches/aicom-network-fixes/; revision=35189
2008-08-08 17:50:00 +00:00
Cameron Gutman
6c645ac736 - Add some ASSERTs
svn path=/branches/aicom-network-fixes/; revision=35188
2008-08-08 16:56:51 +00:00
Cameron Gutman
9e8d40a05b - Remove duplicate code
svn path=/branches/aicom-network-fixes/; revision=35186
2008-08-08 16:17:06 +00:00
Cameron Gutman
ede9f79604 - Revert my lib changes until I figure out some problems with them
svn path=/branches/aicom-network-fixes/; revision=35155
2008-08-07 02:40:45 +00:00
Cameron Gutman
5345dbe2ae - Don't check Status so we don't quit looping after the first unsuccessful IRP
svn path=/branches/aicom-network-fixes/; revision=35152
2008-08-06 22:19:53 +00:00
Cameron Gutman
8856c4a5a2 - Use Status instead of IOSB.Status in some cases
svn path=/branches/aicom-network-fixes/; revision=35129
2008-08-05 16:32:56 +00:00
Cameron Gutman
1fccbafaed - Close the handle on failure
svn path=/branches/aicom-network-fixes/; revision=35116
2008-08-05 01:46:59 +00:00
Cameron Gutman
69ef129571 - Fix one more memory leak
- Note: The reason the network stack stops functioning occasionally is because it runs out of resources not because ReactOS crashes which is why I'm tracking down memory leaks

svn path=/branches/aicom-network-fixes/; revision=35114
2008-08-04 21:06:39 +00:00
Cameron Gutman
107921e042 - Forgot to include one fix in my last commit
svn path=/branches/aicom-network-fixes/; revision=35110
2008-08-04 17:11:04 +00:00
Cameron Gutman
c15c351f5d - Fix more memory leaks
svn path=/branches/aicom-network-fixes/; revision=35107
2008-08-04 16:46:53 +00:00
Cameron Gutman
ac4f9f984d - Fix more leaks
svn path=/branches/aicom-network-fixes/; revision=35106
2008-08-04 16:20:08 +00:00
Cameron Gutman
e3383af168 - Revert the rest of r35080
- The memory is freed in AfdAccept

svn path=/branches/aicom-network-fixes/; revision=35102
2008-08-04 15:19:23 +00:00
Cameron Gutman
23c7498a26 - Revert part of r35080
svn path=/branches/aicom-network-fixes/; revision=35101
2008-08-04 15:16:44 +00:00
Cameron Gutman
23cb7f30fa - Fix 2 more memory leaks
svn path=/branches/aicom-network-fixes/; revision=35080
2008-08-03 18:49:30 +00:00
Cameron Gutman
376173f679 - Fail if we can't allocate memory
- Fix a memory leak
 - Also resize the buffer on STATUS_BUFFER_OVERFLOW

svn path=/branches/aicom-network-fixes/; revision=35076
2008-08-03 18:02:10 +00:00
Cameron Gutman
fa8410c89c - Don't continue if OpenRegistryKey fails
svn path=/branches/aicom-network-fixes/; revision=35073
2008-08-03 17:27:16 +00:00
Cameron Gutman
6286fe5bb6 - Handle STATUS_REMOTE_NOT_LISTENING
svn path=/branches/aicom-network-fixes/; revision=35062
2008-08-03 09:52:22 +00:00
Cameron Gutman
221590c8f7 - Handle STATUS_INSUFFICIENT_RESOURCES
svn path=/branches/aicom-network-fixes/; revision=35061
2008-08-03 09:40:13 +00:00
Cameron Gutman
93abe83cd2 - Check to see if the ZwEnumerateKey call succeeded with the larger buffer and continue if possible
svn path=/branches/aicom-network-fixes/; revision=35055
2008-08-03 05:10:53 +00:00
Cameron Gutman
31bbc55cec - Add some more debug prints for memory allocation/freeing
svn path=/branches/aicom-network-fixes/; revision=35054
2008-08-03 03:05:39 +00:00
Cameron Gutman
312bb6657e - We must assign values to Irp->IoStatus.Status and Irp->IoStatus.Information because the function that called us might not call UnlockAndMaybeComplete to assign those values
svn path=/branches/aicom-network-fixes/; revision=35053
2008-08-03 01:38:05 +00:00
Cameron Gutman
f470e856b1 - Set Irp->IoStatus.Information to 0
- Set Irp->IoStatus.Status before returning

svn path=/branches/aicom-network-fixes/; revision=35046
2008-08-02 20:53:32 +00:00
Cameron Gutman
ca91433bbc - We must complete the IRP if we fail because the function we were called from expects the IRP to be completed after this call
- Return the correct status

svn path=/branches/aicom-network-fixes/; revision=35038
2008-08-02 14:52:19 +00:00
Cameron Gutman
dfd8d6b0c0 - Fix a bug where Irp->IoStatus wasn't set if Status == STATUS_PENDING
svn path=/branches/aicom-network-fixes/; revision=35024
2008-08-02 03:51:17 +00:00
Cameron Gutman
80709d7858 - Make sure to set Irp->IoStatus.Status to the correct status
svn path=/branches/aicom-network-fixes/; revision=35023
2008-08-02 03:17:53 +00:00
Cameron Gutman
928b81e97f - These should no longer be needed now that TDI doesn't give back invalid IRPs
- I'll look into the canceling issue later

svn path=/branches/aicom-network-fixes/; revision=35014
2008-08-01 17:21:52 +00:00
Cameron Gutman
606652ca08 * Fix many memory leaks by unmapping MDL pages when UnlockAndMaybeComplete and LostSocket are called with Status != STATUS_PENDING
This change should probably be merged to trunk before 0.3.6

svn path=/branches/aicom-network-fixes/; revision=35001
2008-08-01 12:19:18 +00:00
Cameron Gutman
0940a5b301 * Properly handle STATUS_TIMEOUT
* Don't crash if STATUS_END_OF_FILE and a NULL ReturnedBytes are passed
 * Handle STATUS_INVALID_CONNECTION

svn path=/branches/aicom-network-fixes/; revision=34997
2008-08-01 12:06:19 +00:00
Art Yerkes
c501d8112c Create a branch for network fixes.
svn path=/branches/aicom-network-fixes/; revision=34994
2008-08-01 11:32:26 +00:00
18153 changed files with 3187 additions and 862523 deletions

View File

Before

Width:  |  Height:  |  Size: 9.9 KiB

After

Width:  |  Height:  |  Size: 9.9 KiB

View File

Before

Width:  |  Height:  |  Size: 39 KiB

After

Width:  |  Height:  |  Size: 39 KiB

View File

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

Some files were not shown because too many files have changed in this diff Show More