Commit Graph

614 Commits

Author SHA1 Message Date
Waldemar Kornewald
0d80a4595f Added libkernelppp.a to the build (although it does not build yet, I need help to fix the problem).
Fixed all warnings and errors (except from the one mentioned above).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4437 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-01 16:29:24 +00:00
Waldemar Kornewald
990e20ecdf Implemented nearly everything.
TODO:
- implement Control() methods
- write an authentication option handler
- write an MRU option handler

I will need to write the jamfile...


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4415 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-30 12:40:25 +00:00
Tyler Dauwalder
d72bf645f0 vfs_interface.cpp => udf.cpp
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4414 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-30 04:56:18 +00:00
ejakowatz
169ae2662c Fixed minor warnings (signed/unsigned compare).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4402 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-29 22:30:27 +00:00
Waldemar Kornewald
c9aa6219cc Forgot to remove AccessHelper.h. :)
The manager will take care of all accessing threads.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4401 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-29 12:59:28 +00:00
Waldemar Kornewald
3118bf2206 Finished:
- PPPDevice
 - PPPEncapsulator
 - PPPOptionHandler
 - PPPProtocol

Added SendCodeReject implementation (though, I am not sure if it really works because I am not familiar with mbufs).

Fixed some bugs.
Changed the manager interface (there are no pointers to classes anymore).
Some minor changes.

TODO for libkernelppp.a:
- finish PPPLCP
- finish PPPConfigurePacket


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4400 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-29 12:57:59 +00:00
ejakowatz
13ab4decd9 First test of messaging in libopenbeos.so!
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4378 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-26 04:55:38 +00:00
Axel Dörfler
6fb692ef97 Added some more test dates, nicer output.
Reveals some bugs in the original parsedate() implementation.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4375 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-26 02:11:16 +00:00
Waldemar Kornewald
8758b5ade6 The code looks much nicer with a copyright message. ;)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4372 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-25 09:57:53 +00:00
Waldemar Kornewald
5c7a44d436 Added empty .cpp files for the remaining classes.
Finished Down().
Added input queue to PPPInterface.
Added initial timeout handling.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4370 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-24 19:43:20 +00:00
Axel Dörfler
c6a70c8d1b Added a test application for the parsedate() function.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4368 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-23 18:34:10 +00:00
ejakowatz
2605a4f5ef These message tests now pass.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4365 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-23 18:00:17 +00:00
Waldemar Kornewald
103501d9d7 Some comments were not understandable.
Added a new case when to destroy interface (when Up() failes and DialOnDemand is disabled).
Forgot some to remove fUpThread in Up().
Changed UpFailedEvent() so that it pretends a connection-lost event (so we can try to redial).
Added ResetOptionHandlers() and DownProtocols/Encapsulators().


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4351 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-20 11:41:24 +00:00
Waldemar Kornewald
3c39df3d0b Finished Up().
Redial needs one additional case to be complete.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4310 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-19 10:40:45 +00:00
Waldemar Kornewald
aa4dee1bda Some minor changes.
Started to get familiar with the code, again. ;)
Some _very_ small work on Up().


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4305 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-18 11:51:27 +00:00
shatty
23e88e5ee2 expose buggy R5 behavior in a test so that we will not have the same bug (btw, we do not)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4246 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-09 04:30:43 +00:00
Stefano Ceccherini
bc0ea15dd4 On behalf of Jeremy Rand, BRegion tests
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4235 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-06 06:46:06 +00:00
shatty
4b45d1a25c include StorageDefs.h for B_WRITE_ONLY and related friends
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4204 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-02 08:38:48 +00:00
Philippe Houdoin
6b23a6cea3 New "atomizer" add-on faked-kernel module installation instructions added.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4191 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-02 00:37:22 +00:00
Philippe Houdoin
6e520af3a1 Commit Be Inc. sample code string atomizer module, as we need it in userland
(add-on) version too.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4190 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-02 00:35:03 +00:00
Philippe Houdoin
aec1a1ebb1 Start to use new buffer attributs feature.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4189 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-02 00:28:06 +00:00
Ingo Weinhold
dd9bd594bb Fixed old test.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4145 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-30 23:52:27 +00:00
Ingo Weinhold
05ab7dec5e Now prints out information on scanning jobs and waits for them to finish.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4143 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-30 17:54:20 +00:00
Waldemar Kornewald
4d1fb4b669 PPPReportManager had some old port code.
Added checking for sender to report system.
Worked on StateMachine and added cases where the interface should be deleted.
Added some flags (report and protocol) and report codes.
Started implementing Up().
Some minor changes (comments, multilink).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4108 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-27 11:54:35 +00:00
Waldemar Kornewald
d7344480f1 Register/UnregisterInterface() are now private.
Moved report code into its own class.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4106 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-27 10:03:36 +00:00
Waldemar Kornewald
ff3b40e0da Changed the report system to use threads.
Unfortunately I need threads for this (because reports will be used in Up()/Down() and always creating a reply port is not very nice).
Does anyone have a good send/receive_data_etc() implementation? :) I hope our kernel will get that functionality.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4085 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-26 18:17:26 +00:00
Waldemar Kornewald
cdb26db4b8 Implemented report methods for interface and began first connection reports.
Added some changes.

