Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,14 @@ For more details, see multistack/examples/pkt-gen.c (a modified version of netma

## How to Build the Code (FreeBSD)

Assuming that the kernel source code directory is `~/head/` use
Assuming that the kernel source code directory is `/home/tuexen/head/` use
````
cd multistack/sys/contrib/multistack
env SYSDIR=~/head/sys make
````
If you also want SCTP support, you need to do
````
echo "#define SCTP 1" > opt_sctp.h
env SYSDIR=~/head/sys make
env SYSDIR=/home/tuexen/head/sys make
````

Please note that you need r285877 or higher of the FreeBSD HEAD sources [(see patch)](https://svnweb.freebsd.org/changeset/base/285877) to get multistack compiling with SCTP support.

## Author

Michio Honda (firstname@netapp.com)
Expand Down
8 changes: 2 additions & 6 deletions sys/contrib/multistack/Makefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
.PATH: .
KMOD= multistack
SRCS= multistack.c
SRCS+= opt_inet.h opt_inet6.h opt_sctp.h opt_compat.h opt_ipsec.h
TARGET!= uname -m
IDENT!= uname -i
CFLAGS+= -I$(KSRC)
CFLAGS+= -I../../../sys/
CFLAGS+= -I../../
CFLAGS+= -I$(KSRC)/sys/$(TARGET)/compile/$(IDENT)
CFLAGS+= $(NMVER)

CFLAGS+= -I$(SYSDIR)/$(TARGET)/compile/$(IDENT)
CFLAGS+= -I/usr/obj/$(SYSDIR)/$(IDENT)
.include <bsd.kmod.mk>