Commit graph

4646 commits

Author SHA1 Message Date
Amine Khaldi 637756876e [KS]
* Use priv.h as a PCH.

svn path=/trunk/; revision=52928
2011-07-27 19:28:40 +00:00
Amine Khaldi 33a5965db9 [SERMOUSE]
* Use sermouse.h as a PCH.

svn path=/trunk/; revision=52927
2011-07-27 19:27:35 +00:00
Amine Khaldi 9add5ea74e [MOUCLASS]
* Use mouclass.h as a PCH.

svn path=/trunk/; revision=52926
2011-07-27 19:25:28 +00:00
Amine Khaldi ef9b793996 [KBDCLASS]
* Use kbdclass.h as a PCH.

svn path=/trunk/; revision=52925
2011-07-27 19:08:34 +00:00
Amine Khaldi c909ff6f02 [I8042PRT]
* Use i8042prt.h as a PCH.

svn path=/trunk/; revision=52924
2011-07-27 18:58:27 +00:00
Amine Khaldi 11b5e19137 [MUP]
* Use mup.h as a PCH.

svn path=/trunk/; revision=52921
2011-07-27 12:41:50 +00:00
Amine Khaldi 4e5b336aaf [FS_REC]
* Use fs_rec.h as a PCH.

svn path=/trunk/; revision=52920
2011-07-27 10:47:25 +00:00
Amine Khaldi bd752471be [EXT2FS]
* Use ext2fsd.h as a PCH.

svn path=/trunk/; revision=52919
2011-07-27 10:11:21 +00:00
Dmitry Gorbachev 4a710e9277 [CDFS]
Workaround for GCC 4.6 optimizer bug (ICE when compiling with -O3).

svn path=/trunk/; revision=52916
2011-07-27 02:37:40 +00:00
Dmitry Gorbachev e2c5e2345a [FASTFAT]
Do not set attribute "normal" on files. Bug #6384.

svn path=/trunk/; revision=52914
2011-07-27 02:36:56 +00:00
Amine Khaldi 20c199a07b [PCI/PCMCIA]
* Use pci.h and as pcmcia.h as PCH's.

svn path=/trunk/; revision=52911
2011-07-26 22:19:36 +00:00
Amine Khaldi 517c803854 [ISAPNP]
* Use isapnp.h as a PCH.

svn path=/trunk/; revision=52910
2011-07-26 22:16:41 +00:00
Cameron Gutman acd4c15b61 [AFD]
- Fix (hopefully) the final disconnect bugs

svn path=/trunk/; revision=52783
2011-07-22 15:11:01 +00:00
Cameron Gutman cb26a7762f [AFD]
- Only trigger the close event if the pending receive list is empty

svn path=/trunk/; revision=52775
2011-07-22 04:31:33 +00:00
Cameron Gutman 2e54713de3 [AFD]
- Wait to signal a graceful receive shutdown until all buffered transport data is read by the application

svn path=/trunk/; revision=52774
2011-07-22 04:11:50 +00:00
Cameron Gutman 78bd31b30d [AFD]
- Fix typos from my previous commit
- Fix another bug with recv() on a datagram socket
- Fix cancellation bugs

svn path=/trunk/; revision=52725
2011-07-18 11:27:01 +00:00
Cameron Gutman 2f00016a72 - Fix copy paste error
svn path=/trunk/; revision=52724
2011-07-18 04:25:08 +00:00
Cameron Gutman e37e340708 [AFD]
- Fix a nasty datagram corruption bug that would result in an uninitialized buffer data being returned instead of packet data if the client read buffer was smaller than the datagram received
- Fix broken user-mode send datagram IRP completion code which didn't set the completion status
- Implement disabling/enabling event select triggers

svn path=/trunk/; revision=52723
2011-07-18 04:21:40 +00:00
Cameron Gutman b38aed5d19 [IP/OSKITTCP]
- Fix a race condition that occurs when the socket is closed by the remote host while waiting on OSKLock to perform a socket operation and results in accessing freed memory

svn path=/trunk/; revision=52718
2011-07-17 17:37:36 +00:00
Cameron Gutman 13f96c816f [AFD]
- Change some debug prints to reduce useless spam

svn path=/trunk/; revision=52702
2011-07-16 19:16:45 +00:00
Cameron Gutman 6195434c6b [TCPIP]
- Fix the broken TDI_QUERY_CONNECTION_INFO implementation
- Perform buffer size checks on TDI_QUERY_MAX_DATAGRAM_INFO requests
[AFD]
- Greatly simplify AfdGetPeerName by using the remote address stored while connecting

