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:
@@ -1,3 +1,4 @@
|
|||||||
SubDir OBOS_TOP src tests kits net ppp ;
|
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 ;
|
||||||
|
|
||||||
|
|||||||
@@ -22,3 +22,4 @@ R5KernelStaticLibrary kernelppp :
|
|||||||
settings_tools.cpp
|
settings_tools.cpp
|
||||||
cpp.cpp
|
cpp.cpp
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ PPPInterface::PPPInterface(uint32 ID, driver_settings *settings,
|
|||||||
{
|
{
|
||||||
// set up queue
|
// set up queue
|
||||||
fInQueue = start_ifq();
|
fInQueue = start_ifq();
|
||||||
fInQueueThread = spawn_kernel_thread(in_queue_thread, "PPPInterface: Input",
|
fInQueueThread = spawn_thread(in_queue_thread, "PPPInterface: Input",
|
||||||
B_NORMAL_PRIORITY, this);
|
B_NORMAL_PRIORITY, this);
|
||||||
resume_thread(fInQueueThread);
|
resume_thread(fInQueueThread);
|
||||||
|
|
||||||
@@ -1137,7 +1137,7 @@ PPPInterface::Redial()
|
|||||||
info->interface = this;
|
info->interface = this;
|
||||||
info->thread = &fRedialThread;
|
info->thread = &fRedialThread;
|
||||||
|
|
||||||
fRedialThread = spawn_kernel_thread(redial_func, "PPPInterface: redial_thread",
|
fRedialThread = spawn_thread(redial_func, "PPPInterface: redial_thread",
|
||||||
B_NORMAL_PRIORITY, info);
|
B_NORMAL_PRIORITY, info);
|
||||||
|
|
||||||
resume_thread(fRedialThread);
|
resume_thread(fRedialThread);
|
||||||
|
|||||||
@@ -111,10 +111,12 @@ PPPLCP::Down()
|
|||||||
status_t
|
status_t
|
||||||
PPPLCP::Send(struct mbuf *packet)
|
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 B_ERROR;
|
||||||
|
|
||||||
return Interface()->Send(packet, PPP_LCP_PROTOCOL);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user