71 Commits

Author SHA1 Message Date
Waldemar Kornewald
53a2aa40d5 * libppp: [PPPManager]: Added ControlModule() method.
* PPPoE: fixed GET_INTERFACES ioctl()
* PPP interface: fixed path generation for controlling PPP modules (a '/' was missing).
And some minor changes I do not remember anymore.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7119 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-30 10:58:54 +00:00
Waldemar Kornewald
b8f24e8376 Sorry, I did not commit this change (sharing the configuration values between the IPCP kernel and DialUpPreflet modules).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7067 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-26 11:27:50 +00:00
Waldemar Kornewald
abf44d1a2b Some changes I did a long time ago. I think this also contains a fix for the last dead-lock I could find.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6857 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-02 16:06:20 +00:00
Waldemar Kornewald
5a483e4d35 Fixed a couple of possible dead-locks.
Fixed some minor bugs.
PPPoE: added experimental support for AccessConcentrator and ServiceName settings.
Changed libppp to import strlcat.c from libroot instead of duplicating code.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6511 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-06 18:12:24 +00:00
Philippe Houdoin
7cfffb20a7 Well, I guess settings_tools.h should be under libkernelppp/headers...
At least, it fix interfaces/ppp/* build.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6494 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-03 23:03:17 +00:00
Philippe Houdoin
a389d42d9e Reintroduce "route" network module, lost in the current/* new tree 8-\
Untested (yet), but build.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6493 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-03 22:53:33 +00:00
Philippe Houdoin
a225934384 B_KEEP_LOADED flag not required, as core network module keep them loaded...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6489 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-03 21:27:09 +00:00
shatty
06276e0a97 tiny debug compile fix
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6345 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-27 08:48:15 +00:00
Waldemar Kornewald
1cea3d8564 Updated according to name changes in kernel classes.
IPCP and PAP (hopefully) make use of profiles.
Minor changes.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6284 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-25 12:57:01 +00:00
Waldemar Kornewald
683165b7d1 Added profile and interface naming support.
Added some small doxygen comments.
Minor changes.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6283 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-25 12:54:47 +00:00
Waldemar Kornewald
f9ad2df864 Added profile and interface naming support.
Added 'K' prefix to all kernel classes to resolve naming issue with doxygen.
Began some small doxygen comments.
Minor changes.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6282 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-25 12:54:00 +00:00
Waldemar Kornewald
bdf55481a8 Changed PPP interface manager API to support interface names and profiles.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6280 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-25 12:50:07 +00:00
Waldemar Kornewald
6cfb4dcac2 Replaced all printf and spawn_thread functions with their kernel counterparts.
IPCP: changed route initialization a little bit. Still cannot remove default route correctly.
Renamed interface_id to ppp_interface_id.
Some minor changes.
Worked on libppp.a (userland PPP library).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6159 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-19 22:47:43 +00:00
Waldemar Kornewald
6c54c57f07 First attempt at fixing the if_detach code.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6153 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-19 21:41:45 +00:00
Philippe Houdoin
313b452ee5 + Make all network modules using NETWORK_MODULES_ROOT as their root module name, allowing
to change this root in one single place, in headers/private/net/net_module.h.
Unfortunatly, it's not that easer in Jamfile...
+ Expand openbeos-networkingkit-cvs package contents.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6084 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-15 00:08:32 +00:00
Waldemar Kornewald
cc14c99624 I like it better this way. dprintf is not available in userland. ;)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5980 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-07 14:58:47 +00:00
Niels Sascha Reedijk
e586f3a680 Apparantly, the build is stricter when you start it from the root of the tree.
It only complains of an undefined function (dprintf) when I use jam from there,
not when I start it in this subdir.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5941 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-06 19:51:14 +00:00
Niels Sascha Reedijk
8deb422714 Fix compilation error:
/boot/home/openbeos-cvs/stable/src/add-ons/kernel/network/ppp/shared/libkernelppp/KPPPLCP.cpp: In method `status_t PPPLCP::Receive(struct mbuf *, short unsigned int)':
/boot/home/openbeos-cvs/stable/src/add-ons/kernel/network/ppp/shared/libkernelppp/KPPPLCP.cpp:221: implicit declaration of function `int printf(...)'

{We're in kernel land now, so we use dprintf instead of printf}


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5940 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-06 19:45:13 +00:00
Waldemar Kornewald
86c13dda5a Yeah! It finally works! The default route was missing, that was the only problem!
I established a connection with PPPoE and pinged goole and osnews. Net+ loaded half of www.osnews.com but then crashed because of a bug in our DNS resolver.
There is one more bug to fix: our core stack module does not remove the routes when an interface is deleted.
Thus, there will always remain the route(s) from the last connection(s).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5910 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-05 13:34:11 +00:00
Waldemar Kornewald
6a70da44dc After many checks it seems that Jam does not want those changes. :(
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5879 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-02 13:05:04 +00:00
Waldemar Kornewald
20d09e03be Simplified Jamfiles a little bit.
Fixed a warning in modem.
Fixed a small bug in IPCP.
Added empty PPPInterfaceListener class (needed for DialUpPreflet and Deskbar add-on).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5877 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-02 12:45:23 +00:00
Waldemar Kornewald
49c2f6870f Renamed List.h to TemplateList.h (and the class names accordingly). The name conflicted with List.h from the SupportKit and prevented the DialUpPreflet from building (currently not commited).
PPPInterface adds its ID to all reports.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5835 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-30 17:11:09 +00:00
Waldemar Kornewald
8dad9b1eb2 Added modem driver (completely untested, currently no support for settings speed because modem API is missing).
Some minor changes.
Added TODO file to almost all modules.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5768 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-27 14:27:55 +00:00
Waldemar Kornewald
153f2c3012 Fixed compilation errors.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5714 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-19 15:53:19 +00:00
Waldemar Kornewald
1c29a4b054 Fixed a small bug in Protocol-Field-Compression handling.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5713 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-19 11:52:31 +00:00
Waldemar Kornewald
93a59056e2 Fixed bugs.
IPCP: fixed setting of local and peer address (in_control).
Renamed some variables to comply with our style defs.
Fixed a dead-lock in ppp interface and libkernelppp.a.

TODO:
Unfortunately, our stack does not want to ping the remote host. :(
I do not know if this is my fault or a problem with our stack.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5487 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-26 20:16:10 +00:00
Waldemar Kornewald
ca43389a75 Some small changes and fixes.
Most important:
Finished IPCP and PAP modules.
Both of them are untested at the moment.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5442 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-22 12:28:32 +00:00
Waldemar Kornewald
4e0ad75221 Fixed many bugs and added debug output.
You can now successfully (dis-)connect to(/from) a PPP server using the PPPoE device module.
To be useful we need the PAP and IPCP modules (in the works).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5276 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-07 15:47:45 +00:00
Waldemar Kornewald
7072f4d0dc Fixed debug output.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5275 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-07 15:43:30 +00:00
Philippe Houdoin
acb7e134d4 Fix warnings.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5170 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-25 23:19:52 +00:00
Philippe Houdoin
68d8b27d8c Fix warnings. And a possible crashing (memory corruption) bug, too.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5169 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-25 22:48:15 +00:00
Waldemar Kornewald
a10a3d49d6 Fixed BUG in FindUnit() and Register/UnregisterInterface().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5160 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-25 13:00:28 +00:00
Waldemar Kornewald
20826c8ed2 Fixed BUG in if_detach.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5159 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-25 12:58:49 +00:00
Waldemar Kornewald
52fad5f56b Use the NET_STACK_DRIVER_PATH environment variable if available.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5157 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-25 10:13:51 +00:00
Waldemar Kornewald
8f79376c49 Allow to build as userland add-on.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5151 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-24 21:28:10 +00:00
Waldemar Kornewald
ad0928ebe3 Allow to build as userland modules.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5150 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-24 21:18:53 +00:00
Waldemar Kornewald
b0bff411f1 Bug fixes.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5148 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-24 20:08:56 +00:00
Waldemar Kornewald
5a4503c3ff Added PPPoE module.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5121 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-23 18:01:36 +00:00
Waldemar Kornewald
4fbbad3009 The beginnings of libppp.a. This is a userland library to talk to the PPP stack. It hides the ioctl() stuff from the user.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5120 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-23 17:59:38 +00:00
Waldemar Kornewald
e745242193 Mostly fixes and smaller API changes.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5119 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-23 17:56:14 +00:00
Waldemar Kornewald
f378b1b9c8 BUG fix.
Small changes for PPP.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5118 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-23 17:53:29 +00:00
Waldemar Kornewald
d7fa7da88b Some fixes and small changes.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5117 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-23 17:51:49 +00:00
Waldemar Kornewald
ab5bf14914 Added support for PPPoE.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5116 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-23 17:51:20 +00:00
Waldemar Kornewald
0fc3ae8c5c Finished PPP interface manager module.
TODO:
 - IPCP protocol module
 - PAP authentication module
 - PPPoE device module
 - pppdial cmd-line app including needed net_stack_driver changes for control() function support
 - tests, tests, tests :))


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5040 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-15 16:01:40 +00:00
Waldemar Kornewald
77f15b8315 Implemented some methods.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5031 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-14 13:48:41 +00:00
Waldemar Kornewald
d6a3da1874 Initial commit of very skeletal ppp interface module.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5030 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-14 12:55:28 +00:00
Waldemar Kornewald
b80f17599b Added control() function (as NULL pointer).
Fixed warnings.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5029 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-14 12:24:50 +00:00
Waldemar Kornewald
5a10f7ebb4 Added control() function (as NULL pointer).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5028 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-14 12:24:28 +00:00
Waldemar Kornewald
d73f313295 Added control() function (as NULL pointer).
Fixed some warnings.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5027 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-14 12:23:57 +00:00
Waldemar Kornewald
eb5d50b665 Added support for controlling modules.
Fixed warnings.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5026 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-14 12:23:09 +00:00