blob: 8f884748d0f3071162ea6ed99188d7bc594f55f3 [file] [log] [blame]
Damjan Marion7cd468a2016-12-19 23:05:39 +01001# 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
Damjan Marion724f64c2017-01-11 11:11:00 +010014lib_LTLIBRARIES += libvnet.la
15
Damjan Marion7cd468a2016-12-19 23:05:39 +010016libvnet_la_SOURCES =
Damjan Marionc74a86a2017-01-16 14:00:03 +010017libvnet_la_DEPENDENCIES = \
18 libvppinfra.la \
19 libvlib.la \
20 libsvmdb.la \
21 libsvm.la \
Dave Barach654ceaf2017-03-29 16:59:02 -040022 libvlibmemory.la
Damjan Marion7cd468a2016-12-19 23:05:39 +010023
Damjan Marionc3a814b2017-02-28 19:22:22 +010024libvnet_la_LIBADD = $(libvnet_la_DEPENDENCIES) -lm -lpthread -ldl -lrt
Damjan Marion45a00c42017-01-08 15:34:50 +010025
Damjan Mariona9a951f2017-01-16 22:06:10 +010026if WITH_LIBSSL
Damjan Marion45a00c42017-01-08 15:34:50 +010027libvnet_la_LIBADD += -lcrypto
28endif
Damjan Marion7cd468a2016-12-19 23:05:39 +010029
30########################################
31# Generic stuff
32########################################
33libvnet_la_SOURCES += \
Damjan Marionbd846cd2017-11-21 13:12:41 +010034 vnet/buffer.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +010035 vnet/config.c \
36 vnet/devices/devices.c \
Damjan Marion17fdae72017-11-30 20:56:37 +010037 vnet/devices/netlink.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +010038 vnet/handoff.c \
39 vnet/interface.c \
40 vnet/interface_api.c \
41 vnet/interface_cli.c \
42 vnet/interface_format.c \
43 vnet/interface_output.c \
44 vnet/misc.c \
Neale Rannsfa5d1982017-02-20 14:19:51 -080045 vnet/replication.c
Damjan Marion7cd468a2016-12-19 23:05:39 +010046
47nobase_include_HEADERS += \
48 vnet/api_errno.h \
49 vnet/buffer.h \
50 vnet/config.h \
51 vnet/devices/devices.h \
Damjan Marion17fdae72017-11-30 20:56:37 +010052 vnet/devices/netlink.h \
Damjan Marion7cd468a2016-12-19 23:05:39 +010053 vnet/global_funcs.h \
54 vnet/handoff.h \
55 vnet/interface.h \
56 vnet/interface.api.h \
57 vnet/interface_funcs.h \
Matus Fabiana774b532017-05-02 03:15:22 -070058 vnet/ip/ip4_to_ip6.h \
59 vnet/ip/ip6_to_ip4.h \
Damjan Marion7cd468a2016-12-19 23:05:39 +010060 vnet/l3_types.h \
61 vnet/pipeline.h \
62 vnet/replication.h \
Damjan Marion7cd468a2016-12-19 23:05:39 +010063 vnet/vnet.h \
64 vnet/vnet_all_api_h.h \
Gabriel Ganne5842c782017-01-30 13:44:04 +010065 vnet/vnet_msg_enum.h \
Hongjun Nibf4be572017-11-13 20:34:06 +080066 vnet/util/radix.h \
67 vnet/util/refcount.h
Damjan Marion7cd468a2016-12-19 23:05:39 +010068
69API_FILES += vnet/interface.api
70
71########################################
72# Policer infra
73########################################
74
75libvnet_la_SOURCES += \
76 vnet/policer/node_funcs.c \
77 vnet/policer/policer.c \
Pavel Kotucekd9aad292017-01-25 08:45:38 +010078 vnet/policer/xlate.c \
79 vnet/policer/policer_api.c
Damjan Marion7cd468a2016-12-19 23:05:39 +010080
81nobase_include_HEADERS += \
82 vnet/policer/police.h \
83 vnet/policer/policer.h \
Pavel Kotucekd9aad292017-01-25 08:45:38 +010084 vnet/policer/xlate.h \
85 vnet/policer/policer.api.h
86
87API_FILES += vnet/policer/policer.api
Damjan Marion7cd468a2016-12-19 23:05:39 +010088
89########################################
90# Cop - junk filter
91########################################
92
93libvnet_la_SOURCES += \
94 vnet/cop/cop.c \
95 vnet/cop/node1.c \
96 vnet/cop/ip4_whitelist.c \
Pavel Kotucek884cf262017-01-25 08:27:15 +010097 vnet/cop/ip6_whitelist.c \
98 vnet/cop/cop_api.c
Damjan Marion7cd468a2016-12-19 23:05:39 +010099
100nobase_include_HEADERS += \
Pavel Kotucek884cf262017-01-25 08:27:15 +0100101 vnet/cop/cop.h \
102 vnet/cop/cop.api.h
103
104API_FILES += vnet/cop/cop.api
Damjan Marion7cd468a2016-12-19 23:05:39 +0100105
106########################################
107# Layer 2 protocols go here
108########################################
109
110########################################
111# Layer 2 protocol: Ethernet
112########################################
113libvnet_la_SOURCES += \
114 vnet/ethernet/arp.c \
115 vnet/ethernet/format.c \
116 vnet/ethernet/init.c \
117 vnet/ethernet/interface.c \
118 vnet/ethernet/node.c \
Damjan Marion374e2c52017-03-09 20:38:15 +0100119 vnet/ethernet/pg.c \
Pavel Kotucek6899a302017-06-08 08:46:10 +0200120 vnet/ethernet/sfp.c \
121 vnet/ethernet/p2p_ethernet.c \
Pavel Kotucek15ac81c2017-06-20 14:00:26 +0200122 vnet/ethernet/p2p_ethernet_input.c \
Pavel Kotucek6899a302017-06-08 08:46:10 +0200123 vnet/ethernet/p2p_ethernet_api.c
Damjan Marion7cd468a2016-12-19 23:05:39 +0100124
125nobase_include_HEADERS += \
126 vnet/ethernet/arp_packet.h \
127 vnet/ethernet/error.def \
128 vnet/ethernet/ethernet.h \
129 vnet/ethernet/packet.h \
Damjan Marion374e2c52017-03-09 20:38:15 +0100130 vnet/ethernet/types.def \
Pavel Kotucek6899a302017-06-08 08:46:10 +0200131 vnet/ethernet/sfp.h \
132 vnet/ethernet/p2p_ethernet.api.h \
133 vnet/ethernet/p2p_ethernet.h
134
135API_FILES += vnet/ethernet/p2p_ethernet.api
Damjan Marion7cd468a2016-12-19 23:05:39 +0100136
137########################################
138# Layer 2 protocol: Ethernet bridging
139########################################
140libvnet_la_SOURCES += \
141 vnet/l2/feat_bitmap.c \
142 vnet/l2/l2_api.c \
143 vnet/l2/l2_bd.c \
144 vnet/l2/l2_bvi.c \
145 vnet/l2/l2_input_classify.c \
146 vnet/l2/l2_output_classify.c \
147 vnet/l2/l2_efp_filter.c \
148 vnet/l2/l2_fib.c \
149 vnet/l2/l2_flood.c \
150 vnet/l2/l2_fwd.c \
151 vnet/l2/l2_input_acl.c \
152 vnet/l2/l2_input.c \
153 vnet/l2/l2_input_vtr.c \
154 vnet/l2/l2_learn.c \
155 vnet/l2/l2_output_acl.c \
156 vnet/l2/l2_output.c \
157 vnet/l2/l2_patch.c \
158 vnet/l2/l2_rw.c \
159 vnet/l2/l2_vtr.c \
160 vnet/l2/l2_xcrw.c
161
162nobase_include_HEADERS += \
163 vnet/l2/feat_bitmap.h \
164 vnet/l2/l2_input.h \
165 vnet/l2/l2_output.h \
166 vnet/l2/l2_vtr.h \
167 vnet/l2/l2_input_vtr.h \
168 vnet/l2/l2_efp_filter.h \
169 vnet/l2/l2_fwd.h \
170 vnet/l2/l2_bd.h \
171 vnet/l2/l2_bvi.h \
172 vnet/l2/l2_flood.h \
173 vnet/l2/l2_fib.h \
174 vnet/l2/l2_rw.h \
175 vnet/l2/l2_xcrw.h \
176 vnet/l2/l2_classify.h \
177 vnet/l2/l2.api.h
178
179API_FILES += vnet/l2/l2.api
180
181########################################
182# Layer 2 protocol: SRP
183########################################
184libvnet_la_SOURCES += \
185 vnet/srp/format.c \
186 vnet/srp/interface.c \
187 vnet/srp/node.c \
188 vnet/srp/pg.c
189
190nobase_include_HEADERS += \
191 vnet/srp/packet.h \
192 vnet/srp/srp.h
193
194########################################
195# Layer 2 protocol: PPP
196########################################
197libvnet_la_SOURCES += \
198 vnet/ppp/node.c \
199 vnet/ppp/pg.c \
200 vnet/ppp/ppp.c
201
202nobase_include_HEADERS += \
203 vnet/ppp/error.def \
204 vnet/ppp/ppp.h \
205 vnet/ppp/packet.h
206
207########################################
208# Layer 2 protocol: HDLC
209########################################
210libvnet_la_SOURCES += \
211 vnet/hdlc/node.c \
212 vnet/hdlc/pg.c \
213 vnet/hdlc/hdlc.c
214
215nobase_include_HEADERS += \
216 vnet/hdlc/error.def \
217 vnet/hdlc/hdlc.h \
218 vnet/hdlc/packet.h
219
220########################################
221# Layer 2 protocol: LLC
222########################################
223libvnet_la_SOURCES += \
224 vnet/llc/llc.c \
225 vnet/llc/node.c \
226 vnet/llc/pg.c
227
228nobase_include_HEADERS += \
229 vnet/llc/llc.h
230
231########################################
232# Layer 2 protocol: SNAP
233########################################
234libvnet_la_SOURCES += \
235 vnet/snap/snap.c \
236 vnet/snap/node.c \
237 vnet/snap/pg.c
238
239nobase_include_HEADERS += \
240 vnet/snap/snap.h
241
242########################################
243# Layer 2 / vxlan
244########################################
245libvnet_la_SOURCES += \
246 vnet/vxlan/vxlan.c \
247 vnet/vxlan/encap.c \
248 vnet/vxlan/decap.c \
249 vnet/vxlan/vxlan_api.c
250
251nobase_include_HEADERS += \
252 vnet/vxlan/vxlan.h \
253 vnet/vxlan/vxlan_packet.h \
254 vnet/vxlan/vxlan_error.def \
255 vnet/vxlan/vxlan.api.h
256
257API_FILES += vnet/vxlan/vxlan.api
258
259########################################
Marco Varleseb598f1d2017-09-19 14:25:28 +0200260# Layer 2 / Geneve
261########################################
262libvnet_la_SOURCES += \
263 vnet/geneve/geneve.c \
264 vnet/geneve/encap.c \
265 vnet/geneve/decap.c \
266 vnet/geneve/geneve_api.c
267
268nobase_include_HEADERS += \
269 vnet/geneve/geneve.h \
270 vnet/geneve/geneve_packet.h \
271 vnet/geneve/geneve_error.def \
272 vnet/geneve/geneve.api.h
273
274API_FILES += vnet/geneve/geneve.api
275
276########################################
Damjan Marion7cd468a2016-12-19 23:05:39 +0100277# Layer 2 / CDP
278########################################
279libvnet_la_SOURCES += \
280 vnet/cdp/cdp_input.c \
281 vnet/cdp/cdp_node.c \
282 vnet/cdp/cdp_periodic.c
283
284nobase_include_HEADERS += \
285 vnet/cdp/cdp_protocol.h
286
287########################################
288# Layer 2 / LLDP
289########################################
290libvnet_la_SOURCES += \
291 vnet/lldp/lldp_input.c \
292 vnet/lldp/lldp_node.c \
293 vnet/lldp/lldp_output.c \
Steve Shin99a0e602017-07-01 04:16:20 +0000294 vnet/lldp/lldp_cli.c \
295 vnet/lldp/lldp_api.c
Damjan Marion7cd468a2016-12-19 23:05:39 +0100296
297nobase_include_HEADERS += \
Steve Shin99a0e602017-07-01 04:16:20 +0000298 vnet/lldp/lldp_protocol.h \
299 vnet/lldp/lldp.h \
300 vnet/lldp/lldp.api.h
301
302API_FILES += vnet/lldp/lldp.api
Damjan Marion7cd468a2016-12-19 23:05:39 +0100303
304########################################
305# Layer 2/3 "classify"
306########################################
307libvnet_la_SOURCES += \
308 vnet/classify/vnet_classify.c \
309 vnet/classify/ip_classify.c \
310 vnet/classify/input_acl.c \
311 vnet/classify/policer_classify.c \
312 vnet/classify/flow_classify.c \
313 vnet/classify/flow_classify_node.c \
Pavel Kotucekd2c97d92017-01-24 10:58:12 +0100314 vnet/classify/vnet_classify.h \
315 vnet/classify/classify_api.c
Damjan Marion7cd468a2016-12-19 23:05:39 +0100316
317nobase_include_HEADERS += \
318 vnet/classify/vnet_classify.h \
319 vnet/classify/input_acl.h \
320 vnet/classify/policer_classify.h \
Pavel Kotucekd2c97d92017-01-24 10:58:12 +0100321 vnet/classify/flow_classify.h \
322 vnet/classify/classify.api.h
323
324API_FILES += vnet/classify/classify.api
Damjan Marion7cd468a2016-12-19 23:05:39 +0100325
326########################################
327# Layer 3 protocols go here
328########################################
329
330########################################
331# Layer 3 protocol: IP v4/v6
332########################################
333libvnet_la_SOURCES += \
334 vnet/ip/format.c \
335 vnet/ip/icmp4.c \
336 vnet/ip/icmp6.c \
337 vnet/ip/ip46_cli.c \
338 vnet/ip/ip4_format.c \
339 vnet/ip/ip4_forward.c \
Neale Rannsd91c1db2017-07-31 02:30:50 -0700340 vnet/ip/ip4_punt_drop.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100341 vnet/ip/ip4_input.c \
342 vnet/ip/ip4_mtrie.c \
343 vnet/ip/ip4_pg.c \
344 vnet/ip/ip4_source_and_port_range_check.c \
345 vnet/ip/ip4_source_check.c \
Klement Sekera75e7d132017-09-20 08:26:30 +0200346 vnet/ip/ip4_reassembly.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100347 vnet/ip/ip6_format.c \
348 vnet/ip/ip6_forward.c \
Neale Rannsd91c1db2017-07-31 02:30:50 -0700349 vnet/ip/ip6_punt_drop.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100350 vnet/ip/ip6_hop_by_hop.c \
351 vnet/ip/ip6_input.c \
352 vnet/ip/ip6_neighbor.c \
353 vnet/ip/ip6_pg.c \
Klement Sekera75e7d132017-09-20 08:26:30 +0200354 vnet/ip/ip6_reassembly.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100355 vnet/ip/ip_api.c \
356 vnet/ip/ip_checksum.c \
357 vnet/ip/ip_frag.c \
Florin Corascea194d2017-10-02 00:18:51 -0700358 vnet/ip/ip.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100359 vnet/ip/ip_init.c \
360 vnet/ip/ip_input_acl.c \
361 vnet/ip/lookup.c \
362 vnet/ip/ping.c \
Neale Rannsb8d44812017-11-10 06:53:54 -0800363 vnet/ip/punt_api.c \
Dave Barach68b0fb02017-02-28 15:15:56 -0500364 vnet/ip/punt.c
Damjan Marion7cd468a2016-12-19 23:05:39 +0100365
366nobase_include_HEADERS += \
367 vnet/ip/format.h \
368 vnet/ip/icmp46_packet.h \
369 vnet/ip/icmp4.h \
370 vnet/ip/icmp6.h \
371 vnet/ip/igmp_packet.h \
372 vnet/ip/ip.api.h \
373 vnet/ip/ip4_error.h \
374 vnet/ip/ip4.h \
375 vnet/ip/ip4_mtrie.h \
376 vnet/ip/ip4_packet.h \
377 vnet/ip/ip6_error.h \
378 vnet/ip/ip6.h \
379 vnet/ip/ip6_hop_by_hop.h \
380 vnet/ip/ip6_hop_by_hop_packet.h \
381 vnet/ip/ip6_packet.h \
382 vnet/ip/ip6_neighbor.h \
383 vnet/ip/ip.h \
384 vnet/ip/ip_packet.h \
385 vnet/ip/ip_source_and_port_range_check.h \
386 vnet/ip/lookup.h \
387 vnet/ip/ports.def \
388 vnet/ip/protocols.def \
389 vnet/ip/punt_error.def \
Neale Rannsb8d44812017-11-10 06:53:54 -0800390 vnet/ip/punt.api.h \
Dave Barach68b0fb02017-02-28 15:15:56 -0500391 vnet/ip/punt.h
Damjan Marion7cd468a2016-12-19 23:05:39 +0100392
Neale Rannsb8d44812017-11-10 06:53:54 -0800393API_FILES += \
394 vnet/ip/ip.api \
395 vnet/ip/punt.api
Damjan Marion7cd468a2016-12-19 23:05:39 +0100396
397########################################
398# Bidirectional Forwarding Detection
399########################################
400
401nobase_include_HEADERS += \
402 vnet/bfd/bfd_protocol.h \
403 vnet/bfd/bfd_main.h \
404 vnet/bfd/bfd_api.h \
405 vnet/bfd/bfd_udp.h \
406 vnet/bfd/bfd.api.h
407
408libvnet_la_SOURCES += \
409 vnet/bfd/bfd_api.h \
410 vnet/bfd/bfd_udp.c \
411 vnet/bfd/bfd_main.c \
412 vnet/bfd/bfd_protocol.c \
Klement Sekera73884482017-02-23 09:26:30 +0100413 vnet/bfd/bfd_cli.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100414 vnet/bfd/bfd_api.c
415
416API_FILES += vnet/bfd/bfd.api
417
418########################################
419# Layer 3 protocol: IPSec
420########################################
Damjan Mariona9a951f2017-01-16 22:06:10 +0100421if WITH_LIBSSL
Damjan Marion7cd468a2016-12-19 23:05:39 +0100422libvnet_la_SOURCES += \
423 vnet/ipsec/ipsec.c \
424 vnet/ipsec/ipsec_cli.c \
425 vnet/ipsec/ipsec_format.c \
426 vnet/ipsec/ipsec_input.c \
427 vnet/ipsec/ipsec_if.c \
428 vnet/ipsec/ipsec_if_in.c \
429 vnet/ipsec/ipsec_if_out.c \
Sergio Gonzalez Monroydb93cd92017-08-26 15:22:05 +0100430 vnet/ipsec/esp_format.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100431 vnet/ipsec/esp_encrypt.c \
432 vnet/ipsec/esp_decrypt.c \
“mukeshyadav1984”430ac932017-11-23 02:39:33 -0800433 vnet/ipsec/ah_decrypt.c \
434 vnet/ipsec/ah_encrypt.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100435 vnet/ipsec/ikev2.c \
436 vnet/ipsec/ikev2_crypto.c \
437 vnet/ipsec/ikev2_cli.c \
438 vnet/ipsec/ikev2_payload.c \
439 vnet/ipsec/ikev2_format.c \
440 vnet/ipsec/ipsec_api.c
441
442API_FILES += vnet/ipsec/ipsec.api
Damjan Marion7cd468a2016-12-19 23:05:39 +0100443endif
444
445libvnet_la_SOURCES += \
446 vnet/ipsec/ipsec_output.c
447
448nobase_include_HEADERS += \
449 vnet/ipsec/ipsec.h \
450 vnet/ipsec/esp.h \
“mukeshyadav1984”430ac932017-11-23 02:39:33 -0800451 vnet/ipsec/ah.h \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100452 vnet/ipsec/ikev2.h \
453 vnet/ipsec/ikev2_priv.h \
454 vnet/ipsec/ipsec.api.h
Damjan Marion7cd468a2016-12-19 23:05:39 +0100455
456########################################
457# Layer 3 protocol: osi
458########################################
459libvnet_la_SOURCES += \
460 vnet/osi/node.c \
461 vnet/osi/osi.c \
462 vnet/osi/pg.c
463
464nobase_include_HEADERS += \
465 vnet/osi/osi.h
466
467########################################
468# Layer 3 protocol: MAP
469########################################
470libvnet_la_SOURCES += \
471 vnet/map/map.c \
472 vnet/map/map_dpo.c \
473 vnet/map/ip4_map.c \
474 vnet/map/ip6_map.c \
475 vnet/map/ip4_map_t.c \
476 vnet/map/ip6_map_t.c \
477 vnet/map/map_api.c
478
479nobase_include_HEADERS += \
480 vnet/map/map.h \
481 vnet/map/map_dpo.h \
482 vnet/map/map.api.h
483
484API_FILES += vnet/map/map.api
485
486if ENABLE_TESTS
487TESTS += test_map
488test_map_SOURCES = \
489 vnet/map/test.c
490test_map_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG
491
492test_map_LDADD = libvnet.la libvppinfra.la libvlib.la \
Dave Barach654ceaf2017-03-29 16:59:02 -0400493 -lpthread -lvlibmemory -ldl -lsvm -lrt
Damjan Marion7cd468a2016-12-19 23:05:39 +0100494
495test_map_LDFLAGS = -static
496endif
497
Dave Barach68b0fb02017-02-28 15:15:56 -0500498########################################
499# Layer 4 protocol: tcp
500########################################
501libvnet_la_SOURCES += \
Dave Barach3bbcfab2017-08-15 19:03:44 -0400502 vnet/tcp/tcp_api.c \
Dave Barach68b0fb02017-02-28 15:15:56 -0500503 vnet/tcp/tcp_format.c \
504 vnet/tcp/tcp_pg.c \
505 vnet/tcp/tcp_syn_filter4.c \
506 vnet/tcp/tcp_output.c \
507 vnet/tcp/tcp_input.c \
508 vnet/tcp/tcp_newreno.c \
Florin Coras6792ec02017-03-13 03:49:51 -0700509 vnet/tcp/tcp_test.c \
Dave Barach68b0fb02017-02-28 15:15:56 -0500510 vnet/tcp/tcp.c
511
512nobase_include_HEADERS += \
513 vnet/tcp/tcp_packet.h \
514 vnet/tcp/tcp_timer.h \
Florin Corase69f4952017-03-07 10:06:24 -0800515 vnet/tcp/tcp_debug.h \
Florin Corasc940f092017-08-23 11:24:02 -0700516 vnet/tcp/tcp.h \
517 vnet/tcp/tcp.api.h
Dave Barach68b0fb02017-02-28 15:15:56 -0500518
Dave Barach3bbcfab2017-08-15 19:03:44 -0400519API_FILES += vnet/tcp/tcp.api
520
Dave Barach68b0fb02017-02-28 15:15:56 -0500521########################################
522# Layer 4 protocol: udp
523########################################
524libvnet_la_SOURCES += \
525 vnet/udp/udp.c \
526 vnet/udp/udp_input.c \
Dave Barach68b0fb02017-02-28 15:15:56 -0500527 vnet/udp/udp_format.c \
528 vnet/udp/udp_local.c \
Neale Ranns810086d2017-11-05 16:26:46 -0800529 vnet/udp/udp_pg.c \
530 vnet/udp/udp_encap_node.c \
531 vnet/udp/udp_encap.c \
532 vnet/udp/udp_api.c
Dave Barach68b0fb02017-02-28 15:15:56 -0500533
534nobase_include_HEADERS += \
535 vnet/udp/udp_error.def \
536 vnet/udp/udp.h \
Florin Corasf1493142017-11-09 14:17:27 -0800537 vnet/udp/udp_packet.h \
538 vnet/udp/udp.api.h
Damjan Marion7cd468a2016-12-19 23:05:39 +0100539
Neale Ranns810086d2017-11-05 16:26:46 -0800540API_FILES += vnet/udp/udp.api
541
Damjan Marion7cd468a2016-12-19 23:05:39 +0100542########################################
Marco Varlese191a5942017-10-30 18:17:21 +0100543# Layer 4 protocol: sctp
544########################################
545libvnet_la_SOURCES += \
546 vnet/sctp/sctp.c \
547 vnet/sctp/sctp_pg.c \
548 vnet/sctp/sctp_input.c \
549 vnet/sctp/sctp_output.c \
Florin Coras4399c2e2018-01-25 06:34:42 -0800550 vnet/sctp/sctp_format.c
Marco Varlese191a5942017-10-30 18:17:21 +0100551
552nobase_include_HEADERS += \
553 vnet/sctp/sctp_error.def \
554 vnet/sctp/sctp_packet.h \
555 vnet/sctp/sctp_timer.h \
Florin Coras4399c2e2018-01-25 06:34:42 -0800556 vnet/sctp/sctp.h
Marco Varlese191a5942017-10-30 18:17:21 +0100557
558########################################
Damjan Marion7cd468a2016-12-19 23:05:39 +0100559# Tunnel protocol: gre
560########################################
561libvnet_la_SOURCES += \
562 vnet/gre/gre.c \
563 vnet/gre/node.c \
564 vnet/gre/interface.c \
565 vnet/gre/pg.c \
566 vnet/gre/gre_api.c
567
568nobase_include_HEADERS += \
569 vnet/gre/gre.h \
570 vnet/gre/packet.h \
571 vnet/gre/error.def \
572 vnet/gre/gre.api.h
573
574API_FILES += vnet/gre/gre.api
575
576########################################
577# Tunnel protocol: l2tpv3
578########################################
579libvnet_la_SOURCES += \
580 vnet/l2tp/l2tp.c \
581 vnet/l2tp/encap.c \
582 vnet/l2tp/decap.c \
583 vnet/l2tp/pg.c \
584 vnet/l2tp/l2tp_api.c
585
586nobase_include_HEADERS += \
587 vnet/l2tp/l2tp.h \
588 vnet/l2tp/packet.h \
589 vnet/l2tp/l2tp.api.h
590
591API_FILES += vnet/l2tp/l2tp.api
592
593########################################
594# Tunnel protocol: gre+mpls
595########################################
596libvnet_la_SOURCES += \
597 vnet/mpls/mpls.c \
598 vnet/mpls/mpls_lookup.c \
599 vnet/mpls/mpls_output.c \
600 vnet/mpls/mpls_features.c \
Neale Ranns696e88d2017-03-16 07:34:55 -0400601 vnet/mpls/mpls_input.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100602 vnet/mpls/interface.c \
603 vnet/mpls/mpls_tunnel.c \
Pavel Kotucek0f971d82017-01-03 10:48:54 +0100604 vnet/mpls/pg.c \
605 vnet/mpls/mpls_api.c
Damjan Marion7cd468a2016-12-19 23:05:39 +0100606
607nobase_include_HEADERS += \
608 vnet/mpls/mpls.h \
609 vnet/mpls/mpls_types.h \
610 vnet/mpls/mpls_tunnel.h \
611 vnet/mpls/packet.h \
Pavel Kotucek0f971d82017-01-03 10:48:54 +0100612 vnet/mpls/error.def \
613 vnet/mpls/mpls.api.h
Damjan Marion7cd468a2016-12-19 23:05:39 +0100614
Pavel Kotucek0f971d82017-01-03 10:48:54 +0100615API_FILES += vnet/mpls/mpls.api
Damjan Marion7cd468a2016-12-19 23:05:39 +0100616
617########################################
618# Tunnel protocol: vxlan-gpe
619########################################
620
621libvnet_la_SOURCES += \
622 vnet/vxlan-gpe/vxlan_gpe.c \
623 vnet/vxlan-gpe/encap.c \
624 vnet/vxlan-gpe/decap.c \
625 vnet/vxlan-gpe/vxlan_gpe_api.c
626
627nobase_include_HEADERS += \
628 vnet/vxlan-gpe/vxlan_gpe.h \
629 vnet/vxlan-gpe/vxlan_gpe_packet.h \
630 vnet/vxlan-gpe/vxlan_gpe_error.def \
631 vnet/vxlan-gpe/vxlan_gpe.api.h
632
633API_FILES += vnet/vxlan-gpe/vxlan_gpe.api
634
635########################################
636# Tunnel protocol: ipsec+gre
637########################################
638libvnet_la_SOURCES += \
639 vnet/ipsec-gre/ipsec_gre.c \
640 vnet/ipsec-gre/node.c \
641 vnet/ipsec-gre/interface.c \
642 vnet/ipsec-gre/ipsec_gre_api.c
643
644nobase_include_HEADERS += \
645 vnet/ipsec-gre/ipsec_gre.h \
646 vnet/ipsec-gre/error.def \
647 vnet/ipsec-gre/ipsec_gre.api.h
648
649API_FILES += vnet/ipsec-gre/ipsec_gre.api
650
651########################################
652# LISP control plane: lisp-cp
653########################################
654
655libvnet_la_SOURCES += \
656 vnet/lisp-cp/lisp_types.c \
657 vnet/lisp-cp/lisp_cp_dpo.c \
658 vnet/lisp-cp/control.c \
659 vnet/lisp-cp/gid_dictionary.c \
660 vnet/lisp-cp/lisp_msg_serdes.c \
661 vnet/lisp-cp/packets.c \
Filip Tehlar694396d2017-02-17 14:29:11 +0100662 vnet/lisp-cp/one_cli.c \
Florin Corasf3dc11a2017-01-24 03:13:43 -0800663 vnet/lisp-cp/lisp_cli.c \
Filip Tehlar694396d2017-02-17 14:29:11 +0100664 vnet/lisp-cp/one_api.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100665 vnet/lisp-cp/lisp_api.c
666
667nobase_include_HEADERS += \
668 vnet/lisp-cp/lisp_types.h \
669 vnet/lisp-cp/packets.h \
670 vnet/lisp-cp/gid_dictionary.h \
671 vnet/lisp-cp/lisp_cp_messages.h \
672 vnet/lisp-cp/lisp_msg_serdes.h \
673 vnet/lisp-cp/control.h \
Filip Tehlar694396d2017-02-17 14:29:11 +0100674 vnet/lisp-cp/one.api.h \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100675 vnet/lisp-cp/lisp.api.h
676
677API_FILES += vnet/lisp-cp/lisp.api
Filip Tehlar694396d2017-02-17 14:29:11 +0100678API_FILES += vnet/lisp-cp/one.api
Damjan Marion7cd468a2016-12-19 23:05:39 +0100679
680if ENABLE_TESTS
681LDS = \
682 libvppinfra.la \
683 libvnet.la \
684 libvlib.la \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100685 libsvm.la \
686 libsvmdb.la \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100687 libvlibmemory.la \
Damjan Marionc74a86a2017-01-16 14:00:03 +0100688 -lpthread -ldl -lrt -lm
Damjan Marion7cd468a2016-12-19 23:05:39 +0100689
690TESTS += test_cp_serdes test_lisp_types
691
692test_cp_serdes_SOURCES = \
693 tests/vnet/lisp-cp/test_cp_serdes.c \
694 vnet/lisp-cp/lisp_msg_serdes.c \
695 vnet/lisp-cp/lisp_types.c \
696 vnet/lisp-cp/packets.c \
697 vnet/ip/ip_checksum.c
698
699test_lisp_types_SOURCES = \
700 tests/vnet/lisp-cp/test_lisp_types.c \
701 vnet/lisp-cp/lisp_types.c
702
703test_cp_serdes_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG
704test_lisp_types_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG
705
Damjan Marionc74a86a2017-01-16 14:00:03 +0100706test_cp_serdes_LDADD = $(LDS)
707test_lisp_types_LDADD = $(LDS)
Damjan Marion7cd468a2016-12-19 23:05:39 +0100708endif
709
710########################################
711# Tunnel protocol: lisp-gpe
712########################################
713
714libvnet_la_SOURCES += \
715 vnet/lisp-gpe/lisp_gpe.c \
716 vnet/lisp-gpe/lisp_gpe_sub_interface.c \
717 vnet/lisp-gpe/lisp_gpe_adjacency.c \
718 vnet/lisp-gpe/lisp_gpe_tunnel.c \
719 vnet/lisp-gpe/lisp_gpe_fwd_entry.c \
720 vnet/lisp-gpe/lisp_gpe_tenant.c \
721 vnet/lisp-gpe/interface.c \
722 vnet/lisp-gpe/decap.c \
723 vnet/lisp-gpe/lisp_gpe_api.c
724
725nobase_include_HEADERS += \
726 vnet/lisp-gpe/lisp_gpe.h \
727 vnet/lisp-gpe/lisp_gpe_fwd_entry.h \
728 vnet/lisp-gpe/lisp_gpe_tenant.h \
729 vnet/lisp-gpe/lisp_gpe_packet.h \
730 vnet/lisp-gpe/lisp_gpe_error.def \
731 vnet/lisp-gpe/lisp_gpe.api.h
732
733API_FILES += vnet/lisp-gpe/lisp_gpe.api
734
Damjan Marion7cd468a2016-12-19 23:05:39 +0100735########################################
736# DHCP client
737########################################
738libvnet_la_SOURCES += \
739 vnet/dhcp/client.c \
Neale Ranns54c6dc42018-01-17 10:29:10 -0800740 vnet/dhcp/dhcp_client_detect.c \
Pavel Kotucekc8d87702017-01-25 07:25:32 +0100741 vnet/dhcp/dhcp_api.c
Damjan Marion7cd468a2016-12-19 23:05:39 +0100742
743nobase_include_HEADERS += \
Neale Ranns2dd68522017-02-16 03:38:59 -0800744 vnet/dhcp/client.h \
Pavel Kotucekc8d87702017-01-25 07:25:32 +0100745 vnet/dhcp/dhcp.api.h
746
747API_FILES += vnet/dhcp/dhcp.api
Damjan Marion7cd468a2016-12-19 23:05:39 +0100748
749########################################
750# DHCP proxy
751########################################
752libvnet_la_SOURCES += \
Neale Ranns2dd68522017-02-16 03:38:59 -0800753 vnet/dhcp/dhcp6_proxy_node.c \
754 vnet/dhcp/dhcp4_proxy_node.c \
755 vnet/dhcp/dhcp_proxy.c
Damjan Marion7cd468a2016-12-19 23:05:39 +0100756
757nobase_include_HEADERS += \
Neale Ranns2dd68522017-02-16 03:38:59 -0800758 vnet/dhcp/dhcp4_packet.h \
759 vnet/dhcp/dhcp6_packet.h \
760 vnet/dhcp/dhcp_proxy.h \
761 vnet/dhcp/dhcp6_proxy_error.def \
762 vnet/dhcp/dhcp4_proxy_error.def
Damjan Marion7cd468a2016-12-19 23:05:39 +0100763
764########################################
765# ipv6 segment routing
766########################################
767
Damjan Marion7cd468a2016-12-19 23:05:39 +0100768libvnet_la_SOURCES += \
Pablo Camarillo5d73eec2017-04-24 17:51:56 +0200769 vnet/srv6/sr.c \
770 vnet/srv6/sr_localsid.c \
771 vnet/srv6/sr_policy_rewrite.c \
772 vnet/srv6/sr_steering.c \
773 vnet/srv6/sr_api.c
Damjan Marion7cd468a2016-12-19 23:05:39 +0100774
775nobase_include_HEADERS += \
Pablo Camarillo5d73eec2017-04-24 17:51:56 +0200776 vnet/srv6/sr_packet.h \
777 vnet/srv6/sr.h \
778 vnet/srv6/sr.api.h
Pavel Kotucek0f971d82017-01-03 10:48:54 +0100779
Pablo Camarillo5d73eec2017-04-24 17:51:56 +0200780API_FILES += vnet/srv6/sr.api
781
782########################################
783# mpls segment routing
784########################################
785
786libvnet_la_SOURCES += \
787 vnet/srmpls/sr_mpls_policy.c \
Pablo Camarillo42998822017-07-13 09:41:32 +0200788 vnet/srmpls/sr_mpls_steering.c \
789 vnet/srmpls/sr_mpls_api.c
Pablo Camarillo5d73eec2017-04-24 17:51:56 +0200790
791
792nobase_include_HEADERS += \
Pablo Camarillo42998822017-07-13 09:41:32 +0200793 vnet/srmpls/sr_mpls.h \
794 vnet/srmpls/sr_mpls.api.h
795
796API_FILES += vnet/srmpls/sr_mpls.api
Damjan Marion7cd468a2016-12-19 23:05:39 +0100797
798########################################
Damjan Marion7cd468a2016-12-19 23:05:39 +0100799# IPFIX / netflow v10
800########################################
801libvnet_la_SOURCES += \
Pavel Kotucekeb9e6662017-01-24 13:40:26 +0100802 vnet/flow/flow_report.c \
803 vnet/flow/flow_api.c
Damjan Marion7cd468a2016-12-19 23:05:39 +0100804
805nobase_include_HEADERS += \
806 vnet/flow/flow_report.h \
807 vnet/flow/ipfix_info_elements.h \
Pavel Kotucekeb9e6662017-01-24 13:40:26 +0100808 vnet/flow/ipfix_packet.h \
809 vnet/flow/flow.api.h
810
811API_FILES += vnet/flow/flow.api
Damjan Marion7cd468a2016-12-19 23:05:39 +0100812
813########################################
814# IPFIX classify code
815########################################
816
817libvnet_la_SOURCES += \
818 vnet/flow/flow_report_classify.c
819
820nobase_include_HEADERS += \
821 vnet/flow/flow_report_classify.h
822
823########################################
824# lawful intercept
825########################################
826
827libvnet_la_SOURCES += \
828 vnet/lawful-intercept/lawful_intercept.c \
829 vnet/lawful-intercept/node.c
830
831nobase_include_HEADERS += \
832 vnet/lawful-intercept/lawful_intercept.h
833
834########################################
835# SPAN (port mirroring)
836########################################
837
838libvnet_la_SOURCES += \
839 vnet/span/span_api.c \
840 vnet/span/span.c \
841 vnet/span/node.c
842
843nobase_include_HEADERS += \
844 vnet/span/span.api.h \
845 vnet/span/span.h
846
847API_FILES += vnet/span/span.api
848
849########################################
Dave Barach65457162017-10-10 17:53:14 -0400850# DNS proxy, API
851########################################
852libvnet_la_SOURCES += \
853 vnet/dns/dns.c \
854 vnet/dns/dns.h \
855 vnet/dns/dns_packet.h \
856 vnet/dns/reply_node.c \
Dave Barach97494502017-11-04 09:44:38 -0400857 vnet/dns/request_node.c \
Dave Barach65457162017-10-10 17:53:14 -0400858 vnet/dns/resolver_process.c
859
860nobase_include_HEADERS += \
861 vnet/dns/dns.api.h \
862 vnet/dns/dns.h
863
864API_FILES += vnet/dns/dns.api
865
866########################################
Damjan Marion7cd468a2016-12-19 23:05:39 +0100867# Packet generator
868########################################
869
870libvnet_la_SOURCES += \
871 vnet/pg/cli.c \
872 vnet/pg/edit.c \
873 vnet/pg/init.c \
874 vnet/pg/input.c \
875 vnet/pg/output.c \
Neale Rannsb8d44812017-11-10 06:53:54 -0800876 vnet/pg/stream.c \
877 vnet/pg/pg_api.c
Damjan Marion7cd468a2016-12-19 23:05:39 +0100878
879nobase_include_HEADERS += \
880 vnet/pg/pg.h \
Neale Rannsb8d44812017-11-10 06:53:54 -0800881 vnet/pg/edit.h \
882 vnet/pg/pg.api.h
883
884API_FILES += vnet/pg/pg.api
Damjan Marion7cd468a2016-12-19 23:05:39 +0100885
Damjan Marion7cd468a2016-12-19 23:05:39 +0100886########################################
887# virtio
888########################################
889
Damjan Marionc99b4cd2017-12-04 15:25:58 +0100890libvnet_la_SOURCES += \
891 vnet/devices/virtio/device.c \
892 vnet/devices/virtio/node.c \
893 vnet/devices/virtio/vhost-user.c \
894 vnet/devices/virtio/vhost_user_api.c \
Damjan Marion8389fb92017-10-13 18:29:53 +0200895 vnet/devices/virtio/virtio.c
896
Damjan Marion7cd468a2016-12-19 23:05:39 +0100897
Damjan Marionc99b4cd2017-12-04 15:25:58 +0100898nobase_include_HEADERS += \
899 vnet/devices/virtio/virtio.h \
900 vnet/devices/virtio/vhost-user.h \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100901 vnet/devices/virtio/vhost_user.api.h
902
903API_FILES += vnet/devices/virtio/vhost_user.api
904
905########################################
Damjan Marionc99b4cd2017-12-04 15:25:58 +0100906# tap interface (with virtio backend)
907########################################
908
909libvnet_la_SOURCES += \
910 vnet/devices/tap/cli.c \
911 vnet/devices/tap/tap.c \
912 vnet/devices/tap/tapv2_api.c
913
914nobase_include_HEADERS += \
915 vnet/devices/tap/tap.h \
916 vnet/devices/tap/tapv2.api.h
917
918API_FILES += vnet/devices/tap/tapv2.api
919
920########################################
Dave Barach68b0fb02017-02-28 15:15:56 -0500921# session managmeent
922########################################
923
924libvnet_la_SOURCES += \
925 vnet/session/session.c \
Florin Corascea194d2017-10-02 00:18:51 -0700926 vnet/session/session_table.c \
Florin Coras1c710452017-10-17 00:03:13 -0700927 vnet/session/session_rules_table.c \
Florin Coras04e53442017-07-16 17:12:15 -0700928 vnet/session/session_lookup.c \
929 vnet/session/session_node.c \
Florin Coras3cbc04b2017-10-02 00:18:51 -0700930 vnet/session/transport.c \
Dave Barach68b0fb02017-02-28 15:15:56 -0500931 vnet/session/application.c \
932 vnet/session/session_cli.c \
Dave Barach68b0fb02017-02-28 15:15:56 -0500933 vnet/session/application_interface.c \
Florin Corascea194d2017-10-02 00:18:51 -0700934 vnet/session/application_namespace.c \
Florin Coras6cf30ad2017-04-04 23:08:23 -0700935 vnet/session/segment_manager.c \
Florin Corascea194d2017-10-02 00:18:51 -0700936 vnet/session/session_test.c \
Dave Barach68b0fb02017-02-28 15:15:56 -0500937 vnet/session/session_api.c
938
939nobase_include_HEADERS += \
940 vnet/session/session.h \
Florin Corascea194d2017-10-02 00:18:51 -0700941 vnet/session/session_table.h \
Florin Coras1c710452017-10-17 00:03:13 -0700942 vnet/session/session_rules_table.h \
Florin Coras04e53442017-07-16 17:12:15 -0700943 vnet/session/stream_session.h \
944 vnet/session/session_lookup.h \
Dave Barach68b0fb02017-02-28 15:15:56 -0500945 vnet/session/application.h \
946 vnet/session/transport.h \
Florin Coras04e53442017-07-16 17:12:15 -0700947 vnet/session/transport_interface.h \
Alexander Popovsky (apopovsk)6f6f52a2017-03-03 16:06:26 -0800948 vnet/session/application_interface.h \
Florin Corascea194d2017-10-02 00:18:51 -0700949 vnet/session/application_namespace.h \
Florin Corase69f4952017-03-07 10:06:24 -0800950 vnet/session/session_debug.h \
Florin Coras6cf30ad2017-04-04 23:08:23 -0700951 vnet/session/segment_manager.h \
Florin Coras1c710452017-10-17 00:03:13 -0700952 vnet/session/mma_template.h \
953 vnet/session/mma_template.c \
954 vnet/session/mma_16.h \
955 vnet/session/mma_40.h \
Alexander Popovsky (apopovsk)6f6f52a2017-03-03 16:06:26 -0800956 vnet/session/session.api.h
Dave Barach68b0fb02017-02-28 15:15:56 -0500957
958API_FILES += vnet/session/session.api
959
960########################################
Florin Coras4399c2e2018-01-25 06:34:42 -0800961# session layer applications
962########################################
963
964libvnet_la_SOURCES += \
965 vnet/session-apps/echo_client.c \
966 vnet/session-apps/echo_server.c \
967 vnet/session-apps/http_server.c \
968 vnet/session-apps/proxy.c
969
970nobase_include_HEADERS += \
971 vnet/session-apps/echo_client.h \
972 vnet/session-apps/proxy.h
973
974########################################
Damjan Marion7cd468a2016-12-19 23:05:39 +0100975# Linux packet interface
976########################################
977
978libvnet_la_SOURCES += \
979 vnet/devices/af_packet/af_packet.c \
980 vnet/devices/af_packet/device.c \
981 vnet/devices/af_packet/node.c \
982 vnet/devices/af_packet/cli.c \
983 vnet/devices/af_packet/af_packet_api.c
984
985nobase_include_HEADERS += \
986 vnet/devices/af_packet/af_packet.h \
987 vnet/devices/af_packet/af_packet.api.h
988
989API_FILES += vnet/devices/af_packet/af_packet.api
990
991########################################
992# NETMAP interface
993########################################
994
995libvnet_la_SOURCES += \
996 vnet/devices/netmap/netmap.c \
997 vnet/devices/netmap/device.c \
998 vnet/devices/netmap/node.c \
999 vnet/devices/netmap/cli.c \
1000 vnet/devices/netmap/netmap_api.c
1001
1002nobase_include_HEADERS += \
1003 vnet/devices/netmap/netmap.h \
1004 vnet/devices/netmap/netmap.api.h
1005
1006API_FILES += vnet/devices/netmap/netmap.api
1007
1008########################################
1009# Driver feature graph arc support
1010########################################
1011
1012libvnet_la_SOURCES += \
1013 vnet/feature/feature.c \
Neale Rannsb8d44812017-11-10 06:53:54 -08001014 vnet/feature/feature_api.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +01001015 vnet/feature/registration.c
1016
1017nobase_include_HEADERS += \
Neale Rannsb8d44812017-11-10 06:53:54 -08001018 vnet/feature/feature.h \
1019 vnet/feature/feature.api.h
1020
1021API_FILES += vnet/feature/feature.api
Damjan Marion7cd468a2016-12-19 23:05:39 +01001022
1023########################################
1024# Unix kernel related
1025########################################
1026
1027# FIXME: vnet/unix/hgshm.c
1028
1029libvnet_la_SOURCES += \
1030 vnet/unix/gdb_funcs.c \
1031 vnet/unix/pcap.c \
1032 vnet/unix/tap_api.c \
1033 vnet/unix/tapcli.c \
1034 vnet/unix/tuntap.c
1035
1036nobase_include_HEADERS += \
1037 vnet/unix/pcap.h \
1038 vnet/unix/tuntap.h \
1039 vnet/unix/tap.api.h \
1040 vnet/unix/tapcli.h
1041
1042API_FILES += vnet/unix/tap.api
1043
1044########################################
1045# FIB
1046########################################
1047
1048libvnet_la_SOURCES += \
1049 vnet/fib/fib.c \
1050 vnet/fib/fib_test.c \
1051 vnet/fib/ip4_fib.c \
1052 vnet/fib/ip6_fib.c \
1053 vnet/fib/mpls_fib.c \
1054 vnet/fib/fib_table.c \
1055 vnet/fib/fib_walk.c \
1056 vnet/fib/fib_types.c \
1057 vnet/fib/fib_node.c \
1058 vnet/fib/fib_node_list.c \
1059 vnet/fib/fib_entry.c \
1060 vnet/fib/fib_entry_src.c \
1061 vnet/fib/fib_entry_src_rr.c \
1062 vnet/fib/fib_entry_src_interface.c \
1063 vnet/fib/fib_entry_src_default_route.c \
1064 vnet/fib/fib_entry_src_special.c \
1065 vnet/fib/fib_entry_src_api.c \
1066 vnet/fib/fib_entry_src_adj.c \
1067 vnet/fib/fib_entry_src_mpls.c \
1068 vnet/fib/fib_entry_src_lisp.c \
1069 vnet/fib/fib_entry_cover.c \
1070 vnet/fib/fib_entry_delegate.c \
1071 vnet/fib/fib_path_list.c \
1072 vnet/fib/fib_path.c \
1073 vnet/fib/fib_path_ext.c \
1074 vnet/fib/fib_urpf_list.c \
Neale Ranns88fc83e2017-04-05 08:11:14 -07001075 vnet/fib/fib_attached_export.c \
1076 vnet/fib/fib_bfd.c
Damjan Marion7cd468a2016-12-19 23:05:39 +01001077
1078nobase_include_HEADERS += \
1079 vnet/fib/fib.h \
1080 vnet/fib/fib_api.h \
1081 vnet/fib/ip4_fib.h \
1082 vnet/fib/ip6_fib.h \
1083 vnet/fib/fib_types.h \
1084 vnet/fib/fib_table.h \
1085 vnet/fib/fib_node.h \
1086 vnet/fib/fib_node_list.h \
1087 vnet/fib/fib_entry.h \
1088 vnet/fib/fib_entry_delegate.h
1089
1090########################################
1091# ADJ
1092########################################
1093
1094libvnet_la_SOURCES += \
1095 vnet/adj/adj_nbr.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +01001096 vnet/adj/adj_glean.c \
1097 vnet/adj/adj_midchain.c \
Neale Ranns32e1c012016-11-22 17:07:28 +00001098 vnet/adj/adj_mcast.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +01001099 vnet/adj/adj_l2.c \
Florin Corasce1b4c72017-01-26 14:25:34 -08001100 vnet/adj/adj_nsh.c \
Neale Rannsfa5d1982017-02-20 14:19:51 -08001101 vnet/adj/adj.c \
Neale Ranns88fc83e2017-04-05 08:11:14 -07001102 vnet/adj/rewrite.c \
1103 vnet/adj/adj_bfd.c \
1104 vnet/adj/adj_delegate.c
Damjan Marion7cd468a2016-12-19 23:05:39 +01001105
1106nobase_include_HEADERS += \
1107 vnet/adj/adj.h \
1108 vnet/adj/adj_types.h \
Damjan Marion7cd468a2016-12-19 23:05:39 +01001109 vnet/adj/adj_glean.h \
Florin Corasce1b4c72017-01-26 14:25:34 -08001110 vnet/adj/adj_nsh.h \
Neale Rannsfa5d1982017-02-20 14:19:51 -08001111 vnet/adj/adj_nbr.h \
1112 vnet/adj/rewrite.h
Damjan Marion7cd468a2016-12-19 23:05:39 +01001113
1114########################################
1115# Data-Plane Objects
1116########################################
1117
1118libvnet_la_SOURCES += \
1119 vnet/dpo/dpo.c \
1120 vnet/dpo/drop_dpo.c \
1121 vnet/dpo/ip_null_dpo.c \
1122 vnet/dpo/punt_dpo.c \
1123 vnet/dpo/receive_dpo.c \
1124 vnet/dpo/load_balance.c \
1125 vnet/dpo/load_balance_map.c \
Neale Ranns32e1c012016-11-22 17:07:28 +00001126 vnet/dpo/lookup_dpo.c \
1127 vnet/dpo/classify_dpo.c \
1128 vnet/dpo/replicate_dpo.c \
Neale Ranns43161a82017-08-12 02:12:00 -07001129 vnet/dpo/interface_rx_dpo.c \
1130 vnet/dpo/interface_tx_dpo.c \
Neale Ranns0f26c5a2017-03-01 15:12:11 -08001131 vnet/dpo/mpls_disposition.c \
Neale Ranns6f631152017-10-03 08:20:21 -07001132 vnet/dpo/mpls_label_dpo.c \
Andrew Yourtchenko5f3fcb92017-10-25 05:50:37 -07001133 vnet/dpo/l3_proxy_dpo.c \
Neale Rannsf068c3e2018-01-03 04:18:48 -08001134 vnet/dpo/dvr_dpo.c
Damjan Marion7cd468a2016-12-19 23:05:39 +01001135
1136nobase_include_HEADERS += \
1137 vnet/dpo/load_balance.h \
1138 vnet/dpo/drop_dpo.h \
1139 vnet/dpo/lookup_dpo.h \
1140 vnet/dpo/punt_dpo.h \
1141 vnet/dpo/classify_dpo.h \
1142 vnet/dpo/receive_dpo.h \
1143 vnet/dpo/ip_null_dpo.h \
Neale Ranns60c1c7c2017-11-02 07:39:24 -07001144 vnet/dpo/replicate_dpo.h \
Damjan Marion7cd468a2016-12-19 23:05:39 +01001145 vnet/dpo/dpo.h
1146
1147########################################
Neale Ranns32e1c012016-11-22 17:07:28 +00001148# Multicast FIB
1149########################################
1150
1151libvnet_la_SOURCES += \
1152 vnet/mfib/mfib_test.c \
1153 vnet/mfib/mfib_forward.c \
1154 vnet/mfib/ip4_mfib.c \
1155 vnet/mfib/ip6_mfib.c \
1156 vnet/mfib/mfib_types.c \
1157 vnet/mfib/mfib_signal.c \
1158 vnet/mfib/mfib_itf.c \
1159 vnet/mfib/mfib_entry.c \
1160 vnet/mfib/mfib_table.c
1161
1162nobase_include_HEADERS += \
1163 vnet/mfib/ip4_mfib.h \
1164 vnet/mfib/mfib_types.h \
1165 vnet/mfib/mfib_table.h
1166
1167########################################
1168# Utilities
1169########################################
1170
1171libvnet_la_SOURCES += \
Hongjun Nibf4be572017-11-13 20:34:06 +08001172 vnet/util/radix.c \
1173 vnet/util/refcount.c \
Dave Barach7bee7732017-10-18 18:48:11 -04001174 vnet/util/trajectory.c
Neale Ranns32e1c012016-11-22 17:07:28 +00001175
1176########################################
Neale Rannsd792d9c2017-10-21 10:53:20 -07001177# BIER
1178########################################
1179
1180libvnet_la_SOURCES += \
1181 vnet/bier/bier_bit_string.c \
1182 vnet/bier/bier_entry.c \
1183 vnet/bier/bier_fmask.c \
1184 vnet/bier/bier_fmask_db.c \
1185 vnet/bier/bier_input.c \
1186 vnet/bier/bier_lookup.c \
1187 vnet/bier/bier_output.c \
1188 vnet/bier/bier_table.c \
1189 vnet/bier/bier_types.c \
1190 vnet/bier/bier_test.c \
1191 vnet/bier/bier_api.c \
1192 vnet/bier/bier_drop.c \
1193 vnet/bier/bier_update.c \
1194 vnet/bier/bier_imp_node.c \
1195 vnet/bier/bier_imp.c \
1196 vnet/bier/bier_disp_entry.c \
1197 vnet/bier/bier_disp_lookup_node.c \
1198 vnet/bier/bier_disp_dispatch_node.c \
Neale Ranns91286372017-12-05 13:24:04 -08001199 vnet/bier/bier_disp_table.c \
1200 vnet/bier/bier_bift_table.c
Neale Rannsd792d9c2017-10-21 10:53:20 -07001201
1202nobase_include_HEADERS += \
1203 vnet/bier/bier_types.h \
1204 vnet/bier/bier_entry.h \
1205 vnet/bier/bier_update.h \
1206 vnet/bier/bier.api.h \
1207 vnet/bier/bier_table.h
1208
1209API_FILES += vnet/bier/bier.api
1210
1211########################################
Florin Coras891f0a12017-12-11 11:49:26 -08001212# Test apps
1213########################################
1214
1215noinst_PROGRAMS += tcp_echo udp_echo
1216
1217TEST_APPS_LDADD = libvlibmemoryclient.la libsvm.la libvppinfra.la
1218TEST_APPS_LDADD += -lpthread -lm -lrt
1219
1220tcp_echo_SOURCES = tests/vnet/session/tcp_echo.c
1221tcp_echo_LDADD = $(TEST_APPS_LDADD)
1222
1223udp_echo_SOURCES = tests/vnet/session/udp_echo.c
1224udp_echo_LDADD = $(TEST_APPS_LDADD)
1225
1226########################################
Damjan Marion7cd468a2016-12-19 23:05:39 +01001227# Plugin client library
1228########################################
1229
Damjan Marion7cd468a2016-12-19 23:05:39 +01001230nobase_include_HEADERS += \
1231 vnet/plugin/plugin.h
1232
Damjan Marion7cd468a2016-12-19 23:05:39 +01001233pcap2pg_SOURCES = \
1234 vnet/unix/pcap2pg.c \
1235 vnet/unix/pcap.h
1236
1237pcap2pg_LDFLAGS = -static
1238pcap2pg_LDADD = libvnet.la libvppinfra.la -lpthread libvlibmemory.la -lm -ldl
1239
1240noinst_PROGRAMS += pcap2pg
1241
1242# vi:syntax=automake