blob: aea5b216e40da1eb9532a05ee5833dc260aaf9ad [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 += \
34 vnet/config.c \
35 vnet/devices/devices.c \
36 vnet/handoff.c \
37 vnet/interface.c \
38 vnet/interface_api.c \
39 vnet/interface_cli.c \
40 vnet/interface_format.c \
41 vnet/interface_output.c \
42 vnet/misc.c \
Neale Rannsfa5d1982017-02-20 14:19:51 -080043 vnet/replication.c
Damjan Marion7cd468a2016-12-19 23:05:39 +010044
45nobase_include_HEADERS += \
46 vnet/api_errno.h \
47 vnet/buffer.h \
48 vnet/config.h \
49 vnet/devices/devices.h \
50 vnet/global_funcs.h \
51 vnet/handoff.h \
52 vnet/interface.h \
53 vnet/interface.api.h \
54 vnet/interface_funcs.h \
Matus Fabiana774b532017-05-02 03:15:22 -070055 vnet/ip/ip4_to_ip6.h \
56 vnet/ip/ip6_to_ip4.h \
Damjan Marion7cd468a2016-12-19 23:05:39 +010057 vnet/l3_types.h \
58 vnet/pipeline.h \
59 vnet/replication.h \
Damjan Marion7cd468a2016-12-19 23:05:39 +010060 vnet/vnet.h \
61 vnet/vnet_all_api_h.h \
Gabriel Ganne5842c782017-01-30 13:44:04 +010062 vnet/vnet_msg_enum.h \
63 vnet/util/radix.h
Damjan Marion7cd468a2016-12-19 23:05:39 +010064
65API_FILES += vnet/interface.api
66
67########################################
68# Policer infra
69########################################
70
71libvnet_la_SOURCES += \
72 vnet/policer/node_funcs.c \
73 vnet/policer/policer.c \
Pavel Kotucekd9aad292017-01-25 08:45:38 +010074 vnet/policer/xlate.c \
75 vnet/policer/policer_api.c
Damjan Marion7cd468a2016-12-19 23:05:39 +010076
77nobase_include_HEADERS += \
78 vnet/policer/police.h \
79 vnet/policer/policer.h \
Pavel Kotucekd9aad292017-01-25 08:45:38 +010080 vnet/policer/xlate.h \
81 vnet/policer/policer.api.h
82
83API_FILES += vnet/policer/policer.api
Damjan Marion7cd468a2016-12-19 23:05:39 +010084
85########################################
86# Cop - junk filter
87########################################
88
89libvnet_la_SOURCES += \
90 vnet/cop/cop.c \
91 vnet/cop/node1.c \
92 vnet/cop/ip4_whitelist.c \
Pavel Kotucek884cf262017-01-25 08:27:15 +010093 vnet/cop/ip6_whitelist.c \
94 vnet/cop/cop_api.c
Damjan Marion7cd468a2016-12-19 23:05:39 +010095
96nobase_include_HEADERS += \
Pavel Kotucek884cf262017-01-25 08:27:15 +010097 vnet/cop/cop.h \
98 vnet/cop/cop.api.h
99
100API_FILES += vnet/cop/cop.api
Damjan Marion7cd468a2016-12-19 23:05:39 +0100101
102########################################
103# Layer 2 protocols go here
104########################################
105
106########################################
107# Layer 2 protocol: Ethernet
108########################################
109libvnet_la_SOURCES += \
110 vnet/ethernet/arp.c \
111 vnet/ethernet/format.c \
112 vnet/ethernet/init.c \
113 vnet/ethernet/interface.c \
114 vnet/ethernet/node.c \
Damjan Marion374e2c52017-03-09 20:38:15 +0100115 vnet/ethernet/pg.c \
Pavel Kotucek6899a302017-06-08 08:46:10 +0200116 vnet/ethernet/sfp.c \
117 vnet/ethernet/p2p_ethernet.c \
Pavel Kotucek15ac81c2017-06-20 14:00:26 +0200118 vnet/ethernet/p2p_ethernet_input.c \
Pavel Kotucek6899a302017-06-08 08:46:10 +0200119 vnet/ethernet/p2p_ethernet_api.c
Damjan Marion7cd468a2016-12-19 23:05:39 +0100120
121nobase_include_HEADERS += \
122 vnet/ethernet/arp_packet.h \
123 vnet/ethernet/error.def \
124 vnet/ethernet/ethernet.h \
125 vnet/ethernet/packet.h \
Damjan Marion374e2c52017-03-09 20:38:15 +0100126 vnet/ethernet/types.def \
Pavel Kotucek6899a302017-06-08 08:46:10 +0200127 vnet/ethernet/sfp.h \
128 vnet/ethernet/p2p_ethernet.api.h \
129 vnet/ethernet/p2p_ethernet.h
130
131API_FILES += vnet/ethernet/p2p_ethernet.api
Damjan Marion7cd468a2016-12-19 23:05:39 +0100132
133########################################
134# Layer 2 protocol: Ethernet bridging
135########################################
136libvnet_la_SOURCES += \
137 vnet/l2/feat_bitmap.c \
138 vnet/l2/l2_api.c \
139 vnet/l2/l2_bd.c \
140 vnet/l2/l2_bvi.c \
141 vnet/l2/l2_input_classify.c \
142 vnet/l2/l2_output_classify.c \
143 vnet/l2/l2_efp_filter.c \
144 vnet/l2/l2_fib.c \
145 vnet/l2/l2_flood.c \
146 vnet/l2/l2_fwd.c \
147 vnet/l2/l2_input_acl.c \
148 vnet/l2/l2_input.c \
149 vnet/l2/l2_input_vtr.c \
150 vnet/l2/l2_learn.c \
151 vnet/l2/l2_output_acl.c \
152 vnet/l2/l2_output.c \
153 vnet/l2/l2_patch.c \
154 vnet/l2/l2_rw.c \
155 vnet/l2/l2_vtr.c \
156 vnet/l2/l2_xcrw.c
157
158nobase_include_HEADERS += \
159 vnet/l2/feat_bitmap.h \
160 vnet/l2/l2_input.h \
161 vnet/l2/l2_output.h \
162 vnet/l2/l2_vtr.h \
163 vnet/l2/l2_input_vtr.h \
164 vnet/l2/l2_efp_filter.h \
165 vnet/l2/l2_fwd.h \
166 vnet/l2/l2_bd.h \
167 vnet/l2/l2_bvi.h \
168 vnet/l2/l2_flood.h \
169 vnet/l2/l2_fib.h \
170 vnet/l2/l2_rw.h \
171 vnet/l2/l2_xcrw.h \
172 vnet/l2/l2_classify.h \
173 vnet/l2/l2.api.h
174
175API_FILES += vnet/l2/l2.api
176
177########################################
178# Layer 2 protocol: SRP
179########################################
180libvnet_la_SOURCES += \
181 vnet/srp/format.c \
182 vnet/srp/interface.c \
183 vnet/srp/node.c \
184 vnet/srp/pg.c
185
186nobase_include_HEADERS += \
187 vnet/srp/packet.h \
188 vnet/srp/srp.h
189
190########################################
191# Layer 2 protocol: PPP
192########################################
193libvnet_la_SOURCES += \
194 vnet/ppp/node.c \
195 vnet/ppp/pg.c \
196 vnet/ppp/ppp.c
197
198nobase_include_HEADERS += \
199 vnet/ppp/error.def \
200 vnet/ppp/ppp.h \
201 vnet/ppp/packet.h
202
203########################################
204# Layer 2 protocol: HDLC
205########################################
206libvnet_la_SOURCES += \
207 vnet/hdlc/node.c \
208 vnet/hdlc/pg.c \
209 vnet/hdlc/hdlc.c
210
211nobase_include_HEADERS += \
212 vnet/hdlc/error.def \
213 vnet/hdlc/hdlc.h \
214 vnet/hdlc/packet.h
215
216########################################
217# Layer 2 protocol: LLC
218########################################
219libvnet_la_SOURCES += \
220 vnet/llc/llc.c \
221 vnet/llc/node.c \
222 vnet/llc/pg.c
223
224nobase_include_HEADERS += \
225 vnet/llc/llc.h
226
227########################################
228# Layer 2 protocol: SNAP
229########################################
230libvnet_la_SOURCES += \
231 vnet/snap/snap.c \
232 vnet/snap/node.c \
233 vnet/snap/pg.c
234
235nobase_include_HEADERS += \
236 vnet/snap/snap.h
237
238########################################
239# Layer 2 / vxlan
240########################################
241libvnet_la_SOURCES += \
242 vnet/vxlan/vxlan.c \
243 vnet/vxlan/encap.c \
244 vnet/vxlan/decap.c \
245 vnet/vxlan/vxlan_api.c
246
247nobase_include_HEADERS += \
248 vnet/vxlan/vxlan.h \
249 vnet/vxlan/vxlan_packet.h \
250 vnet/vxlan/vxlan_error.def \
251 vnet/vxlan/vxlan.api.h
252
253API_FILES += vnet/vxlan/vxlan.api
254
255########################################
Marco Varleseb598f1d2017-09-19 14:25:28 +0200256# Layer 2 / Geneve
257########################################
258libvnet_la_SOURCES += \
259 vnet/geneve/geneve.c \
260 vnet/geneve/encap.c \
261 vnet/geneve/decap.c \
262 vnet/geneve/geneve_api.c
263
264nobase_include_HEADERS += \
265 vnet/geneve/geneve.h \
266 vnet/geneve/geneve_packet.h \
267 vnet/geneve/geneve_error.def \
268 vnet/geneve/geneve.api.h
269
270API_FILES += vnet/geneve/geneve.api
271
272########################################
Damjan Marion7cd468a2016-12-19 23:05:39 +0100273# Layer 2 / CDP
274########################################
275libvnet_la_SOURCES += \
276 vnet/cdp/cdp_input.c \
277 vnet/cdp/cdp_node.c \
278 vnet/cdp/cdp_periodic.c
279
280nobase_include_HEADERS += \
281 vnet/cdp/cdp_protocol.h
282
283########################################
284# Layer 2 / LLDP
285########################################
286libvnet_la_SOURCES += \
287 vnet/lldp/lldp_input.c \
288 vnet/lldp/lldp_node.c \
289 vnet/lldp/lldp_output.c \
Steve Shin99a0e602017-07-01 04:16:20 +0000290 vnet/lldp/lldp_cli.c \
291 vnet/lldp/lldp_api.c
Damjan Marion7cd468a2016-12-19 23:05:39 +0100292
293nobase_include_HEADERS += \
Steve Shin99a0e602017-07-01 04:16:20 +0000294 vnet/lldp/lldp_protocol.h \
295 vnet/lldp/lldp.h \
296 vnet/lldp/lldp.api.h
297
298API_FILES += vnet/lldp/lldp.api
Damjan Marion7cd468a2016-12-19 23:05:39 +0100299
300########################################
301# Layer 2/3 "classify"
302########################################
303libvnet_la_SOURCES += \
304 vnet/classify/vnet_classify.c \
305 vnet/classify/ip_classify.c \
306 vnet/classify/input_acl.c \
307 vnet/classify/policer_classify.c \
308 vnet/classify/flow_classify.c \
309 vnet/classify/flow_classify_node.c \
Pavel Kotucekd2c97d92017-01-24 10:58:12 +0100310 vnet/classify/vnet_classify.h \
311 vnet/classify/classify_api.c
Damjan Marion7cd468a2016-12-19 23:05:39 +0100312
313nobase_include_HEADERS += \
314 vnet/classify/vnet_classify.h \
315 vnet/classify/input_acl.h \
316 vnet/classify/policer_classify.h \
Pavel Kotucekd2c97d92017-01-24 10:58:12 +0100317 vnet/classify/flow_classify.h \
318 vnet/classify/classify.api.h
319
320API_FILES += vnet/classify/classify.api
Damjan Marion7cd468a2016-12-19 23:05:39 +0100321
322########################################
323# Layer 3 protocols go here
324########################################
325
326########################################
327# Layer 3 protocol: IP v4/v6
328########################################
329libvnet_la_SOURCES += \
330 vnet/ip/format.c \
331 vnet/ip/icmp4.c \
332 vnet/ip/icmp6.c \
333 vnet/ip/ip46_cli.c \
334 vnet/ip/ip4_format.c \
335 vnet/ip/ip4_forward.c \
Neale Rannsd91c1db2017-07-31 02:30:50 -0700336 vnet/ip/ip4_punt_drop.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100337 vnet/ip/ip4_input.c \
338 vnet/ip/ip4_mtrie.c \
339 vnet/ip/ip4_pg.c \
340 vnet/ip/ip4_source_and_port_range_check.c \
341 vnet/ip/ip4_source_check.c \
342 vnet/ip/ip6_format.c \
343 vnet/ip/ip6_forward.c \
Neale Rannsd91c1db2017-07-31 02:30:50 -0700344 vnet/ip/ip6_punt_drop.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100345 vnet/ip/ip6_hop_by_hop.c \
346 vnet/ip/ip6_input.c \
347 vnet/ip/ip6_neighbor.c \
348 vnet/ip/ip6_pg.c \
349 vnet/ip/ip_api.c \
350 vnet/ip/ip_checksum.c \
351 vnet/ip/ip_frag.c \
Florin Corascea194d2017-10-02 00:18:51 -0700352 vnet/ip/ip.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100353 vnet/ip/ip_init.c \
354 vnet/ip/ip_input_acl.c \
355 vnet/ip/lookup.c \
356 vnet/ip/ping.c \
Dave Barach68b0fb02017-02-28 15:15:56 -0500357 vnet/ip/punt.c
Damjan Marion7cd468a2016-12-19 23:05:39 +0100358
359nobase_include_HEADERS += \
360 vnet/ip/format.h \
361 vnet/ip/icmp46_packet.h \
362 vnet/ip/icmp4.h \
363 vnet/ip/icmp6.h \
364 vnet/ip/igmp_packet.h \
365 vnet/ip/ip.api.h \
366 vnet/ip/ip4_error.h \
367 vnet/ip/ip4.h \
368 vnet/ip/ip4_mtrie.h \
369 vnet/ip/ip4_packet.h \
370 vnet/ip/ip6_error.h \
371 vnet/ip/ip6.h \
372 vnet/ip/ip6_hop_by_hop.h \
373 vnet/ip/ip6_hop_by_hop_packet.h \
374 vnet/ip/ip6_packet.h \
375 vnet/ip/ip6_neighbor.h \
376 vnet/ip/ip.h \
377 vnet/ip/ip_packet.h \
378 vnet/ip/ip_source_and_port_range_check.h \
379 vnet/ip/lookup.h \
380 vnet/ip/ports.def \
381 vnet/ip/protocols.def \
382 vnet/ip/punt_error.def \
Dave Barach68b0fb02017-02-28 15:15:56 -0500383 vnet/ip/punt.h
Damjan Marion7cd468a2016-12-19 23:05:39 +0100384
385API_FILES += vnet/ip/ip.api
386
387########################################
388# Bidirectional Forwarding Detection
389########################################
390
391nobase_include_HEADERS += \
392 vnet/bfd/bfd_protocol.h \
393 vnet/bfd/bfd_main.h \
394 vnet/bfd/bfd_api.h \
395 vnet/bfd/bfd_udp.h \
396 vnet/bfd/bfd.api.h
397
398libvnet_la_SOURCES += \
399 vnet/bfd/bfd_api.h \
400 vnet/bfd/bfd_udp.c \
401 vnet/bfd/bfd_main.c \
402 vnet/bfd/bfd_protocol.c \
Klement Sekera73884482017-02-23 09:26:30 +0100403 vnet/bfd/bfd_cli.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100404 vnet/bfd/bfd_api.c
405
406API_FILES += vnet/bfd/bfd.api
407
408########################################
409# Layer 3 protocol: IPSec
410########################################
Damjan Mariona9a951f2017-01-16 22:06:10 +0100411if WITH_LIBSSL
Damjan Marion7cd468a2016-12-19 23:05:39 +0100412libvnet_la_SOURCES += \
413 vnet/ipsec/ipsec.c \
414 vnet/ipsec/ipsec_cli.c \
415 vnet/ipsec/ipsec_format.c \
416 vnet/ipsec/ipsec_input.c \
417 vnet/ipsec/ipsec_if.c \
418 vnet/ipsec/ipsec_if_in.c \
419 vnet/ipsec/ipsec_if_out.c \
Sergio Gonzalez Monroydb93cd92017-08-26 15:22:05 +0100420 vnet/ipsec/esp_format.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100421 vnet/ipsec/esp_encrypt.c \
422 vnet/ipsec/esp_decrypt.c \
423 vnet/ipsec/ikev2.c \
424 vnet/ipsec/ikev2_crypto.c \
425 vnet/ipsec/ikev2_cli.c \
426 vnet/ipsec/ikev2_payload.c \
427 vnet/ipsec/ikev2_format.c \
428 vnet/ipsec/ipsec_api.c
429
430API_FILES += vnet/ipsec/ipsec.api
Damjan Marion7cd468a2016-12-19 23:05:39 +0100431endif
432
433libvnet_la_SOURCES += \
434 vnet/ipsec/ipsec_output.c
435
436nobase_include_HEADERS += \
437 vnet/ipsec/ipsec.h \
438 vnet/ipsec/esp.h \
439 vnet/ipsec/ikev2.h \
440 vnet/ipsec/ikev2_priv.h \
441 vnet/ipsec/ipsec.api.h
Damjan Marion7cd468a2016-12-19 23:05:39 +0100442
443########################################
444# Layer 3 protocol: osi
445########################################
446libvnet_la_SOURCES += \
447 vnet/osi/node.c \
448 vnet/osi/osi.c \
449 vnet/osi/pg.c
450
451nobase_include_HEADERS += \
452 vnet/osi/osi.h
453
454########################################
455# Layer 3 protocol: MAP
456########################################
457libvnet_la_SOURCES += \
458 vnet/map/map.c \
459 vnet/map/map_dpo.c \
460 vnet/map/ip4_map.c \
461 vnet/map/ip6_map.c \
462 vnet/map/ip4_map_t.c \
463 vnet/map/ip6_map_t.c \
464 vnet/map/map_api.c
465
466nobase_include_HEADERS += \
467 vnet/map/map.h \
468 vnet/map/map_dpo.h \
469 vnet/map/map.api.h
470
471API_FILES += vnet/map/map.api
472
473if ENABLE_TESTS
474TESTS += test_map
475test_map_SOURCES = \
476 vnet/map/test.c
477test_map_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG
478
479test_map_LDADD = libvnet.la libvppinfra.la libvlib.la \
Dave Barach654ceaf2017-03-29 16:59:02 -0400480 -lpthread -lvlibmemory -ldl -lsvm -lrt
Damjan Marion7cd468a2016-12-19 23:05:39 +0100481
482test_map_LDFLAGS = -static
483endif
484
Dave Barach68b0fb02017-02-28 15:15:56 -0500485########################################
486# Layer 4 protocol: tcp
487########################################
488libvnet_la_SOURCES += \
Dave Barach3bbcfab2017-08-15 19:03:44 -0400489 vnet/tcp/tcp_api.c \
Dave Barach68b0fb02017-02-28 15:15:56 -0500490 vnet/tcp/tcp_format.c \
491 vnet/tcp/tcp_pg.c \
492 vnet/tcp/tcp_syn_filter4.c \
493 vnet/tcp/tcp_output.c \
494 vnet/tcp/tcp_input.c \
495 vnet/tcp/tcp_newreno.c \
Florin Coras6792ec02017-03-13 03:49:51 -0700496 vnet/tcp/builtin_client.c \
Florin Corase04c2992017-03-01 08:17:34 -0800497 vnet/tcp/builtin_server.c \
Dave Barach1015a1e2017-05-08 19:15:03 -0400498 vnet/tcp/builtin_http_server.c \
Dave Barach52851e62017-08-07 09:35:25 -0400499 vnet/tcp/builtin_proxy.c \
Florin Coras6792ec02017-03-13 03:49:51 -0700500 vnet/tcp/tcp_test.c \
Dave Barach68b0fb02017-02-28 15:15:56 -0500501 vnet/tcp/tcp.c
502
503nobase_include_HEADERS += \
504 vnet/tcp/tcp_packet.h \
505 vnet/tcp/tcp_timer.h \
Florin Corase69f4952017-03-07 10:06:24 -0800506 vnet/tcp/tcp_debug.h \
Florin Corasc940f092017-08-23 11:24:02 -0700507 vnet/tcp/tcp.h \
508 vnet/tcp/tcp.api.h
Dave Barach68b0fb02017-02-28 15:15:56 -0500509
Dave Barach3bbcfab2017-08-15 19:03:44 -0400510API_FILES += vnet/tcp/tcp.api
511
Dave Barach68b0fb02017-02-28 15:15:56 -0500512########################################
513# Layer 4 protocol: udp
514########################################
515libvnet_la_SOURCES += \
516 vnet/udp/udp.c \
517 vnet/udp/udp_input.c \
518 vnet/udp/builtin_server.c \
519 vnet/udp/udp_format.c \
520 vnet/udp/udp_local.c \
Neale Ranns810086d2017-11-05 16:26:46 -0800521 vnet/udp/udp_pg.c \
522 vnet/udp/udp_encap_node.c \
523 vnet/udp/udp_encap.c \
524 vnet/udp/udp_api.c
Dave Barach68b0fb02017-02-28 15:15:56 -0500525
526nobase_include_HEADERS += \
527 vnet/udp/udp_error.def \
528 vnet/udp/udp.h \
Florin Corasf1493142017-11-09 14:17:27 -0800529 vnet/udp/udp_packet.h \
530 vnet/udp/udp.api.h
Damjan Marion7cd468a2016-12-19 23:05:39 +0100531
Neale Ranns810086d2017-11-05 16:26:46 -0800532API_FILES += vnet/udp/udp.api
533
Damjan Marion7cd468a2016-12-19 23:05:39 +0100534########################################
535# Tunnel protocol: gre
536########################################
537libvnet_la_SOURCES += \
538 vnet/gre/gre.c \
539 vnet/gre/node.c \
540 vnet/gre/interface.c \
541 vnet/gre/pg.c \
542 vnet/gre/gre_api.c
543
544nobase_include_HEADERS += \
545 vnet/gre/gre.h \
546 vnet/gre/packet.h \
547 vnet/gre/error.def \
548 vnet/gre/gre.api.h
549
550API_FILES += vnet/gre/gre.api
551
552########################################
553# Tunnel protocol: l2tpv3
554########################################
555libvnet_la_SOURCES += \
556 vnet/l2tp/l2tp.c \
557 vnet/l2tp/encap.c \
558 vnet/l2tp/decap.c \
559 vnet/l2tp/pg.c \
560 vnet/l2tp/l2tp_api.c
561
562nobase_include_HEADERS += \
563 vnet/l2tp/l2tp.h \
564 vnet/l2tp/packet.h \
565 vnet/l2tp/l2tp.api.h
566
567API_FILES += vnet/l2tp/l2tp.api
568
569########################################
570# Tunnel protocol: gre+mpls
571########################################
572libvnet_la_SOURCES += \
573 vnet/mpls/mpls.c \
574 vnet/mpls/mpls_lookup.c \
575 vnet/mpls/mpls_output.c \
576 vnet/mpls/mpls_features.c \
Neale Ranns696e88d2017-03-16 07:34:55 -0400577 vnet/mpls/mpls_input.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100578 vnet/mpls/interface.c \
579 vnet/mpls/mpls_tunnel.c \
Pavel Kotucek0f971d82017-01-03 10:48:54 +0100580 vnet/mpls/pg.c \
581 vnet/mpls/mpls_api.c
Damjan Marion7cd468a2016-12-19 23:05:39 +0100582
583nobase_include_HEADERS += \
584 vnet/mpls/mpls.h \
585 vnet/mpls/mpls_types.h \
586 vnet/mpls/mpls_tunnel.h \
587 vnet/mpls/packet.h \
Pavel Kotucek0f971d82017-01-03 10:48:54 +0100588 vnet/mpls/error.def \
589 vnet/mpls/mpls.api.h
Damjan Marion7cd468a2016-12-19 23:05:39 +0100590
Pavel Kotucek0f971d82017-01-03 10:48:54 +0100591API_FILES += vnet/mpls/mpls.api
Damjan Marion7cd468a2016-12-19 23:05:39 +0100592
593########################################
594# Tunnel protocol: vxlan-gpe
595########################################
596
597libvnet_la_SOURCES += \
598 vnet/vxlan-gpe/vxlan_gpe.c \
599 vnet/vxlan-gpe/encap.c \
600 vnet/vxlan-gpe/decap.c \
601 vnet/vxlan-gpe/vxlan_gpe_api.c
602
603nobase_include_HEADERS += \
604 vnet/vxlan-gpe/vxlan_gpe.h \
605 vnet/vxlan-gpe/vxlan_gpe_packet.h \
606 vnet/vxlan-gpe/vxlan_gpe_error.def \
607 vnet/vxlan-gpe/vxlan_gpe.api.h
608
609API_FILES += vnet/vxlan-gpe/vxlan_gpe.api
610
611########################################
612# Tunnel protocol: ipsec+gre
613########################################
614libvnet_la_SOURCES += \
615 vnet/ipsec-gre/ipsec_gre.c \
616 vnet/ipsec-gre/node.c \
617 vnet/ipsec-gre/interface.c \
618 vnet/ipsec-gre/ipsec_gre_api.c
619
620nobase_include_HEADERS += \
621 vnet/ipsec-gre/ipsec_gre.h \
622 vnet/ipsec-gre/error.def \
623 vnet/ipsec-gre/ipsec_gre.api.h
624
625API_FILES += vnet/ipsec-gre/ipsec_gre.api
626
627########################################
628# LISP control plane: lisp-cp
629########################################
630
631libvnet_la_SOURCES += \
632 vnet/lisp-cp/lisp_types.c \
633 vnet/lisp-cp/lisp_cp_dpo.c \
634 vnet/lisp-cp/control.c \
635 vnet/lisp-cp/gid_dictionary.c \
636 vnet/lisp-cp/lisp_msg_serdes.c \
637 vnet/lisp-cp/packets.c \
Filip Tehlar694396d2017-02-17 14:29:11 +0100638 vnet/lisp-cp/one_cli.c \
Florin Corasf3dc11a2017-01-24 03:13:43 -0800639 vnet/lisp-cp/lisp_cli.c \
Filip Tehlar694396d2017-02-17 14:29:11 +0100640 vnet/lisp-cp/one_api.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100641 vnet/lisp-cp/lisp_api.c
642
643nobase_include_HEADERS += \
644 vnet/lisp-cp/lisp_types.h \
645 vnet/lisp-cp/packets.h \
646 vnet/lisp-cp/gid_dictionary.h \
647 vnet/lisp-cp/lisp_cp_messages.h \
648 vnet/lisp-cp/lisp_msg_serdes.h \
649 vnet/lisp-cp/control.h \
Filip Tehlar694396d2017-02-17 14:29:11 +0100650 vnet/lisp-cp/one.api.h \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100651 vnet/lisp-cp/lisp.api.h
652
653API_FILES += vnet/lisp-cp/lisp.api
Filip Tehlar694396d2017-02-17 14:29:11 +0100654API_FILES += vnet/lisp-cp/one.api
Damjan Marion7cd468a2016-12-19 23:05:39 +0100655
656if ENABLE_TESTS
657LDS = \
658 libvppinfra.la \
659 libvnet.la \
660 libvlib.la \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100661 libsvm.la \
662 libsvmdb.la \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100663 libvlibmemory.la \
Damjan Marionc74a86a2017-01-16 14:00:03 +0100664 -lpthread -ldl -lrt -lm
Damjan Marion7cd468a2016-12-19 23:05:39 +0100665
666TESTS += test_cp_serdes test_lisp_types
667
668test_cp_serdes_SOURCES = \
669 tests/vnet/lisp-cp/test_cp_serdes.c \
670 vnet/lisp-cp/lisp_msg_serdes.c \
671 vnet/lisp-cp/lisp_types.c \
672 vnet/lisp-cp/packets.c \
673 vnet/ip/ip_checksum.c
674
675test_lisp_types_SOURCES = \
676 tests/vnet/lisp-cp/test_lisp_types.c \
677 vnet/lisp-cp/lisp_types.c
678
679test_cp_serdes_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG
680test_lisp_types_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG
681
Damjan Marionc74a86a2017-01-16 14:00:03 +0100682test_cp_serdes_LDADD = $(LDS)
683test_lisp_types_LDADD = $(LDS)
Damjan Marion7cd468a2016-12-19 23:05:39 +0100684endif
685
686########################################
687# Tunnel protocol: lisp-gpe
688########################################
689
690libvnet_la_SOURCES += \
691 vnet/lisp-gpe/lisp_gpe.c \
692 vnet/lisp-gpe/lisp_gpe_sub_interface.c \
693 vnet/lisp-gpe/lisp_gpe_adjacency.c \
694 vnet/lisp-gpe/lisp_gpe_tunnel.c \
695 vnet/lisp-gpe/lisp_gpe_fwd_entry.c \
696 vnet/lisp-gpe/lisp_gpe_tenant.c \
697 vnet/lisp-gpe/interface.c \
698 vnet/lisp-gpe/decap.c \
699 vnet/lisp-gpe/lisp_gpe_api.c
700
701nobase_include_HEADERS += \
702 vnet/lisp-gpe/lisp_gpe.h \
703 vnet/lisp-gpe/lisp_gpe_fwd_entry.h \
704 vnet/lisp-gpe/lisp_gpe_tenant.h \
705 vnet/lisp-gpe/lisp_gpe_packet.h \
706 vnet/lisp-gpe/lisp_gpe_error.def \
707 vnet/lisp-gpe/lisp_gpe.api.h
708
709API_FILES += vnet/lisp-gpe/lisp_gpe.api
710
Damjan Marion7cd468a2016-12-19 23:05:39 +0100711########################################
712# DHCP client
713########################################
714libvnet_la_SOURCES += \
715 vnet/dhcp/client.c \
Pavel Kotucekc8d87702017-01-25 07:25:32 +0100716 vnet/dhcp/client.h \
717 vnet/dhcp/dhcp_api.c
Damjan Marion7cd468a2016-12-19 23:05:39 +0100718
719nobase_include_HEADERS += \
Neale Ranns2dd68522017-02-16 03:38:59 -0800720 vnet/dhcp/client.h \
Pavel Kotucekc8d87702017-01-25 07:25:32 +0100721 vnet/dhcp/dhcp.api.h
722
723API_FILES += vnet/dhcp/dhcp.api
Damjan Marion7cd468a2016-12-19 23:05:39 +0100724
725########################################
726# DHCP proxy
727########################################
728libvnet_la_SOURCES += \
Neale Ranns2dd68522017-02-16 03:38:59 -0800729 vnet/dhcp/dhcp6_proxy_node.c \
730 vnet/dhcp/dhcp4_proxy_node.c \
731 vnet/dhcp/dhcp_proxy.c
Damjan Marion7cd468a2016-12-19 23:05:39 +0100732
733nobase_include_HEADERS += \
Neale Ranns2dd68522017-02-16 03:38:59 -0800734 vnet/dhcp/dhcp4_packet.h \
735 vnet/dhcp/dhcp6_packet.h \
736 vnet/dhcp/dhcp_proxy.h \
737 vnet/dhcp/dhcp6_proxy_error.def \
738 vnet/dhcp/dhcp4_proxy_error.def
Damjan Marion7cd468a2016-12-19 23:05:39 +0100739
740########################################
741# ipv6 segment routing
742########################################
743
Damjan Marion7cd468a2016-12-19 23:05:39 +0100744libvnet_la_SOURCES += \
Pablo Camarillo5d73eec2017-04-24 17:51:56 +0200745 vnet/srv6/sr.c \
746 vnet/srv6/sr_localsid.c \
747 vnet/srv6/sr_policy_rewrite.c \
748 vnet/srv6/sr_steering.c \
749 vnet/srv6/sr_api.c
Damjan Marion7cd468a2016-12-19 23:05:39 +0100750
751nobase_include_HEADERS += \
Pablo Camarillo5d73eec2017-04-24 17:51:56 +0200752 vnet/srv6/sr_packet.h \
753 vnet/srv6/sr.h \
754 vnet/srv6/sr.api.h
Pavel Kotucek0f971d82017-01-03 10:48:54 +0100755
Pablo Camarillo5d73eec2017-04-24 17:51:56 +0200756API_FILES += vnet/srv6/sr.api
757
758########################################
759# mpls segment routing
760########################################
761
762libvnet_la_SOURCES += \
763 vnet/srmpls/sr_mpls_policy.c \
764 vnet/srmpls/sr_mpls_steering.c
765
766
767nobase_include_HEADERS += \
768 vnet/srmpls/sr.h
Damjan Marion7cd468a2016-12-19 23:05:39 +0100769
770########################################
Damjan Marion7cd468a2016-12-19 23:05:39 +0100771# IPFIX / netflow v10
772########################################
773libvnet_la_SOURCES += \
Pavel Kotucekeb9e6662017-01-24 13:40:26 +0100774 vnet/flow/flow_report.c \
775 vnet/flow/flow_api.c
Damjan Marion7cd468a2016-12-19 23:05:39 +0100776
777nobase_include_HEADERS += \
778 vnet/flow/flow_report.h \
779 vnet/flow/ipfix_info_elements.h \
Pavel Kotucekeb9e6662017-01-24 13:40:26 +0100780 vnet/flow/ipfix_packet.h \
781 vnet/flow/flow.api.h
782
783API_FILES += vnet/flow/flow.api
Damjan Marion7cd468a2016-12-19 23:05:39 +0100784
785########################################
786# IPFIX classify code
787########################################
788
789libvnet_la_SOURCES += \
790 vnet/flow/flow_report_classify.c
791
792nobase_include_HEADERS += \
793 vnet/flow/flow_report_classify.h
794
795########################################
796# lawful intercept
797########################################
798
799libvnet_la_SOURCES += \
800 vnet/lawful-intercept/lawful_intercept.c \
801 vnet/lawful-intercept/node.c
802
803nobase_include_HEADERS += \
804 vnet/lawful-intercept/lawful_intercept.h
805
806########################################
807# SPAN (port mirroring)
808########################################
809
810libvnet_la_SOURCES += \
811 vnet/span/span_api.c \
812 vnet/span/span.c \
813 vnet/span/node.c
814
815nobase_include_HEADERS += \
816 vnet/span/span.api.h \
817 vnet/span/span.h
818
819API_FILES += vnet/span/span.api
820
821########################################
Dave Barach65457162017-10-10 17:53:14 -0400822# DNS proxy, API
823########################################
824libvnet_la_SOURCES += \
825 vnet/dns/dns.c \
826 vnet/dns/dns.h \
827 vnet/dns/dns_packet.h \
828 vnet/dns/reply_node.c \
Dave Barach97494502017-11-04 09:44:38 -0400829 vnet/dns/request_node.c \
Dave Barach65457162017-10-10 17:53:14 -0400830 vnet/dns/resolver_process.c
831
832nobase_include_HEADERS += \
833 vnet/dns/dns.api.h \
834 vnet/dns/dns.h
835
836API_FILES += vnet/dns/dns.api
837
838########################################
Damjan Marion7cd468a2016-12-19 23:05:39 +0100839# Packet generator
840########################################
841
842libvnet_la_SOURCES += \
843 vnet/pg/cli.c \
844 vnet/pg/edit.c \
845 vnet/pg/init.c \
846 vnet/pg/input.c \
847 vnet/pg/output.c \
848 vnet/pg/stream.c
849
850nobase_include_HEADERS += \
851 vnet/pg/pg.h \
852 vnet/pg/edit.h
853
Damjan Marion7cd468a2016-12-19 23:05:39 +0100854########################################
855# virtio
856########################################
857
858libvnet_la_SOURCES += \
859 vnet/devices/virtio/vhost-user.c \
860 vnet/devices/virtio/vhost_user_api.c
861
862nobase_include_HEADERS += \
863 vnet/devices/virtio/vhost-user.h \
864 vnet/devices/virtio/vhost_user.api.h
865
866API_FILES += vnet/devices/virtio/vhost_user.api
867
868########################################
869# ssvm ethernet
870########################################
871libvnet_la_SOURCES += \
872 vnet/devices/ssvm/ssvm_eth.c \
873 vnet/devices/ssvm/node.c
874
875nobase_include_HEADERS += \
876 vnet/devices/ssvm/ssvm_eth.h
877
878########################################
Dave Barach68b0fb02017-02-28 15:15:56 -0500879# session managmeent
880########################################
881
882libvnet_la_SOURCES += \
883 vnet/session/session.c \
Florin Corascea194d2017-10-02 00:18:51 -0700884 vnet/session/session_table.c \
Florin Coras1c710452017-10-17 00:03:13 -0700885 vnet/session/session_rules_table.c \
Florin Coras04e53442017-07-16 17:12:15 -0700886 vnet/session/session_lookup.c \
887 vnet/session/session_node.c \
Florin Coras3cbc04b2017-10-02 00:18:51 -0700888 vnet/session/transport.c \
Dave Barach68b0fb02017-02-28 15:15:56 -0500889 vnet/session/application.c \
890 vnet/session/session_cli.c \
Dave Barach68b0fb02017-02-28 15:15:56 -0500891 vnet/session/application_interface.c \
Florin Corascea194d2017-10-02 00:18:51 -0700892 vnet/session/application_namespace.c \
Florin Coras6cf30ad2017-04-04 23:08:23 -0700893 vnet/session/segment_manager.c \
Florin Corascea194d2017-10-02 00:18:51 -0700894 vnet/session/session_test.c \
Dave Barach68b0fb02017-02-28 15:15:56 -0500895 vnet/session/session_api.c
896
897nobase_include_HEADERS += \
898 vnet/session/session.h \
Florin Corascea194d2017-10-02 00:18:51 -0700899 vnet/session/session_table.h \
Florin Coras1c710452017-10-17 00:03:13 -0700900 vnet/session/session_rules_table.h \
Florin Coras04e53442017-07-16 17:12:15 -0700901 vnet/session/stream_session.h \
902 vnet/session/session_lookup.h \
Dave Barach68b0fb02017-02-28 15:15:56 -0500903 vnet/session/application.h \
904 vnet/session/transport.h \
Florin Coras04e53442017-07-16 17:12:15 -0700905 vnet/session/transport_interface.h \
Alexander Popovsky (apopovsk)6f6f52a2017-03-03 16:06:26 -0800906 vnet/session/application_interface.h \
Florin Corascea194d2017-10-02 00:18:51 -0700907 vnet/session/application_namespace.h \
Florin Corase69f4952017-03-07 10:06:24 -0800908 vnet/session/session_debug.h \
Florin Coras6cf30ad2017-04-04 23:08:23 -0700909 vnet/session/segment_manager.h \
Florin Coras1c710452017-10-17 00:03:13 -0700910 vnet/session/mma_template.h \
911 vnet/session/mma_template.c \
912 vnet/session/mma_16.h \
913 vnet/session/mma_40.h \
Alexander Popovsky (apopovsk)6f6f52a2017-03-03 16:06:26 -0800914 vnet/session/session.api.h
Dave Barach68b0fb02017-02-28 15:15:56 -0500915
916API_FILES += vnet/session/session.api
917
918########################################
Damjan Marion7cd468a2016-12-19 23:05:39 +0100919# Linux packet interface
920########################################
921
922libvnet_la_SOURCES += \
923 vnet/devices/af_packet/af_packet.c \
924 vnet/devices/af_packet/device.c \
925 vnet/devices/af_packet/node.c \
926 vnet/devices/af_packet/cli.c \
927 vnet/devices/af_packet/af_packet_api.c
928
929nobase_include_HEADERS += \
930 vnet/devices/af_packet/af_packet.h \
931 vnet/devices/af_packet/af_packet.api.h
932
933API_FILES += vnet/devices/af_packet/af_packet.api
934
935########################################
936# NETMAP interface
937########################################
938
939libvnet_la_SOURCES += \
940 vnet/devices/netmap/netmap.c \
941 vnet/devices/netmap/device.c \
942 vnet/devices/netmap/node.c \
943 vnet/devices/netmap/cli.c \
944 vnet/devices/netmap/netmap_api.c
945
946nobase_include_HEADERS += \
947 vnet/devices/netmap/netmap.h \
948 vnet/devices/netmap/netmap.api.h
949
950API_FILES += vnet/devices/netmap/netmap.api
951
952########################################
953# Driver feature graph arc support
954########################################
955
956libvnet_la_SOURCES += \
957 vnet/feature/feature.c \
958 vnet/feature/registration.c
959
960nobase_include_HEADERS += \
961 vnet/feature/feature.h
962
963########################################
964# Unix kernel related
965########################################
966
967# FIXME: vnet/unix/hgshm.c
968
969libvnet_la_SOURCES += \
970 vnet/unix/gdb_funcs.c \
971 vnet/unix/pcap.c \
972 vnet/unix/tap_api.c \
973 vnet/unix/tapcli.c \
974 vnet/unix/tuntap.c
975
976nobase_include_HEADERS += \
977 vnet/unix/pcap.h \
978 vnet/unix/tuntap.h \
979 vnet/unix/tap.api.h \
980 vnet/unix/tapcli.h
981
982API_FILES += vnet/unix/tap.api
983
984########################################
985# FIB
986########################################
987
988libvnet_la_SOURCES += \
989 vnet/fib/fib.c \
990 vnet/fib/fib_test.c \
991 vnet/fib/ip4_fib.c \
992 vnet/fib/ip6_fib.c \
993 vnet/fib/mpls_fib.c \
994 vnet/fib/fib_table.c \
995 vnet/fib/fib_walk.c \
996 vnet/fib/fib_types.c \
997 vnet/fib/fib_node.c \
998 vnet/fib/fib_node_list.c \
999 vnet/fib/fib_entry.c \
1000 vnet/fib/fib_entry_src.c \
1001 vnet/fib/fib_entry_src_rr.c \
1002 vnet/fib/fib_entry_src_interface.c \
1003 vnet/fib/fib_entry_src_default_route.c \
1004 vnet/fib/fib_entry_src_special.c \
1005 vnet/fib/fib_entry_src_api.c \
1006 vnet/fib/fib_entry_src_adj.c \
1007 vnet/fib/fib_entry_src_mpls.c \
1008 vnet/fib/fib_entry_src_lisp.c \
1009 vnet/fib/fib_entry_cover.c \
1010 vnet/fib/fib_entry_delegate.c \
1011 vnet/fib/fib_path_list.c \
1012 vnet/fib/fib_path.c \
1013 vnet/fib/fib_path_ext.c \
1014 vnet/fib/fib_urpf_list.c \
Neale Ranns88fc83e2017-04-05 08:11:14 -07001015 vnet/fib/fib_attached_export.c \
1016 vnet/fib/fib_bfd.c
Damjan Marion7cd468a2016-12-19 23:05:39 +01001017
1018nobase_include_HEADERS += \
1019 vnet/fib/fib.h \
1020 vnet/fib/fib_api.h \
1021 vnet/fib/ip4_fib.h \
1022 vnet/fib/ip6_fib.h \
1023 vnet/fib/fib_types.h \
1024 vnet/fib/fib_table.h \
1025 vnet/fib/fib_node.h \
1026 vnet/fib/fib_node_list.h \
1027 vnet/fib/fib_entry.h \
1028 vnet/fib/fib_entry_delegate.h
1029
1030########################################
1031# ADJ
1032########################################
1033
1034libvnet_la_SOURCES += \
1035 vnet/adj/adj_nbr.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +01001036 vnet/adj/adj_glean.c \
1037 vnet/adj/adj_midchain.c \
Neale Ranns32e1c012016-11-22 17:07:28 +00001038 vnet/adj/adj_mcast.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +01001039 vnet/adj/adj_l2.c \
Florin Corasce1b4c72017-01-26 14:25:34 -08001040 vnet/adj/adj_nsh.c \
Neale Rannsfa5d1982017-02-20 14:19:51 -08001041 vnet/adj/adj.c \
Neale Ranns88fc83e2017-04-05 08:11:14 -07001042 vnet/adj/rewrite.c \
1043 vnet/adj/adj_bfd.c \
1044 vnet/adj/adj_delegate.c
Damjan Marion7cd468a2016-12-19 23:05:39 +01001045
1046nobase_include_HEADERS += \
1047 vnet/adj/adj.h \
1048 vnet/adj/adj_types.h \
Damjan Marion7cd468a2016-12-19 23:05:39 +01001049 vnet/adj/adj_glean.h \
Florin Corasce1b4c72017-01-26 14:25:34 -08001050 vnet/adj/adj_nsh.h \
Neale Rannsfa5d1982017-02-20 14:19:51 -08001051 vnet/adj/adj_nbr.h \
1052 vnet/adj/rewrite.h
Damjan Marion7cd468a2016-12-19 23:05:39 +01001053
1054########################################
1055# Data-Plane Objects
1056########################################
1057
1058libvnet_la_SOURCES += \
1059 vnet/dpo/dpo.c \
1060 vnet/dpo/drop_dpo.c \
1061 vnet/dpo/ip_null_dpo.c \
1062 vnet/dpo/punt_dpo.c \
1063 vnet/dpo/receive_dpo.c \
1064 vnet/dpo/load_balance.c \
1065 vnet/dpo/load_balance_map.c \
Neale Ranns32e1c012016-11-22 17:07:28 +00001066 vnet/dpo/lookup_dpo.c \
1067 vnet/dpo/classify_dpo.c \
1068 vnet/dpo/replicate_dpo.c \
Neale Ranns43161a82017-08-12 02:12:00 -07001069 vnet/dpo/interface_rx_dpo.c \
1070 vnet/dpo/interface_tx_dpo.c \
Neale Ranns0f26c5a2017-03-01 15:12:11 -08001071 vnet/dpo/mpls_disposition.c \
Neale Ranns6f631152017-10-03 08:20:21 -07001072 vnet/dpo/mpls_label_dpo.c \
Andrew Yourtchenko5f3fcb92017-10-25 05:50:37 -07001073 vnet/dpo/l3_proxy_dpo.c \
Neale Ranns6f631152017-10-03 08:20:21 -07001074 vnet/dpo/l2_bridge_dpo.c
Damjan Marion7cd468a2016-12-19 23:05:39 +01001075
1076nobase_include_HEADERS += \
1077 vnet/dpo/load_balance.h \
1078 vnet/dpo/drop_dpo.h \
1079 vnet/dpo/lookup_dpo.h \
1080 vnet/dpo/punt_dpo.h \
1081 vnet/dpo/classify_dpo.h \
1082 vnet/dpo/receive_dpo.h \
1083 vnet/dpo/ip_null_dpo.h \
Neale Ranns60c1c7c2017-11-02 07:39:24 -07001084 vnet/dpo/replicate_dpo.h \
Damjan Marion7cd468a2016-12-19 23:05:39 +01001085 vnet/dpo/dpo.h
1086
1087########################################
Neale Ranns32e1c012016-11-22 17:07:28 +00001088# Multicast FIB
1089########################################
1090
1091libvnet_la_SOURCES += \
1092 vnet/mfib/mfib_test.c \
1093 vnet/mfib/mfib_forward.c \
1094 vnet/mfib/ip4_mfib.c \
1095 vnet/mfib/ip6_mfib.c \
1096 vnet/mfib/mfib_types.c \
1097 vnet/mfib/mfib_signal.c \
1098 vnet/mfib/mfib_itf.c \
1099 vnet/mfib/mfib_entry.c \
1100 vnet/mfib/mfib_table.c
1101
1102nobase_include_HEADERS += \
1103 vnet/mfib/ip4_mfib.h \
1104 vnet/mfib/mfib_types.h \
1105 vnet/mfib/mfib_table.h
1106
1107########################################
1108# Utilities
1109########################################
1110
1111libvnet_la_SOURCES += \
Dave Barach7bee7732017-10-18 18:48:11 -04001112 vnet/util/radix.c \
1113 vnet/util/trajectory.c
Neale Ranns32e1c012016-11-22 17:07:28 +00001114
1115########################################
Neale Rannsd792d9c2017-10-21 10:53:20 -07001116# BIER
1117########################################
1118
1119libvnet_la_SOURCES += \
1120 vnet/bier/bier_bit_string.c \
1121 vnet/bier/bier_entry.c \
1122 vnet/bier/bier_fmask.c \
1123 vnet/bier/bier_fmask_db.c \
1124 vnet/bier/bier_input.c \
1125 vnet/bier/bier_lookup.c \
1126 vnet/bier/bier_output.c \
1127 vnet/bier/bier_table.c \
1128 vnet/bier/bier_types.c \
1129 vnet/bier/bier_test.c \
1130 vnet/bier/bier_api.c \
1131 vnet/bier/bier_drop.c \
1132 vnet/bier/bier_update.c \
1133 vnet/bier/bier_imp_node.c \
1134 vnet/bier/bier_imp.c \
1135 vnet/bier/bier_disp_entry.c \
1136 vnet/bier/bier_disp_lookup_node.c \
1137 vnet/bier/bier_disp_dispatch_node.c \
1138 vnet/bier/bier_disp_table.c
1139
1140nobase_include_HEADERS += \
1141 vnet/bier/bier_types.h \
1142 vnet/bier/bier_entry.h \
1143 vnet/bier/bier_update.h \
1144 vnet/bier/bier.api.h \
1145 vnet/bier/bier_table.h
1146
1147API_FILES += vnet/bier/bier.api
1148
1149########################################
Damjan Marion7cd468a2016-12-19 23:05:39 +01001150# Plugin client library
1151########################################
1152
Damjan Marion7cd468a2016-12-19 23:05:39 +01001153nobase_include_HEADERS += \
1154 vnet/plugin/plugin.h
1155
Damjan Marion7cd468a2016-12-19 23:05:39 +01001156pcap2pg_SOURCES = \
1157 vnet/unix/pcap2pg.c \
1158 vnet/unix/pcap.h
1159
1160pcap2pg_LDFLAGS = -static
1161pcap2pg_LDADD = libvnet.la libvppinfra.la -lpthread libvlibmemory.la -lm -ldl
1162
1163noinst_PROGRAMS += pcap2pg
1164
1165# vi:syntax=automake