examples: add for min mmap
PATCH 3/9 examples: add for min mmap
Signed-off-by Ken-ichirou MATSUZAWA <[email protected]>
--- configure.ac | 2 +- examples/Makefile.am | 2 +- examples/mmap/Makefile.am | 1 + examples/mmap/min/Makefile.am | 26 +++ examples/mmap/min/nf-log.c | 292 ++++++++++++++++++++++++ examples/mmap/min/nf-queue.c | 333 ++++++++++++++++++++++++++++ examples/mmap/min/nfct-dump.c | 378 +++++++++++++++++++++++++++++++ examples/mmap/min/rtnl-addr-dump.c | 204 +++++++++++++++++ examples/mmap/min/rtnl-link-dump.c | 199 +++++++++++++++++ examples/mmap/min/rtnl-route-dump.c | 427 ++++++++++++++++++++++++++++++++++++ 10 files changed, 1862 insertions(+), 2 deletions(-) create mode 100644 examples/mmap/Makefile.am create mode 100644 examples/mmap/min/Makefile.am create mode 100644 examples/mmap/min/nf-log.c create mode 100644 examples/mmap/min/nf-queue.c create mode 100644 examples/mmap/min/nfct-dump.c create mode 100644 examples/mmap/min/rtnl-addr-dump.c create mode 100644 examples/mmap/min/rtnl-link-dump.c create mode 100644 examples/mmap/min/rtnl-route-dump.c
configure.ac +1 -1
@@ -27,5 +27,5 @@ regular_CFLAGS="-Wall -Waggregate-return -Wmissing-declarations \ -Wformat=2 -pipe" AC_SUBST([regular_CPPFLAGS]) AC_SUBST([regular_CFLAGS]) -AC_CONFIG_FILES([Makefile src/Makefile include/Makefile include/libmnl/Makefile include/linux/Makefile include/linux/netfilter/Makefile examples/Makefile examples/genl/Makefile examples/kobject/Makefile examples/netfilter/Makefile examples/rtnl/Makefile libmnl.pc doxygen.cfg]) +AC_CONFIG_FILES([Makefile src/Makefile include/Makefile include/libmnl/Makefile include/linux/Makefile include/linux/netfilter/Makefile examples/Makefile examples/genl/Makefile examples/kobject/Makefile examples/netfilter/Makefile examples/rtnl/Makefile examples/mmap/Makefile examples/mmap/min/Makefile libmnl.pc doxygen.cfg]) AC_OUTPUT
examples/Makefile.am +1 -1
@@ -1 +1 @@ -SUBDIRS = genl kobject netfilter rtnl +SUBDIRS = genl kobject netfilter rtnl mmap
examples/mmap/Makefile.am new file +1 -0
@@ -0,0 +1 @@ +SUBDIRS = min
examples/mmap/min/Makefile.am new file +26 -0
@@ -0,0 +1,26 @@ +include $(top_srcdir)/Make_global.am + +check_PROGRAMS = nf-log \ + nf-queue \ + nfct-dump \ + rtnl-addr-dump \ + rtnl-link-dump \ + rtnl-route-dump + +nf_log_SOURCES = nf-log.c +nf_log_LDADD = ../../../src/libmnl.la + +nf_queue_SOURCES = nf-queue.c +nf_queue_LDADD = ../../../src/libmnl.la + +nfct_dump_SOURCES = nfct-dump.c +nfct_dump_LDADD = ../../../src/libmnl.la + +rtnl_addr_dump_SOURCES = rtnl-addr-dump.c +rtnl_addr_dump_LDADD = ../../../src/libmnl.la + +rtnl_link_dump_SOURCES = rtnl-link-dump.c +rtnl_link_dump_LDADD = ../../../src/libmnl.la + +rtnl_route_dump_SOURCES = rtnl-route-dump.c +rtnl_route_dump_LDADD = ../../../src/libmnl.la
examples/mmap/min/nf-log.c new file +292 -0
292 lines not on this page · raw message
examples/mmap/min/nf-queue.c new file +333 -0
333 lines not on this page · raw message
examples/mmap/min/nfct-dump.c new file +378 -0
378 lines not on this page · raw message
examples/mmap/min/rtnl-addr-dump.c new file +204 -0
204 lines not on this page · raw message
examples/mmap/min/rtnl-link-dump.c new file +199 -0
199 lines not on this page · raw message
examples/mmap/min/rtnl-route-dump.c new file +427 -0
427 lines not on this page · raw message
Signature · 1 line
1.8.4.rc3