blob: 3a1e10d7d8b8818230f323d7ace4a03b099ec2ef [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 Mariona35cc142018-03-16 01:25:27 +010038 vnet/flow/flow.c \
39 vnet/flow/flow_cli.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +010040 vnet/handoff.c \
41 vnet/interface.c \
42 vnet/interface_api.c \
43 vnet/interface_cli.c \
44 vnet/interface_format.c \
45 vnet/interface_output.c \
Neale Ranns871dc422018-03-29 01:28:09 -070046 vnet/interface_stats.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +010047 vnet/misc.c \
Neale Rannsfa5d1982017-02-20 14:19:51 -080048 vnet/replication.c
Damjan Marion7cd468a2016-12-19 23:05:39 +010049
50nobase_include_HEADERS += \
51 vnet/api_errno.h \
52 vnet/buffer.h \
53 vnet/config.h \
54 vnet/devices/devices.h \
Damjan Marion17fdae72017-11-30 20:56:37 +010055 vnet/devices/netlink.h \
Damjan Mariona35cc142018-03-16 01:25:27 +010056 vnet/flow/flow.h \
Damjan Marion7cd468a2016-12-19 23:05:39 +010057 vnet/global_funcs.h \
58 vnet/handoff.h \
59 vnet/interface.h \
60 vnet/interface.api.h \
61 vnet/interface_funcs.h \
Matus Fabiana774b532017-05-02 03:15:22 -070062 vnet/ip/ip4_to_ip6.h \
63 vnet/ip/ip6_to_ip4.h \
Damjan Marion7cd468a2016-12-19 23:05:39 +010064 vnet/l3_types.h \
65 vnet/pipeline.h \
66 vnet/replication.h \
Damjan Marion7cd468a2016-12-19 23:05:39 +010067 vnet/vnet.h \
68 vnet/vnet_all_api_h.h \
Gabriel Ganne5842c782017-01-30 13:44:04 +010069 vnet/vnet_msg_enum.h \
Hongjun Nibf4be572017-11-13 20:34:06 +080070 vnet/util/radix.h \
71 vnet/util/refcount.h
Damjan Marion7cd468a2016-12-19 23:05:39 +010072
73API_FILES += vnet/interface.api
74
75########################################
76# Policer infra
77########################################
78
79libvnet_la_SOURCES += \
80 vnet/policer/node_funcs.c \
81 vnet/policer/policer.c \
Pavel Kotucekd9aad292017-01-25 08:45:38 +010082 vnet/policer/xlate.c \
83 vnet/policer/policer_api.c
Damjan Marion7cd468a2016-12-19 23:05:39 +010084
85nobase_include_HEADERS += \
86 vnet/policer/police.h \
87 vnet/policer/policer.h \
Pavel Kotucekd9aad292017-01-25 08:45:38 +010088 vnet/policer/xlate.h \
89 vnet/policer/policer.api.h
90
91API_FILES += vnet/policer/policer.api
Damjan Marion7cd468a2016-12-19 23:05:39 +010092
93########################################
94# Cop - junk filter
95########################################
96
97libvnet_la_SOURCES += \
98 vnet/cop/cop.c \
99 vnet/cop/node1.c \
100 vnet/cop/ip4_whitelist.c \
Pavel Kotucek884cf262017-01-25 08:27:15 +0100101 vnet/cop/ip6_whitelist.c \
102 vnet/cop/cop_api.c
Damjan Marion7cd468a2016-12-19 23:05:39 +0100103
104nobase_include_HEADERS += \
Pavel Kotucek884cf262017-01-25 08:27:15 +0100105 vnet/cop/cop.h \
106 vnet/cop/cop.api.h
107
108API_FILES += vnet/cop/cop.api
Damjan Marion7cd468a2016-12-19 23:05:39 +0100109
110########################################
111# Layer 2 protocols go here
112########################################
113
114########################################
115# Layer 2 protocol: Ethernet
116########################################
117libvnet_la_SOURCES += \
118 vnet/ethernet/arp.c \
119 vnet/ethernet/format.c \
120 vnet/ethernet/init.c \
121 vnet/ethernet/interface.c \
122 vnet/ethernet/node.c \
Damjan Marion374e2c52017-03-09 20:38:15 +0100123 vnet/ethernet/pg.c \
Pavel Kotucek6899a302017-06-08 08:46:10 +0200124 vnet/ethernet/sfp.c \
125 vnet/ethernet/p2p_ethernet.c \
Pavel Kotucek15ac81c2017-06-20 14:00:26 +0200126 vnet/ethernet/p2p_ethernet_input.c \
Pavel Kotucek6899a302017-06-08 08:46:10 +0200127 vnet/ethernet/p2p_ethernet_api.c
Damjan Marion7cd468a2016-12-19 23:05:39 +0100128
129nobase_include_HEADERS += \
130 vnet/ethernet/arp_packet.h \
131 vnet/ethernet/error.def \
132 vnet/ethernet/ethernet.h \
133 vnet/ethernet/packet.h \
Damjan Marion374e2c52017-03-09 20:38:15 +0100134 vnet/ethernet/types.def \
Pavel Kotucek6899a302017-06-08 08:46:10 +0200135 vnet/ethernet/sfp.h \
136 vnet/ethernet/p2p_ethernet.api.h \
137 vnet/ethernet/p2p_ethernet.h
138
139API_FILES += vnet/ethernet/p2p_ethernet.api
Damjan Marion7cd468a2016-12-19 23:05:39 +0100140
141########################################
142# Layer 2 protocol: Ethernet bridging
143########################################
144libvnet_la_SOURCES += \
145 vnet/l2/feat_bitmap.c \
146 vnet/l2/l2_api.c \
147 vnet/l2/l2_bd.c \
148 vnet/l2/l2_bvi.c \
149 vnet/l2/l2_input_classify.c \
150 vnet/l2/l2_output_classify.c \
151 vnet/l2/l2_efp_filter.c \
152 vnet/l2/l2_fib.c \
153 vnet/l2/l2_flood.c \
154 vnet/l2/l2_fwd.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100155 vnet/l2/l2_input.c \
156 vnet/l2/l2_input_vtr.c \
157 vnet/l2/l2_learn.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100158 vnet/l2/l2_output.c \
Andrew Yourtchenko815d7d52018-02-07 11:37:02 +0100159 vnet/l2/l2_in_out_acl.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100160 vnet/l2/l2_patch.c \
161 vnet/l2/l2_rw.c \
162 vnet/l2/l2_vtr.c \
163 vnet/l2/l2_xcrw.c
164
165nobase_include_HEADERS += \
166 vnet/l2/feat_bitmap.h \
167 vnet/l2/l2_input.h \
168 vnet/l2/l2_output.h \
169 vnet/l2/l2_vtr.h \
170 vnet/l2/l2_input_vtr.h \
171 vnet/l2/l2_efp_filter.h \
172 vnet/l2/l2_fwd.h \
173 vnet/l2/l2_bd.h \
174 vnet/l2/l2_bvi.h \
175 vnet/l2/l2_flood.h \
176 vnet/l2/l2_fib.h \
177 vnet/l2/l2_rw.h \
178 vnet/l2/l2_xcrw.h \
179 vnet/l2/l2_classify.h \
180 vnet/l2/l2.api.h
181
182API_FILES += vnet/l2/l2.api
183
184########################################
185# Layer 2 protocol: SRP
186########################################
187libvnet_la_SOURCES += \
188 vnet/srp/format.c \
189 vnet/srp/interface.c \
190 vnet/srp/node.c \
191 vnet/srp/pg.c
192
193nobase_include_HEADERS += \
194 vnet/srp/packet.h \
195 vnet/srp/srp.h
196
197########################################
198# Layer 2 protocol: PPP
199########################################
200libvnet_la_SOURCES += \
201 vnet/ppp/node.c \
202 vnet/ppp/pg.c \
203 vnet/ppp/ppp.c
204
205nobase_include_HEADERS += \
206 vnet/ppp/error.def \
207 vnet/ppp/ppp.h \
208 vnet/ppp/packet.h
209
210########################################
211# Layer 2 protocol: HDLC
212########################################
213libvnet_la_SOURCES += \
214 vnet/hdlc/node.c \
215 vnet/hdlc/pg.c \
216 vnet/hdlc/hdlc.c
217
218nobase_include_HEADERS += \
219 vnet/hdlc/error.def \
220 vnet/hdlc/hdlc.h \
221 vnet/hdlc/packet.h
222
223########################################
224# Layer 2 protocol: LLC
225########################################
226libvnet_la_SOURCES += \
227 vnet/llc/llc.c \
228 vnet/llc/node.c \
229 vnet/llc/pg.c
230
231nobase_include_HEADERS += \
232 vnet/llc/llc.h
233
234########################################
235# Layer 2 protocol: SNAP
236########################################
237libvnet_la_SOURCES += \
238 vnet/snap/snap.c \
239 vnet/snap/node.c \
240 vnet/snap/pg.c
241
242nobase_include_HEADERS += \
243 vnet/snap/snap.h
244
245########################################
246# Layer 2 / vxlan
247########################################
248libvnet_la_SOURCES += \
249 vnet/vxlan/vxlan.c \
250 vnet/vxlan/encap.c \
251 vnet/vxlan/decap.c \
252 vnet/vxlan/vxlan_api.c
253
254nobase_include_HEADERS += \
255 vnet/vxlan/vxlan.h \
256 vnet/vxlan/vxlan_packet.h \
257 vnet/vxlan/vxlan_error.def \
258 vnet/vxlan/vxlan.api.h
259
260API_FILES += vnet/vxlan/vxlan.api
261
262########################################
Marco Varleseb598f1d2017-09-19 14:25:28 +0200263# Layer 2 / Geneve
264########################################
265libvnet_la_SOURCES += \
266 vnet/geneve/geneve.c \
267 vnet/geneve/encap.c \
268 vnet/geneve/decap.c \
269 vnet/geneve/geneve_api.c
270
271nobase_include_HEADERS += \
272 vnet/geneve/geneve.h \
273 vnet/geneve/geneve_packet.h \
274 vnet/geneve/geneve_error.def \
275 vnet/geneve/geneve.api.h
276
277API_FILES += vnet/geneve/geneve.api
278
279########################################
Steven9cd2d7a2017-12-20 12:43:01 -0800280# Layer 2 / Bonding
281########################################
282libvnet_la_SOURCES += \
283 vnet/bonding/cli.c \
284 vnet/bonding/node.c \
285 vnet/bonding/device.c \
286 vnet/bonding/bond_api.c
287
288nobase_include_HEADERS += \
289 vnet/bonding/node.h \
290 vnet/bonding/bond.api.h
291
292API_FILES += vnet/bonding/bond.api
293
294########################################
Damjan Marion7cd468a2016-12-19 23:05:39 +0100295# Layer 2 / LLDP
296########################################
297libvnet_la_SOURCES += \
298 vnet/lldp/lldp_input.c \
299 vnet/lldp/lldp_node.c \
300 vnet/lldp/lldp_output.c \
Steve Shin99a0e602017-07-01 04:16:20 +0000301 vnet/lldp/lldp_cli.c \
302 vnet/lldp/lldp_api.c
Damjan Marion7cd468a2016-12-19 23:05:39 +0100303
304nobase_include_HEADERS += \
Steve Shin99a0e602017-07-01 04:16:20 +0000305 vnet/lldp/lldp_protocol.h \
306 vnet/lldp/lldp.h \
307 vnet/lldp/lldp.api.h
308
309API_FILES += vnet/lldp/lldp.api
Damjan Marion7cd468a2016-12-19 23:05:39 +0100310
311########################################
312# Layer 2/3 "classify"
313########################################
314libvnet_la_SOURCES += \
315 vnet/classify/vnet_classify.c \
316 vnet/classify/ip_classify.c \
Andrew Yourtchenko815d7d52018-02-07 11:37:02 +0100317 vnet/classify/in_out_acl.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100318 vnet/classify/policer_classify.c \
319 vnet/classify/flow_classify.c \
320 vnet/classify/flow_classify_node.c \
Pavel Kotucekd2c97d92017-01-24 10:58:12 +0100321 vnet/classify/vnet_classify.h \
322 vnet/classify/classify_api.c
Damjan Marion7cd468a2016-12-19 23:05:39 +0100323
324nobase_include_HEADERS += \
325 vnet/classify/vnet_classify.h \
Andrew Yourtchenko815d7d52018-02-07 11:37:02 +0100326 vnet/classify/in_out_acl.h \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100327 vnet/classify/policer_classify.h \
Pavel Kotucekd2c97d92017-01-24 10:58:12 +0100328 vnet/classify/flow_classify.h \
329 vnet/classify/classify.api.h
330
331API_FILES += vnet/classify/classify.api
Damjan Marion7cd468a2016-12-19 23:05:39 +0100332
333########################################
334# Layer 3 protocols go here
335########################################
336
337########################################
338# Layer 3 protocol: IP v4/v6
339########################################
340libvnet_la_SOURCES += \
341 vnet/ip/format.c \
342 vnet/ip/icmp4.c \
343 vnet/ip/icmp6.c \
344 vnet/ip/ip46_cli.c \
345 vnet/ip/ip4_format.c \
346 vnet/ip/ip4_forward.c \
Neale Rannsd91c1db2017-07-31 02:30:50 -0700347 vnet/ip/ip4_punt_drop.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100348 vnet/ip/ip4_input.c \
349 vnet/ip/ip4_mtrie.c \
350 vnet/ip/ip4_pg.c \
351 vnet/ip/ip4_source_and_port_range_check.c \
352 vnet/ip/ip4_source_check.c \
Klement Sekera75e7d132017-09-20 08:26:30 +0200353 vnet/ip/ip4_reassembly.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100354 vnet/ip/ip6_format.c \
355 vnet/ip/ip6_forward.c \
Neale Ranns53da2212018-02-24 02:11:19 -0800356 vnet/ip/ip6_ll_table.c \
357 vnet/ip/ip6_ll_types.c \
Neale Rannsd91c1db2017-07-31 02:30:50 -0700358 vnet/ip/ip6_punt_drop.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100359 vnet/ip/ip6_hop_by_hop.c \
360 vnet/ip/ip6_input.c \
361 vnet/ip/ip6_neighbor.c \
362 vnet/ip/ip6_pg.c \
Klement Sekera75e7d132017-09-20 08:26:30 +0200363 vnet/ip/ip6_reassembly.c \
Juraj Slobodac0374232018-02-01 15:18:49 +0100364 vnet/ip/rd_cp.c \
John Lo7f358b32018-04-28 01:19:24 -0400365 vnet/ip/ip_neighbor.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100366 vnet/ip/ip_api.c \
367 vnet/ip/ip_checksum.c \
368 vnet/ip/ip_frag.c \
Florin Corascea194d2017-10-02 00:18:51 -0700369 vnet/ip/ip.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100370 vnet/ip/ip_init.c \
Neale Ranns039cbfe2018-02-27 03:45:38 -0800371 vnet/ip/ip_in_out_acl.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100372 vnet/ip/lookup.c \
373 vnet/ip/ping.c \
Neale Rannsb8d44812017-11-10 06:53:54 -0800374 vnet/ip/punt_api.c \
Dave Barach68b0fb02017-02-28 15:15:56 -0500375 vnet/ip/punt.c
Damjan Marion7cd468a2016-12-19 23:05:39 +0100376
377nobase_include_HEADERS += \
378 vnet/ip/format.h \
379 vnet/ip/icmp46_packet.h \
380 vnet/ip/icmp4.h \
381 vnet/ip/icmp6.h \
382 vnet/ip/igmp_packet.h \
383 vnet/ip/ip.api.h \
Juraj Slobodac0374232018-02-01 15:18:49 +0100384 vnet/ip/rd_cp.api.h \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100385 vnet/ip/ip4_error.h \
386 vnet/ip/ip4.h \
387 vnet/ip/ip4_mtrie.h \
388 vnet/ip/ip4_packet.h \
389 vnet/ip/ip6_error.h \
390 vnet/ip/ip6.h \
391 vnet/ip/ip6_hop_by_hop.h \
392 vnet/ip/ip6_hop_by_hop_packet.h \
393 vnet/ip/ip6_packet.h \
394 vnet/ip/ip6_neighbor.h \
395 vnet/ip/ip.h \
396 vnet/ip/ip_packet.h \
397 vnet/ip/ip_source_and_port_range_check.h \
John Lo7f358b32018-04-28 01:19:24 -0400398 vnet/ip/ip_neighbor.h \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100399 vnet/ip/lookup.h \
400 vnet/ip/ports.def \
401 vnet/ip/protocols.def \
402 vnet/ip/punt_error.def \
Neale Rannsb8d44812017-11-10 06:53:54 -0800403 vnet/ip/punt.api.h \
Dave Barach68b0fb02017-02-28 15:15:56 -0500404 vnet/ip/punt.h
Damjan Marion7cd468a2016-12-19 23:05:39 +0100405
Neale Rannsb8d44812017-11-10 06:53:54 -0800406API_FILES += \
407 vnet/ip/ip.api \
Juraj Slobodac0374232018-02-01 15:18:49 +0100408 vnet/ip/rd_cp.api \
Neale Rannsb8d44812017-11-10 06:53:54 -0800409 vnet/ip/punt.api
Damjan Marion7cd468a2016-12-19 23:05:39 +0100410
411########################################
412# Bidirectional Forwarding Detection
413########################################
414
415nobase_include_HEADERS += \
416 vnet/bfd/bfd_protocol.h \
417 vnet/bfd/bfd_main.h \
418 vnet/bfd/bfd_api.h \
419 vnet/bfd/bfd_udp.h \
420 vnet/bfd/bfd.api.h
421
422libvnet_la_SOURCES += \
423 vnet/bfd/bfd_api.h \
424 vnet/bfd/bfd_udp.c \
425 vnet/bfd/bfd_main.c \
426 vnet/bfd/bfd_protocol.c \
Klement Sekera73884482017-02-23 09:26:30 +0100427 vnet/bfd/bfd_cli.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100428 vnet/bfd/bfd_api.c
429
430API_FILES += vnet/bfd/bfd.api
431
432########################################
433# Layer 3 protocol: IPSec
434########################################
Damjan Mariona9a951f2017-01-16 22:06:10 +0100435if WITH_LIBSSL
Damjan Marion7cd468a2016-12-19 23:05:39 +0100436libvnet_la_SOURCES += \
437 vnet/ipsec/ipsec.c \
438 vnet/ipsec/ipsec_cli.c \
439 vnet/ipsec/ipsec_format.c \
440 vnet/ipsec/ipsec_input.c \
441 vnet/ipsec/ipsec_if.c \
442 vnet/ipsec/ipsec_if_in.c \
443 vnet/ipsec/ipsec_if_out.c \
Sergio Gonzalez Monroydb93cd92017-08-26 15:22:05 +0100444 vnet/ipsec/esp_format.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100445 vnet/ipsec/esp_encrypt.c \
446 vnet/ipsec/esp_decrypt.c \
“mukeshyadav1984”430ac932017-11-23 02:39:33 -0800447 vnet/ipsec/ah_decrypt.c \
448 vnet/ipsec/ah_encrypt.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100449 vnet/ipsec/ikev2.c \
450 vnet/ipsec/ikev2_crypto.c \
451 vnet/ipsec/ikev2_cli.c \
452 vnet/ipsec/ikev2_payload.c \
453 vnet/ipsec/ikev2_format.c \
454 vnet/ipsec/ipsec_api.c
455
456API_FILES += vnet/ipsec/ipsec.api
Damjan Marion7cd468a2016-12-19 23:05:39 +0100457endif
458
459libvnet_la_SOURCES += \
460 vnet/ipsec/ipsec_output.c
461
462nobase_include_HEADERS += \
463 vnet/ipsec/ipsec.h \
464 vnet/ipsec/esp.h \
“mukeshyadav1984”430ac932017-11-23 02:39:33 -0800465 vnet/ipsec/ah.h \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100466 vnet/ipsec/ikev2.h \
467 vnet/ipsec/ikev2_priv.h \
468 vnet/ipsec/ipsec.api.h
Damjan Marion7cd468a2016-12-19 23:05:39 +0100469
470########################################
471# Layer 3 protocol: osi
472########################################
473libvnet_la_SOURCES += \
474 vnet/osi/node.c \
475 vnet/osi/osi.c \
476 vnet/osi/pg.c
477
478nobase_include_HEADERS += \
479 vnet/osi/osi.h
480
481########################################
482# Layer 3 protocol: MAP
483########################################
484libvnet_la_SOURCES += \
485 vnet/map/map.c \
486 vnet/map/map_dpo.c \
487 vnet/map/ip4_map.c \
488 vnet/map/ip6_map.c \
489 vnet/map/ip4_map_t.c \
490 vnet/map/ip6_map_t.c \
491 vnet/map/map_api.c
492
493nobase_include_HEADERS += \
494 vnet/map/map.h \
495 vnet/map/map_dpo.h \
496 vnet/map/map.api.h
497
498API_FILES += vnet/map/map.api
499
500if ENABLE_TESTS
501TESTS += test_map
502test_map_SOURCES = \
503 vnet/map/test.c
504test_map_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG
505
506test_map_LDADD = libvnet.la libvppinfra.la libvlib.la \
Dave Barach654ceaf2017-03-29 16:59:02 -0400507 -lpthread -lvlibmemory -ldl -lsvm -lrt
Damjan Marion7cd468a2016-12-19 23:05:39 +0100508
509test_map_LDFLAGS = -static
510endif
511
Dave Barach68b0fb02017-02-28 15:15:56 -0500512########################################
513# Layer 4 protocol: tcp
514########################################
515libvnet_la_SOURCES += \
Dave Barach3bbcfab2017-08-15 19:03:44 -0400516 vnet/tcp/tcp_api.c \
Dave Barach68b0fb02017-02-28 15:15:56 -0500517 vnet/tcp/tcp_format.c \
518 vnet/tcp/tcp_pg.c \
519 vnet/tcp/tcp_syn_filter4.c \
520 vnet/tcp/tcp_output.c \
521 vnet/tcp/tcp_input.c \
522 vnet/tcp/tcp_newreno.c \
Florin Coras6792ec02017-03-13 03:49:51 -0700523 vnet/tcp/tcp_test.c \
Dave Barach68b0fb02017-02-28 15:15:56 -0500524 vnet/tcp/tcp.c
525
526nobase_include_HEADERS += \
527 vnet/tcp/tcp_packet.h \
528 vnet/tcp/tcp_timer.h \
Florin Corase69f4952017-03-07 10:06:24 -0800529 vnet/tcp/tcp_debug.h \
Florin Corasc940f092017-08-23 11:24:02 -0700530 vnet/tcp/tcp.h \
531 vnet/tcp/tcp.api.h
Dave Barach68b0fb02017-02-28 15:15:56 -0500532
Dave Barach3bbcfab2017-08-15 19:03:44 -0400533API_FILES += vnet/tcp/tcp.api
534
Dave Barach68b0fb02017-02-28 15:15:56 -0500535########################################
536# Layer 4 protocol: udp
537########################################
538libvnet_la_SOURCES += \
539 vnet/udp/udp.c \
540 vnet/udp/udp_input.c \
Dave Barach68b0fb02017-02-28 15:15:56 -0500541 vnet/udp/udp_format.c \
542 vnet/udp/udp_local.c \
Neale Ranns810086d2017-11-05 16:26:46 -0800543 vnet/udp/udp_pg.c \
544 vnet/udp/udp_encap_node.c \
545 vnet/udp/udp_encap.c \
546 vnet/udp/udp_api.c
Dave Barach68b0fb02017-02-28 15:15:56 -0500547
548nobase_include_HEADERS += \
549 vnet/udp/udp_error.def \
550 vnet/udp/udp.h \
Florin Corasf1493142017-11-09 14:17:27 -0800551 vnet/udp/udp_packet.h \
552 vnet/udp/udp.api.h
Damjan Marion7cd468a2016-12-19 23:05:39 +0100553
Neale Ranns810086d2017-11-05 16:26:46 -0800554API_FILES += vnet/udp/udp.api
555
Damjan Marion7cd468a2016-12-19 23:05:39 +0100556########################################
Marco Varlese191a5942017-10-30 18:17:21 +0100557# Layer 4 protocol: sctp
558########################################
559libvnet_la_SOURCES += \
Marco Varlese3c6a9762018-03-01 11:19:59 +0100560 vnet/sctp/sctp_api.c \
Marco Varlese191a5942017-10-30 18:17:21 +0100561 vnet/sctp/sctp.c \
562 vnet/sctp/sctp_pg.c \
563 vnet/sctp/sctp_input.c \
564 vnet/sctp/sctp_output.c \
Florin Coras4399c2e2018-01-25 06:34:42 -0800565 vnet/sctp/sctp_format.c
Marco Varlese191a5942017-10-30 18:17:21 +0100566
567nobase_include_HEADERS += \
568 vnet/sctp/sctp_error.def \
569 vnet/sctp/sctp_packet.h \
570 vnet/sctp/sctp_timer.h \
Marco Varlese3c6a9762018-03-01 11:19:59 +0100571 vnet/sctp/sctp.h \
572 vnet/sctp/sctp.api.h
573
574API_FILES += vnet/sctp/sctp.api
Marco Varlese191a5942017-10-30 18:17:21 +0100575
576########################################
Damjan Marion7cd468a2016-12-19 23:05:39 +0100577# Tunnel protocol: gre
578########################################
579libvnet_la_SOURCES += \
580 vnet/gre/gre.c \
581 vnet/gre/node.c \
582 vnet/gre/interface.c \
583 vnet/gre/pg.c \
584 vnet/gre/gre_api.c
585
586nobase_include_HEADERS += \
587 vnet/gre/gre.h \
588 vnet/gre/packet.h \
589 vnet/gre/error.def \
590 vnet/gre/gre.api.h
591
592API_FILES += vnet/gre/gre.api
593
594########################################
Ole Troan298c6952018-03-08 12:30:43 +0100595# Tunnel protocol: ipip
596########################################
597libvnet_la_SOURCES += \
598 vnet/ipip/ipip.c \
599 vnet/ipip/node.c \
600 vnet/ipip/sixrd.c \
601 vnet/ipip/ipip_api.c \
602 vnet/ipip/ipip_cli.c
603
604nobase_include_HEADERS += \
Jon Loeliger1fcbd722018-03-14 14:08:43 -0500605 vnet/ipip/ipip.api.h \
Ole Troan298c6952018-03-08 12:30:43 +0100606 vnet/ipip/ipip.h
607
608API_FILES += vnet/ipip/ipip.api
609
610########################################
Damjan Marion7cd468a2016-12-19 23:05:39 +0100611# Tunnel protocol: l2tpv3
612########################################
613libvnet_la_SOURCES += \
614 vnet/l2tp/l2tp.c \
615 vnet/l2tp/encap.c \
616 vnet/l2tp/decap.c \
617 vnet/l2tp/pg.c \
618 vnet/l2tp/l2tp_api.c
619
620nobase_include_HEADERS += \
621 vnet/l2tp/l2tp.h \
622 vnet/l2tp/packet.h \
623 vnet/l2tp/l2tp.api.h
624
625API_FILES += vnet/l2tp/l2tp.api
626
627########################################
628# Tunnel protocol: gre+mpls
629########################################
630libvnet_la_SOURCES += \
631 vnet/mpls/mpls.c \
632 vnet/mpls/mpls_lookup.c \
633 vnet/mpls/mpls_output.c \
634 vnet/mpls/mpls_features.c \
Neale Ranns696e88d2017-03-16 07:34:55 -0400635 vnet/mpls/mpls_input.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100636 vnet/mpls/interface.c \
637 vnet/mpls/mpls_tunnel.c \
Pavel Kotucek0f971d82017-01-03 10:48:54 +0100638 vnet/mpls/pg.c \
639 vnet/mpls/mpls_api.c
Damjan Marion7cd468a2016-12-19 23:05:39 +0100640
641nobase_include_HEADERS += \
642 vnet/mpls/mpls.h \
643 vnet/mpls/mpls_types.h \
644 vnet/mpls/mpls_tunnel.h \
645 vnet/mpls/packet.h \
Pavel Kotucek0f971d82017-01-03 10:48:54 +0100646 vnet/mpls/error.def \
647 vnet/mpls/mpls.api.h
Damjan Marion7cd468a2016-12-19 23:05:39 +0100648
Pavel Kotucek0f971d82017-01-03 10:48:54 +0100649API_FILES += vnet/mpls/mpls.api
Damjan Marion7cd468a2016-12-19 23:05:39 +0100650
651########################################
652# Tunnel protocol: vxlan-gpe
653########################################
654
655libvnet_la_SOURCES += \
656 vnet/vxlan-gpe/vxlan_gpe.c \
657 vnet/vxlan-gpe/encap.c \
658 vnet/vxlan-gpe/decap.c \
659 vnet/vxlan-gpe/vxlan_gpe_api.c
660
661nobase_include_HEADERS += \
662 vnet/vxlan-gpe/vxlan_gpe.h \
663 vnet/vxlan-gpe/vxlan_gpe_packet.h \
664 vnet/vxlan-gpe/vxlan_gpe_error.def \
665 vnet/vxlan-gpe/vxlan_gpe.api.h
666
667API_FILES += vnet/vxlan-gpe/vxlan_gpe.api
668
669########################################
670# Tunnel protocol: ipsec+gre
671########################################
672libvnet_la_SOURCES += \
673 vnet/ipsec-gre/ipsec_gre.c \
674 vnet/ipsec-gre/node.c \
675 vnet/ipsec-gre/interface.c \
676 vnet/ipsec-gre/ipsec_gre_api.c
677
678nobase_include_HEADERS += \
679 vnet/ipsec-gre/ipsec_gre.h \
680 vnet/ipsec-gre/error.def \
681 vnet/ipsec-gre/ipsec_gre.api.h
682
683API_FILES += vnet/ipsec-gre/ipsec_gre.api
684
685########################################
686# LISP control plane: lisp-cp
687########################################
688
689libvnet_la_SOURCES += \
690 vnet/lisp-cp/lisp_types.c \
691 vnet/lisp-cp/lisp_cp_dpo.c \
692 vnet/lisp-cp/control.c \
693 vnet/lisp-cp/gid_dictionary.c \
694 vnet/lisp-cp/lisp_msg_serdes.c \
695 vnet/lisp-cp/packets.c \
Filip Tehlar694396d2017-02-17 14:29:11 +0100696 vnet/lisp-cp/one_cli.c \
Florin Corasf3dc11a2017-01-24 03:13:43 -0800697 vnet/lisp-cp/lisp_cli.c \
Filip Tehlar694396d2017-02-17 14:29:11 +0100698 vnet/lisp-cp/one_api.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100699 vnet/lisp-cp/lisp_api.c
700
701nobase_include_HEADERS += \
702 vnet/lisp-cp/lisp_types.h \
703 vnet/lisp-cp/packets.h \
704 vnet/lisp-cp/gid_dictionary.h \
705 vnet/lisp-cp/lisp_cp_messages.h \
706 vnet/lisp-cp/lisp_msg_serdes.h \
707 vnet/lisp-cp/control.h \
Filip Tehlar694396d2017-02-17 14:29:11 +0100708 vnet/lisp-cp/one.api.h \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100709 vnet/lisp-cp/lisp.api.h
710
711API_FILES += vnet/lisp-cp/lisp.api
Filip Tehlar694396d2017-02-17 14:29:11 +0100712API_FILES += vnet/lisp-cp/one.api
Damjan Marion7cd468a2016-12-19 23:05:39 +0100713
714if ENABLE_TESTS
715LDS = \
716 libvppinfra.la \
717 libvnet.la \
718 libvlib.la \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100719 libsvm.la \
720 libsvmdb.la \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100721 libvlibmemory.la \
Damjan Marionc74a86a2017-01-16 14:00:03 +0100722 -lpthread -ldl -lrt -lm
Damjan Marion7cd468a2016-12-19 23:05:39 +0100723
724TESTS += test_cp_serdes test_lisp_types
725
726test_cp_serdes_SOURCES = \
727 tests/vnet/lisp-cp/test_cp_serdes.c \
728 vnet/lisp-cp/lisp_msg_serdes.c \
729 vnet/lisp-cp/lisp_types.c \
730 vnet/lisp-cp/packets.c \
731 vnet/ip/ip_checksum.c
732
733test_lisp_types_SOURCES = \
734 tests/vnet/lisp-cp/test_lisp_types.c \
735 vnet/lisp-cp/lisp_types.c
736
737test_cp_serdes_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG
738test_lisp_types_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG
739
Damjan Marionc74a86a2017-01-16 14:00:03 +0100740test_cp_serdes_LDADD = $(LDS)
741test_lisp_types_LDADD = $(LDS)
Damjan Marion7cd468a2016-12-19 23:05:39 +0100742endif
743
744########################################
745# Tunnel protocol: lisp-gpe
746########################################
747
748libvnet_la_SOURCES += \
749 vnet/lisp-gpe/lisp_gpe.c \
750 vnet/lisp-gpe/lisp_gpe_sub_interface.c \
751 vnet/lisp-gpe/lisp_gpe_adjacency.c \
752 vnet/lisp-gpe/lisp_gpe_tunnel.c \
753 vnet/lisp-gpe/lisp_gpe_fwd_entry.c \
754 vnet/lisp-gpe/lisp_gpe_tenant.c \
755 vnet/lisp-gpe/interface.c \
756 vnet/lisp-gpe/decap.c \
757 vnet/lisp-gpe/lisp_gpe_api.c
758
759nobase_include_HEADERS += \
760 vnet/lisp-gpe/lisp_gpe.h \
761 vnet/lisp-gpe/lisp_gpe_fwd_entry.h \
762 vnet/lisp-gpe/lisp_gpe_tenant.h \
763 vnet/lisp-gpe/lisp_gpe_packet.h \
764 vnet/lisp-gpe/lisp_gpe_error.def \
765 vnet/lisp-gpe/lisp_gpe.api.h
766
767API_FILES += vnet/lisp-gpe/lisp_gpe.api
768
Damjan Marion7cd468a2016-12-19 23:05:39 +0100769########################################
770# DHCP client
771########################################
772libvnet_la_SOURCES += \
773 vnet/dhcp/client.c \
Neale Ranns54c6dc42018-01-17 10:29:10 -0800774 vnet/dhcp/dhcp_client_detect.c \
Pavel Kotucekc8d87702017-01-25 07:25:32 +0100775 vnet/dhcp/dhcp_api.c
Damjan Marion7cd468a2016-12-19 23:05:39 +0100776
777nobase_include_HEADERS += \
Neale Ranns2dd68522017-02-16 03:38:59 -0800778 vnet/dhcp/client.h \
Pavel Kotucekc8d87702017-01-25 07:25:32 +0100779 vnet/dhcp/dhcp.api.h
780
781API_FILES += vnet/dhcp/dhcp.api
Damjan Marion7cd468a2016-12-19 23:05:39 +0100782
783########################################
784# DHCP proxy
785########################################
786libvnet_la_SOURCES += \
Neale Ranns2dd68522017-02-16 03:38:59 -0800787 vnet/dhcp/dhcp6_proxy_node.c \
788 vnet/dhcp/dhcp4_proxy_node.c \
789 vnet/dhcp/dhcp_proxy.c
Damjan Marion7cd468a2016-12-19 23:05:39 +0100790
791nobase_include_HEADERS += \
Neale Ranns2dd68522017-02-16 03:38:59 -0800792 vnet/dhcp/dhcp4_packet.h \
793 vnet/dhcp/dhcp6_packet.h \
794 vnet/dhcp/dhcp_proxy.h \
795 vnet/dhcp/dhcp6_proxy_error.def \
796 vnet/dhcp/dhcp4_proxy_error.def
Damjan Marion7cd468a2016-12-19 23:05:39 +0100797
798########################################
799# ipv6 segment routing
800########################################
801
Damjan Marion7cd468a2016-12-19 23:05:39 +0100802libvnet_la_SOURCES += \
Pablo Camarillo5d73eec2017-04-24 17:51:56 +0200803 vnet/srv6/sr.c \
804 vnet/srv6/sr_localsid.c \
805 vnet/srv6/sr_policy_rewrite.c \
806 vnet/srv6/sr_steering.c \
807 vnet/srv6/sr_api.c
Damjan Marion7cd468a2016-12-19 23:05:39 +0100808
809nobase_include_HEADERS += \
Pablo Camarillo5d73eec2017-04-24 17:51:56 +0200810 vnet/srv6/sr_packet.h \
811 vnet/srv6/sr.h \
812 vnet/srv6/sr.api.h
Pavel Kotucek0f971d82017-01-03 10:48:54 +0100813
Pablo Camarillo5d73eec2017-04-24 17:51:56 +0200814API_FILES += vnet/srv6/sr.api
815
816########################################
817# mpls segment routing
818########################################
819
820libvnet_la_SOURCES += \
821 vnet/srmpls/sr_mpls_policy.c \
Pablo Camarillo42998822017-07-13 09:41:32 +0200822 vnet/srmpls/sr_mpls_steering.c \
823 vnet/srmpls/sr_mpls_api.c
Pablo Camarillo5d73eec2017-04-24 17:51:56 +0200824
825
826nobase_include_HEADERS += \
Pablo Camarillo42998822017-07-13 09:41:32 +0200827 vnet/srmpls/sr_mpls.h \
828 vnet/srmpls/sr_mpls.api.h
829
830API_FILES += vnet/srmpls/sr_mpls.api
Damjan Marion7cd468a2016-12-19 23:05:39 +0100831
832########################################
Damjan Marion7cd468a2016-12-19 23:05:39 +0100833# IPFIX / netflow v10
834########################################
835libvnet_la_SOURCES += \
Ole Troana9855ef2018-05-02 12:45:10 +0200836 vnet/ipfix-export/flow_report.c \
837 vnet/ipfix-export/flow_api.c
Damjan Marion7cd468a2016-12-19 23:05:39 +0100838
839nobase_include_HEADERS += \
Ole Troana9855ef2018-05-02 12:45:10 +0200840 vnet/ipfix-export/flow_report.h \
841 vnet/ipfix-export/ipfix_info_elements.h \
842 vnet/ipfix-export/ipfix_packet.h \
843 vnet/ipfix-export/ipfix_export.api.h
Pavel Kotucekeb9e6662017-01-24 13:40:26 +0100844
Ole Troana9855ef2018-05-02 12:45:10 +0200845API_FILES += vnet/ipfix-export/ipfix_export.api
Damjan Marion7cd468a2016-12-19 23:05:39 +0100846
847########################################
848# IPFIX classify code
849########################################
850
851libvnet_la_SOURCES += \
Ole Troana9855ef2018-05-02 12:45:10 +0200852 vnet/ipfix-export/flow_report_classify.c
Damjan Marion7cd468a2016-12-19 23:05:39 +0100853
854nobase_include_HEADERS += \
Ole Troana9855ef2018-05-02 12:45:10 +0200855 vnet/ipfix-export/flow_report_classify.h
Damjan Marion7cd468a2016-12-19 23:05:39 +0100856
857########################################
858# lawful intercept
859########################################
860
861libvnet_la_SOURCES += \
862 vnet/lawful-intercept/lawful_intercept.c \
863 vnet/lawful-intercept/node.c
864
865nobase_include_HEADERS += \
866 vnet/lawful-intercept/lawful_intercept.h
867
868########################################
869# SPAN (port mirroring)
870########################################
871
872libvnet_la_SOURCES += \
873 vnet/span/span_api.c \
874 vnet/span/span.c \
875 vnet/span/node.c
876
877nobase_include_HEADERS += \
878 vnet/span/span.api.h \
879 vnet/span/span.h
880
881API_FILES += vnet/span/span.api
882
883########################################
Dave Barach65457162017-10-10 17:53:14 -0400884# DNS proxy, API
885########################################
886libvnet_la_SOURCES += \
887 vnet/dns/dns.c \
888 vnet/dns/dns.h \
889 vnet/dns/dns_packet.h \
890 vnet/dns/reply_node.c \
Dave Barach97494502017-11-04 09:44:38 -0400891 vnet/dns/request_node.c \
Dave Barach65457162017-10-10 17:53:14 -0400892 vnet/dns/resolver_process.c
893
894nobase_include_HEADERS += \
895 vnet/dns/dns.api.h \
896 vnet/dns/dns.h
897
898API_FILES += vnet/dns/dns.api
899
900########################################
Damjan Marion7cd468a2016-12-19 23:05:39 +0100901# Packet generator
902########################################
903
904libvnet_la_SOURCES += \
905 vnet/pg/cli.c \
906 vnet/pg/edit.c \
907 vnet/pg/init.c \
908 vnet/pg/input.c \
909 vnet/pg/output.c \
Neale Rannsb8d44812017-11-10 06:53:54 -0800910 vnet/pg/stream.c \
911 vnet/pg/pg_api.c
Damjan Marion7cd468a2016-12-19 23:05:39 +0100912
913nobase_include_HEADERS += \
914 vnet/pg/pg.h \
Neale Rannsb8d44812017-11-10 06:53:54 -0800915 vnet/pg/edit.h \
916 vnet/pg/pg.api.h
917
918API_FILES += vnet/pg/pg.api
Damjan Marion7cd468a2016-12-19 23:05:39 +0100919
Damjan Marion7cd468a2016-12-19 23:05:39 +0100920########################################
921# virtio
922########################################
923
Damjan Marionc99b4cd2017-12-04 15:25:58 +0100924libvnet_la_SOURCES += \
925 vnet/devices/virtio/device.c \
926 vnet/devices/virtio/node.c \
927 vnet/devices/virtio/vhost-user.c \
928 vnet/devices/virtio/vhost_user_api.c \
Damjan Marion8389fb92017-10-13 18:29:53 +0200929 vnet/devices/virtio/virtio.c
930
Damjan Marion7cd468a2016-12-19 23:05:39 +0100931
Damjan Marionc99b4cd2017-12-04 15:25:58 +0100932nobase_include_HEADERS += \
933 vnet/devices/virtio/virtio.h \
934 vnet/devices/virtio/vhost-user.h \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100935 vnet/devices/virtio/vhost_user.api.h
936
937API_FILES += vnet/devices/virtio/vhost_user.api
938
939########################################
Damjan Marionc99b4cd2017-12-04 15:25:58 +0100940# tap interface (with virtio backend)
941########################################
942
943libvnet_la_SOURCES += \
944 vnet/devices/tap/cli.c \
945 vnet/devices/tap/tap.c \
946 vnet/devices/tap/tapv2_api.c
947
948nobase_include_HEADERS += \
949 vnet/devices/tap/tap.h \
950 vnet/devices/tap/tapv2.api.h
951
952API_FILES += vnet/devices/tap/tapv2.api
953
954########################################
Dave Barach68b0fb02017-02-28 15:15:56 -0500955# session managmeent
956########################################
957
958libvnet_la_SOURCES += \
959 vnet/session/session.c \
Florin Corascea194d2017-10-02 00:18:51 -0700960 vnet/session/session_table.c \
Florin Coras1c710452017-10-17 00:03:13 -0700961 vnet/session/session_rules_table.c \
Florin Coras04e53442017-07-16 17:12:15 -0700962 vnet/session/session_lookup.c \
963 vnet/session/session_node.c \
Florin Coras3cbc04b2017-10-02 00:18:51 -0700964 vnet/session/transport.c \
Dave Barach68b0fb02017-02-28 15:15:56 -0500965 vnet/session/application.c \
966 vnet/session/session_cli.c \
Dave Barach68b0fb02017-02-28 15:15:56 -0500967 vnet/session/application_interface.c \
Florin Corascea194d2017-10-02 00:18:51 -0700968 vnet/session/application_namespace.c \
Florin Coras6cf30ad2017-04-04 23:08:23 -0700969 vnet/session/segment_manager.c \
Florin Corascea194d2017-10-02 00:18:51 -0700970 vnet/session/session_test.c \
Dave Barach68b0fb02017-02-28 15:15:56 -0500971 vnet/session/session_api.c
972
973nobase_include_HEADERS += \
974 vnet/session/session.h \
Florin Corascea194d2017-10-02 00:18:51 -0700975 vnet/session/session_table.h \
Florin Coras1c710452017-10-17 00:03:13 -0700976 vnet/session/session_rules_table.h \
Florin Coras04e53442017-07-16 17:12:15 -0700977 vnet/session/stream_session.h \
978 vnet/session/session_lookup.h \
Dave Barach68b0fb02017-02-28 15:15:56 -0500979 vnet/session/application.h \
980 vnet/session/transport.h \
Florin Coras04e53442017-07-16 17:12:15 -0700981 vnet/session/transport_interface.h \
Alexander Popovsky (apopovsk)6f6f52a2017-03-03 16:06:26 -0800982 vnet/session/application_interface.h \
Florin Corascea194d2017-10-02 00:18:51 -0700983 vnet/session/application_namespace.h \
Florin Corase69f4952017-03-07 10:06:24 -0800984 vnet/session/session_debug.h \
Florin Coras6cf30ad2017-04-04 23:08:23 -0700985 vnet/session/segment_manager.h \
Florin Coras1c710452017-10-17 00:03:13 -0700986 vnet/session/mma_template.h \
987 vnet/session/mma_template.c \
988 vnet/session/mma_16.h \
989 vnet/session/mma_40.h \
Alexander Popovsky (apopovsk)6f6f52a2017-03-03 16:06:26 -0800990 vnet/session/session.api.h
Dave Barach68b0fb02017-02-28 15:15:56 -0500991
992API_FILES += vnet/session/session.api
993
994########################################
Florin Coras4399c2e2018-01-25 06:34:42 -0800995# session layer applications
996########################################
997
998libvnet_la_SOURCES += \
999 vnet/session-apps/echo_client.c \
1000 vnet/session-apps/echo_server.c \
1001 vnet/session-apps/http_server.c \
1002 vnet/session-apps/proxy.c
1003
1004nobase_include_HEADERS += \
1005 vnet/session-apps/echo_client.h \
1006 vnet/session-apps/proxy.h
1007
1008########################################
Florin Corasd77eee62018-03-07 08:49:27 -08001009# TLS protocol
1010########################################
1011
1012libvnet_la_SOURCES += vnet/tls/tls.c
1013
1014nobase_include_HEADERS += \
1015 vnet/tls/tls.h
1016
1017########################################
Damjan Marion7cd468a2016-12-19 23:05:39 +01001018# Linux packet interface
1019########################################
1020
1021libvnet_la_SOURCES += \
1022 vnet/devices/af_packet/af_packet.c \
1023 vnet/devices/af_packet/device.c \
1024 vnet/devices/af_packet/node.c \
1025 vnet/devices/af_packet/cli.c \
1026 vnet/devices/af_packet/af_packet_api.c
1027
1028nobase_include_HEADERS += \
1029 vnet/devices/af_packet/af_packet.h \
1030 vnet/devices/af_packet/af_packet.api.h
1031
1032API_FILES += vnet/devices/af_packet/af_packet.api
1033
1034########################################
1035# NETMAP interface
1036########################################
1037
1038libvnet_la_SOURCES += \
1039 vnet/devices/netmap/netmap.c \
1040 vnet/devices/netmap/device.c \
1041 vnet/devices/netmap/node.c \
1042 vnet/devices/netmap/cli.c \
1043 vnet/devices/netmap/netmap_api.c
1044
1045nobase_include_HEADERS += \
1046 vnet/devices/netmap/netmap.h \
1047 vnet/devices/netmap/netmap.api.h
1048
1049API_FILES += vnet/devices/netmap/netmap.api
1050
1051########################################
1052# Driver feature graph arc support
1053########################################
1054
1055libvnet_la_SOURCES += \
1056 vnet/feature/feature.c \
Neale Rannsb8d44812017-11-10 06:53:54 -08001057 vnet/feature/feature_api.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +01001058 vnet/feature/registration.c
1059
1060nobase_include_HEADERS += \
Neale Rannsb8d44812017-11-10 06:53:54 -08001061 vnet/feature/feature.h \
1062 vnet/feature/feature.api.h
1063
1064API_FILES += vnet/feature/feature.api
Damjan Marion7cd468a2016-12-19 23:05:39 +01001065
1066########################################
1067# Unix kernel related
1068########################################
1069
1070# FIXME: vnet/unix/hgshm.c
1071
1072libvnet_la_SOURCES += \
1073 vnet/unix/gdb_funcs.c \
1074 vnet/unix/pcap.c \
1075 vnet/unix/tap_api.c \
1076 vnet/unix/tapcli.c \
1077 vnet/unix/tuntap.c
1078
1079nobase_include_HEADERS += \
1080 vnet/unix/pcap.h \
1081 vnet/unix/tuntap.h \
1082 vnet/unix/tap.api.h \
1083 vnet/unix/tapcli.h
1084
1085API_FILES += vnet/unix/tap.api
1086
1087########################################
1088# FIB
1089########################################
1090
1091libvnet_la_SOURCES += \
1092 vnet/fib/fib.c \
1093 vnet/fib/fib_test.c \
1094 vnet/fib/ip4_fib.c \
1095 vnet/fib/ip6_fib.c \
1096 vnet/fib/mpls_fib.c \
1097 vnet/fib/fib_table.c \
1098 vnet/fib/fib_walk.c \
1099 vnet/fib/fib_types.c \
1100 vnet/fib/fib_node.c \
1101 vnet/fib/fib_node_list.c \
1102 vnet/fib/fib_entry.c \
1103 vnet/fib/fib_entry_src.c \
1104 vnet/fib/fib_entry_src_rr.c \
1105 vnet/fib/fib_entry_src_interface.c \
Neale Ranns2303cb12018-02-21 04:57:17 -08001106 vnet/fib/fib_entry_src_interpose.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +01001107 vnet/fib/fib_entry_src_default_route.c \
1108 vnet/fib/fib_entry_src_special.c \
1109 vnet/fib/fib_entry_src_api.c \
1110 vnet/fib/fib_entry_src_adj.c \
1111 vnet/fib/fib_entry_src_mpls.c \
1112 vnet/fib/fib_entry_src_lisp.c \
1113 vnet/fib/fib_entry_cover.c \
1114 vnet/fib/fib_entry_delegate.c \
1115 vnet/fib/fib_path_list.c \
1116 vnet/fib/fib_path.c \
1117 vnet/fib/fib_path_ext.c \
1118 vnet/fib/fib_urpf_list.c \
Neale Ranns88fc83e2017-04-05 08:11:14 -07001119 vnet/fib/fib_attached_export.c \
Neale Ranns81458422018-03-12 06:59:36 -07001120 vnet/fib/fib_api.c \
Neale Ranns88fc83e2017-04-05 08:11:14 -07001121 vnet/fib/fib_bfd.c
Damjan Marion7cd468a2016-12-19 23:05:39 +01001122
1123nobase_include_HEADERS += \
1124 vnet/fib/fib.h \
1125 vnet/fib/fib_api.h \
1126 vnet/fib/ip4_fib.h \
1127 vnet/fib/ip6_fib.h \
1128 vnet/fib/fib_types.h \
1129 vnet/fib/fib_table.h \
1130 vnet/fib/fib_node.h \
1131 vnet/fib/fib_node_list.h \
1132 vnet/fib/fib_entry.h \
1133 vnet/fib/fib_entry_delegate.h
1134
1135########################################
1136# ADJ
1137########################################
1138
1139libvnet_la_SOURCES += \
1140 vnet/adj/adj_nbr.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +01001141 vnet/adj/adj_glean.c \
1142 vnet/adj/adj_midchain.c \
Neale Ranns32e1c012016-11-22 17:07:28 +00001143 vnet/adj/adj_mcast.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +01001144 vnet/adj/adj_l2.c \
Florin Corasce1b4c72017-01-26 14:25:34 -08001145 vnet/adj/adj_nsh.c \
Neale Rannsfa5d1982017-02-20 14:19:51 -08001146 vnet/adj/adj.c \
Neale Ranns88fc83e2017-04-05 08:11:14 -07001147 vnet/adj/rewrite.c \
1148 vnet/adj/adj_bfd.c \
1149 vnet/adj/adj_delegate.c
Damjan Marion7cd468a2016-12-19 23:05:39 +01001150
1151nobase_include_HEADERS += \
1152 vnet/adj/adj.h \
1153 vnet/adj/adj_types.h \
Damjan Marion7cd468a2016-12-19 23:05:39 +01001154 vnet/adj/adj_glean.h \
Florin Corasce1b4c72017-01-26 14:25:34 -08001155 vnet/adj/adj_nsh.h \
Neale Rannsfa5d1982017-02-20 14:19:51 -08001156 vnet/adj/adj_nbr.h \
1157 vnet/adj/rewrite.h
Damjan Marion7cd468a2016-12-19 23:05:39 +01001158
1159########################################
1160# Data-Plane Objects
1161########################################
1162
1163libvnet_la_SOURCES += \
1164 vnet/dpo/dpo.c \
1165 vnet/dpo/drop_dpo.c \
1166 vnet/dpo/ip_null_dpo.c \
Neale Ranns53da2212018-02-24 02:11:19 -08001167 vnet/dpo/ip6_ll_dpo.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +01001168 vnet/dpo/punt_dpo.c \
1169 vnet/dpo/receive_dpo.c \
1170 vnet/dpo/load_balance.c \
1171 vnet/dpo/load_balance_map.c \
Neale Ranns32e1c012016-11-22 17:07:28 +00001172 vnet/dpo/lookup_dpo.c \
1173 vnet/dpo/classify_dpo.c \
1174 vnet/dpo/replicate_dpo.c \
Neale Ranns43161a82017-08-12 02:12:00 -07001175 vnet/dpo/interface_rx_dpo.c \
1176 vnet/dpo/interface_tx_dpo.c \
Neale Ranns0f26c5a2017-03-01 15:12:11 -08001177 vnet/dpo/mpls_disposition.c \
Neale Ranns6f631152017-10-03 08:20:21 -07001178 vnet/dpo/mpls_label_dpo.c \
Andrew Yourtchenko5f3fcb92017-10-25 05:50:37 -07001179 vnet/dpo/l3_proxy_dpo.c \
Neale Rannsf068c3e2018-01-03 04:18:48 -08001180 vnet/dpo/dvr_dpo.c
Damjan Marion7cd468a2016-12-19 23:05:39 +01001181
1182nobase_include_HEADERS += \
1183 vnet/dpo/load_balance.h \
1184 vnet/dpo/drop_dpo.h \
1185 vnet/dpo/lookup_dpo.h \
1186 vnet/dpo/punt_dpo.h \
1187 vnet/dpo/classify_dpo.h \
1188 vnet/dpo/receive_dpo.h \
1189 vnet/dpo/ip_null_dpo.h \
Neale Ranns60c1c7c2017-11-02 07:39:24 -07001190 vnet/dpo/replicate_dpo.h \
Damjan Marion7cd468a2016-12-19 23:05:39 +01001191 vnet/dpo/dpo.h
1192
1193########################################
Neale Ranns32e1c012016-11-22 17:07:28 +00001194# Multicast FIB
1195########################################
1196
1197libvnet_la_SOURCES += \
1198 vnet/mfib/mfib_test.c \
1199 vnet/mfib/mfib_forward.c \
1200 vnet/mfib/ip4_mfib.c \
1201 vnet/mfib/ip6_mfib.c \
1202 vnet/mfib/mfib_types.c \
1203 vnet/mfib/mfib_signal.c \
1204 vnet/mfib/mfib_itf.c \
1205 vnet/mfib/mfib_entry.c \
1206 vnet/mfib/mfib_table.c
1207
1208nobase_include_HEADERS += \
1209 vnet/mfib/ip4_mfib.h \
1210 vnet/mfib/mfib_types.h \
1211 vnet/mfib/mfib_table.h
1212
1213########################################
1214# Utilities
1215########################################
1216
1217libvnet_la_SOURCES += \
Hongjun Nibf4be572017-11-13 20:34:06 +08001218 vnet/util/radix.c \
1219 vnet/util/refcount.c \
Dave Barach7bee7732017-10-18 18:48:11 -04001220 vnet/util/trajectory.c
Neale Ranns32e1c012016-11-22 17:07:28 +00001221
1222########################################
Neale Ranns039cbfe2018-02-27 03:45:38 -08001223# QoS
1224########################################
1225
1226libvnet_la_SOURCES += \
1227 vnet/qos/qos_types.c \
1228 vnet/qos/qos_api.c \
1229 vnet/qos/qos_egress_map.c \
1230 vnet/qos/qos_record.c \
1231 vnet/qos/qos_mark.c
1232
1233API_FILES += vnet/qos/qos.api
1234
Matus Fabian489cc822018-03-19 03:58:41 -07001235nobase_include_HEADERS += \
1236 vnet/qos/qos.api.h
1237
Neale Ranns039cbfe2018-02-27 03:45:38 -08001238########################################
Neale Rannsd792d9c2017-10-21 10:53:20 -07001239# BIER
1240########################################
1241
1242libvnet_la_SOURCES += \
1243 vnet/bier/bier_bit_string.c \
1244 vnet/bier/bier_entry.c \
1245 vnet/bier/bier_fmask.c \
1246 vnet/bier/bier_fmask_db.c \
1247 vnet/bier/bier_input.c \
1248 vnet/bier/bier_lookup.c \
1249 vnet/bier/bier_output.c \
1250 vnet/bier/bier_table.c \
1251 vnet/bier/bier_types.c \
1252 vnet/bier/bier_test.c \
1253 vnet/bier/bier_api.c \
1254 vnet/bier/bier_drop.c \
1255 vnet/bier/bier_update.c \
1256 vnet/bier/bier_imp_node.c \
1257 vnet/bier/bier_imp.c \
1258 vnet/bier/bier_disp_entry.c \
1259 vnet/bier/bier_disp_lookup_node.c \
1260 vnet/bier/bier_disp_dispatch_node.c \
Neale Ranns91286372017-12-05 13:24:04 -08001261 vnet/bier/bier_disp_table.c \
1262 vnet/bier/bier_bift_table.c
Neale Rannsd792d9c2017-10-21 10:53:20 -07001263
1264nobase_include_HEADERS += \
1265 vnet/bier/bier_types.h \
1266 vnet/bier/bier_entry.h \
1267 vnet/bier/bier_update.h \
1268 vnet/bier/bier.api.h \
1269 vnet/bier/bier_table.h
1270
1271API_FILES += vnet/bier/bier.api
1272
1273########################################
Florin Coras891f0a12017-12-11 11:49:26 -08001274# Test apps
1275########################################
1276
1277noinst_PROGRAMS += tcp_echo udp_echo
1278
1279TEST_APPS_LDADD = libvlibmemoryclient.la libsvm.la libvppinfra.la
1280TEST_APPS_LDADD += -lpthread -lm -lrt
1281
1282tcp_echo_SOURCES = tests/vnet/session/tcp_echo.c
1283tcp_echo_LDADD = $(TEST_APPS_LDADD)
1284
1285udp_echo_SOURCES = tests/vnet/session/udp_echo.c
1286udp_echo_LDADD = $(TEST_APPS_LDADD)
1287
1288########################################
Damjan Marion7cd468a2016-12-19 23:05:39 +01001289# Plugin client library
1290########################################
1291
Damjan Marion7cd468a2016-12-19 23:05:39 +01001292nobase_include_HEADERS += \
1293 vnet/plugin/plugin.h
1294
Damjan Marion7cd468a2016-12-19 23:05:39 +01001295pcap2pg_SOURCES = \
1296 vnet/unix/pcap2pg.c \
1297 vnet/unix/pcap.h
1298
1299pcap2pg_LDFLAGS = -static
1300pcap2pg_LDADD = libvnet.la libvppinfra.la -lpthread libvlibmemory.la -lm -ldl
1301
Dave Baracha0cc5ab2018-02-23 12:09:41 -05001302pcap2cinit_SOURCES = \
1303 vnet/unix/pcap2cinit.c \
1304 vnet/unix/pcap.h
1305
1306pcap2cinit_LDFLAGS = -static
1307pcap2cinit_LDADD = libvnet.la libvppinfra.la -lpthread libvlibmemory.la -lm -ldl
1308
1309noinst_PROGRAMS += pcap2pg pcap2cinit
Damjan Marion7cd468a2016-12-19 23:05:39 +01001310
1311# vi:syntax=automake