blob: a58bdcae6f006e6bdb597f516bd924ea19cac668 [file] [log] [blame]
Damjan Marion7cd468a2016-12-19 23:05:39 +01001# Copyright (c) 2015 Cisco and/or its affiliates.
2# Licensed under the Apache License, Version 2.0 (the "License");
3# you may not use this file except in compliance with the License.
4# You may obtain a copy of the License at:
5#
6# http://www.apache.org/licenses/LICENSE-2.0
7#
8# Unless required by applicable law or agreed to in writing, software
9# distributed under the License is distributed on an "AS IS" BASIS,
10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11# See the License for the specific language governing permissions and
12# limitations under the License.
13
Damjan Marion724f64c2017-01-11 11:11:00 +010014lib_LTLIBRARIES += libvnet.la
15
Damjan Marion7cd468a2016-12-19 23:05:39 +010016libvnet_la_SOURCES =
Damjan Marionc74a86a2017-01-16 14:00:03 +010017libvnet_la_DEPENDENCIES = \
18 libvppinfra.la \
19 libvlib.la \
20 libsvmdb.la \
21 libsvm.la \
Dave Barach654ceaf2017-03-29 16:59:02 -040022 libvlibmemory.la
Damjan Marion7cd468a2016-12-19 23:05:39 +010023
Damjan Marionc3a814b2017-02-28 19:22:22 +010024libvnet_la_LIBADD = $(libvnet_la_DEPENDENCIES) -lm -lpthread -ldl -lrt
Damjan Marion45a00c42017-01-08 15:34:50 +010025
Damjan Mariona9a951f2017-01-16 22:06:10 +010026if WITH_LIBSSL
Damjan Marion45a00c42017-01-08 15:34:50 +010027libvnet_la_LIBADD += -lcrypto
28endif
Damjan Marion7cd468a2016-12-19 23:05:39 +010029
30########################################
31# Generic stuff
32########################################
33libvnet_la_SOURCES += \
Damjan Marionbd846cd2017-11-21 13:12:41 +010034 vnet/buffer.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +010035 vnet/config.c \
36 vnet/devices/devices.c \
Damjan Marion17fdae72017-11-30 20:56:37 +010037 vnet/devices/netlink.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +010038 vnet/handoff.c \
39 vnet/interface.c \
40 vnet/interface_api.c \
41 vnet/interface_cli.c \
42 vnet/interface_format.c \
43 vnet/interface_output.c \
44 vnet/misc.c \
Neale Rannsfa5d1982017-02-20 14:19:51 -080045 vnet/replication.c
Damjan Marion7cd468a2016-12-19 23:05:39 +010046
47nobase_include_HEADERS += \
48 vnet/api_errno.h \
49 vnet/buffer.h \
50 vnet/config.h \
51 vnet/devices/devices.h \
Damjan Marion17fdae72017-11-30 20:56:37 +010052 vnet/devices/netlink.h \
Damjan Marion7cd468a2016-12-19 23:05:39 +010053 vnet/global_funcs.h \
54 vnet/handoff.h \
55 vnet/interface.h \
56 vnet/interface.api.h \
57 vnet/interface_funcs.h \
Matus Fabiana774b532017-05-02 03:15:22 -070058 vnet/ip/ip4_to_ip6.h \
59 vnet/ip/ip6_to_ip4.h \
Damjan Marion7cd468a2016-12-19 23:05:39 +010060 vnet/l3_types.h \
61 vnet/pipeline.h \
62 vnet/replication.h \
Damjan Marion7cd468a2016-12-19 23:05:39 +010063 vnet/vnet.h \
64 vnet/vnet_all_api_h.h \
Gabriel Ganne5842c782017-01-30 13:44:04 +010065 vnet/vnet_msg_enum.h \
Hongjun Nibf4be572017-11-13 20:34:06 +080066 vnet/util/radix.h \
67 vnet/util/refcount.h
Damjan Marion7cd468a2016-12-19 23:05:39 +010068
69API_FILES += vnet/interface.api
70
71########################################
72# Policer infra
73########################################
74
75libvnet_la_SOURCES += \
76 vnet/policer/node_funcs.c \
77 vnet/policer/policer.c \
Pavel Kotucekd9aad292017-01-25 08:45:38 +010078 vnet/policer/xlate.c \
79 vnet/policer/policer_api.c
Damjan Marion7cd468a2016-12-19 23:05:39 +010080
81nobase_include_HEADERS += \
82 vnet/policer/police.h \
83 vnet/policer/policer.h \
Pavel Kotucekd9aad292017-01-25 08:45:38 +010084 vnet/policer/xlate.h \
85 vnet/policer/policer.api.h
86
87API_FILES += vnet/policer/policer.api
Damjan Marion7cd468a2016-12-19 23:05:39 +010088
89########################################
90# Cop - junk filter
91########################################
92
93libvnet_la_SOURCES += \
94 vnet/cop/cop.c \
95 vnet/cop/node1.c \
96 vnet/cop/ip4_whitelist.c \
Pavel Kotucek884cf262017-01-25 08:27:15 +010097 vnet/cop/ip6_whitelist.c \
98 vnet/cop/cop_api.c
Damjan Marion7cd468a2016-12-19 23:05:39 +010099
100nobase_include_HEADERS += \
Pavel Kotucek884cf262017-01-25 08:27:15 +0100101 vnet/cop/cop.h \
102 vnet/cop/cop.api.h
103
104API_FILES += vnet/cop/cop.api
Damjan Marion7cd468a2016-12-19 23:05:39 +0100105
106########################################
107# Layer 2 protocols go here
108########################################
109
110########################################
111# Layer 2 protocol: Ethernet
112########################################
113libvnet_la_SOURCES += \
114 vnet/ethernet/arp.c \
115 vnet/ethernet/format.c \
116 vnet/ethernet/init.c \
117 vnet/ethernet/interface.c \
118 vnet/ethernet/node.c \
Damjan Marion374e2c52017-03-09 20:38:15 +0100119 vnet/ethernet/pg.c \
Pavel Kotucek6899a302017-06-08 08:46:10 +0200120 vnet/ethernet/sfp.c \
121 vnet/ethernet/p2p_ethernet.c \
Pavel Kotucek15ac81c2017-06-20 14:00:26 +0200122 vnet/ethernet/p2p_ethernet_input.c \
Pavel Kotucek6899a302017-06-08 08:46:10 +0200123 vnet/ethernet/p2p_ethernet_api.c
Damjan Marion7cd468a2016-12-19 23:05:39 +0100124
125nobase_include_HEADERS += \
126 vnet/ethernet/arp_packet.h \
127 vnet/ethernet/error.def \
128 vnet/ethernet/ethernet.h \
129 vnet/ethernet/packet.h \
Damjan Marion374e2c52017-03-09 20:38:15 +0100130 vnet/ethernet/types.def \
Pavel Kotucek6899a302017-06-08 08:46:10 +0200131 vnet/ethernet/sfp.h \
132 vnet/ethernet/p2p_ethernet.api.h \
133 vnet/ethernet/p2p_ethernet.h
134
135API_FILES += vnet/ethernet/p2p_ethernet.api
Damjan Marion7cd468a2016-12-19 23:05:39 +0100136
137########################################
138# Layer 2 protocol: Ethernet bridging
139########################################
140libvnet_la_SOURCES += \
141 vnet/l2/feat_bitmap.c \
142 vnet/l2/l2_api.c \
143 vnet/l2/l2_bd.c \
144 vnet/l2/l2_bvi.c \
145 vnet/l2/l2_input_classify.c \
146 vnet/l2/l2_output_classify.c \
147 vnet/l2/l2_efp_filter.c \
148 vnet/l2/l2_fib.c \
149 vnet/l2/l2_flood.c \
150 vnet/l2/l2_fwd.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100151 vnet/l2/l2_input.c \
152 vnet/l2/l2_input_vtr.c \
153 vnet/l2/l2_learn.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100154 vnet/l2/l2_output.c \
Andrew Yourtchenko815d7d52018-02-07 11:37:02 +0100155 vnet/l2/l2_in_out_acl.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100156 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########################################
Steven9cd2d7a2017-12-20 12:43:01 -0800276# Layer 2 / Bonding
277########################################
278libvnet_la_SOURCES += \
279 vnet/bonding/cli.c \
280 vnet/bonding/node.c \
281 vnet/bonding/device.c \
282 vnet/bonding/bond_api.c
283
284nobase_include_HEADERS += \
285 vnet/bonding/node.h \
286 vnet/bonding/bond.api.h
287
288API_FILES += vnet/bonding/bond.api
289
290########################################
Damjan Marion7cd468a2016-12-19 23:05:39 +0100291# Layer 2 / LLDP
292########################################
293libvnet_la_SOURCES += \
294 vnet/lldp/lldp_input.c \
295 vnet/lldp/lldp_node.c \
296 vnet/lldp/lldp_output.c \
Steve Shin99a0e602017-07-01 04:16:20 +0000297 vnet/lldp/lldp_cli.c \
298 vnet/lldp/lldp_api.c
Damjan Marion7cd468a2016-12-19 23:05:39 +0100299
300nobase_include_HEADERS += \
Steve Shin99a0e602017-07-01 04:16:20 +0000301 vnet/lldp/lldp_protocol.h \
302 vnet/lldp/lldp.h \
303 vnet/lldp/lldp.api.h
304
305API_FILES += vnet/lldp/lldp.api
Damjan Marion7cd468a2016-12-19 23:05:39 +0100306
307########################################
308# Layer 2/3 "classify"
309########################################
310libvnet_la_SOURCES += \
311 vnet/classify/vnet_classify.c \
312 vnet/classify/ip_classify.c \
Andrew Yourtchenko815d7d52018-02-07 11:37:02 +0100313 vnet/classify/in_out_acl.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100314 vnet/classify/policer_classify.c \
315 vnet/classify/flow_classify.c \
316 vnet/classify/flow_classify_node.c \
Pavel Kotucekd2c97d92017-01-24 10:58:12 +0100317 vnet/classify/vnet_classify.h \
318 vnet/classify/classify_api.c
Damjan Marion7cd468a2016-12-19 23:05:39 +0100319
320nobase_include_HEADERS += \
321 vnet/classify/vnet_classify.h \
Andrew Yourtchenko815d7d52018-02-07 11:37:02 +0100322 vnet/classify/in_out_acl.h \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100323 vnet/classify/policer_classify.h \
Pavel Kotucekd2c97d92017-01-24 10:58:12 +0100324 vnet/classify/flow_classify.h \
325 vnet/classify/classify.api.h
326
327API_FILES += vnet/classify/classify.api
Damjan Marion7cd468a2016-12-19 23:05:39 +0100328
329########################################
330# Layer 3 protocols go here
331########################################
332
333########################################
334# Layer 3 protocol: IP v4/v6
335########################################
336libvnet_la_SOURCES += \
337 vnet/ip/format.c \
338 vnet/ip/icmp4.c \
339 vnet/ip/icmp6.c \
340 vnet/ip/ip46_cli.c \
341 vnet/ip/ip4_format.c \
342 vnet/ip/ip4_forward.c \
Neale Rannsd91c1db2017-07-31 02:30:50 -0700343 vnet/ip/ip4_punt_drop.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100344 vnet/ip/ip4_input.c \
345 vnet/ip/ip4_mtrie.c \
346 vnet/ip/ip4_pg.c \
347 vnet/ip/ip4_source_and_port_range_check.c \
348 vnet/ip/ip4_source_check.c \
Klement Sekera75e7d132017-09-20 08:26:30 +0200349 vnet/ip/ip4_reassembly.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100350 vnet/ip/ip6_format.c \
351 vnet/ip/ip6_forward.c \
Neale Ranns53da2212018-02-24 02:11:19 -0800352 vnet/ip/ip6_ll_table.c \
353 vnet/ip/ip6_ll_types.c \
Neale Rannsd91c1db2017-07-31 02:30:50 -0700354 vnet/ip/ip6_punt_drop.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100355 vnet/ip/ip6_hop_by_hop.c \
356 vnet/ip/ip6_input.c \
357 vnet/ip/ip6_neighbor.c \
358 vnet/ip/ip6_pg.c \
Klement Sekera75e7d132017-09-20 08:26:30 +0200359 vnet/ip/ip6_reassembly.c \
Juraj Slobodac0374232018-02-01 15:18:49 +0100360 vnet/ip/rd_cp.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100361 vnet/ip/ip_api.c \
362 vnet/ip/ip_checksum.c \
363 vnet/ip/ip_frag.c \
Florin Corascea194d2017-10-02 00:18:51 -0700364 vnet/ip/ip.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100365 vnet/ip/ip_init.c \
Neale Ranns039cbfe2018-02-27 03:45:38 -0800366 vnet/ip/ip_in_out_acl.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100367 vnet/ip/lookup.c \
368 vnet/ip/ping.c \
Neale Rannsb8d44812017-11-10 06:53:54 -0800369 vnet/ip/punt_api.c \
Dave Barach68b0fb02017-02-28 15:15:56 -0500370 vnet/ip/punt.c
Damjan Marion7cd468a2016-12-19 23:05:39 +0100371
372nobase_include_HEADERS += \
373 vnet/ip/format.h \
374 vnet/ip/icmp46_packet.h \
375 vnet/ip/icmp4.h \
376 vnet/ip/icmp6.h \
377 vnet/ip/igmp_packet.h \
378 vnet/ip/ip.api.h \
Juraj Slobodac0374232018-02-01 15:18:49 +0100379 vnet/ip/rd_cp.api.h \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100380 vnet/ip/ip4_error.h \
381 vnet/ip/ip4.h \
382 vnet/ip/ip4_mtrie.h \
383 vnet/ip/ip4_packet.h \
384 vnet/ip/ip6_error.h \
385 vnet/ip/ip6.h \
386 vnet/ip/ip6_hop_by_hop.h \
387 vnet/ip/ip6_hop_by_hop_packet.h \
388 vnet/ip/ip6_packet.h \
389 vnet/ip/ip6_neighbor.h \
390 vnet/ip/ip.h \
391 vnet/ip/ip_packet.h \
392 vnet/ip/ip_source_and_port_range_check.h \
393 vnet/ip/lookup.h \
394 vnet/ip/ports.def \
395 vnet/ip/protocols.def \
396 vnet/ip/punt_error.def \
Neale Rannsb8d44812017-11-10 06:53:54 -0800397 vnet/ip/punt.api.h \
Dave Barach68b0fb02017-02-28 15:15:56 -0500398 vnet/ip/punt.h
Damjan Marion7cd468a2016-12-19 23:05:39 +0100399
Neale Rannsb8d44812017-11-10 06:53:54 -0800400API_FILES += \
401 vnet/ip/ip.api \
Juraj Slobodac0374232018-02-01 15:18:49 +0100402 vnet/ip/rd_cp.api \
Neale Rannsb8d44812017-11-10 06:53:54 -0800403 vnet/ip/punt.api
Damjan Marion7cd468a2016-12-19 23:05:39 +0100404
405########################################
406# Bidirectional Forwarding Detection
407########################################
408
409nobase_include_HEADERS += \
410 vnet/bfd/bfd_protocol.h \
411 vnet/bfd/bfd_main.h \
412 vnet/bfd/bfd_api.h \
413 vnet/bfd/bfd_udp.h \
414 vnet/bfd/bfd.api.h
415
416libvnet_la_SOURCES += \
417 vnet/bfd/bfd_api.h \
418 vnet/bfd/bfd_udp.c \
419 vnet/bfd/bfd_main.c \
420 vnet/bfd/bfd_protocol.c \
Klement Sekera73884482017-02-23 09:26:30 +0100421 vnet/bfd/bfd_cli.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100422 vnet/bfd/bfd_api.c
423
424API_FILES += vnet/bfd/bfd.api
425
426########################################
427# Layer 3 protocol: IPSec
428########################################
Damjan Mariona9a951f2017-01-16 22:06:10 +0100429if WITH_LIBSSL
Damjan Marion7cd468a2016-12-19 23:05:39 +0100430libvnet_la_SOURCES += \
431 vnet/ipsec/ipsec.c \
432 vnet/ipsec/ipsec_cli.c \
433 vnet/ipsec/ipsec_format.c \
434 vnet/ipsec/ipsec_input.c \
435 vnet/ipsec/ipsec_if.c \
436 vnet/ipsec/ipsec_if_in.c \
437 vnet/ipsec/ipsec_if_out.c \
Sergio Gonzalez Monroydb93cd92017-08-26 15:22:05 +0100438 vnet/ipsec/esp_format.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100439 vnet/ipsec/esp_encrypt.c \
440 vnet/ipsec/esp_decrypt.c \
“mukeshyadav1984”430ac932017-11-23 02:39:33 -0800441 vnet/ipsec/ah_decrypt.c \
442 vnet/ipsec/ah_encrypt.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100443 vnet/ipsec/ikev2.c \
444 vnet/ipsec/ikev2_crypto.c \
445 vnet/ipsec/ikev2_cli.c \
446 vnet/ipsec/ikev2_payload.c \
447 vnet/ipsec/ikev2_format.c \
448 vnet/ipsec/ipsec_api.c
449
450API_FILES += vnet/ipsec/ipsec.api
Damjan Marion7cd468a2016-12-19 23:05:39 +0100451endif
452
453libvnet_la_SOURCES += \
454 vnet/ipsec/ipsec_output.c
455
456nobase_include_HEADERS += \
457 vnet/ipsec/ipsec.h \
458 vnet/ipsec/esp.h \
“mukeshyadav1984”430ac932017-11-23 02:39:33 -0800459 vnet/ipsec/ah.h \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100460 vnet/ipsec/ikev2.h \
461 vnet/ipsec/ikev2_priv.h \
462 vnet/ipsec/ipsec.api.h
Damjan Marion7cd468a2016-12-19 23:05:39 +0100463
464########################################
465# Layer 3 protocol: osi
466########################################
467libvnet_la_SOURCES += \
468 vnet/osi/node.c \
469 vnet/osi/osi.c \
470 vnet/osi/pg.c
471
472nobase_include_HEADERS += \
473 vnet/osi/osi.h
474
475########################################
476# Layer 3 protocol: MAP
477########################################
478libvnet_la_SOURCES += \
479 vnet/map/map.c \
480 vnet/map/map_dpo.c \
481 vnet/map/ip4_map.c \
482 vnet/map/ip6_map.c \
483 vnet/map/ip4_map_t.c \
484 vnet/map/ip6_map_t.c \
485 vnet/map/map_api.c
486
487nobase_include_HEADERS += \
488 vnet/map/map.h \
489 vnet/map/map_dpo.h \
490 vnet/map/map.api.h
491
492API_FILES += vnet/map/map.api
493
494if ENABLE_TESTS
495TESTS += test_map
496test_map_SOURCES = \
497 vnet/map/test.c
498test_map_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG
499
500test_map_LDADD = libvnet.la libvppinfra.la libvlib.la \
Dave Barach654ceaf2017-03-29 16:59:02 -0400501 -lpthread -lvlibmemory -ldl -lsvm -lrt
Damjan Marion7cd468a2016-12-19 23:05:39 +0100502
503test_map_LDFLAGS = -static
504endif
505
Dave Barach68b0fb02017-02-28 15:15:56 -0500506########################################
507# Layer 4 protocol: tcp
508########################################
509libvnet_la_SOURCES += \
Dave Barach3bbcfab2017-08-15 19:03:44 -0400510 vnet/tcp/tcp_api.c \
Dave Barach68b0fb02017-02-28 15:15:56 -0500511 vnet/tcp/tcp_format.c \
512 vnet/tcp/tcp_pg.c \
513 vnet/tcp/tcp_syn_filter4.c \
514 vnet/tcp/tcp_output.c \
515 vnet/tcp/tcp_input.c \
516 vnet/tcp/tcp_newreno.c \
Florin Coras6792ec02017-03-13 03:49:51 -0700517 vnet/tcp/tcp_test.c \
Dave Barach68b0fb02017-02-28 15:15:56 -0500518 vnet/tcp/tcp.c
519
520nobase_include_HEADERS += \
521 vnet/tcp/tcp_packet.h \
522 vnet/tcp/tcp_timer.h \
Florin Corase69f4952017-03-07 10:06:24 -0800523 vnet/tcp/tcp_debug.h \
Florin Corasc940f092017-08-23 11:24:02 -0700524 vnet/tcp/tcp.h \
525 vnet/tcp/tcp.api.h
Dave Barach68b0fb02017-02-28 15:15:56 -0500526
Dave Barach3bbcfab2017-08-15 19:03:44 -0400527API_FILES += vnet/tcp/tcp.api
528
Dave Barach68b0fb02017-02-28 15:15:56 -0500529########################################
530# Layer 4 protocol: udp
531########################################
532libvnet_la_SOURCES += \
533 vnet/udp/udp.c \
534 vnet/udp/udp_input.c \
Dave Barach68b0fb02017-02-28 15:15:56 -0500535 vnet/udp/udp_format.c \
536 vnet/udp/udp_local.c \
Neale Ranns810086d2017-11-05 16:26:46 -0800537 vnet/udp/udp_pg.c \
538 vnet/udp/udp_encap_node.c \
539 vnet/udp/udp_encap.c \
540 vnet/udp/udp_api.c
Dave Barach68b0fb02017-02-28 15:15:56 -0500541
542nobase_include_HEADERS += \
543 vnet/udp/udp_error.def \
544 vnet/udp/udp.h \
Florin Corasf1493142017-11-09 14:17:27 -0800545 vnet/udp/udp_packet.h \
546 vnet/udp/udp.api.h
Damjan Marion7cd468a2016-12-19 23:05:39 +0100547
Neale Ranns810086d2017-11-05 16:26:46 -0800548API_FILES += vnet/udp/udp.api
549
Damjan Marion7cd468a2016-12-19 23:05:39 +0100550########################################
Marco Varlese191a5942017-10-30 18:17:21 +0100551# Layer 4 protocol: sctp
552########################################
553libvnet_la_SOURCES += \
Marco Varlese3c6a9762018-03-01 11:19:59 +0100554 vnet/sctp/sctp_api.c \
Marco Varlese191a5942017-10-30 18:17:21 +0100555 vnet/sctp/sctp.c \
556 vnet/sctp/sctp_pg.c \
557 vnet/sctp/sctp_input.c \
558 vnet/sctp/sctp_output.c \
Florin Coras4399c2e2018-01-25 06:34:42 -0800559 vnet/sctp/sctp_format.c
Marco Varlese191a5942017-10-30 18:17:21 +0100560
561nobase_include_HEADERS += \
562 vnet/sctp/sctp_error.def \
563 vnet/sctp/sctp_packet.h \
564 vnet/sctp/sctp_timer.h \
Marco Varlese3c6a9762018-03-01 11:19:59 +0100565 vnet/sctp/sctp.h \
566 vnet/sctp/sctp.api.h
567
568API_FILES += vnet/sctp/sctp.api
Marco Varlese191a5942017-10-30 18:17:21 +0100569
570########################################
Damjan Marion7cd468a2016-12-19 23:05:39 +0100571# Tunnel protocol: gre
572########################################
573libvnet_la_SOURCES += \
574 vnet/gre/gre.c \
575 vnet/gre/node.c \
576 vnet/gre/interface.c \
577 vnet/gre/pg.c \
578 vnet/gre/gre_api.c
579
580nobase_include_HEADERS += \
581 vnet/gre/gre.h \
582 vnet/gre/packet.h \
583 vnet/gre/error.def \
584 vnet/gre/gre.api.h
585
586API_FILES += vnet/gre/gre.api
587
588########################################
Ole Troan298c6952018-03-08 12:30:43 +0100589# Tunnel protocol: ipip
590########################################
591libvnet_la_SOURCES += \
592 vnet/ipip/ipip.c \
593 vnet/ipip/node.c \
594 vnet/ipip/sixrd.c \
595 vnet/ipip/ipip_api.c \
596 vnet/ipip/ipip_cli.c
597
598nobase_include_HEADERS += \
Jon Loeliger1fcbd722018-03-14 14:08:43 -0500599 vnet/ipip/ipip.api.h \
Ole Troan298c6952018-03-08 12:30:43 +0100600 vnet/ipip/ipip.h
601
602API_FILES += vnet/ipip/ipip.api
603
604########################################
Damjan Marion7cd468a2016-12-19 23:05:39 +0100605# Tunnel protocol: l2tpv3
606########################################
607libvnet_la_SOURCES += \
608 vnet/l2tp/l2tp.c \
609 vnet/l2tp/encap.c \
610 vnet/l2tp/decap.c \
611 vnet/l2tp/pg.c \
612 vnet/l2tp/l2tp_api.c
613
614nobase_include_HEADERS += \
615 vnet/l2tp/l2tp.h \
616 vnet/l2tp/packet.h \
617 vnet/l2tp/l2tp.api.h
618
619API_FILES += vnet/l2tp/l2tp.api
620
621########################################
622# Tunnel protocol: gre+mpls
623########################################
624libvnet_la_SOURCES += \
625 vnet/mpls/mpls.c \
626 vnet/mpls/mpls_lookup.c \
627 vnet/mpls/mpls_output.c \
628 vnet/mpls/mpls_features.c \
Neale Ranns696e88d2017-03-16 07:34:55 -0400629 vnet/mpls/mpls_input.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100630 vnet/mpls/interface.c \
631 vnet/mpls/mpls_tunnel.c \
Pavel Kotucek0f971d82017-01-03 10:48:54 +0100632 vnet/mpls/pg.c \
633 vnet/mpls/mpls_api.c
Damjan Marion7cd468a2016-12-19 23:05:39 +0100634
635nobase_include_HEADERS += \
636 vnet/mpls/mpls.h \
637 vnet/mpls/mpls_types.h \
638 vnet/mpls/mpls_tunnel.h \
639 vnet/mpls/packet.h \
Pavel Kotucek0f971d82017-01-03 10:48:54 +0100640 vnet/mpls/error.def \
641 vnet/mpls/mpls.api.h
Damjan Marion7cd468a2016-12-19 23:05:39 +0100642
Pavel Kotucek0f971d82017-01-03 10:48:54 +0100643API_FILES += vnet/mpls/mpls.api
Damjan Marion7cd468a2016-12-19 23:05:39 +0100644
645########################################
646# Tunnel protocol: vxlan-gpe
647########################################
648
649libvnet_la_SOURCES += \
650 vnet/vxlan-gpe/vxlan_gpe.c \
651 vnet/vxlan-gpe/encap.c \
652 vnet/vxlan-gpe/decap.c \
653 vnet/vxlan-gpe/vxlan_gpe_api.c
654
655nobase_include_HEADERS += \
656 vnet/vxlan-gpe/vxlan_gpe.h \
657 vnet/vxlan-gpe/vxlan_gpe_packet.h \
658 vnet/vxlan-gpe/vxlan_gpe_error.def \
659 vnet/vxlan-gpe/vxlan_gpe.api.h
660
661API_FILES += vnet/vxlan-gpe/vxlan_gpe.api
662
663########################################
664# Tunnel protocol: ipsec+gre
665########################################
666libvnet_la_SOURCES += \
667 vnet/ipsec-gre/ipsec_gre.c \
668 vnet/ipsec-gre/node.c \
669 vnet/ipsec-gre/interface.c \
670 vnet/ipsec-gre/ipsec_gre_api.c
671
672nobase_include_HEADERS += \
673 vnet/ipsec-gre/ipsec_gre.h \
674 vnet/ipsec-gre/error.def \
675 vnet/ipsec-gre/ipsec_gre.api.h
676
677API_FILES += vnet/ipsec-gre/ipsec_gre.api
678
679########################################
680# LISP control plane: lisp-cp
681########################################
682
683libvnet_la_SOURCES += \
684 vnet/lisp-cp/lisp_types.c \
685 vnet/lisp-cp/lisp_cp_dpo.c \
686 vnet/lisp-cp/control.c \
687 vnet/lisp-cp/gid_dictionary.c \
688 vnet/lisp-cp/lisp_msg_serdes.c \
689 vnet/lisp-cp/packets.c \
Filip Tehlar694396d2017-02-17 14:29:11 +0100690 vnet/lisp-cp/one_cli.c \
Florin Corasf3dc11a2017-01-24 03:13:43 -0800691 vnet/lisp-cp/lisp_cli.c \
Filip Tehlar694396d2017-02-17 14:29:11 +0100692 vnet/lisp-cp/one_api.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100693 vnet/lisp-cp/lisp_api.c
694
695nobase_include_HEADERS += \
696 vnet/lisp-cp/lisp_types.h \
697 vnet/lisp-cp/packets.h \
698 vnet/lisp-cp/gid_dictionary.h \
699 vnet/lisp-cp/lisp_cp_messages.h \
700 vnet/lisp-cp/lisp_msg_serdes.h \
701 vnet/lisp-cp/control.h \
Filip Tehlar694396d2017-02-17 14:29:11 +0100702 vnet/lisp-cp/one.api.h \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100703 vnet/lisp-cp/lisp.api.h
704
705API_FILES += vnet/lisp-cp/lisp.api
Filip Tehlar694396d2017-02-17 14:29:11 +0100706API_FILES += vnet/lisp-cp/one.api
Damjan Marion7cd468a2016-12-19 23:05:39 +0100707
708if ENABLE_TESTS
709LDS = \
710 libvppinfra.la \
711 libvnet.la \
712 libvlib.la \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100713 libsvm.la \
714 libsvmdb.la \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100715 libvlibmemory.la \
Damjan Marionc74a86a2017-01-16 14:00:03 +0100716 -lpthread -ldl -lrt -lm
Damjan Marion7cd468a2016-12-19 23:05:39 +0100717
718TESTS += test_cp_serdes test_lisp_types
719
720test_cp_serdes_SOURCES = \
721 tests/vnet/lisp-cp/test_cp_serdes.c \
722 vnet/lisp-cp/lisp_msg_serdes.c \
723 vnet/lisp-cp/lisp_types.c \
724 vnet/lisp-cp/packets.c \
725 vnet/ip/ip_checksum.c
726
727test_lisp_types_SOURCES = \
728 tests/vnet/lisp-cp/test_lisp_types.c \
729 vnet/lisp-cp/lisp_types.c
730
731test_cp_serdes_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG
732test_lisp_types_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG
733
Damjan Marionc74a86a2017-01-16 14:00:03 +0100734test_cp_serdes_LDADD = $(LDS)
735test_lisp_types_LDADD = $(LDS)
Damjan Marion7cd468a2016-12-19 23:05:39 +0100736endif
737
738########################################
739# Tunnel protocol: lisp-gpe
740########################################
741
742libvnet_la_SOURCES += \
743 vnet/lisp-gpe/lisp_gpe.c \
744 vnet/lisp-gpe/lisp_gpe_sub_interface.c \
745 vnet/lisp-gpe/lisp_gpe_adjacency.c \
746 vnet/lisp-gpe/lisp_gpe_tunnel.c \
747 vnet/lisp-gpe/lisp_gpe_fwd_entry.c \
748 vnet/lisp-gpe/lisp_gpe_tenant.c \
749 vnet/lisp-gpe/interface.c \
750 vnet/lisp-gpe/decap.c \
751 vnet/lisp-gpe/lisp_gpe_api.c
752
753nobase_include_HEADERS += \
754 vnet/lisp-gpe/lisp_gpe.h \
755 vnet/lisp-gpe/lisp_gpe_fwd_entry.h \
756 vnet/lisp-gpe/lisp_gpe_tenant.h \
757 vnet/lisp-gpe/lisp_gpe_packet.h \
758 vnet/lisp-gpe/lisp_gpe_error.def \
759 vnet/lisp-gpe/lisp_gpe.api.h
760
761API_FILES += vnet/lisp-gpe/lisp_gpe.api
762
Damjan Marion7cd468a2016-12-19 23:05:39 +0100763########################################
764# DHCP client
765########################################
766libvnet_la_SOURCES += \
767 vnet/dhcp/client.c \
Neale Ranns54c6dc42018-01-17 10:29:10 -0800768 vnet/dhcp/dhcp_client_detect.c \
Pavel Kotucekc8d87702017-01-25 07:25:32 +0100769 vnet/dhcp/dhcp_api.c
Damjan Marion7cd468a2016-12-19 23:05:39 +0100770
771nobase_include_HEADERS += \
Neale Ranns2dd68522017-02-16 03:38:59 -0800772 vnet/dhcp/client.h \
Pavel Kotucekc8d87702017-01-25 07:25:32 +0100773 vnet/dhcp/dhcp.api.h
774
775API_FILES += vnet/dhcp/dhcp.api
Damjan Marion7cd468a2016-12-19 23:05:39 +0100776
777########################################
778# DHCP proxy
779########################################
780libvnet_la_SOURCES += \
Neale Ranns2dd68522017-02-16 03:38:59 -0800781 vnet/dhcp/dhcp6_proxy_node.c \
782 vnet/dhcp/dhcp4_proxy_node.c \
783 vnet/dhcp/dhcp_proxy.c
Damjan Marion7cd468a2016-12-19 23:05:39 +0100784
785nobase_include_HEADERS += \
Neale Ranns2dd68522017-02-16 03:38:59 -0800786 vnet/dhcp/dhcp4_packet.h \
787 vnet/dhcp/dhcp6_packet.h \
788 vnet/dhcp/dhcp_proxy.h \
789 vnet/dhcp/dhcp6_proxy_error.def \
790 vnet/dhcp/dhcp4_proxy_error.def
Damjan Marion7cd468a2016-12-19 23:05:39 +0100791
792########################################
793# ipv6 segment routing
794########################################
795
Damjan Marion7cd468a2016-12-19 23:05:39 +0100796libvnet_la_SOURCES += \
Pablo Camarillo5d73eec2017-04-24 17:51:56 +0200797 vnet/srv6/sr.c \
798 vnet/srv6/sr_localsid.c \
799 vnet/srv6/sr_policy_rewrite.c \
800 vnet/srv6/sr_steering.c \
801 vnet/srv6/sr_api.c
Damjan Marion7cd468a2016-12-19 23:05:39 +0100802
803nobase_include_HEADERS += \
Pablo Camarillo5d73eec2017-04-24 17:51:56 +0200804 vnet/srv6/sr_packet.h \
805 vnet/srv6/sr.h \
806 vnet/srv6/sr.api.h
Pavel Kotucek0f971d82017-01-03 10:48:54 +0100807
Pablo Camarillo5d73eec2017-04-24 17:51:56 +0200808API_FILES += vnet/srv6/sr.api
809
810########################################
811# mpls segment routing
812########################################
813
814libvnet_la_SOURCES += \
815 vnet/srmpls/sr_mpls_policy.c \
Pablo Camarillo42998822017-07-13 09:41:32 +0200816 vnet/srmpls/sr_mpls_steering.c \
817 vnet/srmpls/sr_mpls_api.c
Pablo Camarillo5d73eec2017-04-24 17:51:56 +0200818
819
820nobase_include_HEADERS += \
Pablo Camarillo42998822017-07-13 09:41:32 +0200821 vnet/srmpls/sr_mpls.h \
822 vnet/srmpls/sr_mpls.api.h
823
824API_FILES += vnet/srmpls/sr_mpls.api
Damjan Marion7cd468a2016-12-19 23:05:39 +0100825
826########################################
Damjan Marion7cd468a2016-12-19 23:05:39 +0100827# IPFIX / netflow v10
828########################################
829libvnet_la_SOURCES += \
Pavel Kotucekeb9e6662017-01-24 13:40:26 +0100830 vnet/flow/flow_report.c \
831 vnet/flow/flow_api.c
Damjan Marion7cd468a2016-12-19 23:05:39 +0100832
833nobase_include_HEADERS += \
834 vnet/flow/flow_report.h \
835 vnet/flow/ipfix_info_elements.h \
Pavel Kotucekeb9e6662017-01-24 13:40:26 +0100836 vnet/flow/ipfix_packet.h \
837 vnet/flow/flow.api.h
838
839API_FILES += vnet/flow/flow.api
Damjan Marion7cd468a2016-12-19 23:05:39 +0100840
841########################################
842# IPFIX classify code
843########################################
844
845libvnet_la_SOURCES += \
846 vnet/flow/flow_report_classify.c
847
848nobase_include_HEADERS += \
849 vnet/flow/flow_report_classify.h
850
851########################################
852# lawful intercept
853########################################
854
855libvnet_la_SOURCES += \
856 vnet/lawful-intercept/lawful_intercept.c \
857 vnet/lawful-intercept/node.c
858
859nobase_include_HEADERS += \
860 vnet/lawful-intercept/lawful_intercept.h
861
862########################################
863# SPAN (port mirroring)
864########################################
865
866libvnet_la_SOURCES += \
867 vnet/span/span_api.c \
868 vnet/span/span.c \
869 vnet/span/node.c
870
871nobase_include_HEADERS += \
872 vnet/span/span.api.h \
873 vnet/span/span.h
874
875API_FILES += vnet/span/span.api
876
877########################################
Dave Barach65457162017-10-10 17:53:14 -0400878# DNS proxy, API
879########################################
880libvnet_la_SOURCES += \
881 vnet/dns/dns.c \
882 vnet/dns/dns.h \
883 vnet/dns/dns_packet.h \
884 vnet/dns/reply_node.c \
Dave Barach97494502017-11-04 09:44:38 -0400885 vnet/dns/request_node.c \
Dave Barach65457162017-10-10 17:53:14 -0400886 vnet/dns/resolver_process.c
887
888nobase_include_HEADERS += \
889 vnet/dns/dns.api.h \
890 vnet/dns/dns.h
891
892API_FILES += vnet/dns/dns.api
893
894########################################
Damjan Marion7cd468a2016-12-19 23:05:39 +0100895# Packet generator
896########################################
897
898libvnet_la_SOURCES += \
899 vnet/pg/cli.c \
900 vnet/pg/edit.c \
901 vnet/pg/init.c \
902 vnet/pg/input.c \
903 vnet/pg/output.c \
Neale Rannsb8d44812017-11-10 06:53:54 -0800904 vnet/pg/stream.c \
905 vnet/pg/pg_api.c
Damjan Marion7cd468a2016-12-19 23:05:39 +0100906
907nobase_include_HEADERS += \
908 vnet/pg/pg.h \
Neale Rannsb8d44812017-11-10 06:53:54 -0800909 vnet/pg/edit.h \
910 vnet/pg/pg.api.h
911
912API_FILES += vnet/pg/pg.api
Damjan Marion7cd468a2016-12-19 23:05:39 +0100913
Damjan Marion7cd468a2016-12-19 23:05:39 +0100914########################################
915# virtio
916########################################
917
Damjan Marionc99b4cd2017-12-04 15:25:58 +0100918libvnet_la_SOURCES += \
919 vnet/devices/virtio/device.c \
920 vnet/devices/virtio/node.c \
921 vnet/devices/virtio/vhost-user.c \
922 vnet/devices/virtio/vhost_user_api.c \
Damjan Marion8389fb92017-10-13 18:29:53 +0200923 vnet/devices/virtio/virtio.c
924
Damjan Marion7cd468a2016-12-19 23:05:39 +0100925
Damjan Marionc99b4cd2017-12-04 15:25:58 +0100926nobase_include_HEADERS += \
927 vnet/devices/virtio/virtio.h \
928 vnet/devices/virtio/vhost-user.h \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100929 vnet/devices/virtio/vhost_user.api.h
930
931API_FILES += vnet/devices/virtio/vhost_user.api
932
933########################################
Damjan Marionc99b4cd2017-12-04 15:25:58 +0100934# tap interface (with virtio backend)
935########################################
936
937libvnet_la_SOURCES += \
938 vnet/devices/tap/cli.c \
939 vnet/devices/tap/tap.c \
940 vnet/devices/tap/tapv2_api.c
941
942nobase_include_HEADERS += \
943 vnet/devices/tap/tap.h \
944 vnet/devices/tap/tapv2.api.h
945
946API_FILES += vnet/devices/tap/tapv2.api
947
948########################################
Dave Barach68b0fb02017-02-28 15:15:56 -0500949# session managmeent
950########################################
951
952libvnet_la_SOURCES += \
953 vnet/session/session.c \
Florin Corascea194d2017-10-02 00:18:51 -0700954 vnet/session/session_table.c \
Florin Coras1c710452017-10-17 00:03:13 -0700955 vnet/session/session_rules_table.c \
Florin Coras04e53442017-07-16 17:12:15 -0700956 vnet/session/session_lookup.c \
957 vnet/session/session_node.c \
Florin Coras3cbc04b2017-10-02 00:18:51 -0700958 vnet/session/transport.c \
Dave Barach68b0fb02017-02-28 15:15:56 -0500959 vnet/session/application.c \
960 vnet/session/session_cli.c \
Dave Barach68b0fb02017-02-28 15:15:56 -0500961 vnet/session/application_interface.c \
Florin Corascea194d2017-10-02 00:18:51 -0700962 vnet/session/application_namespace.c \
Florin Coras6cf30ad2017-04-04 23:08:23 -0700963 vnet/session/segment_manager.c \
Florin Corascea194d2017-10-02 00:18:51 -0700964 vnet/session/session_test.c \
Dave Barach68b0fb02017-02-28 15:15:56 -0500965 vnet/session/session_api.c
966
967nobase_include_HEADERS += \
968 vnet/session/session.h \
Florin Corascea194d2017-10-02 00:18:51 -0700969 vnet/session/session_table.h \
Florin Coras1c710452017-10-17 00:03:13 -0700970 vnet/session/session_rules_table.h \
Florin Coras04e53442017-07-16 17:12:15 -0700971 vnet/session/stream_session.h \
972 vnet/session/session_lookup.h \
Dave Barach68b0fb02017-02-28 15:15:56 -0500973 vnet/session/application.h \
974 vnet/session/transport.h \
Florin Coras04e53442017-07-16 17:12:15 -0700975 vnet/session/transport_interface.h \
Alexander Popovsky (apopovsk)6f6f52a2017-03-03 16:06:26 -0800976 vnet/session/application_interface.h \
Florin Corascea194d2017-10-02 00:18:51 -0700977 vnet/session/application_namespace.h \
Florin Corase69f4952017-03-07 10:06:24 -0800978 vnet/session/session_debug.h \
Florin Coras6cf30ad2017-04-04 23:08:23 -0700979 vnet/session/segment_manager.h \
Florin Coras1c710452017-10-17 00:03:13 -0700980 vnet/session/mma_template.h \
981 vnet/session/mma_template.c \
982 vnet/session/mma_16.h \
983 vnet/session/mma_40.h \
Alexander Popovsky (apopovsk)6f6f52a2017-03-03 16:06:26 -0800984 vnet/session/session.api.h
Dave Barach68b0fb02017-02-28 15:15:56 -0500985
986API_FILES += vnet/session/session.api
987
988########################################
Florin Coras4399c2e2018-01-25 06:34:42 -0800989# session layer applications
990########################################
991
992libvnet_la_SOURCES += \
993 vnet/session-apps/echo_client.c \
994 vnet/session-apps/echo_server.c \
995 vnet/session-apps/http_server.c \
996 vnet/session-apps/proxy.c
997
998nobase_include_HEADERS += \
999 vnet/session-apps/echo_client.h \
1000 vnet/session-apps/proxy.h
1001
1002########################################
Florin Corasd77eee62018-03-07 08:49:27 -08001003# TLS protocol
1004########################################
1005
1006libvnet_la_SOURCES += vnet/tls/tls.c
1007
1008nobase_include_HEADERS += \
1009 vnet/tls/tls.h
1010
1011########################################
Damjan Marion7cd468a2016-12-19 23:05:39 +01001012# Linux packet interface
1013########################################
1014
1015libvnet_la_SOURCES += \
1016 vnet/devices/af_packet/af_packet.c \
1017 vnet/devices/af_packet/device.c \
1018 vnet/devices/af_packet/node.c \
1019 vnet/devices/af_packet/cli.c \
1020 vnet/devices/af_packet/af_packet_api.c
1021
1022nobase_include_HEADERS += \
1023 vnet/devices/af_packet/af_packet.h \
1024 vnet/devices/af_packet/af_packet.api.h
1025
1026API_FILES += vnet/devices/af_packet/af_packet.api
1027
1028########################################
1029# NETMAP interface
1030########################################
1031
1032libvnet_la_SOURCES += \
1033 vnet/devices/netmap/netmap.c \
1034 vnet/devices/netmap/device.c \
1035 vnet/devices/netmap/node.c \
1036 vnet/devices/netmap/cli.c \
1037 vnet/devices/netmap/netmap_api.c
1038
1039nobase_include_HEADERS += \
1040 vnet/devices/netmap/netmap.h \
1041 vnet/devices/netmap/netmap.api.h
1042
1043API_FILES += vnet/devices/netmap/netmap.api
1044
1045########################################
1046# Driver feature graph arc support
1047########################################
1048
1049libvnet_la_SOURCES += \
1050 vnet/feature/feature.c \
Neale Rannsb8d44812017-11-10 06:53:54 -08001051 vnet/feature/feature_api.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +01001052 vnet/feature/registration.c
1053
1054nobase_include_HEADERS += \
Neale Rannsb8d44812017-11-10 06:53:54 -08001055 vnet/feature/feature.h \
1056 vnet/feature/feature.api.h
1057
1058API_FILES += vnet/feature/feature.api
Damjan Marion7cd468a2016-12-19 23:05:39 +01001059
1060########################################
1061# Unix kernel related
1062########################################
1063
1064# FIXME: vnet/unix/hgshm.c
1065
1066libvnet_la_SOURCES += \
1067 vnet/unix/gdb_funcs.c \
1068 vnet/unix/pcap.c \
1069 vnet/unix/tap_api.c \
1070 vnet/unix/tapcli.c \
1071 vnet/unix/tuntap.c
1072
1073nobase_include_HEADERS += \
1074 vnet/unix/pcap.h \
1075 vnet/unix/tuntap.h \
1076 vnet/unix/tap.api.h \
1077 vnet/unix/tapcli.h
1078
1079API_FILES += vnet/unix/tap.api
1080
1081########################################
1082# FIB
1083########################################
1084
1085libvnet_la_SOURCES += \
1086 vnet/fib/fib.c \
1087 vnet/fib/fib_test.c \
1088 vnet/fib/ip4_fib.c \
1089 vnet/fib/ip6_fib.c \
1090 vnet/fib/mpls_fib.c \
1091 vnet/fib/fib_table.c \
1092 vnet/fib/fib_walk.c \
1093 vnet/fib/fib_types.c \
1094 vnet/fib/fib_node.c \
1095 vnet/fib/fib_node_list.c \
1096 vnet/fib/fib_entry.c \
1097 vnet/fib/fib_entry_src.c \
1098 vnet/fib/fib_entry_src_rr.c \
1099 vnet/fib/fib_entry_src_interface.c \
Neale Ranns2303cb12018-02-21 04:57:17 -08001100 vnet/fib/fib_entry_src_interpose.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +01001101 vnet/fib/fib_entry_src_default_route.c \
1102 vnet/fib/fib_entry_src_special.c \
1103 vnet/fib/fib_entry_src_api.c \
1104 vnet/fib/fib_entry_src_adj.c \
1105 vnet/fib/fib_entry_src_mpls.c \
1106 vnet/fib/fib_entry_src_lisp.c \
1107 vnet/fib/fib_entry_cover.c \
1108 vnet/fib/fib_entry_delegate.c \
1109 vnet/fib/fib_path_list.c \
1110 vnet/fib/fib_path.c \
1111 vnet/fib/fib_path_ext.c \
1112 vnet/fib/fib_urpf_list.c \
Neale Ranns88fc83e2017-04-05 08:11:14 -07001113 vnet/fib/fib_attached_export.c \
Neale Ranns81458422018-03-12 06:59:36 -07001114 vnet/fib/fib_api.c \
Neale Ranns88fc83e2017-04-05 08:11:14 -07001115 vnet/fib/fib_bfd.c
Damjan Marion7cd468a2016-12-19 23:05:39 +01001116
1117nobase_include_HEADERS += \
1118 vnet/fib/fib.h \
1119 vnet/fib/fib_api.h \
1120 vnet/fib/ip4_fib.h \
1121 vnet/fib/ip6_fib.h \
1122 vnet/fib/fib_types.h \
1123 vnet/fib/fib_table.h \
1124 vnet/fib/fib_node.h \
1125 vnet/fib/fib_node_list.h \
1126 vnet/fib/fib_entry.h \
1127 vnet/fib/fib_entry_delegate.h
1128
1129########################################
1130# ADJ
1131########################################
1132
1133libvnet_la_SOURCES += \
1134 vnet/adj/adj_nbr.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +01001135 vnet/adj/adj_glean.c \
1136 vnet/adj/adj_midchain.c \
Neale Ranns32e1c012016-11-22 17:07:28 +00001137 vnet/adj/adj_mcast.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +01001138 vnet/adj/adj_l2.c \
Florin Corasce1b4c72017-01-26 14:25:34 -08001139 vnet/adj/adj_nsh.c \
Neale Rannsfa5d1982017-02-20 14:19:51 -08001140 vnet/adj/adj.c \
Neale Ranns88fc83e2017-04-05 08:11:14 -07001141 vnet/adj/rewrite.c \
1142 vnet/adj/adj_bfd.c \
1143 vnet/adj/adj_delegate.c
Damjan Marion7cd468a2016-12-19 23:05:39 +01001144
1145nobase_include_HEADERS += \
1146 vnet/adj/adj.h \
1147 vnet/adj/adj_types.h \
Damjan Marion7cd468a2016-12-19 23:05:39 +01001148 vnet/adj/adj_glean.h \
Florin Corasce1b4c72017-01-26 14:25:34 -08001149 vnet/adj/adj_nsh.h \
Neale Rannsfa5d1982017-02-20 14:19:51 -08001150 vnet/adj/adj_nbr.h \
1151 vnet/adj/rewrite.h
Damjan Marion7cd468a2016-12-19 23:05:39 +01001152
1153########################################
1154# Data-Plane Objects
1155########################################
1156
1157libvnet_la_SOURCES += \
1158 vnet/dpo/dpo.c \
1159 vnet/dpo/drop_dpo.c \
1160 vnet/dpo/ip_null_dpo.c \
Neale Ranns53da2212018-02-24 02:11:19 -08001161 vnet/dpo/ip6_ll_dpo.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +01001162 vnet/dpo/punt_dpo.c \
1163 vnet/dpo/receive_dpo.c \
1164 vnet/dpo/load_balance.c \
1165 vnet/dpo/load_balance_map.c \
Neale Ranns32e1c012016-11-22 17:07:28 +00001166 vnet/dpo/lookup_dpo.c \
1167 vnet/dpo/classify_dpo.c \
1168 vnet/dpo/replicate_dpo.c \
Neale Ranns43161a82017-08-12 02:12:00 -07001169 vnet/dpo/interface_rx_dpo.c \
1170 vnet/dpo/interface_tx_dpo.c \
Neale Ranns0f26c5a2017-03-01 15:12:11 -08001171 vnet/dpo/mpls_disposition.c \
Neale Ranns6f631152017-10-03 08:20:21 -07001172 vnet/dpo/mpls_label_dpo.c \
Andrew Yourtchenko5f3fcb92017-10-25 05:50:37 -07001173 vnet/dpo/l3_proxy_dpo.c \
Neale Rannsf068c3e2018-01-03 04:18:48 -08001174 vnet/dpo/dvr_dpo.c
Damjan Marion7cd468a2016-12-19 23:05:39 +01001175
1176nobase_include_HEADERS += \
1177 vnet/dpo/load_balance.h \
1178 vnet/dpo/drop_dpo.h \
1179 vnet/dpo/lookup_dpo.h \
1180 vnet/dpo/punt_dpo.h \
1181 vnet/dpo/classify_dpo.h \
1182 vnet/dpo/receive_dpo.h \
1183 vnet/dpo/ip_null_dpo.h \
Neale Ranns60c1c7c2017-11-02 07:39:24 -07001184 vnet/dpo/replicate_dpo.h \
Damjan Marion7cd468a2016-12-19 23:05:39 +01001185 vnet/dpo/dpo.h
1186
1187########################################
Neale Ranns32e1c012016-11-22 17:07:28 +00001188# Multicast FIB
1189########################################
1190
1191libvnet_la_SOURCES += \
1192 vnet/mfib/mfib_test.c \
1193 vnet/mfib/mfib_forward.c \
1194 vnet/mfib/ip4_mfib.c \
1195 vnet/mfib/ip6_mfib.c \
1196 vnet/mfib/mfib_types.c \
1197 vnet/mfib/mfib_signal.c \
1198 vnet/mfib/mfib_itf.c \
1199 vnet/mfib/mfib_entry.c \
1200 vnet/mfib/mfib_table.c
1201
1202nobase_include_HEADERS += \
1203 vnet/mfib/ip4_mfib.h \
1204 vnet/mfib/mfib_types.h \
1205 vnet/mfib/mfib_table.h
1206
1207########################################
1208# Utilities
1209########################################
1210
1211libvnet_la_SOURCES += \
Hongjun Nibf4be572017-11-13 20:34:06 +08001212 vnet/util/radix.c \
1213 vnet/util/refcount.c \
Dave Barach7bee7732017-10-18 18:48:11 -04001214 vnet/util/trajectory.c
Neale Ranns32e1c012016-11-22 17:07:28 +00001215
1216########################################
Neale Ranns039cbfe2018-02-27 03:45:38 -08001217# QoS
1218########################################
1219
1220libvnet_la_SOURCES += \
1221 vnet/qos/qos_types.c \
1222 vnet/qos/qos_api.c \
1223 vnet/qos/qos_egress_map.c \
1224 vnet/qos/qos_record.c \
1225 vnet/qos/qos_mark.c
1226
1227API_FILES += vnet/qos/qos.api
1228
Matus Fabian489cc822018-03-19 03:58:41 -07001229nobase_include_HEADERS += \
1230 vnet/qos/qos.api.h
1231
Neale Ranns039cbfe2018-02-27 03:45:38 -08001232########################################
Neale Rannsd792d9c2017-10-21 10:53:20 -07001233# BIER
1234########################################
1235
1236libvnet_la_SOURCES += \
1237 vnet/bier/bier_bit_string.c \
1238 vnet/bier/bier_entry.c \
1239 vnet/bier/bier_fmask.c \
1240 vnet/bier/bier_fmask_db.c \
1241 vnet/bier/bier_input.c \
1242 vnet/bier/bier_lookup.c \
1243 vnet/bier/bier_output.c \
1244 vnet/bier/bier_table.c \
1245 vnet/bier/bier_types.c \
1246 vnet/bier/bier_test.c \
1247 vnet/bier/bier_api.c \
1248 vnet/bier/bier_drop.c \
1249 vnet/bier/bier_update.c \
1250 vnet/bier/bier_imp_node.c \
1251 vnet/bier/bier_imp.c \
1252 vnet/bier/bier_disp_entry.c \
1253 vnet/bier/bier_disp_lookup_node.c \
1254 vnet/bier/bier_disp_dispatch_node.c \
Neale Ranns91286372017-12-05 13:24:04 -08001255 vnet/bier/bier_disp_table.c \
1256 vnet/bier/bier_bift_table.c
Neale Rannsd792d9c2017-10-21 10:53:20 -07001257
1258nobase_include_HEADERS += \
1259 vnet/bier/bier_types.h \
1260 vnet/bier/bier_entry.h \
1261 vnet/bier/bier_update.h \
1262 vnet/bier/bier.api.h \
1263 vnet/bier/bier_table.h
1264
1265API_FILES += vnet/bier/bier.api
1266
1267########################################
Florin Coras891f0a12017-12-11 11:49:26 -08001268# Test apps
1269########################################
1270
1271noinst_PROGRAMS += tcp_echo udp_echo
1272
1273TEST_APPS_LDADD = libvlibmemoryclient.la libsvm.la libvppinfra.la
1274TEST_APPS_LDADD += -lpthread -lm -lrt
1275
1276tcp_echo_SOURCES = tests/vnet/session/tcp_echo.c
1277tcp_echo_LDADD = $(TEST_APPS_LDADD)
1278
1279udp_echo_SOURCES = tests/vnet/session/udp_echo.c
1280udp_echo_LDADD = $(TEST_APPS_LDADD)
1281
1282########################################
Damjan Marion7cd468a2016-12-19 23:05:39 +01001283# Plugin client library
1284########################################
1285
Damjan Marion7cd468a2016-12-19 23:05:39 +01001286nobase_include_HEADERS += \
1287 vnet/plugin/plugin.h
1288
Damjan Marion7cd468a2016-12-19 23:05:39 +01001289pcap2pg_SOURCES = \
1290 vnet/unix/pcap2pg.c \
1291 vnet/unix/pcap.h
1292
1293pcap2pg_LDFLAGS = -static
1294pcap2pg_LDADD = libvnet.la libvppinfra.la -lpthread libvlibmemory.la -lm -ldl
1295
Dave Baracha0cc5ab2018-02-23 12:09:41 -05001296pcap2cinit_SOURCES = \
1297 vnet/unix/pcap2cinit.c \
1298 vnet/unix/pcap.h
1299
1300pcap2cinit_LDFLAGS = -static
1301pcap2cinit_LDADD = libvnet.la libvppinfra.la -lpthread libvlibmemory.la -lm -ldl
1302
1303noinst_PROGRAMS += pcap2pg pcap2cinit
Damjan Marion7cd468a2016-12-19 23:05:39 +01001304
1305# vi:syntax=automake