blob: 1ea36482aa83f42e6332a2f16b3d1108693ef881 [file] [log] [blame]
Bart De Schuymer1abc55d2002-06-01 19:23:47 +00001FOLLOW THESE SIMPLE GUIDELINES:
2-------------------------------
3
Bart De Schuymer095f2582005-10-20 17:29:07 +00004Compiling the source code:
5%make
6Put the files in the right directories:
Bart De Schuymer4a721be2002-11-20 19:40:47 +00007%make install
Bart De Schuymer1abc55d2002-06-01 19:23:47 +00008
Bart De Schuymer4a721be2002-11-20 19:40:47 +00009If you are using the CVS code or need your own kernel includes, do this
10instead (change the include directory to the appropriate one):
Bart De Schuymer06a96822003-02-19 20:09:51 +000011%make install KERNEL_INCLUDES=/usr/src/linux/include
Bart De Schuymer1abc55d2002-06-01 19:23:47 +000012
13WHAT GETS INSTALLED?
14--------------------
15
Bart De Schuymer1abc55d2002-06-01 19:23:47 +000016- The ebtables manual gets installed in /usr/local/man/man8
17 To put the manual somewhere else, include MANDIR=<<man-path/man>> as
18 option on the command line.
19 The Makefile will append /man8/ebtables.8.
Bart De Schuymera2960382003-04-01 17:29:13 +000020- ethertypes is by default placed in /etc/, if you
21 want to change this, include ETHERTYPESPATH=<<path>>.
Bart De Schuymer095f2582005-10-20 17:29:07 +000022- The userspace programs ebtables ebtables-save and ebtables-restore are
23 are copied by default to /usr/local/sbin/ebtables. If you want to put
24 the executables somewhere else, include BINPATH=<<path>>.
25- The ebtables initialisation file (enabling use of 'service ebtables') is
26 copied to /etc/rc.d/init.d (change with option INITDIR)
27- The ebtables configuration file (ebtables-config) is copied to /etc/sysconfig
Bart De Schuymer1abc55d2002-06-01 19:23:47 +000028
29That's all
Bart De Schuymer30c04a22004-11-29 21:25:36 +000030
Bart De Schuymer095f2582005-10-20 17:29:07 +000031You can also use a base directory different from the root directory (/),
32using the DESTDIR option. See the Makefile for more details.
33
34
Bart De Schuymer30c04a22004-11-29 21:25:36 +000035ADDITIONAL PROGRAM(S):
36----------------------
Bart De Schuymer26a486e2005-06-29 18:44:30 +000037-- examples/ulog/test_ulog.c --
Bart De Schuymer30c04a22004-11-29 21:25:36 +000038
39Contains an example to receive and parse netlink messages containing
40packets seen by the ebtables ulog watcher.
41
42Compile with:
43%make test_ulog.c KERNEL_INCLUDES=/usr/src/linux/include
44
45Usage:
46%examples/ulog/test_ulog NETLINK_GROUP
47%ebtables -A chain --ulog-nlgroup NETLINK_GROUP
Bart De Schuymer26a486e2005-06-29 18:44:30 +000048
49-- examples/perf_test/perf_test --
50
51A test script to compare the performance for the different ways to
Bart De Schuymer095f2582005-10-20 17:29:07 +000052construct an ebtables table. This is deprecated and should probably
53be ignored.