svn path=/trunk/; revision=52698
2011-07-16 17:17:08 +00:00
Cameron Gutman 0ef6eb1c56 [AFD]
- Debugging overhaul

svn path=/trunk/; revision=52697
2011-07-16 16:57:07 +00:00
Olaf Siejka 88c567d127 [NPFS]
- Comment out ASSERT, requested by Timo;

svn path=/trunk/; revision=52669
2011-07-12 22:33:53 +00:00
Cameron Gutman d309cc3c56 [TCPIP]
- Increase the default and overflow size of the TCP/IP packet pool to allow for periods of very high network load (such as using BitTorrent or hosting high load services on a network) without dropping outgoing or incoming packets
- Increase the size of the TCP/IP buffer pool for the same reason

svn path=/trunk/; revision=52641
2011-07-11 19:18:34 +00:00
Jérôme Gardou ef65e8cc09 [AFD]
- fix MSVC build

svn path=/trunk/; revision=52605
2011-07-10 13:28:47 +00:00
Cameron Gutman 38990db5fd [AFD]
- Fix broken TDI address functions which were causing subtle memory corruptions, wasted memory, and incorrect or uninitialized values of the address length field
- Remove some buggy code that wasn't used anywhere
- General refactoring to reduce code duplication
- Handle an invalid address type properly

svn path=/trunk/; revision=52600
2011-07-10 08:25:31 +00:00
Cameron Gutman 41406f9697 [AFD]
- Probe and lock pages with the KernelMode access mode instead of Irp->RequestorMode (UserMode) since we're dealing with memory that we allocated in kernel-mode
- Fixes getpeername() and HTTPS browsing in Firefox

svn path=/trunk/; revision=52597
2011-07-10 02:23:12 +00:00
Rafal Harabien 5cec9ddc0e [FRAMEBUF_NEW]
- Fix MSVC build

svn path=/trunk/; revision=52589
2011-07-09 20:33:47 +00:00
Cameron Gutman 62cbe9d8f0 [AFD]
- Fix a desired access bug that totally broke event select
- FILE_ALL_ACCESS is NOT equal to EVENT_ALL_ACCESS

svn path=/trunk/; revision=52563
2011-07-07 23:17:23 +00:00
Cameron Gutman 31774f263a [AFD]
- Signal the event immediately if the select triggers have already been satisfied
- This fixes hangs with applications that wait on the select event before performing any socket operations

svn path=/trunk/; revision=52562
2011-07-07 22:43:35 +00:00
Cameron Gutman fff1ab8feb [AFD]
- Implement IOCTL_AFD_RECV for connection-less sockets
- Fix a parameter check
- Fixes recv() on datagram sockets

svn path=/trunk/; revision=52561
2011-07-07 20:44:47 +00:00
Sir Richard 5b90950500 Patch by Anton Yarotsky:
[SACDRV]: Implement the SAC Channel Input/Output Interface and Getters/Setters.

svn path=/trunk/; revision=52555
2011-07-07 12:03:56 +00:00
Sir Richard 79f36207fc Patch by Anton Yarotsky:
[SACDRV]: Add type definitions for channel VTABLE.
[SACDRV]: Add channel event macros and flags.
[SACDRV]: Add channal lock macros.
[SACDRV]: Add macros for parameter validation.
[SACDRV]: Add macro for pool allocation.
[SACDRV]: Misc fixes.

svn path=/trunk/; revision=52554
2011-07-07 12:02:32 +00:00
Cameron Gutman 14f58265d2 [AFD]
- Rewrite user-mode send IRP handling so send errors get returned to the user properly
- Fixes OskitTCP: ESHUTDOWN/EPIPE debug log spam when a chargen telnet session is terminated by the remote side

svn path=/trunk/; revision=52552
2011-07-07 00:29:30 +00:00
Timo Kreuzer 9659a39678 [NPFS]
Fix 2nd stage pool corruption.
CCBs are organized in a linked list in the corresponding Fcb, which is protected by Fcb->CcbListLock. They are also linked together server <-> client. This way they can be referenced without holding the lock. This lead to a race condition where a CCB's link was modified after the CCB was deleted. Fix this by using a reference counter and adding appropriate functions. Also make use of pool tags.

