Commit Graph

99 Commits

Author SHA1 Message Date
CleverMouse
35c4be95ad fix typo in network drivers
git-svn-id: svn://kolibrios.org@1377 a494cfbc-eb01-0410-851d-a64ba20cac60
2010-01-22 11:09:23 +00:00
CleverMouse
d003a8b8fe sync with trunk
git-svn-id: svn://kolibrios.org@1376 a494cfbc-eb01-0410-851d-a64ba20cac60
2010-01-15 11:54:11 +00:00
IgorA
2aad33c4e5 deleted file 'editbox_ex.mac' all programs
git-svn-id: svn://kolibrios.org@1373 a494cfbc-eb01-0410-851d-a64ba20cac60
2010-01-09 22:01:26 +00:00
hidnplayr
db3d073d65 Changes in net branch:
More fixes in UDP
added TFTP client

git-svn-id: svn://kolibrios.org@1337 a494cfbc-eb01-0410-851d-a64ba20cac60
2009-12-28 21:02:54 +00:00
hidnplayr
3b4749a91b UDP fixes for net branch
git-svn-id: svn://kolibrios.org@1335 a494cfbc-eb01-0410-851d-a64ba20cac60
2009-12-27 21:05:25 +00:00
hidnplayr
0e0b5fb665 More TCP code updates for net branch, code is still very unstable
git-svn-id: svn://kolibrios.org@1318 a494cfbc-eb01-0410-851d-a64ba20cac60
2009-12-13 14:55:42 +00:00
CleverMouse
18d56a4087 allow query of TCP socket state through getsockopt()
git-svn-id: svn://kolibrios.org@1299 a494cfbc-eb01-0410-851d-a64ba20cac60
2009-11-30 11:19:59 +00:00
hidnplayr
7b9c6b519b Changes in Net Branch: Proof of concept 'Telnet Client'
git-svn-id: svn://kolibrios.org@1282 a494cfbc-eb01-0410-851d-a64ba20cac60
2009-11-22 17:27:10 +00:00
hidnplayr
c14545104d changes in Net Branch: further development of TCP code
git-svn-id: svn://kolibrios.org@1281 a494cfbc-eb01-0410-851d-a64ba20cac60
2009-11-22 17:25:31 +00:00
hidnplayr
e586c535b0 Updates in TCP code of net branch
Actively initiating a connection works, other things not tested yet.

git-svn-id: svn://kolibrios.org@1274 a494cfbc-eb01-0410-851d-a64ba20cac60
2009-11-15 21:44:17 +00:00
CleverMouse
e71825c2b1 * fixed return value for udp send()
* added required zero-initialization of some fields in pcnet driver
* fixed debug output in pcnet driver


git-svn-id: svn://kolibrios.org@1263 a494cfbc-eb01-0410-851d-a64ba20cac60
2009-11-10 11:49:07 +00:00
hidnplayr
dc1c59db4d Now you can compile the net kernel with or without procedure to QUEUE ethernet packets first, or send them immediately.
git-svn-id: svn://kolibrios.org@1259 a494cfbc-eb01-0410-851d-a64ba20cac60
2009-11-09 17:59:50 +00:00
hidnplayr
9206b5fc97 update in ARP_IP_to_MAC function, if it needs to send an ARP request packet, the routine will change task until the reply is received, or the request has timed-out.
git-svn-id: svn://kolibrios.org@1258 a494cfbc-eb01-0410-851d-a64ba20cac60
2009-11-09 16:52:58 +00:00
hidnplayr
adec2ac083 Some code cleanup (cosmethical changes) in net_branch
git-svn-id: svn://kolibrios.org@1257 a494cfbc-eb01-0410-851d-a64ba20cac60
2009-11-09 13:59:46 +00:00
CleverMouse
1f42f20b6f Some changes in TCP for net branch:
* listening sockets have now a queue of incoming connections
* a mechanism which allows an application to know when sent packet is ACKed
* some fixes


git-svn-id: svn://kolibrios.org@1256 a494cfbc-eb01-0410-851d-a64ba20cac60
2009-11-09 11:34:51 +00:00
hidnplayr
30373c2ee1 changes in net branch:
Some more changes in TCP code.
I should perhaps read the full RFC before doing any further changes..

