Commit Graph

59 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
hidnplayr
910527aadc Fix for previous revision
git-svn-id: svn://kolibrios.org@3648 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-06-12 10:53:22 +00:00
hidnplayr
3e584a778f Implemented global socket mutex.
git-svn-id: svn://kolibrios.org@3647 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-06-12 10:21:41 +00:00
hidnplayr
97a976fc9a SOCKET_close, free TCP socket after closing connection.
git-svn-id: svn://kolibrios.org@3646 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-06-12 09:06:59 +00:00
hidnplayr
20ce7bf7bd bugfix in SOCKET_bind
git-svn-id: svn://kolibrios.org@3637 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-06-10 18:56:49 +00:00
hidnplayr
7ce53df3a1 Fixed bugs in new ARP code and TCP_output.
git-svn-id: svn://kolibrios.org@3602 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-06-05 00:44:59 +00:00
hidnplayr
c0fe9dddf7 Improved loopback device, separate ARP tables for every interface, added arpstat functionality to netstat, preparing zeroconf to work on multiple interfaces, improved API (fn 76, fn 74), fixed some bugs.
git-svn-id: svn://kolibrios.org@3601 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-06-05 00:21:20 +00:00
hidnplayr
c2bc66096c Renamed some variables and constants in network code, removed NET_set_default function, improved TCP timers
git-svn-id: svn://kolibrios.org@3600 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-06-04 14:12:37 +00:00
hidnplayr
8e107a1443 Socket_receive: return -1 when socket is closed.
git-svn-id: svn://kolibrios.org@3565 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-05-29 11:46:06 +00:00
hidnplayr
e93a49b442 Disabled network debug output by default.
git-svn-id: svn://kolibrios.org@3556 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-05-28 19:19:23 +00:00
hidnplayr
e4cf34c0de Merge new network stack with trunk
git-svn-id: svn://kolibrios.org@3545 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-05-28 17:34:26 +00:00
Marat Zakiyanov (Mario79)
2f699083c4 1) Correcting information about copiright
2) VESA draw the small speedup

git-svn-id: svn://kolibrios.org@2455 a494cfbc-eb01-0410-851d-a64ba20cac60
2012-03-13 16:51:57 +00:00
hidnplayr
58fe32f210 Usage of struct.inc from fasm in trunk kernel.
git-svn-id: svn://kolibrios.org@2381 a494cfbc-eb01-0410-851d-a64ba20cac60
2012-02-22 15:46:09 +00:00
CleverMouse
037099f50d Style corrected for new rules, no semantic changes
git-svn-id: svn://kolibrios.org@2288 a494cfbc-eb01-0410-851d-a64ba20cac60
2011-10-14 21:38:50 +00:00
Marat Zakiyanov (Mario79)
4db1abbe76 I very much hope that this is the last fix for r.2129. This revision makes me cry.
git-svn-id: svn://kolibrios.org@2208 a494cfbc-eb01-0410-851d-a64ba20cac60
2011-09-17 23:08:48 +00:00
CleverMouse
eca36f7ef4 socket.inc: fix for r2129
git-svn-id: svn://kolibrios.org@2147 a494cfbc-eb01-0410-851d-a64ba20cac60
2011-09-02 19:48:37 +00:00
Sergey Semyonov (Serge)
246c135659 irq: reset fail counter
all kernel: replace old non-blocking mutexes

git-svn-id: svn://kolibrios.org@2129 a494cfbc-eb01-0410-851d-a64ba20cac60
2011-08-27 10:59:48 +00:00
tsdima
2beb55bd3a fix: reset connection by peer
git-svn-id: svn://kolibrios.org@1288 a494cfbc-eb01-0410-851d-a64ba20cac60
2009-11-27 19:49:15 +00:00
Evgeny Grechnikov (Diamond)
f38c7eea18 fix for TCP connections not closing (from tsdima)
git-svn-id: svn://kolibrios.org@1284 a494cfbc-eb01-0410-851d-a64ba20cac60
2009-11-24 16:45:05 +00:00
CleverMouse
257b31bb6d zero local port for socket open means choosing by the kernel
git-svn-id: svn://kolibrios.org@1154 a494cfbc-eb01-0410-851d-a64ba20cac60
2009-09-09 11:31:04 +00:00
Evgeny Grechnikov (Diamond)
e1573dd58e added check of overflow in socket data buffer
git-svn-id: svn://kolibrios.org@1019 a494cfbc-eb01-0410-851d-a64ba20cac60
2009-02-01 11:26:47 +00:00
Evgeny Grechnikov (Diamond)
5628c096c5 some cosmetic fixes
git-svn-id: svn://kolibrios.org@983 a494cfbc-eb01-0410-851d-a64ba20cac60
2008-12-28 21:21:41 +00:00
Mihail Semenyako (mike.dld)
22720e823e Network stack: real socket numbers, comments, code cleanup
git-svn-id: svn://kolibrios.org@922 a494cfbc-eb01-0410-851d-a64ba20cac60
2008-11-16 23:05:02 +00:00
Mihail Semenyako (mike.dld)
c58b0535f6 Fix in socket_read (page_fault) and udp_rx (incorrect IP comparison)
git-svn-id: svn://kolibrios.org@915 a494cfbc-eb01-0410-851d-a64ba20cac60
2008-11-09 18:04:54 +00:00
Mihail Semenyako (mike.dld)
931d4df6c1 Fix for r907 (uninitialized prev/next pointers in sockets list)
git-svn-id: svn://kolibrios.org@909 a494cfbc-eb01-0410-851d-a64ba20cac60
2008-11-05 14:50:17 +00:00