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:
@@ -1,19 +1,36 @@
|
|||||||
SubDir OBOS_TOP src add-ons kernel drivers net stack ;
|
SubDir OBOS_TOP src add-ons kernel drivers net stack ;
|
||||||
|
|
||||||
UsePrivateHeaders net ;
|
UsePrivateHeaders net ;
|
||||||
UsePublicHeaders posix ;
|
UsePublicHeaders ;
|
||||||
|
UsePosixHeaders ;
|
||||||
|
|
||||||
|
# a) Userland stack version:
|
||||||
|
|
||||||
R5KernelAddon stack : kernel drivers bin :
|
R5KernelAddon stack : kernel drivers bin :
|
||||||
net_stack_driver.c
|
net_userstack_driver.c
|
||||||
;
|
;
|
||||||
|
|
||||||
# For OpenBeOS we should be building the driver objects this way.
|
# For OpenBeOS we should be building the driver objects this way.
|
||||||
#KernelObjects
|
#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
|
# net_stack_driver.c
|
||||||
# :
|
# :
|
||||||
# -fno-pic -D_KERNEL_MODE
|
# -fno-pic -D_KERNEL_MODE
|
||||||
# ;
|
# ;
|
||||||
|
|
||||||
|
|
||||||
# Link to kernel/drivers/dev/net
|
# Link to kernel/drivers/dev/net
|
||||||
{
|
{
|
||||||
local dir = [ FDirName $(OBOS_ADDON_DIR) kernel drivers dev net ] ;
|
local dir = [ FDirName $(OBOS_ADDON_DIR) kernel drivers dev net ] ;
|
||||||
|
|||||||
@@ -10,19 +10,20 @@
|
|||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
#include <OS.h>
|
// Public/system includes
|
||||||
#include <Drivers.h>
|
#include <drivers/Drivers.h>
|
||||||
#include <KernelExport.h>
|
#include <drivers/KernelExport.h>
|
||||||
#include <string.h>
|
#include <drivers/driver_settings.h>
|
||||||
#include <driver_settings.h>
|
|
||||||
#include <drivers/module.h> // For get_module()/put_module()
|
#include <drivers/module.h> // For get_module()/put_module()
|
||||||
|
|
||||||
#include "netinet/in_var.h"
|
#include <net_stack_driver.h>
|
||||||
#include "sys/select.h"
|
#include <netinet/in_var.h>
|
||||||
|
|
||||||
#include "protosw.h"
|
#include <string.h>
|
||||||
#include "core_module.h"
|
|
||||||
#include "net_stack_driver.h"
|
// Private includes
|
||||||
|
#include <protosw.h>
|
||||||
|
#include <core_module.h>
|
||||||
|
|
||||||
/* these are missing from KernelExport.h ... */
|
/* these are missing from KernelExport.h ... */
|
||||||
#define B_SELECT_READ 1
|
#define B_SELECT_READ 1
|
||||||
|
|||||||
@@ -8,21 +8,25 @@
|
|||||||
** This file may be used under the terms of the OpenBeOS License.
|
** 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 <OS.h>
|
||||||
#include <KernelExport.h>
|
#include <drivers/Drivers.h>
|
||||||
#include <Drivers.h>
|
#include <drivers/KernelExport.h>
|
||||||
|
|
||||||
#include <string.h>
|
// Posix includes
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
|
#include <string.h>
|
||||||
|
#include <netinet/in_var.h>
|
||||||
|
|
||||||
#include "net_stack_driver.h"
|
// Private includes
|
||||||
#include "userland_ipc.h"
|
#include <net_stack_driver.h>
|
||||||
#include "lock.h"
|
#include <userland_ipc.h>
|
||||||
#include "sys/sockio.h"
|
|
||||||
#include "sys/socket.h"
|
|
||||||
#include "net/if.h"
|
|
||||||
#include "sys/select.h"
|
|
||||||
|
|
||||||
/* these are missing from KernelExport.h ... */
|
/* these are missing from KernelExport.h ... */
|
||||||
#define B_SELECT_READ 1
|
#define B_SELECT_READ 1
|
||||||
|
|||||||
Reference in New Issue
Block a user