On 15 March 2016 at 13:18, Maxim Uvarov <maxim.uva...@linaro.org> wrote:
> On 03/11/16 16:26, venkatesh.vivekanan...@linaro.org wrote: > >> From: Venkatesh Vivekanandan <venkatesh.vivekanan...@linaro.org> >> >> - created example/ipfw/ipfw/Makefile.am >> - changes done in example/m4/configure.m4 to accommodate odp_ipfw >> - odp_ipfw is to create rules in userspace. All packets that pass the >> rule will be sent out on another interface and dropped otherwise. >> Default rule is to accept all the packets. >> >> Signed-off-by: Venkatesh Vivekanandan <venkatesh.vivekanan...@linaro.org> >> --- >> example/Makefile.am | 3 ++- >> example/ipfw/ipfw/Makefile.am | 43 >> +++++++++++++++++++++++++++++++++++++++++++ >> example/m4/configure.m4 | 3 ++- >> 3 files changed, 47 insertions(+), 2 deletions(-) >> create mode 100644 example/ipfw/ipfw/Makefile.am >> >> diff --git a/example/Makefile.am b/example/Makefile.am >> index 2d425c6..33556da 100644 >> --- a/example/Makefile.am >> +++ b/example/Makefile.am >> @@ -1 +1,2 @@ >> -SUBDIRS = classifier generator ipsec packet time timer traffic_mgmt >> l2fwd_simple >> +SUBDIRS = classifier generator ipsec packet time timer traffic_mgmt \ >> + l2fwd_simple ipfw/ipfw >> diff --git a/example/ipfw/ipfw/Makefile.am b/example/ipfw/ipfw/Makefile.am >> new file mode 100644 >> index 0000000..adcab97 >> --- /dev/null >> +++ b/example/ipfw/ipfw/Makefile.am >> @@ -0,0 +1,43 @@ >> +#include $(top_srcdir)/example/Makefile.inc >> + >> +OBJDIR=objs >> +# ipfw and uipfw are built in subdirs >> +INCDIRS = -I ../$(OBJDIR)/include_e -DEMULATE_SYSCTL >> +INCDIRS += -I ../sys -I ../extra/sys -I ../extra/sys/contrib/pf >> + >> +OBJPATH = ./$(OBJDIR) >> + >> +E_CFLAGS = $(INCDIRS) >> +E_CFLAGS += -include ../extra/glue.h # headers >> +E_CFLAGS += -include ../extra/missing.h # headers >> +E_CFLAGS += -O2 -Wall -Werror >> +E_CFLAGS += -fno-strict-aliasing >> +E_CFLAGS += -Wno-pointer-arith >> + >> +E_CFLAGS += -DUSERSPACE # communicate through userspace >> +E_CFLAGS += -D__BSD_VISIBLE >> +E_CFLAGS += -DNEED_STRTONUM -DNEED_SYSCTLBYNAME -DNEED_ROUNDUP2 >> +E_CFLAGS += -DNEED_SIN_LEN >> +E_CFLAGS += -Wno-unused-but-set-variable >> +E_CFLAGS += -Wno-unused >> + >> +AM_CFLAGS = $(E_CFLAGS) >> + >> +AM_LDFLAGS += -lutil >> + >> +bin_PROGRAMS = odp_ipfw$(EXEEXT) >> +odp_ipfw_LDFLAGS = $(AM_LDFLAGS) -static >> +odp_ipfw_CFLAGS = $(AM_CFLAGS) -I${top_srcdir}/example >> + >> +noinst_HEADERS = \ >> + $(top_srcdir)/example/example_debug.h >> + >> +dist_odp_ipfw_SOURCES = ipfw2.c \ >> + dummynet.c \ >> + main.c \ >> + ipv6.c \ >> + altq.c \ >> + tables.c \ >> + ../extra/expand_number.c \ >> + ../extra/humanize_number.c \ >> + ../extra/glue.c >> > alphabetic order here please. Will correct the order here and example/ipfw/Makefile.am as well. Patch set v3 will have them updated. > > > diff --git a/example/m4/configure.m4 b/example/m4/configure.m4 >> index 74869ff..ebe38ec 100644 >> --- a/example/m4/configure.m4 >> +++ b/example/m4/configure.m4 >> @@ -6,4 +6,5 @@ AC_CONFIG_FILES([example/classifier/Makefile >> example/time/Makefile >> example/timer/Makefile >> example/traffic_mgmt/Makefile >> - example/l2fwd_simple/Makefile]) >> + example/l2fwd_simple/Makefile >> + example/ipfw/ipfw/Makefile]) >> > > _______________________________________________ > lng-odp mailing list > lng-odp@lists.linaro.org > https://lists.linaro.org/mailman/listinfo/lng-odp >
_______________________________________________ lng-odp mailing list lng-odp@lists.linaro.org https://lists.linaro.org/mailman/listinfo/lng-odp