Next tasks:
Up/Down()
Redial()


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4084 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-26 17:34:45 +00:00
Philippe Houdoin
0ed16d99cb Fix some typos...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4080 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-26 01:12:00 +00:00
Philippe Houdoin
5e17f61acf Small new_stack progress...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4079 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-26 01:11:05 +00:00
Waldemar Kornewald
7335f587be Worked on multilink support.
Event/action code should be finished soon.

TODO for libkernelppp.a:
- reports
- redial
- PPPInterface::Up()/Down()
- all other classes (not very much work)
- LCP protocol
- MRU and protocol-field-compression (needs some addition to PPPInterface, too) option handlers


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4071 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-25 11:43:22 +00:00
Waldemar Kornewald
ec3447e61f Worked on events and actions.
StateMachine now waits until all protocols/encapsulators have finished going up before entering next phase.
Added StateMachine methods to support main interfaces (multilink).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4055 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-24 12:00:53 +00:00
Waldemar Kornewald
4c7e909c5f Renamed PPPFiniteStateMachine into PPPStateMachine (the name was tooooo long).
Added some more events.
Added UpRequested methods to protocols/encapsulators.
Worked on actions and events. Also added some checks.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4054 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-23 13:03:35 +00:00
Ingo Weinhold
d50af9662a Now resizes a (shadow) partition and cancels the modification.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4051 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-22 00:21:14 +00:00
Ingo Weinhold
4c4722dd9e Added the shared private headers again, since BObjectList is used in the API now.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4022 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-19 20:39:50 +00:00
Ingo Weinhold
14fa3c6b01 Also prints the disk systems' capabilities now.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4011 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-18 18:46:17 +00:00
Waldemar Kornewald
7aa79f33d8 Moved OptionHandlers to LCP (where they actually belong).
Added some initial code to get general (as far as possible) multilink support (the modules must be aware of whether they belong to the device or to the bundle).
PPPDevice now reports speed and number of bytes in the output queue.
Removed PPP_CTOR_DTOR_PHASE. Modules can be loaded in PPP_DOWN_PHASE.
Worked on events and actions.
Some minor changes/fixes.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4008 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-17 16:46:08 +00:00
Waldemar Kornewald
b912b1e24f FSM will be renamed to FiniteStateMachine. I will commit the new file later because I am working on it and when I "co" the OBOS source it gets it always comes back again. ;)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4007 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-17 16:34:13 +00:00
Ingo Weinhold
7fcdfb5fb8 Added registration of a file device and invocations of {Prepare,Cancel}Modifications(). Looks good so far.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3981 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-15 01:23:47 +00:00
Ingo Weinhold
b8ea76bfc3 The KDiskDeviceManager::CreateFileDevice() parameters changed slightly.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3980 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-15 01:21:43 +00:00
Tyler Dauwalder
0524d8feef - Added DirectoryIterator.cpp and Utils.cpp to the build
- Added kernel utils to header search path


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3946 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-10 19:55:50 +00:00
Waldemar Kornewald
06a35e5e82 Added some comments.
Added lcp_packet structure.
Changed reference style.
Changed some names.
Added general events.
Completed most events.
Copy constructors and assign operators are now private (just to be on the safe side ;).
SendToDevice() now checks if the packet is small enough.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3930 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-10 11:08:44 +00:00
Philippe Houdoin
2754c9f637 Update after recents net_stack_driver.h changes and make build again.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3928 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-10 01:15:40 +00:00
Ingo Weinhold
dfe606b688 Some changes due to changes in the API. Added disk system iteration.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3909 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-08 23:33:57 +00:00
Ingo Weinhold
671a745561 Modified the visitor implementation a bit. The Visit() with the BPartition* argument now also gets the level of the partition in the hierarchy.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3900 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-08 18:26:15 +00:00
Ingo Weinhold
c54d68a84e Should have waited a few more minutes... Renamed the methods {B,K}Partition::Is{Mountable,Partitionable}() to Contains{File,Partitioning}System(). Similar change for the respective flags (B_PARTITION_{MOUNTABLE,PARTITIONABLE}).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3899 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-08 17:38:45 +00:00
Ingo Weinhold
fb28706b69 Re-enabled Disk Device API test. Well, almost the complete old code is commented out. ;-)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3885 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-06 23:14:00 +00:00
Ingo Weinhold
865fc3ef0f Defined a pseudo target for disk system modules.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3884 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-06 23:12:05 +00:00
Waldemar Kornewald
0491e1650c Initial checkin of ppp stack.
Still far from being complete.
Comments are welcome.

In brief: Stack will be modular and written in C++.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3875 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-06 16:46:29 +00:00
Axel Dörfler
307303f592 Forget to complete the comment here, too...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3859 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-05 13:41:46 +00:00
Axel Dörfler
ee01d86fb8 Added the implementation of strnlen() and strlcat() as they are not part
of the R5 libroot.so.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3856 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-05 13:26:03 +00:00