Bart De Schuymer | 1abc55d | 2002-06-01 19:23:47 +0000 | [diff] [blame] | 1 | FOLLOW THESE SIMPLE GUIDELINES: |
| 2 | ------------------------------- |
| 3 | |
Bart De Schuymer | 095f258 | 2005-10-20 17:29:07 +0000 | [diff] [blame] | 4 | Compiling the source code: |
| 5 | %make |
| 6 | Put the files in the right directories: |
Bart De Schuymer | 4a721be | 2002-11-20 19:40:47 +0000 | [diff] [blame] | 7 | %make install |
Bart De Schuymer | 1abc55d | 2002-06-01 19:23:47 +0000 | [diff] [blame] | 8 | |
Bart De Schuymer | 4a721be | 2002-11-20 19:40:47 +0000 | [diff] [blame] | 9 | If you are using the CVS code or need your own kernel includes, do this |
| 10 | instead (change the include directory to the appropriate one): |
Bart De Schuymer | 06a9682 | 2003-02-19 20:09:51 +0000 | [diff] [blame] | 11 | %make install KERNEL_INCLUDES=/usr/src/linux/include |
Bart De Schuymer | 1abc55d | 2002-06-01 19:23:47 +0000 | [diff] [blame] | 12 | |
| 13 | WHAT GETS INSTALLED? |
| 14 | -------------------- |
| 15 | |
Bart De Schuymer | 1abc55d | 2002-06-01 19:23:47 +0000 | [diff] [blame] | 16 | - 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 Schuymer | a296038 | 2003-04-01 17:29:13 +0000 | [diff] [blame] | 20 | - ethertypes is by default placed in /etc/, if you |
| 21 | want to change this, include ETHERTYPESPATH=<<path>>. |
Bart De Schuymer | 095f258 | 2005-10-20 17:29:07 +0000 | [diff] [blame] | 22 | - 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 Schuymer | 1abc55d | 2002-06-01 19:23:47 +0000 | [diff] [blame] | 28 | |
| 29 | That's all |
Bart De Schuymer | 30c04a2 | 2004-11-29 21:25:36 +0000 | [diff] [blame] | 30 | |
Bart De Schuymer | 095f258 | 2005-10-20 17:29:07 +0000 | [diff] [blame] | 31 | You can also use a base directory different from the root directory (/), |
| 32 | using the DESTDIR option. See the Makefile for more details. |
| 33 | |
| 34 | |
Bart De Schuymer | 30c04a2 | 2004-11-29 21:25:36 +0000 | [diff] [blame] | 35 | ADDITIONAL PROGRAM(S): |
| 36 | ---------------------- |
Bart De Schuymer | 26a486e | 2005-06-29 18:44:30 +0000 | [diff] [blame] | 37 | -- examples/ulog/test_ulog.c -- |
Bart De Schuymer | 30c04a2 | 2004-11-29 21:25:36 +0000 | [diff] [blame] | 38 | |
| 39 | Contains an example to receive and parse netlink messages containing |
| 40 | packets seen by the ebtables ulog watcher. |
| 41 | |
| 42 | Compile with: |
| 43 | %make test_ulog.c KERNEL_INCLUDES=/usr/src/linux/include |
| 44 | |
| 45 | Usage: |
| 46 | %examples/ulog/test_ulog NETLINK_GROUP |
| 47 | %ebtables -A chain --ulog-nlgroup NETLINK_GROUP |
Bart De Schuymer | 26a486e | 2005-06-29 18:44:30 +0000 | [diff] [blame] | 48 | |
| 49 | -- examples/perf_test/perf_test -- |
| 50 | |
| 51 | A test script to compare the performance for the different ways to |
Bart De Schuymer | 095f258 | 2005-10-20 17:29:07 +0000 | [diff] [blame] | 52 | construct an ebtables table. This is deprecated and should probably |
| 53 | be ignored. |