In-band OAM active probe (VPP-471)
[vpp.git] / src / plugins / ioam.am
1 # Copyright (c) 2015 Cisco and/or its affiliates.
2 # Licensed under the Apache License, Version 2.0 (the "License");
3 # you may not use this file except in compliance with the License.
4 # You may obtain a copy of the License at:
5 #
6 #     http://www.apache.org/licenses/LICENSE-2.0
7 #
8 # Unless required by applicable law or agreed to in writing, software
9 # distributed under the License is distributed on an "AS IS" BASIS,
10 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 # See the License for the specific language governing permissions and
12 # limitations under the License.
13
14
15 ########################################
16 # iOAM Proof of Transit
17 ########################################
18
19 IOAM_POT_SRC =                                  \
20         ioam/lib-pot/pot_util.c                 \
21         ioam/encap/ip6_ioam_pot.c               \
22         ioam/lib-pot/pot_util.h                 \
23         ioam/lib-pot/math64.h                   \
24         ioam/lib-pot/pot_api.c
25
26 IOAM_POT_NOINST_HDR =                           \
27   ioam/lib-pot/pot_all_api_h.h                  \
28   ioam/lib-pot/pot_msg_enum.h                   \
29   ioam/lib-pot/pot.api.h                        \
30   ioam/lib-pot/pot_util.h                       \
31   ioam/lib-pot/math64.h
32
33 IOAM_POT_API = ioam/lib-pot/pot.api
34
35 ioam_pot_test_plugin_la_SOURCES =               \
36         ioam/lib-pot/pot_test.c                 \
37         ioam/lib-pot/pot_plugin.api.h
38
39 vppapitestplugins_LTLIBRARIES += ioam_pot_test_plugin.la
40
41 ########################################
42 # iOAM trace export for IPv6
43 ########################################
44
45 IOAM_EXPORT_SRC =                 \
46 ioam/export/ioam_export.c         \
47 ioam/export/node.c                \
48 ioam/export/ioam_export.api.h     \
49 ioam/export/ioam_export_thread.c
50
51 IOAM_EXPORT_NOINST_HDR =                \
52   ioam/export/ioam_export_all_api_h.h   \
53   ioam/export/ioam_export_msg_enum.h    \
54   ioam/export/ioam_export.api.h
55
56 IOAM_EXPORT_API = ioam/export/ioam_export.api
57
58 ioam_export_test_plugin_la_SOURCES =  \
59   ioam/export/ioam_export_test.c      \
60   ioam/export/ioam_export_plugin.api.h
61
62 vppapitestplugins_LTLIBRARIES += ioam_export_test_plugin.la
63
64 ########################################
65 # iOAM Trace
66 ########################################
67 IOAM_TRACE_SRC =                                \
68         ioam/lib-trace/trace_util.c             \
69         ioam/encap/ip6_ioam_trace.c             \
70         ioam/lib-trace/trace_util.h             \
71         ioam/lib-trace/trace_api.c
72
73 IOAM_TRACE_NOINST_HDR =                 \
74   ioam/export/ioam_export_all_api_h.h   \
75   ioam/lib-trace/trace_all_api_h.h      \
76   ioam/lib-trace/trace_msg_enum.h       \
77   ioam/lib-trace/trace.api.h            \
78   ioam/lib-trace/trace_util.h           \
79   ioam/encap/ip6_ioam_trace.h
80
81 IOAM_TRACE_API = ioam/lib-trace/trace.api
82
83 ioam_trace_test_plugin_la_SOURCES =             \
84         ioam/lib-trace/trace_test.c             \
85         ioam/lib-trace/trace_plugin.api.h
86
87 vppapitestplugins_LTLIBRARIES += ioam_trace_test_plugin.la
88
89 ########################################
90 # VxLAN-GPE
91 ########################################
92 IOAM_VXLAN_GPE_SRC =                                    \
93         ioam/lib-vxlan-gpe/ioam_encap.c                 \
94         ioam/lib-vxlan-gpe/ioam_decap.c                 \
95         ioam/lib-vxlan-gpe/ioam_transit.c               \
96         ioam/lib-vxlan-gpe/ioam_pop.c                   \
97         ioam/lib-vxlan-gpe/vxlan_gpe_api.c              \
98         ioam/lib-vxlan-gpe/vxlan_gpe_ioam_trace.c       \
99         ioam/lib-vxlan-gpe/vxlan_gpe_ioam.c             \
100         ioam/export-vxlan-gpe/vxlan_gpe_ioam_export.c   \
101         ioam/export-vxlan-gpe/vxlan_gpe_node.c          \
102         ioam/export-vxlan-gpe/vxlan_gpe_ioam_export.api.h\
103         ioam/export-vxlan-gpe/vxlan_gpe_ioam_export_thread.c
104
105 IOAM_VXLAN_GPE_NOINST_HDR =                                     \
106   ioam/export/ioam_export_all_api_h.h                           \
107   ioam/lib-vxlan-gpe/vxlan_gpe_all_api_h.h                      \
108   ioam/lib-vxlan-gpe/vxlan_gpe_msg_enum.h                       \
109   ioam/lib-vxlan-gpe/ioam_vxlan_gpe.api.h                       \
110   ioam/lib-vxlan-gpe/vxlan_gpe_ioam_util.h                      \
111   ioam/lib-vxlan-gpe/vxlan_gpe_ioam_packet.h                    \
112   ioam/lib-vxlan-gpe/vxlan_gpe_ioam.h                           \
113   ioam/export-vxlan-gpe/vxlan_gpe_ioam_export_all_api_h.h       \
114   ioam/export-vxlan-gpe/vxlan_gpe_ioam_export_msg_enum.h        \
115   ioam/export-vxlan-gpe/vxlan_gpe_ioam_export.api.h
116
117 IOAM_VXLAN_GPE_API  = ioam/lib-vxlan-gpe/ioam_vxlan_gpe.api
118 IOAM_VXLAN_GPE_API += ioam/export-vxlan-gpe/vxlan_gpe_ioam_export.api
119
120 ioam_vxlan_gpe_test_plugin_la_SOURCES =         \
121         ioam/lib-vxlan-gpe/vxlan_gpe_test.c                     \
122         ioam/lib-vxlan-gpe/vxlan_gpe_plugin.api.h
123
124 vppapitestplugins_LTLIBRARIES += ioam_vxlan_gpe_test_plugin.la
125
126 vxlan_gpe_ioam_export_test_plugin_la_SOURCES =          \
127   ioam/export-vxlan-gpe/vxlan_gpe_ioam_export_test.c      \
128   ioam/export-vxlan-gpe/vxlan_gpe_ioam_export_plugin.api.h
129
130 vppapitestplugins_LTLIBRARIES += vxlan_gpe_ioam_export_test_plugin.la
131
132 ########################################
133 # iOAM E2E
134 ########################################
135
136 IOAM_E2E_SRC =                                  \
137         ioam/encap/ip6_ioam_e2e.c               \
138         ioam/encap/ip6_ioam_seqno.c             \
139         ioam/lib-e2e/ioam_seqno_lib.c
140
141 IOAM_E2E_NOINST_HDR =                    \
142         ioam/encap/ip6_ioam_e2e.h        \
143         ioam/encap/ip6_ioam_seqno.h      \
144         ioam/lib-e2e/ioam_seqno_lib.h
145
146 ########################################
147 # ipfix collector
148 ########################################
149
150 IPFIX_COLLECTOR_SRC =                           \
151         ioam/ipfixcollector/ipfixcollector.c    \
152         ioam/ipfixcollector/node.c              \
153         ioam/ipfixcollector/ipfixcollector.h
154
155 ########################################
156 # iOAM Analyse
157 ########################################
158
159 IOAM_ANALYSE_SRC =                              \
160         ioam/analyse/ip6/ip6_ioam_analyse.c     \
161         ioam/analyse/ip6/node.c                 \
162         ioam/analyse/ip6/ip6_ioam_analyse.h     \
163         ioam/analyse/ioam_summary_export.c      \
164         ioam/analyse/ioam_analyse.h             \
165         ioam/analyse/ioam_summary_export.h
166
167 ########################################
168 # iOAM record cache and rewrite
169 ########################################
170
171 IOAM_IP6_MANYCAST_SRC =        \
172 ioam/ip6/ioam_cache.c                     \
173 ioam/ip6/ioam_cache_node.c                \
174 ioam/ip6/ioam_cache_tunnel_select_node.c  \
175 ioam/ip6/ioam_cache.api.h
176
177 IOAM_IP6_MANYCAST_API = ioam/ip6/ioam_cache.api
178
179 IOAM_IP6_MANYCAST_NOINST_HDR =      \
180   ioam/ip6/ioam_cache_all_api_h.h   \
181   ioam/ip6/ioam_cache_msg_enum.h    \
182   ioam/ip6/ioam_cache.api.h
183
184 # udp ping
185 ########################################
186
187 UDP_PING_SRC =                                          \
188         ioam/udp-ping/udp_ping_node.c       \
189         ioam/udp-ping/udp_ping_util.c           \
190         ioam/udp-ping/udp_ping_export.c         \
191         ioam/udp-ping/udp_ping_api.c
192
193 UDP_PING_NOINST_HDR =                               \
194         ioam/udp-ping/udp_ping_packet.h         \
195         ioam/udp-ping/udp_ping.h                    \
196         ioam/udp-ping/udp_ping_util.h           \
197         ioam/udp-ping/udp_ping_all_api_h.h      \
198         ioam/udp-ping/udp_ping_msg_enum.h       \
199         ioam/udp-ping/udp_ping.api.h
200
201 UDP_PING_API = ioam/udp-ping/udp_ping.api
202
203 udp_ping_test_plugin_la_SOURCES =               \
204         ioam/udp-ping/udp_ping_test.c                   \
205         ioam/udp-ping/udp_ping_plugin.api.h  
206
207 vppapitestplugins_LTLIBRARIES += udp_ping_test_plugin.la
208  
209 ########################################
210 # iOAM plugins
211 ########################################
212
213 ioam_plugin_la_SOURCES =                    \
214         $(IOAM_POT_SRC)             \
215         $(IOAM_EXPORT_SRC)          \
216         $(IOAM_TRACE_SRC)           \
217         $(IOAM_VXLAN_GPE_SRC)           \
218         $(IOAM_E2E_SRC)                     \
219                 $(IPFIX_COLLECTOR_SRC)          \
220                 $(IOAM_ANALYSE_SRC)                 \
221         $(IOAM_IP6_MANYCAST_SRC)    \
222                 $(UDP_PING_SRC)
223
224 API_FILES +=                                        \
225         $(IOAM_POT_API)                 \
226         $(IOAM_EXPORT_API)              \
227         $(IOAM_TRACE_API)               \
228         $(IOAM_VXLAN_GPE_API)               \
229         $(IOAM_IP6_MANYCAST_API)        \
230                 $(UDP_PING_API)
231
232 noinst_HEADERS +=                               \
233         $(IOAM_POT_NOINST_HDR)                  \
234         $(IOAM_EXPORT_NOINST_HDR)               \
235         $(IOAM_TRACE_NOINST_HDR)                \
236         $(IOAM_VXLAN_GPE_NOINST_HDR)            \
237         $(IOAM_E2E_NOINST_HDR)                          \
238         $(IOAM_IP6_MANYCAST_NOINST_HDR)         \
239                 $(UDP_PING_NOINST_HDR)
240
241 vppplugins_LTLIBRARIES += ioam_plugin.la
242
243 # vi:syntax=automake