git-svn-id: svn://kolibrios.org@1255 a494cfbc-eb01-0410-851d-a64ba20cac60
2009-11-08 21:44:04 +00:00
hidnplayr
2fcdc75ae8 changes in net branch:
-Further development of TCP
-Fixed a design issue in Ethernet drivers wich would cause a lot of overhead for TCP (I probably completely broke RTL8029 driver now, let's finish TCP first..)

git-svn-id: svn://kolibrios.org@1254 a494cfbc-eb01-0410-851d-a64ba20cac60
2009-11-08 18:00:01 +00:00
hidnplayr
1a07e149d0 Netcfg now accept parameters, so it can automatically load network drivers on boot.
F to load first card only
A to load all cards

git-svn-id: svn://kolibrios.org@1253 a494cfbc-eb01-0410-851d-a64ba20cac60
2009-11-07 20:38:09 +00:00
CleverMouse
b35a874c08 Some fixes in net branch:
* pseudoheader for UDP checksum was wrong
* network checksum for data with odd length was wrong
* stack issues in ARP_add_entry fixed
* more correct checking for new packets in pcnet driver


git-svn-id: svn://kolibrios.org@1251 a494cfbc-eb01-0410-851d-a64ba20cac60
2009-11-07 16:13:47 +00:00
hidnplayr
441819a385 Forgot to upload a file, wich caused net kernel not to compile.
PS: There seems to be a bug in UDP checksum wich causes it to currently only work on DHCP

git-svn-id: svn://kolibrios.org@1250 a494cfbc-eb01-0410-851d-a64ba20cac60
2009-11-07 14:39:14 +00:00
hidnplayr
7f9d0c6697 Changes in net branch:
Things changed: sockets data organisation, queue macro's are more universal, new checksum routines, changed socket structures, ...
What's new: UDP checksum generation & validation
Rough TCP code has been written, but not debugged yet.

git-svn-id: svn://kolibrios.org@1249 a494cfbc-eb01-0410-851d-a64ba20cac60
2009-11-06 20:45:08 +00:00
CleverMouse
297880faa4 small fix in statistics
git-svn-id: svn://kolibrios.org@1241 a494cfbc-eb01-0410-851d-a64ba20cac60
2009-10-28 13:09:28 +00:00
CleverMouse
8b09309dd2 driver for SIS900 card, ported from trunk
git-svn-id: svn://kolibrios.org@1237 a494cfbc-eb01-0410-851d-a64ba20cac60
2009-10-26 11:32:59 +00:00
hidnplayr
f3fa774b6a updated network driver list of netcfg in net branch, with entries to possible future drivers.
git-svn-id: svn://kolibrios.org@1226 a494cfbc-eb01-0410-851d-a64ba20cac60
2009-10-22 20:03:10 +00:00
hidnplayr
7c8d55d5bb More fixes in UDP, IPv4 and socket code.
Fixes in network library, nslookup works now.

git-svn-id: svn://kolibrios.org@1208 a494cfbc-eb01-0410-851d-a64ba20cac60
2009-10-12 18:14:14 +00:00
hidnplayr
e39d270463 A lot of bugfixes in ARP, IPv4, UDP and sockets code.
git-svn-id: svn://kolibrios.org@1206 a494cfbc-eb01-0410-851d-a64ba20cac60
2009-10-12 14:39:59 +00:00
CleverMouse
f6498da63c fixes in PCNet driver (now it works in VMWare)
git-svn-id: svn://kolibrios.org@1202 a494cfbc-eb01-0410-851d-a64ba20cac60
2009-10-09 10:18:36 +00:00
CleverMouse
bbdad4119d * fixes in FDO for drivers from FDO for the kernel
* fixes in PCNet driver (works in VirtualBox, still problems in VMWare)

git-svn-id: svn://kolibrios.org@1201 a494cfbc-eb01-0410-851d-a64ba20cac60
2009-10-08 10:24:33 +00:00
hidnplayr
83387bfc23 added very simple ARP manager
IPv4 variables are 255.255.255.255 again at reset, 0.0.0.0 was a big mistake..

git-svn-id: svn://kolibrios.org@1200 a494cfbc-eb01-0410-851d-a64ba20cac60
2009-10-07 20:36:58 +00:00
CleverMouse
6507cc5019 sync with trunk
git-svn-id: svn://kolibrios.org@1198 a494cfbc-eb01-0410-851d-a64ba20cac60
2009-10-07 09:59:35 +00:00
CleverMouse
9c06d10fb3 * I'm sure that UDP data length includes sizeof UDP header
* network library with DNS resolving from trunk and
  an application for DNS name lookup
  (do not work at moment due to crashes in the kernel)


git-svn-id: svn://kolibrios.org@1197 a494cfbc-eb01-0410-851d-a64ba20cac60
2009-10-06 11:52:00 +00:00
hidnplayr
602924a5b5 compile netcfg on unix
fixed bug in netcfg created in last revision
netcfg gives error msg when driver is not loaded
zeroconfig now works with latest version of libini
also fixed use of static and link-local ip in zeroconfig
initial IPv4 variables are now 0.0.0.0 instead of 255.255.255.255
created kernel function that shows number of active network devices 
fixed the use of temp mac variable in IPV4.inc (variable is now in stack)
rewrite of ARP code, needs full testing/debugging (new application needed: ARP manager)
port numbers are now in INET byte order, as is in posix standards

git-svn-id: svn://kolibrios.org@1196 a494cfbc-eb01-0410-851d-a64ba20cac60
2009-10-05 20:47:27 +00:00
hidnplayr
cc16ee7b51 Fix of previous commit
git-svn-id: svn://kolibrios.org@1193 a494cfbc-eb01-0410-851d-a64ba20cac60
2009-10-02 19:59:04 +00:00
hidnplayr
d5c54dd1d0 Fixes in netstat/zeroconf
update of netcfg 

git-svn-id: svn://kolibrios.org@1192 a494cfbc-eb01-0410-851d-a64ba20cac60
2009-10-02 19:49:42 +00:00
hidnplayr
8fa80be372 small optimisation and cleanup of rtl8029.inc
last in series of attempts to make kernel compile on unix


git-svn-id: svn://kolibrios.org@1187 a494cfbc-eb01-0410-851d-a64ba20cac60
2009-09-28 20:16:23 +00:00
Dmitry Kartashov (shurf)
b3b3d9d928 net/fs/fs.inc - sync with main trunk
git-svn-id: svn://kolibrios.org@1186 a494cfbc-eb01-0410-851d-a64ba20cac60
2009-09-28 20:07:21 +00:00
hidnplayr
d0d8c7f17c More fixes to make net brach compile on unix
+ some general bugfixes and updates

git-svn-id: svn://kolibrios.org@1185 a494cfbc-eb01-0410-851d-a64ba20cac60
2009-09-28 19:48:32 +00:00
hidnplayr
f7ddce1888 renamed error label to s_error
git-svn-id: svn://kolibrios.org@1184 a494cfbc-eb01-0410-851d-a64ba20cac60
2009-09-28 19:34:18 +00:00
hidnplayr
68b0c1de2a Some more bugfixes and cleanup of RTL8029 driver.
Driver works on real hardware, but is not stable yet.

git-svn-id: svn://kolibrios.org@1178 a494cfbc-eb01-0410-851d-a64ba20cac60
2009-09-25 21:09:41 +00:00
CleverMouse
740caf3d0d fixes in RTL8029 driver (now it works in qemu)
git-svn-id: svn://kolibrios.org@1177 a494cfbc-eb01-0410-851d-a64ba20cac60
2009-09-25 10:52:09 +00:00
hidnplayr
698f06c417 Fixed bug wich made kernel crash when stack was used with no driver loaded.
Made some code more logical regarding stats 

git-svn-id: svn://kolibrios.org@1174 a494cfbc-eb01-0410-851d-a64ba20cac60
2009-09-24 18:32:03 +00:00
CleverMouse
65fa263646 * UDP data length includes sizeof UDP header
* fixes in RTL8139 driver
* fixes in RTL8029 driver (works in Bochs, still problems in qemu)


git-svn-id: svn://kolibrios.org@1173 a494cfbc-eb01-0410-851d-a64ba20cac60
2009-09-24 10:43:38 +00:00
hidnplayr
bb5ed21ec9 Small fix in RTL8139 driver regarding stats
Fixes and updates in stack for function 75
+ some other small fixes

Netstat program

Deleting of some unrelated files

Coming up next: fixes and updates in ARP code

git-svn-id: svn://kolibrios.org@1171 a494cfbc-eb01-0410-851d-a64ba20cac60
2009-09-22 16:42:54 +00:00
hidnplayr
e3cdb8950b Uploading right version of zeroconf.
Previous was not working on this kernel.

Coming up next: netstat

git-svn-id: svn://kolibrios.org@1170 a494cfbc-eb01-0410-851d-a64ba20cac60
2009-09-21 18:52:12 +00:00
hidnplayr
7cb34de2df Making applications compileable
+ Fixes in IPv4.inc

git-svn-id: svn://kolibrios.org@1166 a494cfbc-eb01-0410-851d-a64ba20cac60
2009-09-18 14:31:34 +00:00
hidnplayr
1afe10aa6e Small fix in ICMP code
git-svn-id: svn://kolibrios.org@1165 a494cfbc-eb01-0410-851d-a64ba20cac60
2009-09-18 14:15:37 +00:00
hidnplayr
bb5be0798a "net" branch:
Removed some files that dont belong in specific branch.
Added some applications that work with this kernel only.

git-svn-id: svn://kolibrios.org@1164 a494cfbc-eb01-0410-851d-a64ba20cac60
2009-09-18 12:19:46 +00:00
hidnplayr
8f20fe84d3 Making it compileable
git-svn-id: svn://kolibrios.org@1162 a494cfbc-eb01-0410-851d-a64ba20cac60
2009-09-17 13:08:13 +00:00
hidnplayr
6439263aed Moving the files...
git-svn-id: svn://kolibrios.org@1161 a494cfbc-eb01-0410-851d-a64ba20cac60
2009-09-17 12:59:26 +00:00