Skip to contentSkip to conversation

examples: add for mmap nonmin1

PATCH In review Ken-ichirou MATSUZAWA 1 participant 1 message Dec 7, 2013 netfilter

lore
Share & tools
lore
#0 lore raw

PATCH 5/9 examples: add for mmap nonmin1

---
 configure.ac                            |   2 +-
 examples/mmap/Makefile.am               |   2 +-
 examples/mmap/nonmin1/Makefile.am       |  18 ++
 examples/mmap/nonmin1/nf-log.c          | 250 +++++++++++++++++++++
 examples/mmap/nonmin1/nfct-dump.c       | 336 ++++++++++++++++++++++++++++
 examples/mmap/nonmin1/rtnl-addr-dump.c  | 159 +++++++++++++
 examples/mmap/nonmin1/rtnl-route-dump.c | 383 ++++++++++++++++++++++++++++++++
 7 files changed, 1148 insertions(+), 2 deletions(-)
 create mode 100644 examples/mmap/nonmin1/Makefile.am
 create mode 100644 examples/mmap/nonmin1/nf-log.c
 create mode 100644 examples/mmap/nonmin1/nfct-dump.c
 create mode 100644 examples/mmap/nonmin1/rtnl-addr-dump.c
 create mode 100644 examples/mmap/nonmin1/rtnl-route-dump.c
configure.ac +1 -1
index 1b0b2cd..08350b9 100644
@@ -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 examples/mmap/Makefile examples/mmap/min/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 examples/mmap/nonmin1/Makefile libmnl.pc doxygen.cfg])
 AC_OUTPUT
examples/mmap/Makefile.am +1 -1
index a532ec0..1a7ee6f 100644
@@ -1 +1 @@
-SUBDIRS = min
+SUBDIRS = min nonmin1
examples/mmap/nonmin1/Makefile.am new file +18 -0
new file mode 100644
index 0000000..59c7792
@@ -0,0 +1,18 @@
+include $(top_srcdir)/Make_global.am
+
+check_PROGRAMS = nf-log \
+		 nfct-dump \
+		 rtnl-addr-dump \
+		 rtnl-route-dump
+
+nf_log_SOURCES = nf-log.c
+nf_log_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_route_dump_SOURCES = rtnl-route-dump.c
+rtnl_route_dump_LDADD = ../../../src/libmnl.la
examples/mmap/nonmin1/nf-log.c new file +250 -0

250 lines not on this page · raw message

examples/mmap/nonmin1/nfct-dump.c new file +336 -0

336 lines not on this page · raw message

examples/mmap/nonmin1/rtnl-addr-dump.c new file +159 -0

159 lines not on this page · raw message

examples/mmap/nonmin1/rtnl-route-dump.c new file +383 -0

383 lines not on this page · raw message

Signature · 1 line
1.8.4.rc3