blob: a4817f2fc11246bade841fe6924be6cef2e8e73e [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 \
66 vnet/util/radix.h
Damjan Marion7cd468a2016-12-19 23:05:39 +010067
68API_FILES += vnet/interface.api
69
70########################################
71# Policer infra
72########################################
73
74libvnet_la_SOURCES += \
75 vnet/policer/node_funcs.c \
76 vnet/policer/policer.c \
Pavel Kotucekd9aad292017-01-25 08:45:38 +010077 vnet/policer/xlate.c \
78 vnet/policer/policer_api.c
Damjan Marion7cd468a2016-12-19 23:05:39 +010079
80nobase_include_HEADERS += \
81 vnet/policer/police.h \
82 vnet/policer/policer.h \
Pavel Kotucekd9aad292017-01-25 08:45:38 +010083 vnet/policer/xlate.h \
84 vnet/policer/policer.api.h
85
86API_FILES += vnet/policer/policer.api
Damjan Marion7cd468a2016-12-19 23:05:39 +010087
88########################################
89# Cop - junk filter
90########################################
91
92libvnet_la_SOURCES += \
93 vnet/cop/cop.c \
94 vnet/cop/node1.c \
95 vnet/cop/ip4_whitelist.c \
Pavel Kotucek884cf262017-01-25 08:27:15 +010096 vnet/cop/ip6_whitelist.c \
97 vnet/cop/cop_api.c
Damjan Marion7cd468a2016-12-19 23:05:39 +010098
99nobase_include_HEADERS += \
Pavel Kotucek884cf262017-01-25 08:27:15 +0100100 vnet/cop/cop.h \
101 vnet/cop/cop.api.h
102
103API_FILES += vnet/cop/cop.api
Damjan Marion7cd468a2016-12-19 23:05:39 +0100104
105########################################
106# Layer 2 protocols go here
107########################################
108
109########################################
110# Layer 2 protocol: Ethernet
111########################################
112libvnet_la_SOURCES += \
113 vnet/ethernet/arp.c \
114 vnet/ethernet/format.c \
115 vnet/ethernet/init.c \
116 vnet/ethernet/interface.c \
117 vnet/ethernet/node.c \
Damjan Marion374e2c52017-03-09 20:38:15 +0100118 vnet/ethernet/pg.c \
Pavel Kotucek6899a302017-06-08 08:46:10 +0200119 vnet/ethernet/sfp.c \
120 vnet/ethernet/p2p_ethernet.c \
Pavel Kotucek15ac81c2017-06-20 14:00:26 +0200121 vnet/ethernet/p2p_ethernet_input.c \
Pavel Kotucek6899a302017-06-08 08:46:10 +0200122 vnet/ethernet/p2p_ethernet_api.c
Damjan Marion7cd468a2016-12-19 23:05:39 +0100123
124nobase_include_HEADERS += \
125 vnet/ethernet/arp_packet.h \
126 vnet/ethernet/error.def \
127 vnet/ethernet/ethernet.h \
128 vnet/ethernet/packet.h \
Damjan Marion374e2c52017-03-09 20:38:15 +0100129 vnet/ethernet/types.def \
Pavel Kotucek6899a302017-06-08 08:46:10 +0200130 vnet/ethernet/sfp.h \
131 vnet/ethernet/p2p_ethernet.api.h \
132 vnet/ethernet/p2p_ethernet.h
133
134API_FILES += vnet/ethernet/p2p_ethernet.api
Damjan Marion7cd468a2016-12-19 23:05:39 +0100135
136########################################
137# Layer 2 protocol: Ethernet bridging
138########################################
139libvnet_la_SOURCES += \
140 vnet/l2/feat_bitmap.c \
141 vnet/l2/l2_api.c \
142 vnet/l2/l2_bd.c \
143 vnet/l2/l2_bvi.c \
144 vnet/l2/l2_input_classify.c \
145 vnet/l2/l2_output_classify.c \
146 vnet/l2/l2_efp_filter.c \
147 vnet/l2/l2_fib.c \
148 vnet/l2/l2_flood.c \
149 vnet/l2/l2_fwd.c \
150 vnet/l2/l2_input_acl.c \
151 vnet/l2/l2_input.c \
152 vnet/l2/l2_input_vtr.c \
153 vnet/l2/l2_learn.c \
154 vnet/l2/l2_output_acl.c \
155 vnet/l2/l2_output.c \
156 vnet/l2/l2_patch.c \
157 vnet/l2/l2_rw.c \
158 vnet/l2/l2_vtr.c \
159 vnet/l2/l2_xcrw.c
160
161nobase_include_HEADERS += \
162 vnet/l2/feat_bitmap.h \
163 vnet/l2/l2_input.h \
164 vnet/l2/l2_output.h \
165 vnet/l2/l2_vtr.h \
166 vnet/l2/l2_input_vtr.h \
167 vnet/l2/l2_efp_filter.h \
168 vnet/l2/l2_fwd.h \
169 vnet/l2/l2_bd.h \
170 vnet/l2/l2_bvi.h \
171 vnet/l2/l2_flood.h \
172 vnet/l2/l2_fib.h \
173 vnet/l2/l2_rw.h \
174 vnet/l2/l2_xcrw.h \
175 vnet/l2/l2_classify.h \
176 vnet/l2/l2.api.h
177
178API_FILES += vnet/l2/l2.api
179
180########################################
181# Layer 2 protocol: SRP
182########################################
183libvnet_la_SOURCES += \
184 vnet/srp/format.c \
185 vnet/srp/interface.c \
186 vnet/srp/node.c \
187 vnet/srp/pg.c
188
189nobase_include_HEADERS += \
190 vnet/srp/packet.h \
191 vnet/srp/srp.h
192
193########################################
194# Layer 2 protocol: PPP
195########################################
196libvnet_la_SOURCES += \
197 vnet/ppp/node.c \
198 vnet/ppp/pg.c \
199 vnet/ppp/ppp.c
200
201nobase_include_HEADERS += \
202 vnet/ppp/error.def \
203 vnet/ppp/ppp.h \
204 vnet/ppp/packet.h
205
206########################################
207# Layer 2 protocol: HDLC
208########################################
209libvnet_la_SOURCES += \
210 vnet/hdlc/node.c \
211 vnet/hdlc/pg.c \
212 vnet/hdlc/hdlc.c
213
214nobase_include_HEADERS += \
215 vnet/hdlc/error.def \
216 vnet/hdlc/hdlc.h \
217 vnet/hdlc/packet.h
218
219########################################
220# Layer 2 protocol: LLC
221########################################
222libvnet_la_SOURCES += \
223 vnet/llc/llc.c \
224 vnet/llc/node.c \
225 vnet/llc/pg.c
226
227nobase_include_HEADERS += \
228 vnet/llc/llc.h
229
230########################################
231# Layer 2 protocol: SNAP
232########################################
233libvnet_la_SOURCES += \
234 vnet/snap/snap.c \
235 vnet/snap/node.c \
236 vnet/snap/pg.c
237
238nobase_include_HEADERS += \
239 vnet/snap/snap.h
240
241########################################
242# Layer 2 / vxlan
243########################################
244libvnet_la_SOURCES += \
245 vnet/vxlan/vxlan.c \
246 vnet/vxlan/encap.c \
247 vnet/vxlan/decap.c \
248 vnet/vxlan/vxlan_api.c
249
250nobase_include_HEADERS += \
251 vnet/vxlan/vxlan.h \
252 vnet/vxlan/vxlan_packet.h \
253 vnet/vxlan/vxlan_error.def \
254 vnet/vxlan/vxlan.api.h
255
256API_FILES += vnet/vxlan/vxlan.api
257
258########################################
Marco Varleseb598f1d2017-09-19 14:25:28 +0200259# Layer 2 / Geneve
260########################################
261libvnet_la_SOURCES += \
262 vnet/geneve/geneve.c \
263 vnet/geneve/encap.c \
264 vnet/geneve/decap.c \
265 vnet/geneve/geneve_api.c
266
267nobase_include_HEADERS += \
268 vnet/geneve/geneve.h \
269 vnet/geneve/geneve_packet.h \
270 vnet/geneve/geneve_error.def \
271 vnet/geneve/geneve.api.h
272
273API_FILES += vnet/geneve/geneve.api
274
275########################################
Damjan Marion7cd468a2016-12-19 23:05:39 +0100276# Layer 2 / CDP
277########################################
278libvnet_la_SOURCES += \
279 vnet/cdp/cdp_input.c \
280 vnet/cdp/cdp_node.c \
281 vnet/cdp/cdp_periodic.c
282
283nobase_include_HEADERS += \
284 vnet/cdp/cdp_protocol.h
285
286########################################
287# Layer 2 / LLDP
288########################################
289libvnet_la_SOURCES += \
290 vnet/lldp/lldp_input.c \
291 vnet/lldp/lldp_node.c \
292 vnet/lldp/lldp_output.c \
Steve Shin99a0e602017-07-01 04:16:20 +0000293 vnet/lldp/lldp_cli.c \
294 vnet/lldp/lldp_api.c
Damjan Marion7cd468a2016-12-19 23:05:39 +0100295
296nobase_include_HEADERS += \
Steve Shin99a0e602017-07-01 04:16:20 +0000297 vnet/lldp/lldp_protocol.h \
298 vnet/lldp/lldp.h \
299 vnet/lldp/lldp.api.h
300
301API_FILES += vnet/lldp/lldp.api
Damjan Marion7cd468a2016-12-19 23:05:39 +0100302
303########################################
304# Layer 2/3 "classify"
305########################################
306libvnet_la_SOURCES += \
307 vnet/classify/vnet_classify.c \
308 vnet/classify/ip_classify.c \
309 vnet/classify/input_acl.c \
310 vnet/classify/policer_classify.c \
311 vnet/classify/flow_classify.c \
312 vnet/classify/flow_classify_node.c \
Pavel Kotucekd2c97d92017-01-24 10:58:12 +0100313 vnet/classify/vnet_classify.h \
314 vnet/classify/classify_api.c
Damjan Marion7cd468a2016-12-19 23:05:39 +0100315
316nobase_include_HEADERS += \
317 vnet/classify/vnet_classify.h \
318 vnet/classify/input_acl.h \
319 vnet/classify/policer_classify.h \
Pavel Kotucekd2c97d92017-01-24 10:58:12 +0100320 vnet/classify/flow_classify.h \
321 vnet/classify/classify.api.h
322
323API_FILES += vnet/classify/classify.api
Damjan Marion7cd468a2016-12-19 23:05:39 +0100324
325########################################
326# Layer 3 protocols go here
327########################################
328
329########################################
330# Layer 3 protocol: IP v4/v6
331########################################
332libvnet_la_SOURCES += \
333 vnet/ip/format.c \
334 vnet/ip/icmp4.c \
335 vnet/ip/icmp6.c \
336 vnet/ip/ip46_cli.c \
337 vnet/ip/ip4_format.c \
338 vnet/ip/ip4_forward.c \
Neale Rannsd91c1db2017-07-31 02:30:50 -0700339 vnet/ip/ip4_punt_drop.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100340 vnet/ip/ip4_input.c \
341 vnet/ip/ip4_mtrie.c \
342 vnet/ip/ip4_pg.c \
343 vnet/ip/ip4_source_and_port_range_check.c \
344 vnet/ip/ip4_source_check.c \
345 vnet/ip/ip6_format.c \
346 vnet/ip/ip6_forward.c \
Neale Rannsd91c1db2017-07-31 02:30:50 -0700347 vnet/ip/ip6_punt_drop.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100348 vnet/ip/ip6_hop_by_hop.c \
349 vnet/ip/ip6_input.c \
350 vnet/ip/ip6_neighbor.c \
351 vnet/ip/ip6_pg.c \
352 vnet/ip/ip_api.c \
353 vnet/ip/ip_checksum.c \
354 vnet/ip/ip_frag.c \
Florin Corascea194d2017-10-02 00:18:51 -0700355 vnet/ip/ip.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100356 vnet/ip/ip_init.c \
357 vnet/ip/ip_input_acl.c \
358 vnet/ip/lookup.c \
359 vnet/ip/ping.c \
Neale Rannsb8d44812017-11-10 06:53:54 -0800360 vnet/ip/punt_api.c \
Dave Barach68b0fb02017-02-28 15:15:56 -0500361 vnet/ip/punt.c
Damjan Marion7cd468a2016-12-19 23:05:39 +0100362
363nobase_include_HEADERS += \
364 vnet/ip/format.h \
365 vnet/ip/icmp46_packet.h \
366 vnet/ip/icmp4.h \
367 vnet/ip/icmp6.h \
368 vnet/ip/igmp_packet.h \
369 vnet/ip/ip.api.h \
370 vnet/ip/ip4_error.h \
371 vnet/ip/ip4.h \
372 vnet/ip/ip4_mtrie.h \
373 vnet/ip/ip4_packet.h \
374 vnet/ip/ip6_error.h \
375 vnet/ip/ip6.h \
376 vnet/ip/ip6_hop_by_hop.h \
377 vnet/ip/ip6_hop_by_hop_packet.h \
378 vnet/ip/ip6_packet.h \
379 vnet/ip/ip6_neighbor.h \
380 vnet/ip/ip.h \
381 vnet/ip/ip_packet.h \
382 vnet/ip/ip_source_and_port_range_check.h \
383 vnet/ip/lookup.h \
384 vnet/ip/ports.def \
385 vnet/ip/protocols.def \
386 vnet/ip/punt_error.def \
Neale Rannsb8d44812017-11-10 06:53:54 -0800387 vnet/ip/punt.api.h \
Dave Barach68b0fb02017-02-28 15:15:56 -0500388 vnet/ip/punt.h
Damjan Marion7cd468a2016-12-19 23:05:39 +0100389
Neale Rannsb8d44812017-11-10 06:53:54 -0800390API_FILES += \
391 vnet/ip/ip.api \
392 vnet/ip/punt.api
Damjan Marion7cd468a2016-12-19 23:05:39 +0100393
394########################################
395# Bidirectional Forwarding Detection
396########################################
397
398nobase_include_HEADERS += \
399 vnet/bfd/bfd_protocol.h \
400 vnet/bfd/bfd_main.h \
401 vnet/bfd/bfd_api.h \
402 vnet/bfd/bfd_udp.h \
403 vnet/bfd/bfd.api.h
404
405libvnet_la_SOURCES += \
406 vnet/bfd/bfd_api.h \
407 vnet/bfd/bfd_udp.c \
408 vnet/bfd/bfd_main.c \
409 vnet/bfd/bfd_protocol.c \
Klement Sekera73884482017-02-23 09:26:30 +0100410 vnet/bfd/bfd_cli.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100411 vnet/bfd/bfd_api.c
412
413API_FILES += vnet/bfd/bfd.api
414
415########################################
416# Layer 3 protocol: IPSec
417########################################
Damjan Mariona9a951f2017-01-16 22:06:10 +0100418if WITH_LIBSSL
Damjan Marion7cd468a2016-12-19 23:05:39 +0100419libvnet_la_SOURCES += \
420 vnet/ipsec/ipsec.c \
421 vnet/ipsec/ipsec_cli.c \
422 vnet/ipsec/ipsec_format.c \
423 vnet/ipsec/ipsec_input.c \
424 vnet/ipsec/ipsec_if.c \
425 vnet/ipsec/ipsec_if_in.c \
426 vnet/ipsec/ipsec_if_out.c \
Sergio Gonzalez Monroydb93cd92017-08-26 15:22:05 +0100427 vnet/ipsec/esp_format.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100428 vnet/ipsec/esp_encrypt.c \
429 vnet/ipsec/esp_decrypt.c \
“mukeshyadav1984”430ac932017-11-23 02:39:33 -0800430 vnet/ipsec/ah_decrypt.c \
431 vnet/ipsec/ah_encrypt.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100432 vnet/ipsec/ikev2.c \
433 vnet/ipsec/ikev2_crypto.c \
434 vnet/ipsec/ikev2_cli.c \
435 vnet/ipsec/ikev2_payload.c \
436 vnet/ipsec/ikev2_format.c \
437 vnet/ipsec/ipsec_api.c
438
439API_FILES += vnet/ipsec/ipsec.api
Damjan Marion7cd468a2016-12-19 23:05:39 +0100440endif
441
442libvnet_la_SOURCES += \
443 vnet/ipsec/ipsec_output.c
444
445nobase_include_HEADERS += \
446 vnet/ipsec/ipsec.h \
447 vnet/ipsec/esp.h \
“mukeshyadav1984”430ac932017-11-23 02:39:33 -0800448 vnet/ipsec/ah.h \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100449 vnet/ipsec/ikev2.h \
450 vnet/ipsec/ikev2_priv.h \
451 vnet/ipsec/ipsec.api.h
Damjan Marion7cd468a2016-12-19 23:05:39 +0100452
453########################################
454# Layer 3 protocol: osi
455########################################
456libvnet_la_SOURCES += \
457 vnet/osi/node.c \
458 vnet/osi/osi.c \
459 vnet/osi/pg.c
460
461nobase_include_HEADERS += \
462 vnet/osi/osi.h
463
464########################################
465# Layer 3 protocol: MAP
466########################################
467libvnet_la_SOURCES += \
468 vnet/map/map.c \
469 vnet/map/map_dpo.c \
470 vnet/map/ip4_map.c \
471 vnet/map/ip6_map.c \
472 vnet/map/ip4_map_t.c \
473 vnet/map/ip6_map_t.c \
474 vnet/map/map_api.c
475
476nobase_include_HEADERS += \
477 vnet/map/map.h \
478 vnet/map/map_dpo.h \
479 vnet/map/map.api.h
480
481API_FILES += vnet/map/map.api
482
483if ENABLE_TESTS
484TESTS += test_map
485test_map_SOURCES = \
486 vnet/map/test.c
487test_map_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG
488
489test_map_LDADD = libvnet.la libvppinfra.la libvlib.la \
Dave Barach654ceaf2017-03-29 16:59:02 -0400490 -lpthread -lvlibmemory -ldl -lsvm -lrt
Damjan Marion7cd468a2016-12-19 23:05:39 +0100491
492test_map_LDFLAGS = -static
493endif
494
Dave Barach68b0fb02017-02-28 15:15:56 -0500495########################################
496# Layer 4 protocol: tcp
497########################################
498libvnet_la_SOURCES += \
Dave Barach3bbcfab2017-08-15 19:03:44 -0400499 vnet/tcp/tcp_api.c \
Dave Barach68b0fb02017-02-28 15:15:56 -0500500 vnet/tcp/tcp_format.c \
501 vnet/tcp/tcp_pg.c \
502 vnet/tcp/tcp_syn_filter4.c \
503 vnet/tcp/tcp_output.c \
504 vnet/tcp/tcp_input.c \
505 vnet/tcp/tcp_newreno.c \
Florin Coras6792ec02017-03-13 03:49:51 -0700506 vnet/tcp/builtin_client.c \
Florin Corase04c2992017-03-01 08:17:34 -0800507 vnet/tcp/builtin_server.c \
Dave Barach1015a1e2017-05-08 19:15:03 -0400508 vnet/tcp/builtin_http_server.c \
Dave Barach52851e62017-08-07 09:35:25 -0400509 vnet/tcp/builtin_proxy.c \
Florin Coras6792ec02017-03-13 03:49:51 -0700510 vnet/tcp/tcp_test.c \
Dave Barach68b0fb02017-02-28 15:15:56 -0500511 vnet/tcp/tcp.c
512
513nobase_include_HEADERS += \
514 vnet/tcp/tcp_packet.h \
515 vnet/tcp/tcp_timer.h \
Florin Corase69f4952017-03-07 10:06:24 -0800516 vnet/tcp/tcp_debug.h \
Florin Corasc940f092017-08-23 11:24:02 -0700517 vnet/tcp/tcp.h \
518 vnet/tcp/tcp.api.h
Dave Barach68b0fb02017-02-28 15:15:56 -0500519
Dave Barach3bbcfab2017-08-15 19:03:44 -0400520API_FILES += vnet/tcp/tcp.api
521
Dave Barach68b0fb02017-02-28 15:15:56 -0500522########################################
523# Layer 4 protocol: udp
524########################################
525libvnet_la_SOURCES += \
526 vnet/udp/udp.c \
527 vnet/udp/udp_input.c \
528 vnet/udp/builtin_server.c \
529 vnet/udp/udp_format.c \
530 vnet/udp/udp_local.c \
Neale Ranns810086d2017-11-05 16:26:46 -0800531 vnet/udp/udp_pg.c \
532 vnet/udp/udp_encap_node.c \
533 vnet/udp/udp_encap.c \
534 vnet/udp/udp_api.c
Dave Barach68b0fb02017-02-28 15:15:56 -0500535
536nobase_include_HEADERS += \
537 vnet/udp/udp_error.def \
538 vnet/udp/udp.h \
Florin Corasf1493142017-11-09 14:17:27 -0800539 vnet/udp/udp_packet.h \
540 vnet/udp/udp.api.h
Damjan Marion7cd468a2016-12-19 23:05:39 +0100541
Neale Ranns810086d2017-11-05 16:26:46 -0800542API_FILES += vnet/udp/udp.api
543
Damjan Marion7cd468a2016-12-19 23:05:39 +0100544########################################
545# Tunnel protocol: gre
546########################################
547libvnet_la_SOURCES += \
548 vnet/gre/gre.c \
549 vnet/gre/node.c \
550 vnet/gre/interface.c \
551 vnet/gre/pg.c \
552 vnet/gre/gre_api.c
553
554nobase_include_HEADERS += \
555 vnet/gre/gre.h \
556 vnet/gre/packet.h \
557 vnet/gre/error.def \
558 vnet/gre/gre.api.h
559
560API_FILES += vnet/gre/gre.api
561
562########################################
563# Tunnel protocol: l2tpv3
564########################################
565libvnet_la_SOURCES += \
566 vnet/l2tp/l2tp.c \
567 vnet/l2tp/encap.c \
568 vnet/l2tp/decap.c \
569 vnet/l2tp/pg.c \
570 vnet/l2tp/l2tp_api.c
571
572nobase_include_HEADERS += \
573 vnet/l2tp/l2tp.h \
574 vnet/l2tp/packet.h \
575 vnet/l2tp/l2tp.api.h
576
577API_FILES += vnet/l2tp/l2tp.api
578
579########################################
580# Tunnel protocol: gre+mpls
581########################################
582libvnet_la_SOURCES += \
583 vnet/mpls/mpls.c \
584 vnet/mpls/mpls_lookup.c \
585 vnet/mpls/mpls_output.c \
586 vnet/mpls/mpls_features.c \
Neale Ranns696e88d2017-03-16 07:34:55 -0400587 vnet/mpls/mpls_input.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100588 vnet/mpls/interface.c \
589 vnet/mpls/mpls_tunnel.c \
Pavel Kotucek0f971d82017-01-03 10:48:54 +0100590 vnet/mpls/pg.c \
591 vnet/mpls/mpls_api.c
Damjan Marion7cd468a2016-12-19 23:05:39 +0100592
593nobase_include_HEADERS += \
594 vnet/mpls/mpls.h \
595 vnet/mpls/mpls_types.h \
596 vnet/mpls/mpls_tunnel.h \
597 vnet/mpls/packet.h \
Pavel Kotucek0f971d82017-01-03 10:48:54 +0100598 vnet/mpls/error.def \
599 vnet/mpls/mpls.api.h
Damjan Marion7cd468a2016-12-19 23:05:39 +0100600
Pavel Kotucek0f971d82017-01-03 10:48:54 +0100601API_FILES += vnet/mpls/mpls.api
Damjan Marion7cd468a2016-12-19 23:05:39 +0100602
603########################################
604# Tunnel protocol: vxlan-gpe
605########################################
606
607libvnet_la_SOURCES += \
608 vnet/vxlan-gpe/vxlan_gpe.c \
609 vnet/vxlan-gpe/encap.c \
610 vnet/vxlan-gpe/decap.c \
611 vnet/vxlan-gpe/vxlan_gpe_api.c
612
613nobase_include_HEADERS += \
614 vnet/vxlan-gpe/vxlan_gpe.h \
615 vnet/vxlan-gpe/vxlan_gpe_packet.h \
616 vnet/vxlan-gpe/vxlan_gpe_error.def \
617 vnet/vxlan-gpe/vxlan_gpe.api.h
618
619API_FILES += vnet/vxlan-gpe/vxlan_gpe.api
620
621########################################
622# Tunnel protocol: ipsec+gre
623########################################
624libvnet_la_SOURCES += \
625 vnet/ipsec-gre/ipsec_gre.c \
626 vnet/ipsec-gre/node.c \
627 vnet/ipsec-gre/interface.c \
628 vnet/ipsec-gre/ipsec_gre_api.c
629
630nobase_include_HEADERS += \
631 vnet/ipsec-gre/ipsec_gre.h \
632 vnet/ipsec-gre/error.def \
633 vnet/ipsec-gre/ipsec_gre.api.h
634
635API_FILES += vnet/ipsec-gre/ipsec_gre.api
636
637########################################
638# LISP control plane: lisp-cp
639########################################
640
641libvnet_la_SOURCES += \
642 vnet/lisp-cp/lisp_types.c \
643 vnet/lisp-cp/lisp_cp_dpo.c \
644 vnet/lisp-cp/control.c \
645 vnet/lisp-cp/gid_dictionary.c \
646 vnet/lisp-cp/lisp_msg_serdes.c \
647 vnet/lisp-cp/packets.c \
Filip Tehlar694396d2017-02-17 14:29:11 +0100648 vnet/lisp-cp/one_cli.c \
Florin Corasf3dc11a2017-01-24 03:13:43 -0800649 vnet/lisp-cp/lisp_cli.c \
Filip Tehlar694396d2017-02-17 14:29:11 +0100650 vnet/lisp-cp/one_api.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100651 vnet/lisp-cp/lisp_api.c
652
653nobase_include_HEADERS += \
654 vnet/lisp-cp/lisp_types.h \
655 vnet/lisp-cp/packets.h \
656 vnet/lisp-cp/gid_dictionary.h \
657 vnet/lisp-cp/lisp_cp_messages.h \
658 vnet/lisp-cp/lisp_msg_serdes.h \
659 vnet/lisp-cp/control.h \
Filip Tehlar694396d2017-02-17 14:29:11 +0100660 vnet/lisp-cp/one.api.h \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100661 vnet/lisp-cp/lisp.api.h
662
663API_FILES += vnet/lisp-cp/lisp.api
Filip Tehlar694396d2017-02-17 14:29:11 +0100664API_FILES += vnet/lisp-cp/one.api
Damjan Marion7cd468a2016-12-19 23:05:39 +0100665
666if ENABLE_TESTS
667LDS = \
668 libvppinfra.la \
669 libvnet.la \
670 libvlib.la \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100671 libsvm.la \
672 libsvmdb.la \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100673 libvlibmemory.la \
Damjan Marionc74a86a2017-01-16 14:00:03 +0100674 -lpthread -ldl -lrt -lm
Damjan Marion7cd468a2016-12-19 23:05:39 +0100675
676TESTS += test_cp_serdes test_lisp_types
677
678test_cp_serdes_SOURCES = \
679 tests/vnet/lisp-cp/test_cp_serdes.c \
680 vnet/lisp-cp/lisp_msg_serdes.c \
681 vnet/lisp-cp/lisp_types.c \
682 vnet/lisp-cp/packets.c \
683 vnet/ip/ip_checksum.c
684
685test_lisp_types_SOURCES = \
686 tests/vnet/lisp-cp/test_lisp_types.c \
687 vnet/lisp-cp/lisp_types.c
688
689test_cp_serdes_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG
690test_lisp_types_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG
691
Damjan Marionc74a86a2017-01-16 14:00:03 +0100692test_cp_serdes_LDADD = $(LDS)
693test_lisp_types_LDADD = $(LDS)
Damjan Marion7cd468a2016-12-19 23:05:39 +0100694endif
695
696########################################
697# Tunnel protocol: lisp-gpe
698########################################
699
700libvnet_la_SOURCES += \
701 vnet/lisp-gpe/lisp_gpe.c \
702 vnet/lisp-gpe/lisp_gpe_sub_interface.c \
703 vnet/lisp-gpe/lisp_gpe_adjacency.c \
704 vnet/lisp-gpe/lisp_gpe_tunnel.c \
705 vnet/lisp-gpe/lisp_gpe_fwd_entry.c \
706 vnet/lisp-gpe/lisp_gpe_tenant.c \
707 vnet/lisp-gpe/interface.c \
708 vnet/lisp-gpe/decap.c \
709 vnet/lisp-gpe/lisp_gpe_api.c
710
711nobase_include_HEADERS += \
712 vnet/lisp-gpe/lisp_gpe.h \
713 vnet/lisp-gpe/lisp_gpe_fwd_entry.h \
714 vnet/lisp-gpe/lisp_gpe_tenant.h \
715 vnet/lisp-gpe/lisp_gpe_packet.h \
716 vnet/lisp-gpe/lisp_gpe_error.def \
717 vnet/lisp-gpe/lisp_gpe.api.h
718
719API_FILES += vnet/lisp-gpe/lisp_gpe.api
720
Damjan Marion7cd468a2016-12-19 23:05:39 +0100721########################################
722# DHCP client
723########################################
724libvnet_la_SOURCES += \
725 vnet/dhcp/client.c \
Pavel Kotucekc8d87702017-01-25 07:25:32 +0100726 vnet/dhcp/client.h \
727 vnet/dhcp/dhcp_api.c
Damjan Marion7cd468a2016-12-19 23:05:39 +0100728
729nobase_include_HEADERS += \
Neale Ranns2dd68522017-02-16 03:38:59 -0800730 vnet/dhcp/client.h \
Pavel Kotucekc8d87702017-01-25 07:25:32 +0100731 vnet/dhcp/dhcp.api.h
732
733API_FILES += vnet/dhcp/dhcp.api
Damjan Marion7cd468a2016-12-19 23:05:39 +0100734
735########################################
736# DHCP proxy
737########################################
738libvnet_la_SOURCES += \
Neale Ranns2dd68522017-02-16 03:38:59 -0800739 vnet/dhcp/dhcp6_proxy_node.c \
740 vnet/dhcp/dhcp4_proxy_node.c \
741 vnet/dhcp/dhcp_proxy.c
Damjan Marion7cd468a2016-12-19 23:05:39 +0100742
743nobase_include_HEADERS += \
Neale Ranns2dd68522017-02-16 03:38:59 -0800744 vnet/dhcp/dhcp4_packet.h \
745 vnet/dhcp/dhcp6_packet.h \
746 vnet/dhcp/dhcp_proxy.h \
747 vnet/dhcp/dhcp6_proxy_error.def \
748 vnet/dhcp/dhcp4_proxy_error.def
Damjan Marion7cd468a2016-12-19 23:05:39 +0100749
750########################################
751# ipv6 segment routing
752########################################
753
Damjan Marion7cd468a2016-12-19 23:05:39 +0100754libvnet_la_SOURCES += \
Pablo Camarillo5d73eec2017-04-24 17:51:56 +0200755 vnet/srv6/sr.c \
756 vnet/srv6/sr_localsid.c \
757 vnet/srv6/sr_policy_rewrite.c \
758 vnet/srv6/sr_steering.c \
759 vnet/srv6/sr_api.c
Damjan Marion7cd468a2016-12-19 23:05:39 +0100760
761nobase_include_HEADERS += \
Pablo Camarillo5d73eec2017-04-24 17:51:56 +0200762 vnet/srv6/sr_packet.h \
763 vnet/srv6/sr.h \
764 vnet/srv6/sr.api.h
Pavel Kotucek0f971d82017-01-03 10:48:54 +0100765
Pablo Camarillo5d73eec2017-04-24 17:51:56 +0200766API_FILES += vnet/srv6/sr.api
767
768########################################
769# mpls segment routing
770########################################
771
772libvnet_la_SOURCES += \
773 vnet/srmpls/sr_mpls_policy.c \
774 vnet/srmpls/sr_mpls_steering.c
775
776
777nobase_include_HEADERS += \
778 vnet/srmpls/sr.h
Damjan Marion7cd468a2016-12-19 23:05:39 +0100779
780########################################
Damjan Marion7cd468a2016-12-19 23:05:39 +0100781# IPFIX / netflow v10
782########################################
783libvnet_la_SOURCES += \
Pavel Kotucekeb9e6662017-01-24 13:40:26 +0100784 vnet/flow/flow_report.c \
785 vnet/flow/flow_api.c
Damjan Marion7cd468a2016-12-19 23:05:39 +0100786
787nobase_include_HEADERS += \
788 vnet/flow/flow_report.h \
789 vnet/flow/ipfix_info_elements.h \
Pavel Kotucekeb9e6662017-01-24 13:40:26 +0100790 vnet/flow/ipfix_packet.h \
791 vnet/flow/flow.api.h
792
793API_FILES += vnet/flow/flow.api
Damjan Marion7cd468a2016-12-19 23:05:39 +0100794
795########################################
796# IPFIX classify code
797########################################
798
799libvnet_la_SOURCES += \
800 vnet/flow/flow_report_classify.c
801
802nobase_include_HEADERS += \
803 vnet/flow/flow_report_classify.h
804
805########################################
806# lawful intercept
807########################################
808
809libvnet_la_SOURCES += \
810 vnet/lawful-intercept/lawful_intercept.c \
811 vnet/lawful-intercept/node.c
812
813nobase_include_HEADERS += \
814 vnet/lawful-intercept/lawful_intercept.h
815
816########################################
817# SPAN (port mirroring)
818########################################
819
820libvnet_la_SOURCES += \
821 vnet/span/span_api.c \
822 vnet/span/span.c \
823 vnet/span/node.c
824
825nobase_include_HEADERS += \
826 vnet/span/span.api.h \
827 vnet/span/span.h
828
829API_FILES += vnet/span/span.api
830
831########################################
Dave Barach65457162017-10-10 17:53:14 -0400832# DNS proxy, API
833########################################
834libvnet_la_SOURCES += \
835 vnet/dns/dns.c \
836 vnet/dns/dns.h \
837 vnet/dns/dns_packet.h \
838 vnet/dns/reply_node.c \
Dave Barach97494502017-11-04 09:44:38 -0400839 vnet/dns/request_node.c \
Dave Barach65457162017-10-10 17:53:14 -0400840 vnet/dns/resolver_process.c
841
842nobase_include_HEADERS += \
843 vnet/dns/dns.api.h \
844 vnet/dns/dns.h
845
846API_FILES += vnet/dns/dns.api
847
848########################################
Damjan Marion7cd468a2016-12-19 23:05:39 +0100849# Packet generator
850########################################
851
852libvnet_la_SOURCES += \
853 vnet/pg/cli.c \
854 vnet/pg/edit.c \
855 vnet/pg/init.c \
856 vnet/pg/input.c \
857 vnet/pg/output.c \
Neale Rannsb8d44812017-11-10 06:53:54 -0800858 vnet/pg/stream.c \
859 vnet/pg/pg_api.c
Damjan Marion7cd468a2016-12-19 23:05:39 +0100860
861nobase_include_HEADERS += \
862 vnet/pg/pg.h \
Neale Rannsb8d44812017-11-10 06:53:54 -0800863 vnet/pg/edit.h \
864 vnet/pg/pg.api.h
865
866API_FILES += vnet/pg/pg.api
Damjan Marion7cd468a2016-12-19 23:05:39 +0100867
Damjan Marion7cd468a2016-12-19 23:05:39 +0100868########################################
869# virtio
870########################################
871
Damjan Marionc99b4cd2017-12-04 15:25:58 +0100872libvnet_la_SOURCES += \
873 vnet/devices/virtio/device.c \
874 vnet/devices/virtio/node.c \
875 vnet/devices/virtio/vhost-user.c \
876 vnet/devices/virtio/vhost_user_api.c \
Damjan Marion8389fb92017-10-13 18:29:53 +0200877 vnet/devices/virtio/virtio.c
878
Damjan Marion7cd468a2016-12-19 23:05:39 +0100879
Damjan Marionc99b4cd2017-12-04 15:25:58 +0100880nobase_include_HEADERS += \
881 vnet/devices/virtio/virtio.h \
882 vnet/devices/virtio/vhost-user.h \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100883 vnet/devices/virtio/vhost_user.api.h
884
885API_FILES += vnet/devices/virtio/vhost_user.api
886
887########################################
Damjan Marionc99b4cd2017-12-04 15:25:58 +0100888# tap interface (with virtio backend)
889########################################
890
891libvnet_la_SOURCES += \
892 vnet/devices/tap/cli.c \
893 vnet/devices/tap/tap.c \
894 vnet/devices/tap/tapv2_api.c
895
896nobase_include_HEADERS += \
897 vnet/devices/tap/tap.h \
898 vnet/devices/tap/tapv2.api.h
899
900API_FILES += vnet/devices/tap/tapv2.api
901
902########################################
Damjan Marion7cd468a2016-12-19 23:05:39 +0100903# ssvm ethernet
904########################################
905libvnet_la_SOURCES += \
906 vnet/devices/ssvm/ssvm_eth.c \
907 vnet/devices/ssvm/node.c
908
909nobase_include_HEADERS += \
910 vnet/devices/ssvm/ssvm_eth.h
911
912########################################
Dave Barach68b0fb02017-02-28 15:15:56 -0500913# session managmeent
914########################################
915
916libvnet_la_SOURCES += \
917 vnet/session/session.c \
Florin Corascea194d2017-10-02 00:18:51 -0700918 vnet/session/session_table.c \
Florin Coras1c710452017-10-17 00:03:13 -0700919 vnet/session/session_rules_table.c \
Florin Coras04e53442017-07-16 17:12:15 -0700920 vnet/session/session_lookup.c \
921 vnet/session/session_node.c \
Florin Coras3cbc04b2017-10-02 00:18:51 -0700922 vnet/session/transport.c \
Dave Barach68b0fb02017-02-28 15:15:56 -0500923 vnet/session/application.c \
924 vnet/session/session_cli.c \
Dave Barach68b0fb02017-02-28 15:15:56 -0500925 vnet/session/application_interface.c \
Florin Corascea194d2017-10-02 00:18:51 -0700926 vnet/session/application_namespace.c \
Florin Coras6cf30ad2017-04-04 23:08:23 -0700927 vnet/session/segment_manager.c \
Florin Corascea194d2017-10-02 00:18:51 -0700928 vnet/session/session_test.c \
Dave Barach68b0fb02017-02-28 15:15:56 -0500929 vnet/session/session_api.c
930
931nobase_include_HEADERS += \
932 vnet/session/session.h \
Florin Corascea194d2017-10-02 00:18:51 -0700933 vnet/session/session_table.h \
Florin Coras1c710452017-10-17 00:03:13 -0700934 vnet/session/session_rules_table.h \
Florin Coras04e53442017-07-16 17:12:15 -0700935 vnet/session/stream_session.h \
936 vnet/session/session_lookup.h \
Dave Barach68b0fb02017-02-28 15:15:56 -0500937 vnet/session/application.h \
938 vnet/session/transport.h \
Florin Coras04e53442017-07-16 17:12:15 -0700939 vnet/session/transport_interface.h \
Alexander Popovsky (apopovsk)6f6f52a2017-03-03 16:06:26 -0800940 vnet/session/application_interface.h \
Florin Corascea194d2017-10-02 00:18:51 -0700941 vnet/session/application_namespace.h \
Florin Corase69f4952017-03-07 10:06:24 -0800942 vnet/session/session_debug.h \
Florin Coras6cf30ad2017-04-04 23:08:23 -0700943 vnet/session/segment_manager.h \
Florin Coras1c710452017-10-17 00:03:13 -0700944 vnet/session/mma_template.h \
945 vnet/session/mma_template.c \
946 vnet/session/mma_16.h \
947 vnet/session/mma_40.h \
Alexander Popovsky (apopovsk)6f6f52a2017-03-03 16:06:26 -0800948 vnet/session/session.api.h
Dave Barach68b0fb02017-02-28 15:15:56 -0500949
950API_FILES += vnet/session/session.api
951
952########################################
Damjan Marion7cd468a2016-12-19 23:05:39 +0100953# Linux packet interface
954########################################
955
956libvnet_la_SOURCES += \
957 vnet/devices/af_packet/af_packet.c \
958 vnet/devices/af_packet/device.c \
959 vnet/devices/af_packet/node.c \
960 vnet/devices/af_packet/cli.c \
961 vnet/devices/af_packet/af_packet_api.c
962
963nobase_include_HEADERS += \
964 vnet/devices/af_packet/af_packet.h \
965 vnet/devices/af_packet/af_packet.api.h
966
967API_FILES += vnet/devices/af_packet/af_packet.api
968
969########################################
970# NETMAP interface
971########################################
972
973libvnet_la_SOURCES += \
974 vnet/devices/netmap/netmap.c \
975 vnet/devices/netmap/device.c \
976 vnet/devices/netmap/node.c \
977 vnet/devices/netmap/cli.c \
978 vnet/devices/netmap/netmap_api.c
979
980nobase_include_HEADERS += \
981 vnet/devices/netmap/netmap.h \
982 vnet/devices/netmap/netmap.api.h
983
984API_FILES += vnet/devices/netmap/netmap.api
985
986########################################
987# Driver feature graph arc support
988########################################
989
990libvnet_la_SOURCES += \
991 vnet/feature/feature.c \
Neale Rannsb8d44812017-11-10 06:53:54 -0800992 vnet/feature/feature_api.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100993 vnet/feature/registration.c
994
995nobase_include_HEADERS += \
Neale Rannsb8d44812017-11-10 06:53:54 -0800996 vnet/feature/feature.h \
997 vnet/feature/feature.api.h
998
999API_FILES += vnet/feature/feature.api
Damjan Marion7cd468a2016-12-19 23:05:39 +01001000
1001########################################
1002# Unix kernel related
1003########################################
1004
1005# FIXME: vnet/unix/hgshm.c
1006
1007libvnet_la_SOURCES += \
1008 vnet/unix/gdb_funcs.c \
1009 vnet/unix/pcap.c \
1010 vnet/unix/tap_api.c \
1011 vnet/unix/tapcli.c \
1012 vnet/unix/tuntap.c
1013
1014nobase_include_HEADERS += \
1015 vnet/unix/pcap.h \
1016 vnet/unix/tuntap.h \
1017 vnet/unix/tap.api.h \
1018 vnet/unix/tapcli.h
1019
1020API_FILES += vnet/unix/tap.api
1021
1022########################################
1023# FIB
1024########################################
1025
1026libvnet_la_SOURCES += \
1027 vnet/fib/fib.c \
1028 vnet/fib/fib_test.c \
1029 vnet/fib/ip4_fib.c \
1030 vnet/fib/ip6_fib.c \
1031 vnet/fib/mpls_fib.c \
1032 vnet/fib/fib_table.c \
1033 vnet/fib/fib_walk.c \
1034 vnet/fib/fib_types.c \
1035 vnet/fib/fib_node.c \
1036 vnet/fib/fib_node_list.c \
1037 vnet/fib/fib_entry.c \
1038 vnet/fib/fib_entry_src.c \
1039 vnet/fib/fib_entry_src_rr.c \
1040 vnet/fib/fib_entry_src_interface.c \
1041 vnet/fib/fib_entry_src_default_route.c \
1042 vnet/fib/fib_entry_src_special.c \
1043 vnet/fib/fib_entry_src_api.c \
1044 vnet/fib/fib_entry_src_adj.c \
1045 vnet/fib/fib_entry_src_mpls.c \
1046 vnet/fib/fib_entry_src_lisp.c \
1047 vnet/fib/fib_entry_cover.c \
1048 vnet/fib/fib_entry_delegate.c \
1049 vnet/fib/fib_path_list.c \
1050 vnet/fib/fib_path.c \
1051 vnet/fib/fib_path_ext.c \
1052 vnet/fib/fib_urpf_list.c \
Neale Ranns88fc83e2017-04-05 08:11:14 -07001053 vnet/fib/fib_attached_export.c \
1054 vnet/fib/fib_bfd.c
Damjan Marion7cd468a2016-12-19 23:05:39 +01001055
1056nobase_include_HEADERS += \
1057 vnet/fib/fib.h \
1058 vnet/fib/fib_api.h \
1059 vnet/fib/ip4_fib.h \
1060 vnet/fib/ip6_fib.h \
1061 vnet/fib/fib_types.h \
1062 vnet/fib/fib_table.h \
1063 vnet/fib/fib_node.h \
1064 vnet/fib/fib_node_list.h \
1065 vnet/fib/fib_entry.h \
1066 vnet/fib/fib_entry_delegate.h
1067
1068########################################
1069# ADJ
1070########################################
1071
1072libvnet_la_SOURCES += \
1073 vnet/adj/adj_nbr.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +01001074 vnet/adj/adj_glean.c \
1075 vnet/adj/adj_midchain.c \
Neale Ranns32e1c012016-11-22 17:07:28 +00001076 vnet/adj/adj_mcast.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +01001077 vnet/adj/adj_l2.c \
Florin Corasce1b4c72017-01-26 14:25:34 -08001078 vnet/adj/adj_nsh.c \
Neale Rannsfa5d1982017-02-20 14:19:51 -08001079 vnet/adj/adj.c \
Neale Ranns88fc83e2017-04-05 08:11:14 -07001080 vnet/adj/rewrite.c \
1081 vnet/adj/adj_bfd.c \
1082 vnet/adj/adj_delegate.c
Damjan Marion7cd468a2016-12-19 23:05:39 +01001083
1084nobase_include_HEADERS += \
1085 vnet/adj/adj.h \
1086 vnet/adj/adj_types.h \
Damjan Marion7cd468a2016-12-19 23:05:39 +01001087 vnet/adj/adj_glean.h \
Florin Corasce1b4c72017-01-26 14:25:34 -08001088 vnet/adj/adj_nsh.h \
Neale Rannsfa5d1982017-02-20 14:19:51 -08001089 vnet/adj/adj_nbr.h \
1090 vnet/adj/rewrite.h
Damjan Marion7cd468a2016-12-19 23:05:39 +01001091
1092########################################
1093# Data-Plane Objects
1094########################################
1095
1096libvnet_la_SOURCES += \
1097 vnet/dpo/dpo.c \
1098 vnet/dpo/drop_dpo.c \
1099 vnet/dpo/ip_null_dpo.c \
1100 vnet/dpo/punt_dpo.c \
1101 vnet/dpo/receive_dpo.c \
1102 vnet/dpo/load_balance.c \
1103 vnet/dpo/load_balance_map.c \
Neale Ranns32e1c012016-11-22 17:07:28 +00001104 vnet/dpo/lookup_dpo.c \
1105 vnet/dpo/classify_dpo.c \
1106 vnet/dpo/replicate_dpo.c \
Neale Ranns43161a82017-08-12 02:12:00 -07001107 vnet/dpo/interface_rx_dpo.c \
1108 vnet/dpo/interface_tx_dpo.c \
Neale Ranns0f26c5a2017-03-01 15:12:11 -08001109 vnet/dpo/mpls_disposition.c \
Neale Ranns6f631152017-10-03 08:20:21 -07001110 vnet/dpo/mpls_label_dpo.c \
Andrew Yourtchenko5f3fcb92017-10-25 05:50:37 -07001111 vnet/dpo/l3_proxy_dpo.c \
Neale Ranns6f631152017-10-03 08:20:21 -07001112 vnet/dpo/l2_bridge_dpo.c
Damjan Marion7cd468a2016-12-19 23:05:39 +01001113
1114nobase_include_HEADERS += \
1115 vnet/dpo/load_balance.h \
1116 vnet/dpo/drop_dpo.h \
1117 vnet/dpo/lookup_dpo.h \
1118 vnet/dpo/punt_dpo.h \
1119 vnet/dpo/classify_dpo.h \
1120 vnet/dpo/receive_dpo.h \
1121 vnet/dpo/ip_null_dpo.h \
Neale Ranns60c1c7c2017-11-02 07:39:24 -07001122 vnet/dpo/replicate_dpo.h \
Damjan Marion7cd468a2016-12-19 23:05:39 +01001123 vnet/dpo/dpo.h
1124
1125########################################
Neale Ranns32e1c012016-11-22 17:07:28 +00001126# Multicast FIB
1127########################################
1128
1129libvnet_la_SOURCES += \
1130 vnet/mfib/mfib_test.c \
1131 vnet/mfib/mfib_forward.c \
1132 vnet/mfib/ip4_mfib.c \
1133 vnet/mfib/ip6_mfib.c \
1134 vnet/mfib/mfib_types.c \
1135 vnet/mfib/mfib_signal.c \
1136 vnet/mfib/mfib_itf.c \
1137 vnet/mfib/mfib_entry.c \
1138 vnet/mfib/mfib_table.c
1139
1140nobase_include_HEADERS += \
1141 vnet/mfib/ip4_mfib.h \
1142 vnet/mfib/mfib_types.h \
1143 vnet/mfib/mfib_table.h
1144
1145########################################
1146# Utilities
1147########################################
1148
1149libvnet_la_SOURCES += \
Dave Barach7bee7732017-10-18 18:48:11 -04001150 vnet/util/radix.c \
1151 vnet/util/trajectory.c
Neale Ranns32e1c012016-11-22 17:07:28 +00001152
1153########################################
Neale Rannsd792d9c2017-10-21 10:53:20 -07001154# BIER
1155########################################
1156
1157libvnet_la_SOURCES += \
1158 vnet/bier/bier_bit_string.c \
1159 vnet/bier/bier_entry.c \
1160 vnet/bier/bier_fmask.c \
1161 vnet/bier/bier_fmask_db.c \
1162 vnet/bier/bier_input.c \
1163 vnet/bier/bier_lookup.c \
1164 vnet/bier/bier_output.c \
1165 vnet/bier/bier_table.c \
1166 vnet/bier/bier_types.c \
1167 vnet/bier/bier_test.c \
1168 vnet/bier/bier_api.c \
1169 vnet/bier/bier_drop.c \
1170 vnet/bier/bier_update.c \
1171 vnet/bier/bier_imp_node.c \
1172 vnet/bier/bier_imp.c \
1173 vnet/bier/bier_disp_entry.c \
1174 vnet/bier/bier_disp_lookup_node.c \
1175 vnet/bier/bier_disp_dispatch_node.c \
1176 vnet/bier/bier_disp_table.c
1177
1178nobase_include_HEADERS += \
1179 vnet/bier/bier_types.h \
1180 vnet/bier/bier_entry.h \
1181 vnet/bier/bier_update.h \
1182 vnet/bier/bier.api.h \
1183 vnet/bier/bier_table.h
1184
1185API_FILES += vnet/bier/bier.api
1186
1187########################################
Damjan Marion7cd468a2016-12-19 23:05:39 +01001188# Plugin client library
1189########################################
1190
Damjan Marion7cd468a2016-12-19 23:05:39 +01001191nobase_include_HEADERS += \
1192 vnet/plugin/plugin.h
1193
Damjan Marion7cd468a2016-12-19 23:05:39 +01001194pcap2pg_SOURCES = \
1195 vnet/unix/pcap2pg.c \
1196 vnet/unix/pcap.h
1197
1198pcap2pg_LDFLAGS = -static
1199pcap2pg_LDADD = libvnet.la libvppinfra.la -lpthread libvlibmemory.la -lm -ldl
1200
1201noinst_PROGRAMS += pcap2pg
1202
1203# vi:syntax=automake