Commit Graph

132 Commits

Author SHA1 Message Date
hidnplayr
eae21c4be3 Increased the max socket buffer size from 32k to 256k, for better network throughput on slower links.
git-svn-id: svn://kolibrios.org@4959 a494cfbc-eb01-0410-851d-a64ba20cac60
2014-05-28 23:00:53 +00:00
hidnplayr
06df103c1c Fixed some debug output in ICMP_input procedure.
git-svn-id: svn://kolibrios.org@4892 a494cfbc-eb01-0410-851d-a64ba20cac60
2014-04-24 17:34:09 +00:00
Marat Zakiyanov (Mario79)
da8c332884 Added the tag "Revision: XXXX" in some kernel files, to form the right number of revision at boot (blue boot screen).
git-svn-id: svn://kolibrios.org@4850 a494cfbc-eb01-0410-851d-a64ba20cac60
2014-04-17 21:19:45 +00:00
hidnplayr
5ae0511a52 Fixed stack corruption on SOCKET_num_to_ptr error.
git-svn-id: svn://kolibrios.org@4574 a494cfbc-eb01-0410-851d-a64ba20cac60
2014-02-18 19:42:18 +00:00
hidnplayr
bd53b16a76 Bugfix for SOCKET_alloc.
git-svn-id: svn://kolibrios.org@4535 a494cfbc-eb01-0410-851d-a64ba20cac60
2014-01-27 10:27:38 +00:00
hidnplayr
91ae4fdcf8 More bugfixes for SOCKET_notify.
git-svn-id: svn://kolibrios.org@4528 a494cfbc-eb01-0410-851d-a64ba20cac60
2014-01-25 13:14:23 +00:00
hidnplayr
6e6f7a23d3 Bugfix in SOCKET_notify.
git-svn-id: svn://kolibrios.org@4527 a494cfbc-eb01-0410-851d-a64ba20cac60
2014-01-25 12:48:59 +00:00
hidnplayr
730070df44 Bugfix in SOCKET_block
git-svn-id: svn://kolibrios.org@4520 a494cfbc-eb01-0410-851d-a64ba20cac60
2014-01-23 14:37:18 +00:00
hidnplayr
74965458e3 Bugfix for #4510
git-svn-id: svn://kolibrios.org@4511 a494cfbc-eb01-0410-851d-a64ba20cac60
2014-01-22 15:09:05 +00:00
hidnplayr
006f9694b3 Make network queue spinlock protected instead of mutex-protected or worse: a combination of both..
git-svn-id: svn://kolibrios.org@4510 a494cfbc-eb01-0410-851d-a64ba20cac60
2014-01-22 14:08:37 +00:00
hidnplayr
9a1dad1ca1 Disabled socket cleanup after process ends (until deadlock is fixed..)
git-svn-id: svn://kolibrios.org@4436 a494cfbc-eb01-0410-851d-a64ba20cac60
2014-01-10 08:07:54 +00:00
hidnplayr
c42c7651f7 Disabled verbose network debug output.
git-svn-id: svn://kolibrios.org@4388 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-12-19 21:39:14 +00:00
hidnplayr
5e80cb25b3 Fixed typo in tcp_input.inc
git-svn-id: svn://kolibrios.org@4387 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-12-19 21:31:51 +00:00
hidnplayr
e2ec33712e TCP: correctly close connection.
git-svn-id: svn://kolibrios.org@4366 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-12-15 21:27:22 +00:00
hidnplayr
fe46d27eaf Bugfix in SOCKET_close for TCP
git-svn-id: svn://kolibrios.org@4365 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-12-15 18:30:19 +00:00
hidnplayr
bf755d6cbd TCP: advertise correct window, small updates and bugfixes
git-svn-id: svn://kolibrios.org@4347 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-12-13 12:20:53 +00:00
hidnplayr
5e7711d4f6 Bugfix in PAWS algorithm for TCP.
git-svn-id: svn://kolibrios.org@4344 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-12-12 11:32:03 +00:00
hidnplayr
d148603f7d Bugfixes in TCP.
git-svn-id: svn://kolibrios.org@4339 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-12-10 21:08:29 +00:00
hidnplayr
6680b2725e Fixed typo in ICMP. (Wrong stats were updated)
git-svn-id: svn://kolibrios.org@4335 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-12-08 14:37:39 +00:00
hidnplayr
5842e9f374 TCP_input: dont use conditional move instruction. (not available on some machines)
git-svn-id: svn://kolibrios.org@4296 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-11-26 17:00:13 +00:00
hidnplayr
2465fafb4e Bugfix in IPv4_input (for fragmented IPv4 packets)
git-svn-id: svn://kolibrios.org@4259 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-11-19 21:01:57 +00:00
hidnplayr
f9853cf87d Bugfix in IPv4_input (for fragmented IPv4 packets)
git-svn-id: svn://kolibrios.org@4258 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-11-19 20:40:18 +00:00
hidnplayr
29db36de54 Do not print message about unknown ethernet packet types, by default.
git-svn-id: svn://kolibrios.org@4256 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-11-19 18:58:46 +00:00
hidnplayr
c6d3f29329 SOCKET_receive: bugfixes, return 0 when remote end closed connection.
git-svn-id: svn://kolibrios.org@4219 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-11-12 20:05:57 +00:00
hidnplayr
fe0a297192 SOCKET_process_end: exit immediately if there are no active sockets.
git-svn-id: svn://kolibrios.org@4056 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-10-20 11:50:49 +00:00
hidnplayr
5bebe120f1 fixed #4052
git-svn-id: svn://kolibrios.org@4053 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-10-19 15:50:16 +00:00
hidnplayr
931a90c02d Some cleanup/refactoring of IPv4 code (preparing for routing)
git-svn-id: svn://kolibrios.org@4052 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-10-19 15:47:58 +00:00
hidnplayr
f39767f1f2 Bugfix in SOCKET_connect
git-svn-id: svn://kolibrios.org@4035 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-10-15 16:18:58 +00:00
hidnplayr
b99d839ce8 refactored SOCKET_connect
git-svn-id: svn://kolibrios.org@4030 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-10-15 10:35:08 +00:00
hidnplayr
e3504571ad SOCKET_connect: better error handling.
git-svn-id: svn://kolibrios.org@4025 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-10-14 07:08:51 +00:00
hidnplayr
8fe83f0f69 Cancel time-out timer if connection succeeded
git-svn-id: svn://kolibrios.org@4021 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-10-13 21:59:31 +00:00
hidnplayr
7cade993e9 kernel: wait 3 seconds for TCP connection to be established, timeout after that.
telnet: print error message when socket could not be opened.

