blob: 7e1c78ab239161b13af89c84d0a5e681815e5b83 [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
Bart De Schuymer7d9e3eb2006-02-06 21:24:02 +000013If you want to make a static binary for ebtables, containing all the
14extensions, without shared libraries, do this (this will make a
15binary called 'static', which you can rename):
16%make static
17
Bart De Schuymer1abc55d2002-06-01 19:23:47 +000018WHAT GETS INSTALLED?
19--------------------
20
Bart De Schuymer1abc55d2002-06-01 19:23:47 +000021- The ebtables manual gets installed in /usr/local/man/man8
22 To put the manual somewhere else, include MANDIR=<<man-path/man>> as
23 option on the command line.
24 The Makefile will append /man8/ebtables.8.
Bart De Schuymera2960382003-04-01 17:29:13 +000025- ethertypes is by default placed in /etc/, if you
26 want to change this, include ETHERTYPESPATH=<<path>>.
Bart De Schuymer095f2582005-10-20 17:29:07 +000027- The userspace programs ebtables ebtables-save and ebtables-restore are
28 are copied by default to /usr/local/sbin/ebtables. If you want to put
29 the executables somewhere else, include BINPATH=<<path>>.
30- The ebtables initialisation file (enabling use of 'service ebtables') is
31 copied to /etc/rc.d/init.d (change with option INITDIR)
32- The ebtables configuration file (ebtables-config) is copied to /etc/sysconfig
Bart De Schuymer1abc55d2002-06-01 19:23:47 +000033
34That's all
Bart De Schuymer30c04a22004-11-29 21:25:36 +000035
Bart De Schuymer095f2582005-10-20 17:29:07 +000036You can also use a base directory different from the root directory (/),
37using the DESTDIR option. See the Makefile for more details.
38
39
Bart De Schuymer30c04a22004-11-29 21:25:36 +000040ADDITIONAL PROGRAM(S):
41----------------------
Bart De Schuymer26a486e2005-06-29 18:44:30 +000042-- examples/ulog/test_ulog.c --
Bart De Schuymer30c04a22004-11-29 21:25:36 +000043
44Contains an example to receive and parse netlink messages containing
45packets seen by the ebtables ulog watcher.
46
47Compile with:
48%make test_ulog.c KERNEL_INCLUDES=/usr/src/linux/include
49
50Usage:
51%examples/ulog/test_ulog NETLINK_GROUP
52%ebtables -A chain --ulog-nlgroup NETLINK_GROUP
Bart De Schuymer26a486e2005-06-29 18:44:30 +000053
54-- examples/perf_test/perf_test --
55
56A test script to compare the performance for the different ways to
Bart De Schuymer095f2582005-10-20 17:29:07 +000057construct an ebtables table. This is deprecated and should probably
58be ignored.