svn path=/trunk/; revision=52547
2011-07-06 18:14:42 +00:00
Rafal Harabien f6630535f2 [CDFS][FASTFAT][NPFS]
- Fix MSVC warnings

svn path=/trunk/; revision=52546
2011-07-05 13:55:39 +00:00
Cameron Gutman 4e5a783a2f [AFD]
- Move the TdiReceiveDatagram call to WarmSocketForBind like it is done for connects

svn path=/trunk/; revision=52539
2011-07-04 19:13:45 +00:00
Cameron Gutman 54f9acbf0d [AFD]
- Add support for AFD_INFO_INLINING_MODE
- Add support for setting AFD_INFO_RECEIVE_WINDOW_SIZE and AFD_INFO_SEND_WINDOW_SIZE
- None of this is used by our current msafd but mswsock_new uses it

svn path=/trunk/; revision=52538
2011-07-04 18:07:55 +00:00
Cameron Gutman 0e8f87ff82 [MSAFD/AFD]
- Pass the non-blocking information as a boolean (mswsock_new does this too)
[AFD]
- Don't block waiting for a connection to accept on a non-blocking listener

svn path=/trunk/; revision=52537
2011-07-04 17:37:45 +00:00
Cameron Gutman fd6bb26299 - Small fix for my last commit to prevent problems if ExAllocatePool fails
svn path=/trunk/; revision=52534
2011-07-04 15:45:58 +00:00
Cameron Gutman 72fe2efcf8 [AFD]
- Fix FIONREAD for datagram sockets

svn path=/trunk/; revision=52533
2011-07-04 15:35:16 +00:00
Cameron Gutman 00651a94cd [AFD]
- Fix a check so FIONREAD works for accepted sockets too

svn path=/trunk/; revision=52532
2011-07-04 00:30:04 +00:00
Olaf Siejka afc124a8c2 [KDCOM]
Increase KdpStallScaleFactor by a factor of 10. Fixes initial delay of debug output on faster PCs with WinDBG.

svn path=/trunk/; revision=52514
2011-07-03 10:13:53 +00:00
Cameron Gutman ba4ec529be [TCPIP]
- Only wait to bind to a port if INADDR_ANY is specified
- Fixes EADDRNOTAVAIL when running Firefox and ws2_32_winetest sock (which now gets further but still doesn't complete)

svn path=/trunk/; revision=52511
2011-07-03 02:13:57 +00:00
Cameron Gutman afa2c1d664 [AFD]
- We really do need to count the outstanding send IRP in our pending send count (with a detailed explanation of the reason included in the code)
- Wait on an outstanding send IRP to dispatch the disconnect
- When we receive a FIN from the other side and our receive comes back with 0 data, only close receiving on the socket because sending is still legal in this state
- Fixes many bugs on the ws2_32_winetest sock and likely lots of other partial disconnect related stuff
- Retest network related hanging bugs after this please (ftp dir hang is fixed)

svn path=/trunk/; revision=52510
2011-07-03 01:53:10 +00:00
Cameron Gutman 0669007af7 [TCPIP]
- Implement support for timing out disconnects
- Add debug prints for oskittcp errors
[MSAFD]
- Set a disconnect timeout value that actually makes sense (1 second vs 100 nanoseconds)

svn path=/trunk/; revision=52503
2011-07-02 20:36:35 +00:00
Cameron Gutman f828c2431c [AFD]
- Fix a corrupted disconnect timeout pointer being sent to the TDI transport driver

svn path=/trunk/; revision=52502
2011-07-02 20:26:21 +00:00
Cameron Gutman 16ded1b13b [TCPIP]
- Fix binding to an unspecified port on a connect so that it works reliably by asking the TCP library for a free port instead of assuming that one we have is free
- Fix binding to an unspecified port on a listen which previously would result in the address file not having information stored about the port number assigned
- Fix a nasty bug which resulted in us binding to an arbitrary port during a connect even when the client wanted a specific port
- Revert the hack that partially fixed this before

svn path=/trunk/; revision=52501
2011-07-02 15:37:37 +00:00
Cameron Gutman a45e92a406 [AFD]
- Rewrite disconnect to work asynchronously

svn path=/trunk/; revision=52497
2011-07-01 14:31:37 +00:00
Rafal Harabien 47003f6ddb [DDK]
- Fix ScsiPortWriteRegisterUchar prototype

svn path=/trunk/; revision=52495
2011-06-30 22:54:20 +00:00