git-svn-id: svn://kolibrios.org@4020 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-10-13 21:35:17 +00:00
hidnplayr
818a0e4636 Incoming packets are now handled in separate thread instead of directly by interrupt handler.
git-svn-id: svn://kolibrios.org@3982 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-10-07 20:53:02 +00:00
hidnplayr
3189551ee6 Fixing deadlock in SOCKET_process_end
git-svn-id: svn://kolibrios.org@3884 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-09-02 12:56:36 +00:00
hidnplayr
6a650a3fbd Bugfix for API 74, -1
git-svn-id: svn://kolibrios.org@3879 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-09-01 08:02:59 +00:00
hidnplayr
72f900e956 new function: NET_packet_free, i8255x driver should not cause problems anymore.
git-svn-id: svn://kolibrios.org@3861 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-08-07 13:13:29 +00:00
hidnplayr
66d1328706 Bugfixes in kernel related to forking of sockets.
git-svn-id: svn://kolibrios.org@3817 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-07-12 14:49:00 +00:00
hidnplayr
9f61003e5a Small bugfix in TCP_input for data when header prediction failed.
git-svn-id: svn://kolibrios.org@3756 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-07-04 10:15:03 +00:00
hidnplayr
b5b5e68553 Corrected IP source address for TCP_respond_segment
git-svn-id: svn://kolibrios.org@3752 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-07-03 12:45:34 +00:00
hidnplayr
e3b7958faa SOCKET_receive, return immediately when there is no data and SS_CANTRECVMORE is set.
Downloader: make better use of blocking sockets.

git-svn-id: svn://kolibrios.org@3737 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-06-30 23:08:53 +00:00
CleverMouse
65d0cef44b style fixes, no binary changes (style checker was sick for some time)
git-svn-id: svn://kolibrios.org@3711 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-06-26 23:35:43 +00:00
hidnplayr
41339ef767 Allow SO_NONBLOCK to be set in socket type on socket open (similar to linux)
git-svn-id: svn://kolibrios.org@3705 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-06-25 20:11:09 +00:00
hidnplayr
97c13d77de use blocking sockets by default.
git-svn-id: svn://kolibrios.org@3704 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-06-25 20:02:56 +00:00
hidnplayr
1ca5fecb5c Fixed alignment for data in network stack. Alqo, network queue uses a mutex now.
git-svn-id: svn://kolibrios.org@3698 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-06-24 11:39:05 +00:00
hidnplayr
a5c3784aca Fixed that horrible TCP kernel crash.
git-svn-id: svn://kolibrios.org@3697 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-06-24 10:47:25 +00:00
hidnplayr
f828457410 SOCKET_connect can now block if wanted.
git-svn-id: svn://kolibrios.org@3674 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-06-17 18:17:17 +00:00
hidnplayr
3e004fd364 Socket functions now return error code in ebx (bugfix)
git-svn-id: svn://kolibrios.org@3673 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-06-17 13:59:20 +00:00
hidnplayr
db0d887216 Return 0 in ebx when there is no error
git-svn-id: svn://kolibrios.org@3659 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-06-14 20:26:05 +00:00
hidnplayr
0192ef785b some socket functions now return error codes in ebx.
git-svn-id: svn://kolibrios.org@3658 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-06-14 20:14:35 +00:00
hidnplayr
52556729d6 Bugixes and improvements for closing TCP sockets.
git-svn-id: svn://kolibrios.org@3652 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-06-13 08:22:37 +00:00