Commit Graph

137 Commits

Author SHA1 Message Date
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
819a12b8d2 Correct stats for TCP.
git-svn-id: svn://kolibrios.org@3644 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-06-11 11:11:26 +00:00
hidnplayr
2b3ee8e109 Correct stats for UDP and ICMP.
git-svn-id: svn://kolibrios.org@3643 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-06-11 10:46:29 +00:00
hidnplayr
2d3f4f397a Eth_input: allow frames smaller then 60 bytes.
git-svn-id: svn://kolibrios.org@3642 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-06-11 06:41:02 +00:00
hidnplayr
663c6adac5 More ARP bugfixes
git-svn-id: svn://kolibrios.org@3640 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-06-10 22:26:26 +00:00
hidnplayr
9246337d85 bugfixes in ARP and IPv4 code
git-svn-id: svn://kolibrios.org@3638 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-06-10 20:19:12 +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
c30fb05dcc Loopback device now works with entire 127.0.0.1/8 range, and also keeps some stats.
git-svn-id: svn://kolibrios.org@3610 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-06-06 06:08:45 +00:00
hidnplayr
e395aa6070 bugfixes in ARP
git-svn-id: svn://kolibrios.org@3609 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-06-06 05:19:15 +00:00
hidnplayr
52893d0ce3 More timer bugfixes for TCP_output.
git-svn-id: svn://kolibrios.org@3603 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-06-05 00:53:57 +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
CleverMouse
a77e7ee15d make macro for push imm/pop dst
git-svn-id: svn://kolibrios.org@3598 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-06-04 11:14: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
CleverMouse
f059bc06d5 priorities in scheduler
git-svn-id: svn://kolibrios.org@3534 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-05-27 09:02:35 +00:00
CleverMouse
b7bd43fe91 do not flood logs with unrecognized network packets
git-svn-id: svn://kolibrios.org@3517 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-05-17 13:32:52 +00:00
CleverMouse
d324897069 r781 didn't fix all artefacts of r465
git-svn-id: svn://kolibrios.org@2577 a494cfbc-eb01-0410-851d-a64ba20cac60
2012-04-06 18:31:43 +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
hidnplayr
df1f1777ac Re-enabled i8255x card 1068:8086.
git-svn-id: svn://kolibrios.org@2307 a494cfbc-eb01-0410-851d-a64ba20cac60
2011-11-12 14:09:30 +00:00
hidnplayr
dea41c44ce re-enabled rtl8139 card in trunk kernel, it was disabled by error in r1887
git-svn-id: svn://kolibrios.org@2306 a494cfbc-eb01-0410-851d-a64ba20cac60
2011-11-09 20:03:39 +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
Marat Zakiyanov (Mario79)
59fc4ab346 tcp.inc: fix for r2129
git-svn-id: svn://kolibrios.org@2186 a494cfbc-eb01-0410-851d-a64ba20cac60
2011-09-14 16:21:32 +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
Yogev Ezra
62a811ce4f Linux name fix
git-svn-id: svn://kolibrios.org@1888 a494cfbc-eb01-0410-851d-a64ba20cac60
2011-02-24 20:22:13 +00:00
hidnplayr
77f1a07bff R6040 driver for trunk kernel
git-svn-id: svn://kolibrios.org@1887 a494cfbc-eb01-0410-851d-a64ba20cac60
2011-02-24 17:25:38 +00:00
hidnplayr
54bb530589 Added i8255x compatible card 1068:8086 to the network card list.
git-svn-id: svn://kolibrios.org@1734 a494cfbc-eb01-0410-851d-a64ba20cac60
2011-01-14 21:38:58 +00:00
CleverMouse
baca7793c6 fix RTL8139 under qemu
git-svn-id: svn://kolibrios.org@1644 a494cfbc-eb01-0410-851d-a64ba20cac60
2010-10-05 10:36:33 +00:00
Alexey Teplov (
abfe37adc4 small changes and optimization
git-svn-id: svn://kolibrios.org@1369 a494cfbc-eb01-0410-851d-a64ba20cac60
2010-01-08 12:39:50 +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
hidnplayr
d75cb497f8 3c59x driver fix
git-svn-id: svn://kolibrios.org@1280 a494cfbc-eb01-0410-851d-a64ba20cac60
2009-11-22 15:36:45 +00:00
CleverMouse
373d7e9391 add support for more network cards to forcedeth driver
git-svn-id: svn://kolibrios.org@1194 a494cfbc-eb01-0410-851d-a64ba20cac60
2009-10-04 11:07:25 +00:00
CleverMouse
27b928368a * slow work in TCP resending fixed
* TCP resend timeout increased to slightly more realistic value

git-svn-id: svn://kolibrios.org@1183 a494cfbc-eb01-0410-851d-a64ba20cac60
2009-09-28 10:09:06 +00:00
CleverMouse
a864f1a57e * one check moved so that early received FIN packet does not eat tail of data
* changes in state of TCP socket now notify socket's owner

git-svn-id: svn://kolibrios.org@1181 a494cfbc-eb01-0410-851d-a64ba20cac60
2009-09-27 11:48:00 +00:00
Alexey Teplov (
83e2f051b2 Set align 4 for subroutines in main loop.
git-svn-id: svn://kolibrios.org@1168 a494cfbc-eb01-0410-851d-a64ba20cac60
2009-09-18 18:30:04 +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)
3d1a1e74fc grammar fixes in build.bat
git-svn-id: svn://kolibrios.org@1095 a494cfbc-eb01-0410-851d-a64ba20cac60
2009-05-31 11:46:28 +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)
a26689b104 Fix for r907: correctly initialize resend queue
git-svn-id: svn://kolibrios.org@913 a494cfbc-eb01-0410-851d-a64ba20cac60
2008-11-06 21:36:36 +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
Mihail Semenyako (mike.dld)
54e9661045 Network stack: dynamic sockets list, other small fixes
git-svn-id: svn://kolibrios.org@907 a494cfbc-eb01-0410-851d-a64ba20cac60
2008-11-05 00:42:22 +00:00
Mihail Semenyako (mike.dld)
5620ba7561 Fixed network stack crash in stateTCB_FIN_WAIT_2 (page fault), trunk + all branches
git-svn-id: svn://kolibrios.org@871 a494cfbc-eb01-0410-851d-a64ba20cac60
2008-10-03 05:50:39 +00:00
Dmitry Kartashov (shurf)
637784b2c1 RTL8169: fixed
git-svn-id: svn://kolibrios.org@869 a494cfbc-eb01-0410-851d-a64ba20cac60
2008-09-28 22:32:32 +00:00
Dmitry Kartashov (shurf)
2860a7433c Turned on svn:keywords for forcedeth.inc. Added support for more NIC's with FORCEDETH network driver
git-svn-id: svn://kolibrios.org@867 a494cfbc-eb01-0410-851d-a64ba20cac60
2008-09-23 23:36:57 +00:00
Dmitry Kartashov (shurf)
23f7fb6f1c FORCEDETH network driver
git-svn-id: svn://kolibrios.org@866 a494cfbc-eb01-0410-851d-a64ba20cac60
2008-09-23 23:03:34 +00:00
hidnplayr
c669e7bd89 Fixed i8255x ethernet driver
git-svn-id: svn://kolibrios.org@782 a494cfbc-eb01-0410-851d-a64ba20cac60
2008-03-30 13:51:30 +00:00
hidnplayr
b384868a4d Fixed PCnet32 ethernet driver
git-svn-id: svn://kolibrios.org@781 a494cfbc-eb01-0410-851d-a64ba20cac60
2008-03-28 23:42:28 +00:00
heavyiron
ff590c086c - new cursor and redused cursor sise (static) in mousedrv.inc
- changed GNU.TXT -> COPYING.TXT in russian boot screen
- fixed arp request don't working on some machines

