The network stack "kernel" modules was previously misplaced under the
misnamed /current/src/add-ons/net directory. Should be into /current/src/add-ons/kernel/network, as they are *kernel* modules add-ons and as they all share the "network/" prefix in their respective module names. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@932 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
25523b6213
commit
c5b60ec4fd
@ -1,19 +1,36 @@
|
||||
SubDir OBOS_TOP src add-ons kernel drivers net stack ;
|
||||
|
||||
UsePrivateHeaders net ;
|
||||
UsePublicHeaders posix ;
|
||||
UsePublicHeaders ;
|
||||
UsePosixHeaders ;
|
||||
|
||||
# a) Userland stack version:
|
||||
|
||||
R5KernelAddon stack : kernel drivers bin :
|
||||
net_stack_driver.c
|
||||
net_userstack_driver.c
|
||||
;
|
||||
|
||||
# For OpenBeOS we should be building the driver objects this way.
|
||||
#KernelObjects
|
||||
# net_userstack_driver.c
|
||||
# :
|
||||
# -fno-pic -D_KERNEL_MODE
|
||||
# ;
|
||||
|
||||
# b) Kernelland stack version:
|
||||
#
|
||||
#R5KernelAddon stack : kernel drivers bin :
|
||||
# net_stack_driver.c
|
||||
# ;
|
||||
#
|
||||
# For OpenBeOS we should be building the kernel stack driver objects this way.
|
||||
#KernelObjects
|
||||
# net_stack_driver.c
|
||||
# :
|
||||
# -fno-pic -D_KERNEL_MODE
|
||||
# ;
|
||||
|
||||
|
||||
# Link to kernel/drivers/dev/net
|
||||
{
|
||||
local dir = [ FDirName $(OBOS_ADDON_DIR) kernel drivers dev net ] ;
|
||||
|
@ -10,19 +10,20 @@
|
||||
|
||||
#else
|
||||
|
||||
#include <OS.h>
|
||||
#include <Drivers.h>
|
||||
#include <KernelExport.h>
|
||||
#include <string.h>
|
||||
#include <driver_settings.h>
|
||||
// Public/system includes
|
||||
#include <drivers/Drivers.h>
|
||||
#include <drivers/KernelExport.h>
|
||||
#include <drivers/driver_settings.h>
|
||||
#include <drivers/module.h> // For get_module()/put_module()
|
||||
|
||||
#include "netinet/in_var.h"
|
||||
#include "sys/select.h"
|
||||
#include <net_stack_driver.h>
|
||||
#include <netinet/in_var.h>
|
||||
|
||||
#include "protosw.h"
|
||||
#include "core_module.h"
|
||||
#include "net_stack_driver.h"
|
||||
#include <string.h>
|
||||
|
||||
// Private includes
|
||||
#include <protosw.h>
|
||||
#include <core_module.h>
|
||||
|
||||
/* these are missing from KernelExport.h ... */
|
||||
#define B_SELECT_READ 1
|
||||
|
@ -8,21 +8,25 @@
|
||||
** This file may be used under the terms of the OpenBeOS License.
|
||||
*/
|
||||
|
||||
#ifndef _KERNEL_MODE
|
||||
|
||||
#error "This module MUST be built as a kernel driver!"
|
||||
|
||||
#else
|
||||
|
||||
// Public includes
|
||||
//#include <OS.h>
|
||||
#include <KernelExport.h>
|
||||
#include <Drivers.h>
|
||||
#include <drivers/Drivers.h>
|
||||
#include <drivers/KernelExport.h>
|
||||
|
||||
#include <string.h>
|
||||
// Posix includes
|
||||
#include <malloc.h>
|
||||
#include <string.h>
|
||||
#include <netinet/in_var.h>
|
||||
|
||||
#include "net_stack_driver.h"
|
||||
#include "userland_ipc.h"
|
||||
#include "lock.h"
|
||||
#include "sys/sockio.h"
|
||||
#include "sys/socket.h"
|
||||
#include "net/if.h"
|
||||
#include "sys/select.h"
|
||||
// Private includes
|
||||
#include <net_stack_driver.h>
|
||||
#include <userland_ipc.h>
|
||||
|
||||
/* these are missing from KernelExport.h ... */
|
||||
#define B_SELECT_READ 1
|
||||
|
Loading…
Reference in New Issue
Block a user