blob: 28a1b19a9127cd365d378925d8fae1bfef814e4f [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 \
22 libvlibapi.la \
23 libvlibmemory.la \
24 libvlibmemoryclient.la
Damjan Marion7cd468a2016-12-19 23:05:39 +010025
Damjan Marionc74a86a2017-01-16 14:00:03 +010026libvnet_la_LIBADD = $(libvnet_la_DEPENDENCIES) -lm -lpthread -ldl -lrt $(DPDK_LD_ADD)
27libvnet_la_LDFLAGS = $(DPDK_LD_FLAGS)
Damjan Marion45a00c42017-01-08 15:34:50 +010028
Damjan Mariona9a951f2017-01-16 22:06:10 +010029if WITH_LIBSSL
Damjan Marion45a00c42017-01-08 15:34:50 +010030libvnet_la_LIBADD += -lcrypto
31endif
Damjan Marion7cd468a2016-12-19 23:05:39 +010032
33########################################
34# Generic stuff
35########################################
36libvnet_la_SOURCES += \
37 vnet/config.c \
38 vnet/devices/devices.c \
39 vnet/handoff.c \
40 vnet/interface.c \
41 vnet/interface_api.c \
42 vnet/interface_cli.c \
43 vnet/interface_format.c \
44 vnet/interface_output.c \
45 vnet/misc.c \
46 vnet/replication.c \
47 vnet/rewrite.c
48
49nobase_include_HEADERS += \
50 vnet/api_errno.h \
51 vnet/buffer.h \
52 vnet/config.h \
53 vnet/devices/devices.h \
54 vnet/global_funcs.h \
55 vnet/handoff.h \
56 vnet/interface.h \
57 vnet/interface.api.h \
58 vnet/interface_funcs.h \
59 vnet/l3_types.h \
60 vnet/pipeline.h \
61 vnet/replication.h \
62 vnet/rewrite.h \
63 vnet/vnet.h \
64 vnet/vnet_all_api_h.h \
65 vnet/vnet_msg_enum.h
66
67API_FILES += vnet/interface.api
68
69########################################
70# Policer infra
71########################################
72
73libvnet_la_SOURCES += \
74 vnet/policer/node_funcs.c \
75 vnet/policer/policer.c \
76 vnet/policer/xlate.c
77
78nobase_include_HEADERS += \
79 vnet/policer/police.h \
80 vnet/policer/policer.h \
81 vnet/policer/xlate.h
82
83########################################
84# Cop - junk filter
85########################################
86
87libvnet_la_SOURCES += \
88 vnet/cop/cop.c \
89 vnet/cop/node1.c \
90 vnet/cop/ip4_whitelist.c \
Pavel Kotucek884cf262017-01-25 08:27:15 +010091 vnet/cop/ip6_whitelist.c \
92 vnet/cop/cop_api.c
Damjan Marion7cd468a2016-12-19 23:05:39 +010093
94nobase_include_HEADERS += \
Pavel Kotucek884cf262017-01-25 08:27:15 +010095 vnet/cop/cop.h \
96 vnet/cop/cop.api.h
97
98API_FILES += vnet/cop/cop.api
Damjan Marion7cd468a2016-12-19 23:05:39 +010099
100########################################
101# Layer 2 protocols go here
102########################################
103
104########################################
105# Layer 2 protocol: Ethernet
106########################################
107libvnet_la_SOURCES += \
108 vnet/ethernet/arp.c \
109 vnet/ethernet/format.c \
110 vnet/ethernet/init.c \
111 vnet/ethernet/interface.c \
112 vnet/ethernet/node.c \
113 vnet/ethernet/pg.c
114
115nobase_include_HEADERS += \
116 vnet/ethernet/arp_packet.h \
117 vnet/ethernet/error.def \
118 vnet/ethernet/ethernet.h \
119 vnet/ethernet/packet.h \
120 vnet/ethernet/types.def
121
122########################################
123# Layer 2 protocol: Ethernet bridging
124########################################
125libvnet_la_SOURCES += \
126 vnet/l2/feat_bitmap.c \
127 vnet/l2/l2_api.c \
128 vnet/l2/l2_bd.c \
129 vnet/l2/l2_bvi.c \
130 vnet/l2/l2_input_classify.c \
131 vnet/l2/l2_output_classify.c \
132 vnet/l2/l2_efp_filter.c \
133 vnet/l2/l2_fib.c \
134 vnet/l2/l2_flood.c \
135 vnet/l2/l2_fwd.c \
136 vnet/l2/l2_input_acl.c \
137 vnet/l2/l2_input.c \
138 vnet/l2/l2_input_vtr.c \
139 vnet/l2/l2_learn.c \
140 vnet/l2/l2_output_acl.c \
141 vnet/l2/l2_output.c \
142 vnet/l2/l2_patch.c \
143 vnet/l2/l2_rw.c \
144 vnet/l2/l2_vtr.c \
145 vnet/l2/l2_xcrw.c
146
147nobase_include_HEADERS += \
148 vnet/l2/feat_bitmap.h \
149 vnet/l2/l2_input.h \
150 vnet/l2/l2_output.h \
151 vnet/l2/l2_vtr.h \
152 vnet/l2/l2_input_vtr.h \
153 vnet/l2/l2_efp_filter.h \
154 vnet/l2/l2_fwd.h \
155 vnet/l2/l2_bd.h \
156 vnet/l2/l2_bvi.h \
157 vnet/l2/l2_flood.h \
158 vnet/l2/l2_fib.h \
159 vnet/l2/l2_rw.h \
160 vnet/l2/l2_xcrw.h \
161 vnet/l2/l2_classify.h \
162 vnet/l2/l2.api.h
163
164API_FILES += vnet/l2/l2.api
165
166########################################
167# Layer 2 protocol: SRP
168########################################
169libvnet_la_SOURCES += \
170 vnet/srp/format.c \
171 vnet/srp/interface.c \
172 vnet/srp/node.c \
173 vnet/srp/pg.c
174
175nobase_include_HEADERS += \
176 vnet/srp/packet.h \
177 vnet/srp/srp.h
178
179########################################
180# Layer 2 protocol: PPP
181########################################
182libvnet_la_SOURCES += \
183 vnet/ppp/node.c \
184 vnet/ppp/pg.c \
185 vnet/ppp/ppp.c
186
187nobase_include_HEADERS += \
188 vnet/ppp/error.def \
189 vnet/ppp/ppp.h \
190 vnet/ppp/packet.h
191
192########################################
193# Layer 2 protocol: HDLC
194########################################
195libvnet_la_SOURCES += \
196 vnet/hdlc/node.c \
197 vnet/hdlc/pg.c \
198 vnet/hdlc/hdlc.c
199
200nobase_include_HEADERS += \
201 vnet/hdlc/error.def \
202 vnet/hdlc/hdlc.h \
203 vnet/hdlc/packet.h
204
205########################################
206# Layer 2 protocol: LLC
207########################################
208libvnet_la_SOURCES += \
209 vnet/llc/llc.c \
210 vnet/llc/node.c \
211 vnet/llc/pg.c
212
213nobase_include_HEADERS += \
214 vnet/llc/llc.h
215
216########################################
217# Layer 2 protocol: SNAP
218########################################
219libvnet_la_SOURCES += \
220 vnet/snap/snap.c \
221 vnet/snap/node.c \
222 vnet/snap/pg.c
223
224nobase_include_HEADERS += \
225 vnet/snap/snap.h
226
227########################################
228# Layer 2 / vxlan
229########################################
230libvnet_la_SOURCES += \
231 vnet/vxlan/vxlan.c \
232 vnet/vxlan/encap.c \
233 vnet/vxlan/decap.c \
234 vnet/vxlan/vxlan_api.c
235
236nobase_include_HEADERS += \
237 vnet/vxlan/vxlan.h \
238 vnet/vxlan/vxlan_packet.h \
239 vnet/vxlan/vxlan_error.def \
240 vnet/vxlan/vxlan.api.h
241
242API_FILES += vnet/vxlan/vxlan.api
243
244########################################
245# Layer 2 / CDP
246########################################
247libvnet_la_SOURCES += \
248 vnet/cdp/cdp_input.c \
249 vnet/cdp/cdp_node.c \
250 vnet/cdp/cdp_periodic.c
251
252nobase_include_HEADERS += \
253 vnet/cdp/cdp_protocol.h
254
255########################################
256# Layer 2 / LLDP
257########################################
258libvnet_la_SOURCES += \
259 vnet/lldp/lldp_input.c \
260 vnet/lldp/lldp_node.c \
261 vnet/lldp/lldp_output.c \
262 vnet/lldp/lldp_cli.c
263
264nobase_include_HEADERS += \
265 vnet/lldp/lldp_protocol.h
266
267########################################
268# Layer 2/3 "classify"
269########################################
270libvnet_la_SOURCES += \
271 vnet/classify/vnet_classify.c \
272 vnet/classify/ip_classify.c \
273 vnet/classify/input_acl.c \
274 vnet/classify/policer_classify.c \
275 vnet/classify/flow_classify.c \
276 vnet/classify/flow_classify_node.c \
Pavel Kotucekd2c97d92017-01-24 10:58:12 +0100277 vnet/classify/vnet_classify.h \
278 vnet/classify/classify_api.c
Damjan Marion7cd468a2016-12-19 23:05:39 +0100279
280nobase_include_HEADERS += \
281 vnet/classify/vnet_classify.h \
282 vnet/classify/input_acl.h \
283 vnet/classify/policer_classify.h \
Pavel Kotucekd2c97d92017-01-24 10:58:12 +0100284 vnet/classify/flow_classify.h \
285 vnet/classify/classify.api.h
286
287API_FILES += vnet/classify/classify.api
Damjan Marion7cd468a2016-12-19 23:05:39 +0100288
289########################################
290# Layer 3 protocols go here
291########################################
292
293########################################
294# Layer 3 protocol: IP v4/v6
295########################################
296libvnet_la_SOURCES += \
297 vnet/ip/format.c \
298 vnet/ip/icmp4.c \
299 vnet/ip/icmp6.c \
300 vnet/ip/ip46_cli.c \
301 vnet/ip/ip4_format.c \
302 vnet/ip/ip4_forward.c \
303 vnet/ip/ip4_input.c \
304 vnet/ip/ip4_mtrie.c \
305 vnet/ip/ip4_pg.c \
306 vnet/ip/ip4_source_and_port_range_check.c \
307 vnet/ip/ip4_source_check.c \
308 vnet/ip/ip6_format.c \
309 vnet/ip/ip6_forward.c \
310 vnet/ip/ip6_hop_by_hop.c \
311 vnet/ip/ip6_input.c \
312 vnet/ip/ip6_neighbor.c \
313 vnet/ip/ip6_pg.c \
314 vnet/ip/ip_api.c \
315 vnet/ip/ip_checksum.c \
316 vnet/ip/ip_frag.c \
317 vnet/ip/ip.h \
318 vnet/ip/ip_init.c \
319 vnet/ip/ip_input_acl.c \
320 vnet/ip/lookup.c \
321 vnet/ip/ping.c \
322 vnet/ip/punt.c \
323 vnet/ip/udp_format.c \
324 vnet/ip/udp_init.c \
325 vnet/ip/udp_local.c \
326 vnet/ip/udp_pg.c
327
328nobase_include_HEADERS += \
329 vnet/ip/format.h \
330 vnet/ip/icmp46_packet.h \
331 vnet/ip/icmp4.h \
332 vnet/ip/icmp6.h \
333 vnet/ip/igmp_packet.h \
334 vnet/ip/ip.api.h \
335 vnet/ip/ip4_error.h \
336 vnet/ip/ip4.h \
337 vnet/ip/ip4_mtrie.h \
338 vnet/ip/ip4_packet.h \
339 vnet/ip/ip6_error.h \
340 vnet/ip/ip6.h \
341 vnet/ip/ip6_hop_by_hop.h \
342 vnet/ip/ip6_hop_by_hop_packet.h \
343 vnet/ip/ip6_packet.h \
344 vnet/ip/ip6_neighbor.h \
345 vnet/ip/ip.h \
346 vnet/ip/ip_packet.h \
347 vnet/ip/ip_source_and_port_range_check.h \
348 vnet/ip/lookup.h \
349 vnet/ip/ports.def \
350 vnet/ip/protocols.def \
351 vnet/ip/punt_error.def \
352 vnet/ip/punt.h \
353 vnet/ip/tcp_packet.h \
354 vnet/ip/udp_error.def \
355 vnet/ip/udp.h \
356 vnet/ip/udp_packet.h
357
358API_FILES += vnet/ip/ip.api
359
360########################################
361# Bidirectional Forwarding Detection
362########################################
363
364nobase_include_HEADERS += \
365 vnet/bfd/bfd_protocol.h \
366 vnet/bfd/bfd_main.h \
367 vnet/bfd/bfd_api.h \
368 vnet/bfd/bfd_udp.h \
369 vnet/bfd/bfd.api.h
370
371libvnet_la_SOURCES += \
372 vnet/bfd/bfd_api.h \
373 vnet/bfd/bfd_udp.c \
374 vnet/bfd/bfd_main.c \
375 vnet/bfd/bfd_protocol.c \
376 vnet/bfd/bfd_api.c
377
378API_FILES += vnet/bfd/bfd.api
379
380########################################
381# Layer 3 protocol: IPSec
382########################################
Damjan Mariona9a951f2017-01-16 22:06:10 +0100383if WITH_LIBSSL
Damjan Marion7cd468a2016-12-19 23:05:39 +0100384libvnet_la_SOURCES += \
385 vnet/ipsec/ipsec.c \
386 vnet/ipsec/ipsec_cli.c \
387 vnet/ipsec/ipsec_format.c \
388 vnet/ipsec/ipsec_input.c \
389 vnet/ipsec/ipsec_if.c \
390 vnet/ipsec/ipsec_if_in.c \
391 vnet/ipsec/ipsec_if_out.c \
392 vnet/ipsec/esp_encrypt.c \
393 vnet/ipsec/esp_decrypt.c \
394 vnet/ipsec/ikev2.c \
395 vnet/ipsec/ikev2_crypto.c \
396 vnet/ipsec/ikev2_cli.c \
397 vnet/ipsec/ikev2_payload.c \
398 vnet/ipsec/ikev2_format.c \
399 vnet/ipsec/ipsec_api.c
400
401API_FILES += vnet/ipsec/ipsec.api
402
403if WITH_DPDK_CRYPTO
404libvnet_la_SOURCES += \
405 vnet/devices/dpdk/ipsec/esp_encrypt.c \
406 vnet/devices/dpdk/ipsec/esp_decrypt.c \
407 vnet/devices/dpdk/ipsec/crypto_node.c \
408 vnet/devices/dpdk/ipsec/cli.c \
409 vnet/devices/dpdk/ipsec/ipsec.c
410endif
411endif
412
413libvnet_la_SOURCES += \
414 vnet/ipsec/ipsec_output.c
415
416nobase_include_HEADERS += \
417 vnet/ipsec/ipsec.h \
418 vnet/ipsec/esp.h \
419 vnet/ipsec/ikev2.h \
420 vnet/ipsec/ikev2_priv.h \
421 vnet/ipsec/ipsec.api.h
422if WITH_DPDK_CRYPTO
423nobase_include_HEADERS += \
424 vnet/devices/dpdk/ipsec/ipsec.h \
425 vnet/devices/dpdk/ipsec/esp.h
426endif
427
428########################################
429# Layer 3 protocol: osi
430########################################
431libvnet_la_SOURCES += \
432 vnet/osi/node.c \
433 vnet/osi/osi.c \
434 vnet/osi/pg.c
435
436nobase_include_HEADERS += \
437 vnet/osi/osi.h
438
439########################################
440# Layer 3 protocol: MAP
441########################################
442libvnet_la_SOURCES += \
443 vnet/map/map.c \
444 vnet/map/map_dpo.c \
445 vnet/map/ip4_map.c \
446 vnet/map/ip6_map.c \
447 vnet/map/ip4_map_t.c \
448 vnet/map/ip6_map_t.c \
449 vnet/map/map_api.c
450
451nobase_include_HEADERS += \
452 vnet/map/map.h \
453 vnet/map/map_dpo.h \
454 vnet/map/map.api.h
455
456API_FILES += vnet/map/map.api
457
458if ENABLE_TESTS
459TESTS += test_map
460test_map_SOURCES = \
461 vnet/map/test.c
462test_map_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG
463
464test_map_LDADD = libvnet.la libvppinfra.la libvlib.la \
Damjan Marion0eca04d2017-01-03 20:11:35 +0100465 -lpthread -lvlibmemory -lvlibapi \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100466 -ldl -lsvm -lrt
467
468test_map_LDFLAGS = -static
469endif
470
471
472########################################
473# Tunnel protocol: gre
474########################################
475libvnet_la_SOURCES += \
476 vnet/gre/gre.c \
477 vnet/gre/node.c \
478 vnet/gre/interface.c \
479 vnet/gre/pg.c \
480 vnet/gre/gre_api.c
481
482nobase_include_HEADERS += \
483 vnet/gre/gre.h \
484 vnet/gre/packet.h \
485 vnet/gre/error.def \
486 vnet/gre/gre.api.h
487
488API_FILES += vnet/gre/gre.api
489
490########################################
491# Tunnel protocol: l2tpv3
492########################################
493libvnet_la_SOURCES += \
494 vnet/l2tp/l2tp.c \
495 vnet/l2tp/encap.c \
496 vnet/l2tp/decap.c \
497 vnet/l2tp/pg.c \
498 vnet/l2tp/l2tp_api.c
499
500nobase_include_HEADERS += \
501 vnet/l2tp/l2tp.h \
502 vnet/l2tp/packet.h \
503 vnet/l2tp/l2tp.api.h
504
505API_FILES += vnet/l2tp/l2tp.api
506
507########################################
508# Tunnel protocol: gre+mpls
509########################################
510libvnet_la_SOURCES += \
511 vnet/mpls/mpls.c \
512 vnet/mpls/mpls_lookup.c \
513 vnet/mpls/mpls_output.c \
514 vnet/mpls/mpls_features.c \
515 vnet/mpls/node.c \
516 vnet/mpls/interface.c \
517 vnet/mpls/mpls_tunnel.c \
Pavel Kotucek0f971d82017-01-03 10:48:54 +0100518 vnet/mpls/pg.c \
519 vnet/mpls/mpls_api.c
Damjan Marion7cd468a2016-12-19 23:05:39 +0100520
521nobase_include_HEADERS += \
522 vnet/mpls/mpls.h \
523 vnet/mpls/mpls_types.h \
524 vnet/mpls/mpls_tunnel.h \
525 vnet/mpls/packet.h \
Pavel Kotucek0f971d82017-01-03 10:48:54 +0100526 vnet/mpls/error.def \
527 vnet/mpls/mpls.api.h
Damjan Marion7cd468a2016-12-19 23:05:39 +0100528
Pavel Kotucek0f971d82017-01-03 10:48:54 +0100529API_FILES += vnet/mpls/mpls.api
Damjan Marion7cd468a2016-12-19 23:05:39 +0100530
531########################################
532# Tunnel protocol: vxlan-gpe
533########################################
534
535libvnet_la_SOURCES += \
536 vnet/vxlan-gpe/vxlan_gpe.c \
537 vnet/vxlan-gpe/encap.c \
538 vnet/vxlan-gpe/decap.c \
539 vnet/vxlan-gpe/vxlan_gpe_api.c
540
541nobase_include_HEADERS += \
542 vnet/vxlan-gpe/vxlan_gpe.h \
543 vnet/vxlan-gpe/vxlan_gpe_packet.h \
544 vnet/vxlan-gpe/vxlan_gpe_error.def \
545 vnet/vxlan-gpe/vxlan_gpe.api.h
546
547API_FILES += vnet/vxlan-gpe/vxlan_gpe.api
548
549########################################
550# Tunnel protocol: ipsec+gre
551########################################
552libvnet_la_SOURCES += \
553 vnet/ipsec-gre/ipsec_gre.c \
554 vnet/ipsec-gre/node.c \
555 vnet/ipsec-gre/interface.c \
556 vnet/ipsec-gre/ipsec_gre_api.c
557
558nobase_include_HEADERS += \
559 vnet/ipsec-gre/ipsec_gre.h \
560 vnet/ipsec-gre/error.def \
561 vnet/ipsec-gre/ipsec_gre.api.h
562
563API_FILES += vnet/ipsec-gre/ipsec_gre.api
564
565########################################
566# LISP control plane: lisp-cp
567########################################
568
569libvnet_la_SOURCES += \
570 vnet/lisp-cp/lisp_types.c \
571 vnet/lisp-cp/lisp_cp_dpo.c \
572 vnet/lisp-cp/control.c \
573 vnet/lisp-cp/gid_dictionary.c \
574 vnet/lisp-cp/lisp_msg_serdes.c \
575 vnet/lisp-cp/packets.c \
Florin Corasf3dc11a2017-01-24 03:13:43 -0800576 vnet/lisp-cp/lisp_cli.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100577 vnet/lisp-cp/lisp_api.c
578
579nobase_include_HEADERS += \
580 vnet/lisp-cp/lisp_types.h \
581 vnet/lisp-cp/packets.h \
582 vnet/lisp-cp/gid_dictionary.h \
583 vnet/lisp-cp/lisp_cp_messages.h \
584 vnet/lisp-cp/lisp_msg_serdes.h \
585 vnet/lisp-cp/control.h \
586 vnet/lisp-cp/lisp.api.h
587
588API_FILES += vnet/lisp-cp/lisp.api
589
590if ENABLE_TESTS
591LDS = \
592 libvppinfra.la \
593 libvnet.la \
594 libvlib.la \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100595 libsvm.la \
596 libsvmdb.la \
597 libvlibapi.la \
598 libvlibmemory.la \
Damjan Marionc74a86a2017-01-16 14:00:03 +0100599 -lpthread -ldl -lrt -lm
Damjan Marion7cd468a2016-12-19 23:05:39 +0100600
601TESTS += test_cp_serdes test_lisp_types
602
603test_cp_serdes_SOURCES = \
604 tests/vnet/lisp-cp/test_cp_serdes.c \
605 vnet/lisp-cp/lisp_msg_serdes.c \
606 vnet/lisp-cp/lisp_types.c \
607 vnet/lisp-cp/packets.c \
608 vnet/ip/ip_checksum.c
609
610test_lisp_types_SOURCES = \
611 tests/vnet/lisp-cp/test_lisp_types.c \
612 vnet/lisp-cp/lisp_types.c
613
614test_cp_serdes_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG
615test_lisp_types_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG
616
Damjan Marionc74a86a2017-01-16 14:00:03 +0100617test_cp_serdes_LDADD = $(LDS)
618test_lisp_types_LDADD = $(LDS)
Damjan Marion7cd468a2016-12-19 23:05:39 +0100619endif
620
621########################################
622# Tunnel protocol: lisp-gpe
623########################################
624
625libvnet_la_SOURCES += \
626 vnet/lisp-gpe/lisp_gpe.c \
627 vnet/lisp-gpe/lisp_gpe_sub_interface.c \
628 vnet/lisp-gpe/lisp_gpe_adjacency.c \
629 vnet/lisp-gpe/lisp_gpe_tunnel.c \
630 vnet/lisp-gpe/lisp_gpe_fwd_entry.c \
631 vnet/lisp-gpe/lisp_gpe_tenant.c \
632 vnet/lisp-gpe/interface.c \
633 vnet/lisp-gpe/decap.c \
634 vnet/lisp-gpe/lisp_gpe_api.c
635
636nobase_include_HEADERS += \
637 vnet/lisp-gpe/lisp_gpe.h \
638 vnet/lisp-gpe/lisp_gpe_fwd_entry.h \
639 vnet/lisp-gpe/lisp_gpe_tenant.h \
640 vnet/lisp-gpe/lisp_gpe_packet.h \
641 vnet/lisp-gpe/lisp_gpe_error.def \
642 vnet/lisp-gpe/lisp_gpe.api.h
643
644API_FILES += vnet/lisp-gpe/lisp_gpe.api
645
646if ENABLE_TESTS
647TESTS += test_test
648
649test_test_SOURCES = tests/vnet/lisp-gpe/test.c
650
651test_test_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG
652
653test_test_LDADD = $(LIBOBJS)
654
655noinst_PROGRAMS += $(TESTS)
656check_PROGRAMS += $(TESTS)
657endif
658
659########################################
660# DHCP client
661########################################
662libvnet_la_SOURCES += \
663 vnet/dhcp/client.c \
Pavel Kotucekc8d87702017-01-25 07:25:32 +0100664 vnet/dhcp/client.h \
665 vnet/dhcp/dhcp_api.c
Damjan Marion7cd468a2016-12-19 23:05:39 +0100666
667nobase_include_HEADERS += \
Pavel Kotucekc8d87702017-01-25 07:25:32 +0100668 vnet/dhcp/client.h \
669 vnet/dhcp/dhcp.api.h
670
671API_FILES += vnet/dhcp/dhcp.api
Damjan Marion7cd468a2016-12-19 23:05:39 +0100672
673########################################
674# DHCP proxy
675########################################
676libvnet_la_SOURCES += \
677 vnet/dhcp/proxy_node.c \
678 vnet/dhcp/proxy.h
679
680nobase_include_HEADERS += \
681 vnet/dhcp/packet.h \
682 vnet/dhcp/proxy.h \
683 vnet/dhcp/proxy_error.def
684
685########################################
686# ipv6 segment routing
687########################################
688
Damjan Mariona9a951f2017-01-16 22:06:10 +0100689if WITH_LIBSSL
Damjan Marion7cd468a2016-12-19 23:05:39 +0100690libvnet_la_SOURCES += \
691 vnet/sr/sr.c \
Pavel Kotucek0f971d82017-01-03 10:48:54 +0100692 vnet/sr/sr_replicate.c \
693 vnet/sr/sr_api.c
Damjan Marion7cd468a2016-12-19 23:05:39 +0100694endif
695
696nobase_include_HEADERS += \
697 vnet/sr/sr_packet.h \
698 vnet/sr/sr_error.def \
Pavel Kotucek0f971d82017-01-03 10:48:54 +0100699 vnet/sr/sr.h \
700 vnet/sr/sr.api.h
701
702API_FILES += vnet/sr/sr.api
Damjan Marion7cd468a2016-12-19 23:05:39 +0100703
704########################################
705# DHCPv6 proxy
706########################################
707libvnet_la_SOURCES += \
708 vnet/dhcpv6/proxy_node.c
709
710nobase_include_HEADERS += \
711 vnet/dhcpv6/packet.h \
712 vnet/dhcpv6/proxy.h \
713 vnet/dhcpv6/proxy_error.def
714
715########################################
716# IPFIX / netflow v10
717########################################
718libvnet_la_SOURCES += \
Pavel Kotucekeb9e6662017-01-24 13:40:26 +0100719 vnet/flow/flow_report.c \
720 vnet/flow/flow_api.c
Damjan Marion7cd468a2016-12-19 23:05:39 +0100721
722nobase_include_HEADERS += \
723 vnet/flow/flow_report.h \
724 vnet/flow/ipfix_info_elements.h \
Pavel Kotucekeb9e6662017-01-24 13:40:26 +0100725 vnet/flow/ipfix_packet.h \
726 vnet/flow/flow.api.h
727
728API_FILES += vnet/flow/flow.api
Damjan Marion7cd468a2016-12-19 23:05:39 +0100729
730########################################
731# IPFIX classify code
732########################################
733
734libvnet_la_SOURCES += \
735 vnet/flow/flow_report_classify.c
736
737nobase_include_HEADERS += \
738 vnet/flow/flow_report_classify.h
739
740########################################
741# lawful intercept
742########################################
743
744libvnet_la_SOURCES += \
745 vnet/lawful-intercept/lawful_intercept.c \
746 vnet/lawful-intercept/node.c
747
748nobase_include_HEADERS += \
749 vnet/lawful-intercept/lawful_intercept.h
750
751########################################
752# SPAN (port mirroring)
753########################################
754
755libvnet_la_SOURCES += \
756 vnet/span/span_api.c \
757 vnet/span/span.c \
758 vnet/span/node.c
759
760nobase_include_HEADERS += \
761 vnet/span/span.api.h \
762 vnet/span/span.h
763
764API_FILES += vnet/span/span.api
765
766########################################
767# Packet generator
768########################################
769
770libvnet_la_SOURCES += \
771 vnet/pg/cli.c \
772 vnet/pg/edit.c \
773 vnet/pg/init.c \
774 vnet/pg/input.c \
775 vnet/pg/output.c \
776 vnet/pg/stream.c
777
778nobase_include_HEADERS += \
779 vnet/pg/pg.h \
780 vnet/pg/edit.h
781
782########################################
783# DPDK
784########################################
785if WITH_DPDK
786libvnet_la_SOURCES += \
Damjan Marion878c6092017-01-04 13:19:27 +0100787 vnet/devices/dpdk/buffer.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100788 vnet/devices/dpdk/dpdk_priv.h \
789 vnet/devices/dpdk/device.c \
790 vnet/devices/dpdk/format.c \
791 vnet/devices/dpdk/init.c \
Damjan Marionca800252017-01-16 21:29:39 +0100792 vnet/devices/dpdk/main.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100793 vnet/devices/dpdk/node.c \
Damjan Marion878c6092017-01-04 13:19:27 +0100794 vnet/devices/dpdk/thread.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100795 vnet/devices/dpdk/hqos.c \
Pavel Kotucek738f3f22017-01-09 15:11:03 +0100796 vnet/devices/dpdk/cli.c \
797 vnet/devices/dpdk/dpdk_api.c
Damjan Marion7cd468a2016-12-19 23:05:39 +0100798
799nobase_include_HEADERS += \
Pavel Kotucek738f3f22017-01-09 15:11:03 +0100800 vnet/devices/dpdk/dpdk.h \
801 vnet/devices/dpdk/dpdk.api.h
802
803API_FILES += vnet/devices/dpdk/dpdk.api
Damjan Marion7cd468a2016-12-19 23:05:39 +0100804else
805libvnet_la_SOURCES += \
806 vnet/devices/nic/ixge.c \
807 vnet/devices/nic/ixge.h \
808 vnet/devices/nic/sfp.c \
809 vnet/devices/nic/sfp.h
810endif
811
812########################################
813# virtio
814########################################
815
816libvnet_la_SOURCES += \
817 vnet/devices/virtio/vhost-user.c \
818 vnet/devices/virtio/vhost_user_api.c
819
820nobase_include_HEADERS += \
821 vnet/devices/virtio/vhost-user.h \
822 vnet/devices/virtio/vhost_user.api.h
823
824API_FILES += vnet/devices/virtio/vhost_user.api
825
826########################################
827# ssvm ethernet
828########################################
829libvnet_la_SOURCES += \
830 vnet/devices/ssvm/ssvm_eth.c \
831 vnet/devices/ssvm/node.c
832
833nobase_include_HEADERS += \
834 vnet/devices/ssvm/ssvm_eth.h
835
836########################################
837# Linux packet interface
838########################################
839
840libvnet_la_SOURCES += \
841 vnet/devices/af_packet/af_packet.c \
842 vnet/devices/af_packet/device.c \
843 vnet/devices/af_packet/node.c \
844 vnet/devices/af_packet/cli.c \
845 vnet/devices/af_packet/af_packet_api.c
846
847nobase_include_HEADERS += \
848 vnet/devices/af_packet/af_packet.h \
849 vnet/devices/af_packet/af_packet.api.h
850
851API_FILES += vnet/devices/af_packet/af_packet.api
852
853########################################
854# NETMAP interface
855########################################
856
857libvnet_la_SOURCES += \
858 vnet/devices/netmap/netmap.c \
859 vnet/devices/netmap/device.c \
860 vnet/devices/netmap/node.c \
861 vnet/devices/netmap/cli.c \
862 vnet/devices/netmap/netmap_api.c
863
864nobase_include_HEADERS += \
865 vnet/devices/netmap/netmap.h \
866 vnet/devices/netmap/netmap.api.h
867
868API_FILES += vnet/devices/netmap/netmap.api
869
870########################################
871# Driver feature graph arc support
872########################################
873
874libvnet_la_SOURCES += \
875 vnet/feature/feature.c \
876 vnet/feature/registration.c
877
878nobase_include_HEADERS += \
879 vnet/feature/feature.h
880
881########################################
882# Unix kernel related
883########################################
884
885# FIXME: vnet/unix/hgshm.c
886
887libvnet_la_SOURCES += \
888 vnet/unix/gdb_funcs.c \
889 vnet/unix/pcap.c \
890 vnet/unix/tap_api.c \
891 vnet/unix/tapcli.c \
892 vnet/unix/tuntap.c
893
894nobase_include_HEADERS += \
895 vnet/unix/pcap.h \
896 vnet/unix/tuntap.h \
897 vnet/unix/tap.api.h \
898 vnet/unix/tapcli.h
899
900API_FILES += vnet/unix/tap.api
901
902########################################
903# FIB
904########################################
905
906libvnet_la_SOURCES += \
907 vnet/fib/fib.c \
908 vnet/fib/fib_test.c \
909 vnet/fib/ip4_fib.c \
910 vnet/fib/ip6_fib.c \
911 vnet/fib/mpls_fib.c \
912 vnet/fib/fib_table.c \
913 vnet/fib/fib_walk.c \
914 vnet/fib/fib_types.c \
915 vnet/fib/fib_node.c \
916 vnet/fib/fib_node_list.c \
917 vnet/fib/fib_entry.c \
918 vnet/fib/fib_entry_src.c \
919 vnet/fib/fib_entry_src_rr.c \
920 vnet/fib/fib_entry_src_interface.c \
921 vnet/fib/fib_entry_src_default_route.c \
922 vnet/fib/fib_entry_src_special.c \
923 vnet/fib/fib_entry_src_api.c \
924 vnet/fib/fib_entry_src_adj.c \
925 vnet/fib/fib_entry_src_mpls.c \
926 vnet/fib/fib_entry_src_lisp.c \
927 vnet/fib/fib_entry_cover.c \
928 vnet/fib/fib_entry_delegate.c \
929 vnet/fib/fib_path_list.c \
930 vnet/fib/fib_path.c \
931 vnet/fib/fib_path_ext.c \
932 vnet/fib/fib_urpf_list.c \
933 vnet/fib/fib_attached_export.c
934
935nobase_include_HEADERS += \
936 vnet/fib/fib.h \
937 vnet/fib/fib_api.h \
938 vnet/fib/ip4_fib.h \
939 vnet/fib/ip6_fib.h \
940 vnet/fib/fib_types.h \
941 vnet/fib/fib_table.h \
942 vnet/fib/fib_node.h \
943 vnet/fib/fib_node_list.h \
944 vnet/fib/fib_entry.h \
945 vnet/fib/fib_entry_delegate.h
946
947########################################
948# ADJ
949########################################
950
951libvnet_la_SOURCES += \
952 vnet/adj/adj_nbr.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100953 vnet/adj/adj_glean.c \
954 vnet/adj/adj_midchain.c \
Neale Ranns32e1c012016-11-22 17:07:28 +0000955 vnet/adj/adj_mcast.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100956 vnet/adj/adj_l2.c \
957 vnet/adj/adj.c
958
959nobase_include_HEADERS += \
960 vnet/adj/adj.h \
961 vnet/adj/adj_types.h \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100962 vnet/adj/adj_glean.h \
963 vnet/adj/adj_nbr.h
964
965########################################
966# Data-Plane Objects
967########################################
968
969libvnet_la_SOURCES += \
970 vnet/dpo/dpo.c \
971 vnet/dpo/drop_dpo.c \
972 vnet/dpo/ip_null_dpo.c \
973 vnet/dpo/punt_dpo.c \
974 vnet/dpo/receive_dpo.c \
975 vnet/dpo/load_balance.c \
976 vnet/dpo/load_balance_map.c \
Neale Ranns32e1c012016-11-22 17:07:28 +0000977 vnet/dpo/lookup_dpo.c \
978 vnet/dpo/classify_dpo.c \
979 vnet/dpo/replicate_dpo.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100980 vnet/dpo/mpls_label_dpo.c
981
982nobase_include_HEADERS += \
983 vnet/dpo/load_balance.h \
984 vnet/dpo/drop_dpo.h \
985 vnet/dpo/lookup_dpo.h \
986 vnet/dpo/punt_dpo.h \
987 vnet/dpo/classify_dpo.h \
988 vnet/dpo/receive_dpo.h \
989 vnet/dpo/ip_null_dpo.h \
990 vnet/dpo/dpo.h
991
992########################################
Neale Ranns32e1c012016-11-22 17:07:28 +0000993# Multicast FIB
994########################################
995
996libvnet_la_SOURCES += \
997 vnet/mfib/mfib_test.c \
998 vnet/mfib/mfib_forward.c \
999 vnet/mfib/ip4_mfib.c \
1000 vnet/mfib/ip6_mfib.c \
1001 vnet/mfib/mfib_types.c \
1002 vnet/mfib/mfib_signal.c \
1003 vnet/mfib/mfib_itf.c \
1004 vnet/mfib/mfib_entry.c \
1005 vnet/mfib/mfib_table.c
1006
1007nobase_include_HEADERS += \
1008 vnet/mfib/ip4_mfib.h \
1009 vnet/mfib/mfib_types.h \
1010 vnet/mfib/mfib_table.h
1011
1012########################################
1013# Utilities
1014########################################
1015
1016libvnet_la_SOURCES += \
1017 vnet/util/radix.c
1018
1019########################################
Damjan Marion7cd468a2016-12-19 23:05:39 +01001020# Plugin client library
1021########################################
1022
Damjan Marion7cd468a2016-12-19 23:05:39 +01001023nobase_include_HEADERS += \
1024 vnet/plugin/plugin.h
1025
Damjan Marion7cd468a2016-12-19 23:05:39 +01001026pcap2pg_SOURCES = \
1027 vnet/unix/pcap2pg.c \
1028 vnet/unix/pcap.h
1029
1030pcap2pg_LDFLAGS = -static
1031pcap2pg_LDADD = libvnet.la libvppinfra.la -lpthread libvlibmemory.la -lm -ldl
1032
1033noinst_PROGRAMS += pcap2pg
1034
1035# vi:syntax=automake