mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 09:50:02 +00:00
Initial files for the TCP/IP stack kernel module.
svn path=/trunk/; revision=784
This commit is contained in:
parent
82a0c31208
commit
8a20ddc7d4
6 changed files with 227 additions and 0 deletions
110
reactos/drivers/net/tcpip/Makefile_rex
Normal file
110
reactos/drivers/net/tcpip/Makefile_rex
Normal file
|
@ -0,0 +1,110 @@
|
||||||
|
# $Id: Makefile_rex,v 1.1 1999/11/20 20:36:45 ea Exp $
|
||||||
|
#
|
||||||
|
# TCPIP.SYS build spec
|
||||||
|
#
|
||||||
|
|
||||||
|
TARGETNAME=tcpip
|
||||||
|
|
||||||
|
BASE_CFLAGS = -I../../../include
|
||||||
|
|
||||||
|
OBJECTS_MISC = misc/main.o misc/iface.o misc/$(TARGETNAME).coff
|
||||||
|
|
||||||
|
OBJECTS = $(OBJECTS_MISC)
|
||||||
|
|
||||||
|
all: $(TARGETNAME).sys
|
||||||
|
|
||||||
|
misc/$(TARGETNAME).coff: misc/$(TARGETNAME).rc ../../../include/reactos/resource.h
|
||||||
|
|
||||||
|
ifeq ($(DOSCLI),yes)
|
||||||
|
CLEAN_FILES = \
|
||||||
|
misc\*.o misc\*.coff \
|
||||||
|
$(TARGETNAME).o $(TARGETNAME).a \
|
||||||
|
junk.tmp base.tmp temp.exp \
|
||||||
|
$(TARGETNAME).sys $(TARGETNAME).sym
|
||||||
|
else
|
||||||
|
CLEAN_FILES = \
|
||||||
|
misc/*.o misc/*.coff \
|
||||||
|
$(TARGETNAME).o $(TARGETNAME).a \
|
||||||
|
junk.tmp base.tmp temp.exp \
|
||||||
|
$(TARGETNAME).sys $(TARGETNAME).sym
|
||||||
|
endif
|
||||||
|
|
||||||
|
$(TARGETNAME).sys: $(OBJECTS) misc/$(TARGETNAME).def
|
||||||
|
$(LD) -r $(OBJECTS) -o $(TARGETNAME).o
|
||||||
|
$(DLLTOOL) \
|
||||||
|
--dllname $(TARGETNAME).sys \
|
||||||
|
--def misc/$(TARGETNAME).def \
|
||||||
|
--output-lib $(TARGETNAME).a \
|
||||||
|
--kill-at
|
||||||
|
$(CC) \
|
||||||
|
--subsystem=native \
|
||||||
|
-mdll \
|
||||||
|
--dll \
|
||||||
|
-e _DllMain@8 \
|
||||||
|
-o junk.tmp \
|
||||||
|
-Wl,--image-base,0x0 \
|
||||||
|
-Wl,--file-alignment,0x1000 \
|
||||||
|
-Wl,--section-alignment,0x1000 \
|
||||||
|
-Wl,--defsym,_end=end \
|
||||||
|
-Wl,--defsym,_edata=__data_end__ \
|
||||||
|
-Wl,--defsym,_etext=etext \
|
||||||
|
-Wl,--base-file,base.tmp $(TARGETNAME).o \
|
||||||
|
-specs=../../../specs \
|
||||||
|
../../../ntoskrnl/ntoskrnl.a
|
||||||
|
- $(RM) junk.tmp
|
||||||
|
$(DLLTOOL) \
|
||||||
|
--dllname $(TARGETNAME).sys \
|
||||||
|
--base-file base.tmp \
|
||||||
|
--output-exp temp.exp \
|
||||||
|
--def misc/$(TARGETNAME).edf \
|
||||||
|
--kill-at
|
||||||
|
- $(RM) base.tmp
|
||||||
|
$(CC) \
|
||||||
|
--subsystem=native \
|
||||||
|
-mdll \
|
||||||
|
--dll \
|
||||||
|
-e _DllMain@8 \
|
||||||
|
-o $(TARGETNAME).sys \
|
||||||
|
$(TARGETNAME).o \
|
||||||
|
../../../ntoskrnl/ntoskrnl.a \
|
||||||
|
-Wl,--image-base,0x0 \
|
||||||
|
-Wl,--file-alignment,0x1000 \
|
||||||
|
-Wl,--section-alignment,0x1000 \
|
||||||
|
-Wl,--defsym,_end=end \
|
||||||
|
-Wl,--defsym,_edata=__data_end__ \
|
||||||
|
-Wl,--defsym,_etext=etext \
|
||||||
|
-Wl,temp.exp \
|
||||||
|
-specs=../../../specs
|
||||||
|
- $(RM) temp.exp
|
||||||
|
$(NM) --numeric-sort $(TARGETNAME).sys > $(TARGETNAME).sym
|
||||||
|
|
||||||
|
clean: $(CLEAN_FILES:%=%_clean)
|
||||||
|
|
||||||
|
$(CLEAN_FILES:%=%_clean): %_clean:
|
||||||
|
- $(RM) $*
|
||||||
|
|
||||||
|
.PHONY: clean $(CLEAN_FILES:%=%_clean)
|
||||||
|
|
||||||
|
floppy: $(FLOPPY_DIR)/drivers/$(TARGETNAME).sys
|
||||||
|
|
||||||
|
$(FLOPPY_DIR)/drivers/$(TARGETNAME).sys: $(TARGETNAME).sys
|
||||||
|
ifeq ($(DOSCLI),yes)
|
||||||
|
$(CP) $(TARGETNAME).sys $(FLOPPY_DIR)\drivers\$(TARGETNAME).sys
|
||||||
|
else
|
||||||
|
$(CP) $(TARGETNAME).sys $(FLOPPY_DIR)/drivers/$(TARGETNAME).sys
|
||||||
|
endif
|
||||||
|
|
||||||
|
dist: $(DIST_DIR)/drivers/$(TARGETNAME).sys
|
||||||
|
|
||||||
|
$(DIST_DIR)/drivers/$(TARGETNAME).sys: $(TARGETNAME).sys
|
||||||
|
ifeq ($(DOSCLI),yes)
|
||||||
|
$(CP) $(TARGETNAME).sys ..\..\$(DIST_DIR)\drivers\$(TARGETNAME).sys
|
||||||
|
else
|
||||||
|
$(CP) $(TARGETNAME).sys ../../$(DIST_DIR)/drivers/$(TARGETNAME).sys
|
||||||
|
endif
|
||||||
|
|
||||||
|
#WITH_DEBUGGING = yes
|
||||||
|
#WIN32_LEAN_AND_MEAN = yes
|
||||||
|
#WARNINGS_ARE_ERRORS = yes
|
||||||
|
include ../../../rules.mak
|
||||||
|
|
39
reactos/drivers/net/tcpip/misc/iface.c
Normal file
39
reactos/drivers/net/tcpip/misc/iface.c
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
/* $Id: iface.c,v 1.1 1999/11/20 20:36:46 ea Exp $
|
||||||
|
*
|
||||||
|
* reactos/services/net/tcpip/misc/iface.c
|
||||||
|
*/
|
||||||
|
#include <ntos.h>
|
||||||
|
|
||||||
|
VOID
|
||||||
|
STDCALL
|
||||||
|
IPAddInterface (
|
||||||
|
DWORD Unknown0,
|
||||||
|
DWORD Unknown1,
|
||||||
|
DWORD Unknown2,
|
||||||
|
DWORD Unknown3,
|
||||||
|
DWORD Unknown4
|
||||||
|
)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
VOID
|
||||||
|
STDCALL
|
||||||
|
IPDelInterface (
|
||||||
|
DWORD Unknown0
|
||||||
|
)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
VOID
|
||||||
|
STDCALL
|
||||||
|
LookupRoute (
|
||||||
|
DWORD Unknown0,
|
||||||
|
DWORD Unknown1
|
||||||
|
)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* EOF */
|
15
reactos/drivers/net/tcpip/misc/main.c
Normal file
15
reactos/drivers/net/tcpip/misc/main.c
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
/* $Id: main.c,v 1.1 1999/11/20 20:36:46 ea Exp $ */
|
||||||
|
#include <ntos.h>
|
||||||
|
|
||||||
|
BOOLEAN
|
||||||
|
STDCALL
|
||||||
|
DllMain (
|
||||||
|
IN PDRIVER_OBJECT DriverObject,
|
||||||
|
IN PUNICODE_STRING RegistryPath
|
||||||
|
)
|
||||||
|
{
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* EOF */
|
12
reactos/drivers/net/tcpip/misc/tcpip.def
Normal file
12
reactos/drivers/net/tcpip/misc/tcpip.def
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
; $Id: tcpip.def,v 1.1 1999/11/20 20:36:46 ea Exp $
|
||||||
|
;
|
||||||
|
; TCPIP.SYS
|
||||||
|
;
|
||||||
|
LIBRARY tcpip.sys
|
||||||
|
|
||||||
|
EXPORTS
|
||||||
|
IPAddInterface@20
|
||||||
|
IPDelInterface@4
|
||||||
|
LookupRoute@8
|
||||||
|
|
||||||
|
; EOF
|
12
reactos/drivers/net/tcpip/misc/tcpip.edf
Normal file
12
reactos/drivers/net/tcpip/misc/tcpip.edf
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
; $Id: tcpip.edf,v 1.1 1999/11/20 20:36:46 ea Exp $
|
||||||
|
;
|
||||||
|
; TCPIP.SYS
|
||||||
|
;
|
||||||
|
LIBRARY tcpip.sys
|
||||||
|
|
||||||
|
EXPORTS
|
||||||
|
IPAddInterface=IPAddInterface@20
|
||||||
|
IPDelInterface=IPDelInterface@4
|
||||||
|
LookupRoute=LookupRoute@8
|
||||||
|
|
||||||
|
; EOF
|
39
reactos/drivers/net/tcpip/misc/tcpip.rc
Normal file
39
reactos/drivers/net/tcpip/misc/tcpip.rc
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
/* $Id: tcpip.rc,v 1.1 1999/11/20 20:36:46 ea Exp $ */
|
||||||
|
#include <defines.h>
|
||||||
|
#include <reactos/resource.h>
|
||||||
|
|
||||||
|
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
|
||||||
|
|
||||||
|
VS_VERSION_INFO VERSIONINFO
|
||||||
|
FILEVERSION RES_UINT_FV_MAJOR,RES_UINT_FV_MINOR,RES_UINT_FV_REVISION,RES_UINT_FV_BUILD
|
||||||
|
PRODUCTVERSION RES_UINT_PV_MAJOR,RES_UINT_PV_MINOR,RES_UINT_PV_REVISION,RES_UINT_PV_BUILD
|
||||||
|
FILEFLAGSMASK 0x3fL
|
||||||
|
#ifdef _DEBUG
|
||||||
|
FILEFLAGS 0x1L
|
||||||
|
#else
|
||||||
|
FILEFLAGS 0x0L
|
||||||
|
#endif
|
||||||
|
FILEOS 0x40004L
|
||||||
|
FILETYPE 0x2L
|
||||||
|
FILESUBTYPE 0x0L
|
||||||
|
BEGIN
|
||||||
|
BLOCK "StringFileInfo"
|
||||||
|
BEGIN
|
||||||
|
BLOCK "040904b0"
|
||||||
|
BEGIN
|
||||||
|
VALUE "CompanyName", RES_STR_COMPANY_NAME
|
||||||
|
VALUE "FileDescription", "TCP/IP kernel module\0"
|
||||||
|
VALUE "FileVersion", "0.0.0\0"
|
||||||
|
VALUE "InternalName", "tcpip\0"
|
||||||
|
VALUE "LegalCopyright", RES_STR_LEGAL_COPYRIGHT
|
||||||
|
VALUE "OriginalFilename", "tcpip.sys\0"
|
||||||
|
VALUE "ProductName", RES_STR_PRODUCT_NAME
|
||||||
|
VALUE "ProductVersion", RES_STR_PRODUCT_VERSION
|
||||||
|
END
|
||||||
|
END
|
||||||
|
BLOCK "VarFileInfo"
|
||||||
|
BEGIN
|
||||||
|
VALUE "Translation", 0x409, 1200
|
||||||
|
END
|
||||||
|
END
|
||||||
|
|
Loading…
Reference in a new issue