git-svn-id: svn://kolibrios.org@739 a494cfbc-eb01-0410-851d-a64ba20cac60
2008-02-15 12:28:43 +00:00
Evgeny Grechnikov (Diamond)
da14e74a6d Bugfix in boot screen: avoid hangup in some situations
git-svn-id: svn://kolibrios.org@738 a494cfbc-eb01-0410-851d-a64ba20cac60
2008-02-14 16:28:40 +00:00
Evgeny Grechnikov (Diamond)
061c201f0b * Fixes for flat kernel in SIS900 network card driver, now it works
* Bugfix of revision 261:
  the author of some changes used 'stdcall' and 'proc' (created for stupid men),
  but (as a stupid man) didn't know that they rely on EBP keeping by all
  procedures, which is wrong for network card drivers


git-svn-id: svn://kolibrios.org@735 a494cfbc-eb01-0410-851d-a64ba20cac60
2008-02-12 16:23:07 +00:00
Evgeny Grechnikov (Diamond)
e02112ea70 deleting cross registers in system calls, part 2
git-svn-id: svn://kolibrios.org@684 a494cfbc-eb01-0410-851d-a64ba20cac60
2007-12-17 11:04:07 +00:00
Mihail Semenyako (mike.dld)
92f657f440 Revision numbering fix
git-svn-id: svn://kolibrios.org@593 a494cfbc-eb01-0410-851d-a64ba20cac60
2007-07-27 13:52:03 +00:00
Evgeny Grechnikov (Diamond)
61c54a1be6 * Correct value of selector gs
* Support for kpack'ed skin files
* Default setting for DMA access is now "disabled"
* Fixed kernel fault when network packet sending

git-svn-id: svn://kolibrios.org@523 a494cfbc-eb01-0410-851d-a64ba20cac60
2007-05-25 09:37:08 +00:00
heavyiron
d018bf5849 Fixed arp request to gateway
git-svn-id: svn://kolibrios.org@511 a494cfbc-eb01-0410-851d-a64ba20cac60
2007-05-19 08:43:48 +00:00
hidnplayr
a908d63b4a Fixed "HP EN1207D-TX PCI 10/100 Fast Ethernet Adapter" support.
Disabled "3com Etherlink XL PCI TPO NIC (3C900B-TPO)" because it makes system crash.

