Added an emtpy line to the jamfiles.

Replaced spawn_kernel_thread with spawn_thread (KernelExport.h will do the distinction between kernel mode and userland).
Changed PPPLCP::Send().


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4468 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Waldemar Kornewald 2003-09-03 14:12:33 +00:00
parent cd79eed2f1
commit 2ad1aefdd6
4 changed files with 10 additions and 6 deletions

View File

@ -1,3 +1,4 @@
SubDir OBOS_TOP src tests kits net ppp ;
SubInclude OBOS_TOP src tests kits net ppp src ;
SubInclude OBOS_TOP src tests kits net ppp src ;

View File

@ -22,3 +22,4 @@ R5KernelStaticLibrary kernelppp :
settings_tools.cpp
cpp.cpp
;

View File

@ -56,7 +56,7 @@ PPPInterface::PPPInterface(uint32 ID, driver_settings *settings,
{
// set up queue
fInQueue = start_ifq();
fInQueueThread = spawn_kernel_thread(in_queue_thread, "PPPInterface: Input",
fInQueueThread = spawn_thread(in_queue_thread, "PPPInterface: Input",
B_NORMAL_PRIORITY, this);
resume_thread(fInQueueThread);
@ -1137,7 +1137,7 @@ PPPInterface::Redial()
info->interface = this;
info->thread = &fRedialThread;
fRedialThread = spawn_kernel_thread(redial_func, "PPPInterface: redial_thread",
fRedialThread = spawn_thread(redial_func, "PPPInterface: redial_thread",
B_NORMAL_PRIORITY, info);
resume_thread(fRedialThread);

View File

@ -111,10 +111,12 @@ PPPLCP::Down()
status_t
PPPLCP::Send(struct mbuf *packet)
{
if(!Interface())
if(Target())
return Target()->Send(packet, PPP_LCP_PROTOCOL);
else if(Interface())
return Interface()->Send(packet, PPP_LCP_PROTOCOL);
else
return B_ERROR;
return Interface()->Send(packet, PPP_LCP_PROTOCOL);
}