2016-01-14 20:08:07 -08:00
|
|
|
# Copyright (C) 2009, 2010, 2011, 2012, 2014, 2016 Nicira, Inc.
|
2009-07-08 10:30:42 -07:00
|
|
|
#
|
|
|
|
# Copying and distribution of this file, with or without modification,
|
|
|
|
# are permitted in any medium without royalty provided the copyright
|
|
|
|
# notice and this notice are preserved. This file is offered as-is,
|
|
|
|
# without warranty of any kind.
|
|
|
|
|
2013-12-13 18:54:28 +01:00
|
|
|
lib_LTLIBRARIES += ofproto/libofproto.la
|
2014-11-07 19:02:09 -08:00
|
|
|
ofproto_libofproto_la_LDFLAGS = \
|
2017-01-16 14:06:27 -05:00
|
|
|
$(OVS_LTINFO) \
|
2014-11-12 15:05:59 +01:00
|
|
|
-Wl,--version-script=$(top_builddir)/ofproto/libofproto.sym \
|
|
|
|
$(AM_LDFLAGS)
|
2013-12-13 18:54:28 +01:00
|
|
|
ofproto_libofproto_la_SOURCES = \
|
2013-12-06 13:27:26 -08:00
|
|
|
ofproto/bond.c \
|
|
|
|
ofproto/bond.h \
|
2009-11-23 13:59:20 -08:00
|
|
|
ofproto/collectors.c \
|
|
|
|
ofproto/collectors.h \
|
2011-03-29 12:24:28 -07:00
|
|
|
ofproto/connmgr.c \
|
|
|
|
ofproto/connmgr.h \
|
2009-07-08 10:30:42 -07:00
|
|
|
ofproto/fail-open.c \
|
|
|
|
ofproto/fail-open.h \
|
|
|
|
ofproto/in-band.c \
|
|
|
|
ofproto/in-band.h \
|
2011-04-11 15:08:19 -07:00
|
|
|
ofproto/names.c \
|
2009-07-08 10:30:42 -07:00
|
|
|
ofproto/netflow.c \
|
|
|
|
ofproto/netflow.h \
|
|
|
|
ofproto/ofproto.c \
|
|
|
|
ofproto/ofproto.h \
|
2011-05-11 12:13:10 -07:00
|
|
|
ofproto/ofproto-dpif.c \
|
2013-06-11 13:32:30 -07:00
|
|
|
ofproto/ofproto-dpif.h \
|
2013-04-22 10:01:14 -07:00
|
|
|
ofproto/ofproto-dpif-ipfix.c \
|
|
|
|
ofproto/ofproto-dpif-ipfix.h \
|
2024-07-13 23:23:40 +02:00
|
|
|
ofproto/ofproto-dpif-lsample.c \
|
|
|
|
ofproto/ofproto-dpif-lsample.h \
|
2013-06-20 13:00:27 -07:00
|
|
|
ofproto/ofproto-dpif-mirror.c \
|
|
|
|
ofproto/ofproto-dpif-mirror.h \
|
2013-10-09 04:30:37 +00:00
|
|
|
ofproto/ofproto-dpif-monitor.c \
|
|
|
|
ofproto/ofproto-dpif-monitor.h \
|
2014-01-27 01:18:30 -08:00
|
|
|
ofproto/ofproto-dpif-rid.c \
|
|
|
|
ofproto/ofproto-dpif-rid.h \
|
2011-06-15 11:28:51 -07:00
|
|
|
ofproto/ofproto-dpif-sflow.c \
|
|
|
|
ofproto/ofproto-dpif-sflow.h \
|
2016-12-06 14:11:15 -08:00
|
|
|
ofproto/ofproto-dpif-trace.c \
|
|
|
|
ofproto/ofproto-dpif-trace.h \
|
2013-06-25 14:45:43 -07:00
|
|
|
ofproto/ofproto-dpif-upcall.c \
|
|
|
|
ofproto/ofproto-dpif-upcall.h \
|
2013-06-11 13:32:30 -07:00
|
|
|
ofproto/ofproto-dpif-xlate.c \
|
|
|
|
ofproto/ofproto-dpif-xlate.h \
|
2011-07-01 14:13:56 -07:00
|
|
|
ofproto/ofproto-provider.h \
|
2016-09-14 16:51:27 -07:00
|
|
|
ofproto/ofproto-dpif-xlate-cache.c \
|
|
|
|
ofproto/ofproto-dpif-xlate-cache.h \
|
2009-07-08 10:30:42 -07:00
|
|
|
ofproto/pinsched.c \
|
2012-09-19 18:37:07 -07:00
|
|
|
ofproto/pinsched.h \
|
|
|
|
ofproto/tunnel.c \
|
2014-05-02 09:54:27 +03:00
|
|
|
ofproto/tunnel.h \
|
|
|
|
ofproto/bundles.c \
|
|
|
|
ofproto/bundles.h
|
|
|
|
|
2013-12-13 18:54:28 +01:00
|
|
|
ofproto_libofproto_la_CPPFLAGS = $(AM_CPPFLAGS)
|
|
|
|
ofproto_libofproto_la_CFLAGS = $(AM_CFLAGS)
|
|
|
|
ofproto_libofproto_la_LIBADD = lib/libsflow.la
|
2014-03-04 14:07:55 -08:00
|
|
|
if WIN32
|
|
|
|
ofproto_libofproto_la_LIBADD += ${PTHREAD_LIBS}
|
|
|
|
endif
|
|
|
|
|
2014-11-13 12:28:42 +01:00
|
|
|
pkgconfig_DATA += \
|
2017-01-26 14:07:00 -05:00
|
|
|
ofproto/libofproto.pc
|
ofproto: Add "ofproto/trace" command to help debugging flow tables.
With an appropriate flow table, output from a command like this:
ovs-appctl ofproto/trace system@dp0 0 0 ffffffffffff000c29f49d5c080600010
80006040001000c29f49d5cac10008a000000000000ac1004df00000000000000000000000000000
0000000
resembles the following:
Packet: -8:00:00.000000 00:0c:29:f4:9d:5c > ff:ff:ff:ff:ff:ff, ethertype ARP (0x
0806), length 60: arp who-has 172.16.4.223 tell 172.16.0.138
Flow: tunnel0:in_port0000:tci(0) mac00:0c:29:f4:9d:5c->ff:ff:ff:ff:ff:ff type080
6 proto1 tos0 ip172.16.0.138->172.16.4.223 port0->0
Rule: cookie=0 in_port=65534
OpenFlow actions=resubmit:1,mod_vlan_vid:5,resubmit:2,mod_vlan_pcp:6,strip_vlan
Resubmitted flow: unchanged
Rule: cookie=0 in_port=1
OpenFlow actions=resubmit:3,resubmit:4
Resubmitted flow: unchanged
No match
Resubmitted flow: unchanged
No match
Resubmitted flow: tunnel0:in_port0000:tci(vlan5,pcp0) mac00:0c:29:f4:9d:
5c->ff:ff:ff:ff:ff:ff type0806 proto1 tos0 ip172.16.0.138->172.16.4.223 port0->0
No match
Final flow: tunnel0:in_port0000:tci(0) mac00:0c:29:f4:9d:5c->ff:ff:ff:ff:ff:ff t
ype0806 proto1 tos0 ip172.16.0.138->172.16.4.223 port0->0
Datapath actions: set_tci(vid=5,pcp=0),set_tci(vid=5,pcp=6),strip_vlan
2010-12-09 15:00:36 -08:00
|
|
|
|
2013-04-22 10:01:14 -07:00
|
|
|
# Distribute this generated file in order not to require Python at
|
|
|
|
# build time if ofproto/ipfix.xml is not modified.
|
2013-12-13 18:54:28 +01:00
|
|
|
ofproto_libofproto_la_SOURCES += ofproto/ipfix-entities.def
|
2013-04-22 10:01:14 -07:00
|
|
|
|
|
|
|
BUILT_SOURCES += ofproto/ipfix-entities.def
|
|
|
|
|
|
|
|
CLEANFILES += ofproto/ipfix-entities.def
|
|
|
|
|
2014-11-11 11:53:47 -08:00
|
|
|
MAN_FRAGMENTS += ofproto/ofproto-unixctl.man ofproto/ofproto-dpif-unixctl.man \
|
|
|
|
ofproto/ofproto-tnl-unixctl.man
|
2013-04-22 10:01:14 -07:00
|
|
|
|
|
|
|
# IPFIX entity definition macros generation from IANA's XML definition.
|
|
|
|
EXTRA_DIST += ofproto/ipfix.xml
|
|
|
|
dist_noinst_SCRIPTS = ofproto/ipfix-gen-entities
|
|
|
|
ofproto/ipfix-entities.def: ofproto/ipfix.xml ofproto/ipfix-gen-entities
|
2014-09-29 14:34:11 -07:00
|
|
|
$(AM_V_GEN)$(run_python) $(srcdir)/ofproto/ipfix-gen-entities $< > $@.tmp && \
|
2013-12-24 10:04:08 +09:00
|
|
|
mv $@.tmp $@
|
2014-08-17 20:19:36 -07:00
|
|
|
|
|
|
|
# IPFIX enterprise entity definition macros.
|
|
|
|
EXTRA_DIST += ofproto/ipfix-enterprise-entities.def
|
2015-12-21 20:24:34 -05:00
|
|
|
|
|
|
|
FLAKE8_PYFILES += ofproto/ipfix-gen-entities
|