git-svn-id: svn://kolibrios.org@505 a494cfbc-eb01-0410-851d-a64ba20cac60
2007-05-17 18:25:17 +00:00
SPraid (simba)
38c388fab5 rtl8139 fixed
git-svn-id: svn://kolibrios.org@504 a494cfbc-eb01-0410-851d-a64ba20cac60
2007-05-17 17:24:56 +00:00
Sergey Semyonov (Serge)
fef69aab20 merge flat kernel
git-svn-id: svn://kolibrios.org@465 a494cfbc-eb01-0410-851d-a64ba20cac60
2007-04-18 06:37:14 +00:00
Sergey Semyonov (Serge)
5b119159d4 copyrights
git-svn-id: svn://kolibrios.org@431 a494cfbc-eb01-0410-851d-a64ba20cac60
2007-03-26 12:18:08 +00:00
victor
21e4bc0233 added computing of current #revision for kernel *.inc and *.asm files
git-svn-id: svn://kolibrios.org@425 a494cfbc-eb01-0410-851d-a64ba20cac60
2007-03-21 22:58:33 +00:00
Sergey Semyonov (Serge)
391818d48f synchronization with flat kernel
git-svn-id: svn://kolibrios.org@412 a494cfbc-eb01-0410-851d-a64ba20cac60
2007-03-10 16:04:35 +00:00
Sergey Semyonov (Serge)
a90d0cfe1d replace vars 0x8000 0xC000 0xC004 0xD000 0x80000 whith symbolic constants
rename PROC_BASE -> SLOT_BASE


git-svn-id: svn://kolibrios.org@380 a494cfbc-eb01-0410-851d-a64ba20cac60
2007-02-28 10:51:05 +00:00
Sergey Semyonov (Serge)
04929cf017 1)fixed wrong exported LFB address
2)replace 0x3000 0x3004 0x3010 0x3020 whith symbolic constants


git-svn-id: svn://kolibrios.org@379 a494cfbc-eb01-0410-851d-a64ba20cac60
2007-02-28 08:52:06 +00:00
Mihail Semenyako (mike.dld)
6e47c89546 RTL8169 network driver
git-svn-id: svn://kolibrios.org@373 a494cfbc-eb01-0410-851d-a64ba20cac60
2007-02-24 22:43:17 +00:00
heavyiron
b661da340a Changes in rtl8139 are not mine. It is bug fixes from Paolo Franchetti. Thanks. Added copyrights.
git-svn-id: svn://kolibrios.org@330 a494cfbc-eb01-0410-851d-a64ba20cac60
2007-02-08 09:09:38 +00:00
hidnplayr
a6c8d276c3 RTL8139 fixes from heavyiron and new system function from me: read data from stack
input:
eax = 53
ebx = 11
ecx = socket number
edx = pointer to where data must be written
esi = buffer size (max bytes of data to copy)
int  0x40  (offcourse)

returned: 
eax = number of bytes copied

if buffer size is zero, all data will be copied (this will be max 4096 bytes)

git-svn-id: svn://kolibrios.org@323 a494cfbc-eb01-0410-851d-a64ba20cac60
2007-02-06 19:29:54 +00:00
hidnplayr
d1b95f89ef Ethernet Cable status detection through new system function 53,10.
output is in al:
255 = driver not loaded/function not supported by driver
1 = cable is connected
0 = cable is not connected

THIS FUNCTION IS ONLY IMPLENTED FOR RTL8139 FOR NOW

git-svn-id: svn://kolibrios.org@302 a494cfbc-eb01-0410-851d-a64ba20cac60
2007-01-30 20:01:17 +00:00
Iliya Mihailov (Ghost)
dd99e0d71a removing useless files
git-svn-id: svn://kolibrios.org@263 a494cfbc-eb01-0410-851d-a64ba20cac60
2007-01-08 15:35:27 +00:00
hidnplayr
853d0ada7d John's ethernet stack updates
NEW subfunction 52-17

ftp://hidden-player.no-ip.com:2100/fn52-sub17.txt

git-svn-id: svn://kolibrios.org@261 a494cfbc-eb01-0410-851d-a64ba20cac60
2007-01-06 01:15:21 +00:00
Ivan Poddubny
3e2bc5b35f Introduced APPDATA, TASKDATA, WNDDATA, RECT, BOX structures.
git-svn-id: svn://kolibrios.org@115 a494cfbc-eb01-0410-851d-a64ba20cac60
2006-08-06 10:29:45 +00:00
heavyiron
5aa9386dcc 1. Updated ethernet.inc from Hex with supports of some new ethernet card.
2. Colorref - window with skin, less memory for application
3. Added string "include 'lang.inc'" in icon.asm
4. Vrr - window with skin

git-svn-id: svn://kolibrios.org@108 a494cfbc-eb01-0410-851d-a64ba20cac60
2006-07-27 16:29:24 +00:00
msu-se
d5c0fed779 moving to kernel directory
git-svn-id: svn://kolibrios.org@2 a494cfbc-eb01-0410-851d-a64ba20cac60
2005-10-07 04:39:30 +00:00