blob: 058948dce0edbd401919c4b25f8d40e0d3a25a29 [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 \
Neale Ranns871dc422018-03-29 01:28:09 -070044 vnet/interface_stats.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +010045 vnet/misc.c \
Neale Rannsfa5d1982017-02-20 14:19:51 -080046 vnet/replication.c
Damjan Marion7cd468a2016-12-19 23:05:39 +010047
48nobase_include_HEADERS += \
49 vnet/api_errno.h \
50 vnet/buffer.h \
51 vnet/config.h \
52 vnet/devices/devices.h \
Damjan Marion17fdae72017-11-30 20:56:37 +010053 vnet/devices/netlink.h \
Damjan Marion7cd468a2016-12-19 23:05:39 +010054 vnet/global_funcs.h \
55 vnet/handoff.h \
56 vnet/interface.h \
57 vnet/interface.api.h \
58 vnet/interface_funcs.h \
Matus Fabiana774b532017-05-02 03:15:22 -070059 vnet/ip/ip4_to_ip6.h \
60 vnet/ip/ip6_to_ip4.h \
Damjan Marion7cd468a2016-12-19 23:05:39 +010061 vnet/l3_types.h \
62 vnet/pipeline.h \
63 vnet/replication.h \
Damjan Marion7cd468a2016-12-19 23:05:39 +010064 vnet/vnet.h \
65 vnet/vnet_all_api_h.h \
Gabriel Ganne5842c782017-01-30 13:44:04 +010066 vnet/vnet_msg_enum.h \
Hongjun Nibf4be572017-11-13 20:34:06 +080067 vnet/util/radix.h \
68 vnet/util/refcount.h
Damjan Marion7cd468a2016-12-19 23:05:39 +010069
70API_FILES += vnet/interface.api
71
72########################################
73# Policer infra
74########################################
75
76libvnet_la_SOURCES += \
77 vnet/policer/node_funcs.c \
78 vnet/policer/policer.c \
Pavel Kotucekd9aad292017-01-25 08:45:38 +010079 vnet/policer/xlate.c \
80 vnet/policer/policer_api.c
Damjan Marion7cd468a2016-12-19 23:05:39 +010081
82nobase_include_HEADERS += \
83 vnet/policer/police.h \
84 vnet/policer/policer.h \
Pavel Kotucekd9aad292017-01-25 08:45:38 +010085 vnet/policer/xlate.h \
86 vnet/policer/policer.api.h
87
88API_FILES += vnet/policer/policer.api
Damjan Marion7cd468a2016-12-19 23:05:39 +010089
90########################################
91# Cop - junk filter
92########################################
93
94libvnet_la_SOURCES += \
95 vnet/cop/cop.c \
96 vnet/cop/node1.c \
97 vnet/cop/ip4_whitelist.c \
Pavel Kotucek884cf262017-01-25 08:27:15 +010098 vnet/cop/ip6_whitelist.c \
99 vnet/cop/cop_api.c
Damjan Marion7cd468a2016-12-19 23:05:39 +0100100
101nobase_include_HEADERS += \
Pavel Kotucek884cf262017-01-25 08:27:15 +0100102 vnet/cop/cop.h \
103 vnet/cop/cop.api.h
104
105API_FILES += vnet/cop/cop.api
Damjan Marion7cd468a2016-12-19 23:05:39 +0100106
107########################################
108# Layer 2 protocols go here
109########################################
110
111########################################
112# Layer 2 protocol: Ethernet
113########################################
114libvnet_la_SOURCES += \
115 vnet/ethernet/arp.c \
116 vnet/ethernet/format.c \
117 vnet/ethernet/init.c \
118 vnet/ethernet/interface.c \
119 vnet/ethernet/node.c \
Damjan Marion374e2c52017-03-09 20:38:15 +0100120 vnet/ethernet/pg.c \
Pavel Kotucek6899a302017-06-08 08:46:10 +0200121 vnet/ethernet/sfp.c \
122 vnet/ethernet/p2p_ethernet.c \
Pavel Kotucek15ac81c2017-06-20 14:00:26 +0200123 vnet/ethernet/p2p_ethernet_input.c \
Pavel Kotucek6899a302017-06-08 08:46:10 +0200124 vnet/ethernet/p2p_ethernet_api.c
Damjan Marion7cd468a2016-12-19 23:05:39 +0100125
126nobase_include_HEADERS += \
127 vnet/ethernet/arp_packet.h \
128 vnet/ethernet/error.def \
129 vnet/ethernet/ethernet.h \
130 vnet/ethernet/packet.h \
Damjan Marion374e2c52017-03-09 20:38:15 +0100131 vnet/ethernet/types.def \
Pavel Kotucek6899a302017-06-08 08:46:10 +0200132 vnet/ethernet/sfp.h \
133 vnet/ethernet/p2p_ethernet.api.h \
134 vnet/ethernet/p2p_ethernet.h
135
136API_FILES += vnet/ethernet/p2p_ethernet.api
Damjan Marion7cd468a2016-12-19 23:05:39 +0100137
138########################################
139# Layer 2 protocol: Ethernet bridging
140########################################
141libvnet_la_SOURCES += \
142 vnet/l2/feat_bitmap.c \
143 vnet/l2/l2_api.c \
144 vnet/l2/l2_bd.c \
145 vnet/l2/l2_bvi.c \
146 vnet/l2/l2_input_classify.c \
147 vnet/l2/l2_output_classify.c \
148 vnet/l2/l2_efp_filter.c \
149 vnet/l2/l2_fib.c \
150 vnet/l2/l2_flood.c \
151 vnet/l2/l2_fwd.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100152 vnet/l2/l2_input.c \
153 vnet/l2/l2_input_vtr.c \
154 vnet/l2/l2_learn.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100155 vnet/l2/l2_output.c \
Andrew Yourtchenko815d7d52018-02-07 11:37:02 +0100156 vnet/l2/l2_in_out_acl.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100157 vnet/l2/l2_patch.c \
158 vnet/l2/l2_rw.c \
159 vnet/l2/l2_vtr.c \
160 vnet/l2/l2_xcrw.c
161
162nobase_include_HEADERS += \
163 vnet/l2/feat_bitmap.h \
164 vnet/l2/l2_input.h \
165 vnet/l2/l2_output.h \
166 vnet/l2/l2_vtr.h \
167 vnet/l2/l2_input_vtr.h \
168 vnet/l2/l2_efp_filter.h \
169 vnet/l2/l2_fwd.h \
170 vnet/l2/l2_bd.h \
171 vnet/l2/l2_bvi.h \
172 vnet/l2/l2_flood.h \
173 vnet/l2/l2_fib.h \
174 vnet/l2/l2_rw.h \
175 vnet/l2/l2_xcrw.h \
176 vnet/l2/l2_classify.h \
177 vnet/l2/l2.api.h
178
179API_FILES += vnet/l2/l2.api
180
181########################################
182# Layer 2 protocol: SRP
183########################################
184libvnet_la_SOURCES += \
185 vnet/srp/format.c \
186 vnet/srp/interface.c \
187 vnet/srp/node.c \
188 vnet/srp/pg.c
189
190nobase_include_HEADERS += \
191 vnet/srp/packet.h \
192 vnet/srp/srp.h
193
194########################################
195# Layer 2 protocol: PPP
196########################################
197libvnet_la_SOURCES += \
198 vnet/ppp/node.c \
199 vnet/ppp/pg.c \
200 vnet/ppp/ppp.c
201
202nobase_include_HEADERS += \
203 vnet/ppp/error.def \
204 vnet/ppp/ppp.h \
205 vnet/ppp/packet.h
206
207########################################
208# Layer 2 protocol: HDLC
209########################################
210libvnet_la_SOURCES += \
211 vnet/hdlc/node.c \
212 vnet/hdlc/pg.c \
213 vnet/hdlc/hdlc.c
214
215nobase_include_HEADERS += \
216 vnet/hdlc/error.def \
217 vnet/hdlc/hdlc.h \
218 vnet/hdlc/packet.h
219
220########################################
221# Layer 2 protocol: LLC
222########################################
223libvnet_la_SOURCES += \
224 vnet/llc/llc.c \
225 vnet/llc/node.c \
226 vnet/llc/pg.c
227
228nobase_include_HEADERS += \
229 vnet/llc/llc.h
230
231########################################
232# Layer 2 protocol: SNAP
233########################################
234libvnet_la_SOURCES += \
235 vnet/snap/snap.c \
236 vnet/snap/node.c \
237 vnet/snap/pg.c
238
239nobase_include_HEADERS += \
240 vnet/snap/snap.h
241
242########################################
243# Layer 2 / vxlan
244########################################
245libvnet_la_SOURCES += \
246 vnet/vxlan/vxlan.c \
247 vnet/vxlan/encap.c \
248 vnet/vxlan/decap.c \
249 vnet/vxlan/vxlan_api.c
250
251nobase_include_HEADERS += \
252 vnet/vxlan/vxlan.h \
253 vnet/vxlan/vxlan_packet.h \
254 vnet/vxlan/vxlan_error.def \
255 vnet/vxlan/vxlan.api.h
256
257API_FILES += vnet/vxlan/vxlan.api
258
259########################################
Marco Varleseb598f1d2017-09-19 14:25:28 +0200260# Layer 2 / Geneve
261########################################
262libvnet_la_SOURCES += \
263 vnet/geneve/geneve.c \
264 vnet/geneve/encap.c \
265 vnet/geneve/decap.c \
266 vnet/geneve/geneve_api.c
267
268nobase_include_HEADERS += \
269 vnet/geneve/geneve.h \
270 vnet/geneve/geneve_packet.h \
271 vnet/geneve/geneve_error.def \
272 vnet/geneve/geneve.api.h
273
274API_FILES += vnet/geneve/geneve.api
275
276########################################
Steven9cd2d7a2017-12-20 12:43:01 -0800277# Layer 2 / Bonding
278########################################
279libvnet_la_SOURCES += \
280 vnet/bonding/cli.c \
281 vnet/bonding/node.c \
282 vnet/bonding/device.c \
283 vnet/bonding/bond_api.c
284
285nobase_include_HEADERS += \
286 vnet/bonding/node.h \
287 vnet/bonding/bond.api.h
288
289API_FILES += vnet/bonding/bond.api
290
291########################################
Damjan Marion7cd468a2016-12-19 23:05:39 +0100292# Layer 2 / LLDP
293########################################
294libvnet_la_SOURCES += \
295 vnet/lldp/lldp_input.c \
296 vnet/lldp/lldp_node.c \
297 vnet/lldp/lldp_output.c \
Steve Shin99a0e602017-07-01 04:16:20 +0000298 vnet/lldp/lldp_cli.c \
299 vnet/lldp/lldp_api.c
Damjan Marion7cd468a2016-12-19 23:05:39 +0100300
301nobase_include_HEADERS += \
Steve Shin99a0e602017-07-01 04:16:20 +0000302 vnet/lldp/lldp_protocol.h \
303 vnet/lldp/lldp.h \
304 vnet/lldp/lldp.api.h
305
306API_FILES += vnet/lldp/lldp.api
Damjan Marion7cd468a2016-12-19 23:05:39 +0100307
308########################################
309# Layer 2/3 "classify"
310########################################
311libvnet_la_SOURCES += \
312 vnet/classify/vnet_classify.c \
313 vnet/classify/ip_classify.c \
Andrew Yourtchenko815d7d52018-02-07 11:37:02 +0100314 vnet/classify/in_out_acl.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100315 vnet/classify/policer_classify.c \
316 vnet/classify/flow_classify.c \
317 vnet/classify/flow_classify_node.c \
Pavel Kotucekd2c97d92017-01-24 10:58:12 +0100318 vnet/classify/vnet_classify.h \
319 vnet/classify/classify_api.c
Damjan Marion7cd468a2016-12-19 23:05:39 +0100320
321nobase_include_HEADERS += \
322 vnet/classify/vnet_classify.h \
Andrew Yourtchenko815d7d52018-02-07 11:37:02 +0100323 vnet/classify/in_out_acl.h \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100324 vnet/classify/policer_classify.h \
Pavel Kotucekd2c97d92017-01-24 10:58:12 +0100325 vnet/classify/flow_classify.h \
326 vnet/classify/classify.api.h
327
328API_FILES += vnet/classify/classify.api
Damjan Marion7cd468a2016-12-19 23:05:39 +0100329
330########################################
331# Layer 3 protocols go here
332########################################
333
334########################################
335# Layer 3 protocol: IP v4/v6
336########################################
337libvnet_la_SOURCES += \
338 vnet/ip/format.c \
339 vnet/ip/icmp4.c \
340 vnet/ip/icmp6.c \
341 vnet/ip/ip46_cli.c \
342 vnet/ip/ip4_format.c \
343 vnet/ip/ip4_forward.c \
Neale Rannsd91c1db2017-07-31 02:30:50 -0700344 vnet/ip/ip4_punt_drop.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100345 vnet/ip/ip4_input.c \
346 vnet/ip/ip4_mtrie.c \
347 vnet/ip/ip4_pg.c \
348 vnet/ip/ip4_source_and_port_range_check.c \
349 vnet/ip/ip4_source_check.c \
Klement Sekera75e7d132017-09-20 08:26:30 +0200350 vnet/ip/ip4_reassembly.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100351 vnet/ip/ip6_format.c \
352 vnet/ip/ip6_forward.c \
Neale Ranns53da2212018-02-24 02:11:19 -0800353 vnet/ip/ip6_ll_table.c \
354 vnet/ip/ip6_ll_types.c \
Neale Rannsd91c1db2017-07-31 02:30:50 -0700355 vnet/ip/ip6_punt_drop.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100356 vnet/ip/ip6_hop_by_hop.c \
357 vnet/ip/ip6_input.c \
358 vnet/ip/ip6_neighbor.c \
359 vnet/ip/ip6_pg.c \
Klement Sekera75e7d132017-09-20 08:26:30 +0200360 vnet/ip/ip6_reassembly.c \
Juraj Slobodac0374232018-02-01 15:18:49 +0100361 vnet/ip/rd_cp.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100362 vnet/ip/ip_api.c \
363 vnet/ip/ip_checksum.c \
364 vnet/ip/ip_frag.c \
Florin Corascea194d2017-10-02 00:18:51 -0700365 vnet/ip/ip.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100366 vnet/ip/ip_init.c \
Neale Ranns039cbfe2018-02-27 03:45:38 -0800367 vnet/ip/ip_in_out_acl.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100368 vnet/ip/lookup.c \
369 vnet/ip/ping.c \
Neale Rannsb8d44812017-11-10 06:53:54 -0800370 vnet/ip/punt_api.c \
Dave Barach68b0fb02017-02-28 15:15:56 -0500371 vnet/ip/punt.c
Damjan Marion7cd468a2016-12-19 23:05:39 +0100372
373nobase_include_HEADERS += \
374 vnet/ip/format.h \
375 vnet/ip/icmp46_packet.h \
376 vnet/ip/icmp4.h \
377 vnet/ip/icmp6.h \
378 vnet/ip/igmp_packet.h \
379 vnet/ip/ip.api.h \
Juraj Slobodac0374232018-02-01 15:18:49 +0100380 vnet/ip/rd_cp.api.h \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100381 vnet/ip/ip4_error.h \
382 vnet/ip/ip4.h \
383 vnet/ip/ip4_mtrie.h \
384 vnet/ip/ip4_packet.h \
385 vnet/ip/ip6_error.h \
386 vnet/ip/ip6.h \
387 vnet/ip/ip6_hop_by_hop.h \
388 vnet/ip/ip6_hop_by_hop_packet.h \
389 vnet/ip/ip6_packet.h \
390 vnet/ip/ip6_neighbor.h \
391 vnet/ip/ip.h \
392 vnet/ip/ip_packet.h \
393 vnet/ip/ip_source_and_port_range_check.h \
394 vnet/ip/lookup.h \
395 vnet/ip/ports.def \
396 vnet/ip/protocols.def \
397 vnet/ip/punt_error.def \
Neale Rannsb8d44812017-11-10 06:53:54 -0800398 vnet/ip/punt.api.h \
Dave Barach68b0fb02017-02-28 15:15:56 -0500399 vnet/ip/punt.h
Damjan Marion7cd468a2016-12-19 23:05:39 +0100400
Neale Rannsb8d44812017-11-10 06:53:54 -0800401API_FILES += \
402 vnet/ip/ip.api \
Juraj Slobodac0374232018-02-01 15:18:49 +0100403 vnet/ip/rd_cp.api \
Neale Rannsb8d44812017-11-10 06:53:54 -0800404 vnet/ip/punt.api
Damjan Marion7cd468a2016-12-19 23:05:39 +0100405
406########################################
407# Bidirectional Forwarding Detection
408########################################
409
410nobase_include_HEADERS += \
411 vnet/bfd/bfd_protocol.h \
412 vnet/bfd/bfd_main.h \
413 vnet/bfd/bfd_api.h \
414 vnet/bfd/bfd_udp.h \
415 vnet/bfd/bfd.api.h
416
417libvnet_la_SOURCES += \
418 vnet/bfd/bfd_api.h \
419 vnet/bfd/bfd_udp.c \
420 vnet/bfd/bfd_main.c \
421 vnet/bfd/bfd_protocol.c \
Klement Sekera73884482017-02-23 09:26:30 +0100422 vnet/bfd/bfd_cli.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100423 vnet/bfd/bfd_api.c
424
425API_FILES += vnet/bfd/bfd.api
426
427########################################
428# Layer 3 protocol: IPSec
429########################################
Damjan Mariona9a951f2017-01-16 22:06:10 +0100430if WITH_LIBSSL
Damjan Marion7cd468a2016-12-19 23:05:39 +0100431libvnet_la_SOURCES += \
432 vnet/ipsec/ipsec.c \
433 vnet/ipsec/ipsec_cli.c \
434 vnet/ipsec/ipsec_format.c \
435 vnet/ipsec/ipsec_input.c \
436 vnet/ipsec/ipsec_if.c \
437 vnet/ipsec/ipsec_if_in.c \
438 vnet/ipsec/ipsec_if_out.c \
Sergio Gonzalez Monroydb93cd92017-08-26 15:22:05 +0100439 vnet/ipsec/esp_format.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100440 vnet/ipsec/esp_encrypt.c \
441 vnet/ipsec/esp_decrypt.c \
“mukeshyadav1984”430ac932017-11-23 02:39:33 -0800442 vnet/ipsec/ah_decrypt.c \
443 vnet/ipsec/ah_encrypt.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100444 vnet/ipsec/ikev2.c \
445 vnet/ipsec/ikev2_crypto.c \
446 vnet/ipsec/ikev2_cli.c \
447 vnet/ipsec/ikev2_payload.c \
448 vnet/ipsec/ikev2_format.c \
449 vnet/ipsec/ipsec_api.c
450
451API_FILES += vnet/ipsec/ipsec.api
Damjan Marion7cd468a2016-12-19 23:05:39 +0100452endif
453
454libvnet_la_SOURCES += \
455 vnet/ipsec/ipsec_output.c
456
457nobase_include_HEADERS += \
458 vnet/ipsec/ipsec.h \
459 vnet/ipsec/esp.h \
“mukeshyadav1984”430ac932017-11-23 02:39:33 -0800460 vnet/ipsec/ah.h \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100461 vnet/ipsec/ikev2.h \
462 vnet/ipsec/ikev2_priv.h \
463 vnet/ipsec/ipsec.api.h
Damjan Marion7cd468a2016-12-19 23:05:39 +0100464
465########################################
466# Layer 3 protocol: osi
467########################################
468libvnet_la_SOURCES += \
469 vnet/osi/node.c \
470 vnet/osi/osi.c \
471 vnet/osi/pg.c
472
473nobase_include_HEADERS += \
474 vnet/osi/osi.h
475
476########################################
477# Layer 3 protocol: MAP
478########################################
479libvnet_la_SOURCES += \
480 vnet/map/map.c \
481 vnet/map/map_dpo.c \
482 vnet/map/ip4_map.c \
483 vnet/map/ip6_map.c \
484 vnet/map/ip4_map_t.c \
485 vnet/map/ip6_map_t.c \
486 vnet/map/map_api.c
487
488nobase_include_HEADERS += \
489 vnet/map/map.h \
490 vnet/map/map_dpo.h \
491 vnet/map/map.api.h
492
493API_FILES += vnet/map/map.api
494
495if ENABLE_TESTS
496TESTS += test_map
497test_map_SOURCES = \
498 vnet/map/test.c
499test_map_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG
500
501test_map_LDADD = libvnet.la libvppinfra.la libvlib.la \
Dave Barach654ceaf2017-03-29 16:59:02 -0400502 -lpthread -lvlibmemory -ldl -lsvm -lrt
Damjan Marion7cd468a2016-12-19 23:05:39 +0100503
504test_map_LDFLAGS = -static
505endif
506
Dave Barach68b0fb02017-02-28 15:15:56 -0500507########################################
508# Layer 4 protocol: tcp
509########################################
510libvnet_la_SOURCES += \
Dave Barach3bbcfab2017-08-15 19:03:44 -0400511 vnet/tcp/tcp_api.c \
Dave Barach68b0fb02017-02-28 15:15:56 -0500512 vnet/tcp/tcp_format.c \
513 vnet/tcp/tcp_pg.c \
514 vnet/tcp/tcp_syn_filter4.c \
515 vnet/tcp/tcp_output.c \
516 vnet/tcp/tcp_input.c \
517 vnet/tcp/tcp_newreno.c \
Florin Coras6792ec02017-03-13 03:49:51 -0700518 vnet/tcp/tcp_test.c \
Dave Barach68b0fb02017-02-28 15:15:56 -0500519 vnet/tcp/tcp.c
520
521nobase_include_HEADERS += \
522 vnet/tcp/tcp_packet.h \
523 vnet/tcp/tcp_timer.h \
Florin Corase69f4952017-03-07 10:06:24 -0800524 vnet/tcp/tcp_debug.h \
Florin Corasc940f092017-08-23 11:24:02 -0700525 vnet/tcp/tcp.h \
526 vnet/tcp/tcp.api.h
Dave Barach68b0fb02017-02-28 15:15:56 -0500527
Dave Barach3bbcfab2017-08-15 19:03:44 -0400528API_FILES += vnet/tcp/tcp.api
529
Dave Barach68b0fb02017-02-28 15:15:56 -0500530########################################
531# Layer 4 protocol: udp
532########################################
533libvnet_la_SOURCES += \
534 vnet/udp/udp.c \
535 vnet/udp/udp_input.c \
Dave Barach68b0fb02017-02-28 15:15:56 -0500536 vnet/udp/udp_format.c \
537 vnet/udp/udp_local.c \
Neale Ranns810086d2017-11-05 16:26:46 -0800538 vnet/udp/udp_pg.c \
539 vnet/udp/udp_encap_node.c \
540 vnet/udp/udp_encap.c \
541 vnet/udp/udp_api.c
Dave Barach68b0fb02017-02-28 15:15:56 -0500542
543nobase_include_HEADERS += \
544 vnet/udp/udp_error.def \
545 vnet/udp/udp.h \
Florin Corasf1493142017-11-09 14:17:27 -0800546 vnet/udp/udp_packet.h \
547 vnet/udp/udp.api.h
Damjan Marion7cd468a2016-12-19 23:05:39 +0100548
Neale Ranns810086d2017-11-05 16:26:46 -0800549API_FILES += vnet/udp/udp.api
550
Damjan Marion7cd468a2016-12-19 23:05:39 +0100551########################################
Marco Varlese191a5942017-10-30 18:17:21 +0100552# Layer 4 protocol: sctp
553########################################
554libvnet_la_SOURCES += \
Marco Varlese3c6a9762018-03-01 11:19:59 +0100555 vnet/sctp/sctp_api.c \
Marco Varlese191a5942017-10-30 18:17:21 +0100556 vnet/sctp/sctp.c \
557 vnet/sctp/sctp_pg.c \
558 vnet/sctp/sctp_input.c \
559 vnet/sctp/sctp_output.c \
Florin Coras4399c2e2018-01-25 06:34:42 -0800560 vnet/sctp/sctp_format.c
Marco Varlese191a5942017-10-30 18:17:21 +0100561
562nobase_include_HEADERS += \
563 vnet/sctp/sctp_error.def \
564 vnet/sctp/sctp_packet.h \
565 vnet/sctp/sctp_timer.h \
Marco Varlese3c6a9762018-03-01 11:19:59 +0100566 vnet/sctp/sctp.h \
567 vnet/sctp/sctp.api.h
568
569API_FILES += vnet/sctp/sctp.api
Marco Varlese191a5942017-10-30 18:17:21 +0100570
571########################################
Damjan Marion7cd468a2016-12-19 23:05:39 +0100572# Tunnel protocol: gre
573########################################
574libvnet_la_SOURCES += \
575 vnet/gre/gre.c \
576 vnet/gre/node.c \
577 vnet/gre/interface.c \
578 vnet/gre/pg.c \
579 vnet/gre/gre_api.c
580
581nobase_include_HEADERS += \
582 vnet/gre/gre.h \
583 vnet/gre/packet.h \
584 vnet/gre/error.def \
585 vnet/gre/gre.api.h
586
587API_FILES += vnet/gre/gre.api
588
589########################################
Ole Troan298c6952018-03-08 12:30:43 +0100590# Tunnel protocol: ipip
591########################################
592libvnet_la_SOURCES += \
593 vnet/ipip/ipip.c \
594 vnet/ipip/node.c \
595 vnet/ipip/sixrd.c \
596 vnet/ipip/ipip_api.c \
597 vnet/ipip/ipip_cli.c
598
599nobase_include_HEADERS += \
Jon Loeliger1fcbd722018-03-14 14:08:43 -0500600 vnet/ipip/ipip.api.h \
Ole Troan298c6952018-03-08 12:30:43 +0100601 vnet/ipip/ipip.h
602
603API_FILES += vnet/ipip/ipip.api
604
605########################################
Damjan Marion7cd468a2016-12-19 23:05:39 +0100606# Tunnel protocol: l2tpv3
607########################################
608libvnet_la_SOURCES += \
609 vnet/l2tp/l2tp.c \
610 vnet/l2tp/encap.c \
611 vnet/l2tp/decap.c \
612 vnet/l2tp/pg.c \
613 vnet/l2tp/l2tp_api.c
614
615nobase_include_HEADERS += \
616 vnet/l2tp/l2tp.h \
617 vnet/l2tp/packet.h \
618 vnet/l2tp/l2tp.api.h
619
620API_FILES += vnet/l2tp/l2tp.api
621
622########################################
623# Tunnel protocol: gre+mpls
624########################################
625libvnet_la_SOURCES += \
626 vnet/mpls/mpls.c \
627 vnet/mpls/mpls_lookup.c \
628 vnet/mpls/mpls_output.c \
629 vnet/mpls/mpls_features.c \
Neale Ranns696e88d2017-03-16 07:34:55 -0400630 vnet/mpls/mpls_input.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100631 vnet/mpls/interface.c \
632 vnet/mpls/mpls_tunnel.c \
Pavel Kotucek0f971d82017-01-03 10:48:54 +0100633 vnet/mpls/pg.c \
634 vnet/mpls/mpls_api.c
Damjan Marion7cd468a2016-12-19 23:05:39 +0100635
636nobase_include_HEADERS += \
637 vnet/mpls/mpls.h \
638 vnet/mpls/mpls_types.h \
639 vnet/mpls/mpls_tunnel.h \
640 vnet/mpls/packet.h \
Pavel Kotucek0f971d82017-01-03 10:48:54 +0100641 vnet/mpls/error.def \
642 vnet/mpls/mpls.api.h
Damjan Marion7cd468a2016-12-19 23:05:39 +0100643
Pavel Kotucek0f971d82017-01-03 10:48:54 +0100644API_FILES += vnet/mpls/mpls.api
Damjan Marion7cd468a2016-12-19 23:05:39 +0100645
646########################################
647# Tunnel protocol: vxlan-gpe
648########################################
649
650libvnet_la_SOURCES += \
651 vnet/vxlan-gpe/vxlan_gpe.c \
652 vnet/vxlan-gpe/encap.c \
653 vnet/vxlan-gpe/decap.c \
654 vnet/vxlan-gpe/vxlan_gpe_api.c
655
656nobase_include_HEADERS += \
657 vnet/vxlan-gpe/vxlan_gpe.h \
658 vnet/vxlan-gpe/vxlan_gpe_packet.h \
659 vnet/vxlan-gpe/vxlan_gpe_error.def \
660 vnet/vxlan-gpe/vxlan_gpe.api.h
661
662API_FILES += vnet/vxlan-gpe/vxlan_gpe.api
663
664########################################
665# Tunnel protocol: ipsec+gre
666########################################
667libvnet_la_SOURCES += \
668 vnet/ipsec-gre/ipsec_gre.c \
669 vnet/ipsec-gre/node.c \
670 vnet/ipsec-gre/interface.c \
671 vnet/ipsec-gre/ipsec_gre_api.c
672
673nobase_include_HEADERS += \
674 vnet/ipsec-gre/ipsec_gre.h \
675 vnet/ipsec-gre/error.def \
676 vnet/ipsec-gre/ipsec_gre.api.h
677
678API_FILES += vnet/ipsec-gre/ipsec_gre.api
679
680########################################
681# LISP control plane: lisp-cp
682########################################
683
684libvnet_la_SOURCES += \
685 vnet/lisp-cp/lisp_types.c \
686 vnet/lisp-cp/lisp_cp_dpo.c \
687 vnet/lisp-cp/control.c \
688 vnet/lisp-cp/gid_dictionary.c \
689 vnet/lisp-cp/lisp_msg_serdes.c \
690 vnet/lisp-cp/packets.c \
Filip Tehlar694396d2017-02-17 14:29:11 +0100691 vnet/lisp-cp/one_cli.c \
Florin Corasf3dc11a2017-01-24 03:13:43 -0800692 vnet/lisp-cp/lisp_cli.c \
Filip Tehlar694396d2017-02-17 14:29:11 +0100693 vnet/lisp-cp/one_api.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100694 vnet/lisp-cp/lisp_api.c
695
696nobase_include_HEADERS += \
697 vnet/lisp-cp/lisp_types.h \
698 vnet/lisp-cp/packets.h \
699 vnet/lisp-cp/gid_dictionary.h \
700 vnet/lisp-cp/lisp_cp_messages.h \
701 vnet/lisp-cp/lisp_msg_serdes.h \
702 vnet/lisp-cp/control.h \
Filip Tehlar694396d2017-02-17 14:29:11 +0100703 vnet/lisp-cp/one.api.h \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100704 vnet/lisp-cp/lisp.api.h
705
706API_FILES += vnet/lisp-cp/lisp.api
Filip Tehlar694396d2017-02-17 14:29:11 +0100707API_FILES += vnet/lisp-cp/one.api
Damjan Marion7cd468a2016-12-19 23:05:39 +0100708
709if ENABLE_TESTS
710LDS = \
711 libvppinfra.la \
712 libvnet.la \
713 libvlib.la \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100714 libsvm.la \
715 libsvmdb.la \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100716 libvlibmemory.la \
Damjan Marionc74a86a2017-01-16 14:00:03 +0100717 -lpthread -ldl -lrt -lm
Damjan Marion7cd468a2016-12-19 23:05:39 +0100718
719TESTS += test_cp_serdes test_lisp_types
720
721test_cp_serdes_SOURCES = \
722 tests/vnet/lisp-cp/test_cp_serdes.c \
723 vnet/lisp-cp/lisp_msg_serdes.c \
724 vnet/lisp-cp/lisp_types.c \
725 vnet/lisp-cp/packets.c \
726 vnet/ip/ip_checksum.c
727
728test_lisp_types_SOURCES = \
729 tests/vnet/lisp-cp/test_lisp_types.c \
730 vnet/lisp-cp/lisp_types.c
731
732test_cp_serdes_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG
733test_lisp_types_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG
734
Damjan Marionc74a86a2017-01-16 14:00:03 +0100735test_cp_serdes_LDADD = $(LDS)
736test_lisp_types_LDADD = $(LDS)
Damjan Marion7cd468a2016-12-19 23:05:39 +0100737endif
738
739########################################
740# Tunnel protocol: lisp-gpe
741########################################
742
743libvnet_la_SOURCES += \
744 vnet/lisp-gpe/lisp_gpe.c \
745 vnet/lisp-gpe/lisp_gpe_sub_interface.c \
746 vnet/lisp-gpe/lisp_gpe_adjacency.c \
747 vnet/lisp-gpe/lisp_gpe_tunnel.c \
748 vnet/lisp-gpe/lisp_gpe_fwd_entry.c \
749 vnet/lisp-gpe/lisp_gpe_tenant.c \
750 vnet/lisp-gpe/interface.c \
751 vnet/lisp-gpe/decap.c \
752 vnet/lisp-gpe/lisp_gpe_api.c
753
754nobase_include_HEADERS += \
755 vnet/lisp-gpe/lisp_gpe.h \
756 vnet/lisp-gpe/lisp_gpe_fwd_entry.h \
757 vnet/lisp-gpe/lisp_gpe_tenant.h \
758 vnet/lisp-gpe/lisp_gpe_packet.h \
759 vnet/lisp-gpe/lisp_gpe_error.def \
760 vnet/lisp-gpe/lisp_gpe.api.h
761
762API_FILES += vnet/lisp-gpe/lisp_gpe.api
763
Damjan Marion7cd468a2016-12-19 23:05:39 +0100764########################################
765# DHCP client
766########################################
767libvnet_la_SOURCES += \
768 vnet/dhcp/client.c \
Neale Ranns54c6dc42018-01-17 10:29:10 -0800769 vnet/dhcp/dhcp_client_detect.c \
Pavel Kotucekc8d87702017-01-25 07:25:32 +0100770 vnet/dhcp/dhcp_api.c
Damjan Marion7cd468a2016-12-19 23:05:39 +0100771
772nobase_include_HEADERS += \
Neale Ranns2dd68522017-02-16 03:38:59 -0800773 vnet/dhcp/client.h \
Pavel Kotucekc8d87702017-01-25 07:25:32 +0100774 vnet/dhcp/dhcp.api.h
775
776API_FILES += vnet/dhcp/dhcp.api
Damjan Marion7cd468a2016-12-19 23:05:39 +0100777
778########################################
779# DHCP proxy
780########################################
781libvnet_la_SOURCES += \
Neale Ranns2dd68522017-02-16 03:38:59 -0800782 vnet/dhcp/dhcp6_proxy_node.c \
783 vnet/dhcp/dhcp4_proxy_node.c \
784 vnet/dhcp/dhcp_proxy.c
Damjan Marion7cd468a2016-12-19 23:05:39 +0100785
786nobase_include_HEADERS += \
Neale Ranns2dd68522017-02-16 03:38:59 -0800787 vnet/dhcp/dhcp4_packet.h \
788 vnet/dhcp/dhcp6_packet.h \
789 vnet/dhcp/dhcp_proxy.h \
790 vnet/dhcp/dhcp6_proxy_error.def \
791 vnet/dhcp/dhcp4_proxy_error.def
Damjan Marion7cd468a2016-12-19 23:05:39 +0100792
793########################################
794# ipv6 segment routing
795########################################
796
Damjan Marion7cd468a2016-12-19 23:05:39 +0100797libvnet_la_SOURCES += \
Pablo Camarillo5d73eec2017-04-24 17:51:56 +0200798 vnet/srv6/sr.c \
799 vnet/srv6/sr_localsid.c \
800 vnet/srv6/sr_policy_rewrite.c \
801 vnet/srv6/sr_steering.c \
802 vnet/srv6/sr_api.c
Damjan Marion7cd468a2016-12-19 23:05:39 +0100803
804nobase_include_HEADERS += \
Pablo Camarillo5d73eec2017-04-24 17:51:56 +0200805 vnet/srv6/sr_packet.h \
806 vnet/srv6/sr.h \
807 vnet/srv6/sr.api.h
Pavel Kotucek0f971d82017-01-03 10:48:54 +0100808
Pablo Camarillo5d73eec2017-04-24 17:51:56 +0200809API_FILES += vnet/srv6/sr.api
810
811########################################
812# mpls segment routing
813########################################
814
815libvnet_la_SOURCES += \
816 vnet/srmpls/sr_mpls_policy.c \
Pablo Camarillo42998822017-07-13 09:41:32 +0200817 vnet/srmpls/sr_mpls_steering.c \
818 vnet/srmpls/sr_mpls_api.c
Pablo Camarillo5d73eec2017-04-24 17:51:56 +0200819
820
821nobase_include_HEADERS += \
Pablo Camarillo42998822017-07-13 09:41:32 +0200822 vnet/srmpls/sr_mpls.h \
823 vnet/srmpls/sr_mpls.api.h
824
825API_FILES += vnet/srmpls/sr_mpls.api
Damjan Marion7cd468a2016-12-19 23:05:39 +0100826
827########################################
Damjan Marion7cd468a2016-12-19 23:05:39 +0100828# IPFIX / netflow v10
829########################################
830libvnet_la_SOURCES += \
Pavel Kotucekeb9e6662017-01-24 13:40:26 +0100831 vnet/flow/flow_report.c \
832 vnet/flow/flow_api.c
Damjan Marion7cd468a2016-12-19 23:05:39 +0100833
834nobase_include_HEADERS += \
835 vnet/flow/flow_report.h \
836 vnet/flow/ipfix_info_elements.h \
Pavel Kotucekeb9e6662017-01-24 13:40:26 +0100837 vnet/flow/ipfix_packet.h \
838 vnet/flow/flow.api.h
839
840API_FILES += vnet/flow/flow.api
Damjan Marion7cd468a2016-12-19 23:05:39 +0100841
842########################################
843# IPFIX classify code
844########################################
845
846libvnet_la_SOURCES += \
847 vnet/flow/flow_report_classify.c
848
849nobase_include_HEADERS += \
850 vnet/flow/flow_report_classify.h
851
852########################################
853# lawful intercept
854########################################
855
856libvnet_la_SOURCES += \
857 vnet/lawful-intercept/lawful_intercept.c \
858 vnet/lawful-intercept/node.c
859
860nobase_include_HEADERS += \
861 vnet/lawful-intercept/lawful_intercept.h
862
863########################################
864# SPAN (port mirroring)
865########################################
866
867libvnet_la_SOURCES += \
868 vnet/span/span_api.c \
869 vnet/span/span.c \
870 vnet/span/node.c
871
872nobase_include_HEADERS += \
873 vnet/span/span.api.h \
874 vnet/span/span.h
875
876API_FILES += vnet/span/span.api
877
878########################################
Dave Barach65457162017-10-10 17:53:14 -0400879# DNS proxy, API
880########################################
881libvnet_la_SOURCES += \
882 vnet/dns/dns.c \
883 vnet/dns/dns.h \
884 vnet/dns/dns_packet.h \
885 vnet/dns/reply_node.c \
Dave Barach97494502017-11-04 09:44:38 -0400886 vnet/dns/request_node.c \
Dave Barach65457162017-10-10 17:53:14 -0400887 vnet/dns/resolver_process.c
888
889nobase_include_HEADERS += \
890 vnet/dns/dns.api.h \
891 vnet/dns/dns.h
892
893API_FILES += vnet/dns/dns.api
894
895########################################
Damjan Marion7cd468a2016-12-19 23:05:39 +0100896# Packet generator
897########################################
898
899libvnet_la_SOURCES += \
900 vnet/pg/cli.c \
901 vnet/pg/edit.c \
902 vnet/pg/init.c \
903 vnet/pg/input.c \
904 vnet/pg/output.c \
Neale Rannsb8d44812017-11-10 06:53:54 -0800905 vnet/pg/stream.c \
906 vnet/pg/pg_api.c
Damjan Marion7cd468a2016-12-19 23:05:39 +0100907
908nobase_include_HEADERS += \
909 vnet/pg/pg.h \
Neale Rannsb8d44812017-11-10 06:53:54 -0800910 vnet/pg/edit.h \
911 vnet/pg/pg.api.h
912
913API_FILES += vnet/pg/pg.api
Damjan Marion7cd468a2016-12-19 23:05:39 +0100914
Damjan Marion7cd468a2016-12-19 23:05:39 +0100915########################################
916# virtio
917########################################
918
Damjan Marionc99b4cd2017-12-04 15:25:58 +0100919libvnet_la_SOURCES += \
920 vnet/devices/virtio/device.c \
921 vnet/devices/virtio/node.c \
922 vnet/devices/virtio/vhost-user.c \
923 vnet/devices/virtio/vhost_user_api.c \
Damjan Marion8389fb92017-10-13 18:29:53 +0200924 vnet/devices/virtio/virtio.c
925
Damjan Marion7cd468a2016-12-19 23:05:39 +0100926
Damjan Marionc99b4cd2017-12-04 15:25:58 +0100927nobase_include_HEADERS += \
928 vnet/devices/virtio/virtio.h \
929 vnet/devices/virtio/vhost-user.h \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100930 vnet/devices/virtio/vhost_user.api.h
931
932API_FILES += vnet/devices/virtio/vhost_user.api
933
934########################################
Damjan Marionc99b4cd2017-12-04 15:25:58 +0100935# tap interface (with virtio backend)
936########################################
937
938libvnet_la_SOURCES += \
939 vnet/devices/tap/cli.c \
940 vnet/devices/tap/tap.c \
941 vnet/devices/tap/tapv2_api.c
942
943nobase_include_HEADERS += \
944 vnet/devices/tap/tap.h \
945 vnet/devices/tap/tapv2.api.h
946
947API_FILES += vnet/devices/tap/tapv2.api
948
949########################################
Dave Barach68b0fb02017-02-28 15:15:56 -0500950# session managmeent
951########################################
952
953libvnet_la_SOURCES += \
954 vnet/session/session.c \
Florin Corascea194d2017-10-02 00:18:51 -0700955 vnet/session/session_table.c \
Florin Coras1c710452017-10-17 00:03:13 -0700956 vnet/session/session_rules_table.c \
Florin Coras04e53442017-07-16 17:12:15 -0700957 vnet/session/session_lookup.c \
958 vnet/session/session_node.c \
Florin Coras3cbc04b2017-10-02 00:18:51 -0700959 vnet/session/transport.c \
Dave Barach68b0fb02017-02-28 15:15:56 -0500960 vnet/session/application.c \
961 vnet/session/session_cli.c \
Dave Barach68b0fb02017-02-28 15:15:56 -0500962 vnet/session/application_interface.c \
Florin Corascea194d2017-10-02 00:18:51 -0700963 vnet/session/application_namespace.c \
Florin Coras6cf30ad2017-04-04 23:08:23 -0700964 vnet/session/segment_manager.c \
Florin Corascea194d2017-10-02 00:18:51 -0700965 vnet/session/session_test.c \
Dave Barach68b0fb02017-02-28 15:15:56 -0500966 vnet/session/session_api.c
967
968nobase_include_HEADERS += \
969 vnet/session/session.h \
Florin Corascea194d2017-10-02 00:18:51 -0700970 vnet/session/session_table.h \
Florin Coras1c710452017-10-17 00:03:13 -0700971 vnet/session/session_rules_table.h \
Florin Coras04e53442017-07-16 17:12:15 -0700972 vnet/session/stream_session.h \
973 vnet/session/session_lookup.h \
Dave Barach68b0fb02017-02-28 15:15:56 -0500974 vnet/session/application.h \
975 vnet/session/transport.h \
Florin Coras04e53442017-07-16 17:12:15 -0700976 vnet/session/transport_interface.h \
Alexander Popovsky (apopovsk)6f6f52a2017-03-03 16:06:26 -0800977 vnet/session/application_interface.h \
Florin Corascea194d2017-10-02 00:18:51 -0700978 vnet/session/application_namespace.h \
Florin Corase69f4952017-03-07 10:06:24 -0800979 vnet/session/session_debug.h \
Florin Coras6cf30ad2017-04-04 23:08:23 -0700980 vnet/session/segment_manager.h \
Florin Coras1c710452017-10-17 00:03:13 -0700981 vnet/session/mma_template.h \
982 vnet/session/mma_template.c \
983 vnet/session/mma_16.h \
984 vnet/session/mma_40.h \
Alexander Popovsky (apopovsk)6f6f52a2017-03-03 16:06:26 -0800985 vnet/session/session.api.h
Dave Barach68b0fb02017-02-28 15:15:56 -0500986
987API_FILES += vnet/session/session.api
988
989########################################
Florin Coras4399c2e2018-01-25 06:34:42 -0800990# session layer applications
991########################################
992
993libvnet_la_SOURCES += \
994 vnet/session-apps/echo_client.c \
995 vnet/session-apps/echo_server.c \
996 vnet/session-apps/http_server.c \
997 vnet/session-apps/proxy.c
998
999nobase_include_HEADERS += \
1000 vnet/session-apps/echo_client.h \
1001 vnet/session-apps/proxy.h
1002
1003########################################
Florin Corasd77eee62018-03-07 08:49:27 -08001004# TLS protocol
1005########################################
1006
1007libvnet_la_SOURCES += vnet/tls/tls.c
1008
1009nobase_include_HEADERS += \
1010 vnet/tls/tls.h
1011
1012########################################
Damjan Marion7cd468a2016-12-19 23:05:39 +01001013# Linux packet interface
1014########################################
1015
1016libvnet_la_SOURCES += \
1017 vnet/devices/af_packet/af_packet.c \
1018 vnet/devices/af_packet/device.c \
1019 vnet/devices/af_packet/node.c \
1020 vnet/devices/af_packet/cli.c \
1021 vnet/devices/af_packet/af_packet_api.c
1022
1023nobase_include_HEADERS += \
1024 vnet/devices/af_packet/af_packet.h \
1025 vnet/devices/af_packet/af_packet.api.h
1026
1027API_FILES += vnet/devices/af_packet/af_packet.api
1028
1029########################################
1030# NETMAP interface
1031########################################
1032
1033libvnet_la_SOURCES += \
1034 vnet/devices/netmap/netmap.c \
1035 vnet/devices/netmap/device.c \
1036 vnet/devices/netmap/node.c \
1037 vnet/devices/netmap/cli.c \
1038 vnet/devices/netmap/netmap_api.c
1039
1040nobase_include_HEADERS += \
1041 vnet/devices/netmap/netmap.h \
1042 vnet/devices/netmap/netmap.api.h
1043
1044API_FILES += vnet/devices/netmap/netmap.api
1045
1046########################################
1047# Driver feature graph arc support
1048########################################
1049
1050libvnet_la_SOURCES += \
1051 vnet/feature/feature.c \
Neale Rannsb8d44812017-11-10 06:53:54 -08001052 vnet/feature/feature_api.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +01001053 vnet/feature/registration.c
1054
1055nobase_include_HEADERS += \
Neale Rannsb8d44812017-11-10 06:53:54 -08001056 vnet/feature/feature.h \
1057 vnet/feature/feature.api.h
1058
1059API_FILES += vnet/feature/feature.api
Damjan Marion7cd468a2016-12-19 23:05:39 +01001060
1061########################################
1062# Unix kernel related
1063########################################
1064
1065# FIXME: vnet/unix/hgshm.c
1066
1067libvnet_la_SOURCES += \
1068 vnet/unix/gdb_funcs.c \
1069 vnet/unix/pcap.c \
1070 vnet/unix/tap_api.c \
1071 vnet/unix/tapcli.c \
1072 vnet/unix/tuntap.c
1073
1074nobase_include_HEADERS += \
1075 vnet/unix/pcap.h \
1076 vnet/unix/tuntap.h \
1077 vnet/unix/tap.api.h \
1078 vnet/unix/tapcli.h
1079
1080API_FILES += vnet/unix/tap.api
1081
1082########################################
1083# FIB
1084########################################
1085
1086libvnet_la_SOURCES += \
1087 vnet/fib/fib.c \
1088 vnet/fib/fib_test.c \
1089 vnet/fib/ip4_fib.c \
1090 vnet/fib/ip6_fib.c \
1091 vnet/fib/mpls_fib.c \
1092 vnet/fib/fib_table.c \
1093 vnet/fib/fib_walk.c \
1094 vnet/fib/fib_types.c \
1095 vnet/fib/fib_node.c \
1096 vnet/fib/fib_node_list.c \
1097 vnet/fib/fib_entry.c \
1098 vnet/fib/fib_entry_src.c \
1099 vnet/fib/fib_entry_src_rr.c \
1100 vnet/fib/fib_entry_src_interface.c \
Neale Ranns2303cb12018-02-21 04:57:17 -08001101 vnet/fib/fib_entry_src_interpose.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +01001102 vnet/fib/fib_entry_src_default_route.c \
1103 vnet/fib/fib_entry_src_special.c \
1104 vnet/fib/fib_entry_src_api.c \
1105 vnet/fib/fib_entry_src_adj.c \
1106 vnet/fib/fib_entry_src_mpls.c \
1107 vnet/fib/fib_entry_src_lisp.c \
1108 vnet/fib/fib_entry_cover.c \
1109 vnet/fib/fib_entry_delegate.c \
1110 vnet/fib/fib_path_list.c \
1111 vnet/fib/fib_path.c \
1112 vnet/fib/fib_path_ext.c \
1113 vnet/fib/fib_urpf_list.c \
Neale Ranns88fc83e2017-04-05 08:11:14 -07001114 vnet/fib/fib_attached_export.c \
Neale Ranns81458422018-03-12 06:59:36 -07001115 vnet/fib/fib_api.c \
Neale Ranns88fc83e2017-04-05 08:11:14 -07001116 vnet/fib/fib_bfd.c
Damjan Marion7cd468a2016-12-19 23:05:39 +01001117
1118nobase_include_HEADERS += \
1119 vnet/fib/fib.h \
1120 vnet/fib/fib_api.h \
1121 vnet/fib/ip4_fib.h \
1122 vnet/fib/ip6_fib.h \
1123 vnet/fib/fib_types.h \
1124 vnet/fib/fib_table.h \
1125 vnet/fib/fib_node.h \
1126 vnet/fib/fib_node_list.h \
1127 vnet/fib/fib_entry.h \
1128 vnet/fib/fib_entry_delegate.h
1129
1130########################################
1131# ADJ
1132########################################
1133
1134libvnet_la_SOURCES += \
1135 vnet/adj/adj_nbr.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +01001136 vnet/adj/adj_glean.c \
1137 vnet/adj/adj_midchain.c \
Neale Ranns32e1c012016-11-22 17:07:28 +00001138 vnet/adj/adj_mcast.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +01001139 vnet/adj/adj_l2.c \
Florin Corasce1b4c72017-01-26 14:25:34 -08001140 vnet/adj/adj_nsh.c \
Neale Rannsfa5d1982017-02-20 14:19:51 -08001141 vnet/adj/adj.c \
Neale Ranns88fc83e2017-04-05 08:11:14 -07001142 vnet/adj/rewrite.c \
1143 vnet/adj/adj_bfd.c \
1144 vnet/adj/adj_delegate.c
Damjan Marion7cd468a2016-12-19 23:05:39 +01001145
1146nobase_include_HEADERS += \
1147 vnet/adj/adj.h \
1148 vnet/adj/adj_types.h \
Damjan Marion7cd468a2016-12-19 23:05:39 +01001149 vnet/adj/adj_glean.h \
Florin Corasce1b4c72017-01-26 14:25:34 -08001150 vnet/adj/adj_nsh.h \
Neale Rannsfa5d1982017-02-20 14:19:51 -08001151 vnet/adj/adj_nbr.h \
1152 vnet/adj/rewrite.h
Damjan Marion7cd468a2016-12-19 23:05:39 +01001153
1154########################################
1155# Data-Plane Objects
1156########################################
1157
1158libvnet_la_SOURCES += \
1159 vnet/dpo/dpo.c \
1160 vnet/dpo/drop_dpo.c \
1161 vnet/dpo/ip_null_dpo.c \
Neale Ranns53da2212018-02-24 02:11:19 -08001162 vnet/dpo/ip6_ll_dpo.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +01001163 vnet/dpo/punt_dpo.c \
1164 vnet/dpo/receive_dpo.c \
1165 vnet/dpo/load_balance.c \
1166 vnet/dpo/load_balance_map.c \
Neale Ranns32e1c012016-11-22 17:07:28 +00001167 vnet/dpo/lookup_dpo.c \
1168 vnet/dpo/classify_dpo.c \
1169 vnet/dpo/replicate_dpo.c \
Neale Ranns43161a82017-08-12 02:12:00 -07001170 vnet/dpo/interface_rx_dpo.c \
1171 vnet/dpo/interface_tx_dpo.c \
Neale Ranns0f26c5a2017-03-01 15:12:11 -08001172 vnet/dpo/mpls_disposition.c \
Neale Ranns6f631152017-10-03 08:20:21 -07001173 vnet/dpo/mpls_label_dpo.c \
Andrew Yourtchenko5f3fcb92017-10-25 05:50:37 -07001174 vnet/dpo/l3_proxy_dpo.c \
Neale Rannsf068c3e2018-01-03 04:18:48 -08001175 vnet/dpo/dvr_dpo.c
Damjan Marion7cd468a2016-12-19 23:05:39 +01001176
1177nobase_include_HEADERS += \
1178 vnet/dpo/load_balance.h \
1179 vnet/dpo/drop_dpo.h \
1180 vnet/dpo/lookup_dpo.h \
1181 vnet/dpo/punt_dpo.h \
1182 vnet/dpo/classify_dpo.h \
1183 vnet/dpo/receive_dpo.h \
1184 vnet/dpo/ip_null_dpo.h \
Neale Ranns60c1c7c2017-11-02 07:39:24 -07001185 vnet/dpo/replicate_dpo.h \
Damjan Marion7cd468a2016-12-19 23:05:39 +01001186 vnet/dpo/dpo.h
1187
1188########################################
Neale Ranns32e1c012016-11-22 17:07:28 +00001189# Multicast FIB
1190########################################
1191
1192libvnet_la_SOURCES += \
1193 vnet/mfib/mfib_test.c \
1194 vnet/mfib/mfib_forward.c \
1195 vnet/mfib/ip4_mfib.c \
1196 vnet/mfib/ip6_mfib.c \
1197 vnet/mfib/mfib_types.c \
1198 vnet/mfib/mfib_signal.c \
1199 vnet/mfib/mfib_itf.c \
1200 vnet/mfib/mfib_entry.c \
1201 vnet/mfib/mfib_table.c
1202
1203nobase_include_HEADERS += \
1204 vnet/mfib/ip4_mfib.h \
1205 vnet/mfib/mfib_types.h \
1206 vnet/mfib/mfib_table.h
1207
1208########################################
1209# Utilities
1210########################################
1211
1212libvnet_la_SOURCES += \
Hongjun Nibf4be572017-11-13 20:34:06 +08001213 vnet/util/radix.c \
1214 vnet/util/refcount.c \
Dave Barach7bee7732017-10-18 18:48:11 -04001215 vnet/util/trajectory.c
Neale Ranns32e1c012016-11-22 17:07:28 +00001216
1217########################################
Neale Ranns039cbfe2018-02-27 03:45:38 -08001218# QoS
1219########################################
1220
1221libvnet_la_SOURCES += \
1222 vnet/qos/qos_types.c \
1223 vnet/qos/qos_api.c \
1224 vnet/qos/qos_egress_map.c \
1225 vnet/qos/qos_record.c \
1226 vnet/qos/qos_mark.c
1227
1228API_FILES += vnet/qos/qos.api
1229
Matus Fabian489cc822018-03-19 03:58:41 -07001230nobase_include_HEADERS += \
1231 vnet/qos/qos.api.h
1232
Neale Ranns039cbfe2018-02-27 03:45:38 -08001233########################################
Neale Rannsd792d9c2017-10-21 10:53:20 -07001234# BIER
1235########################################
1236
1237libvnet_la_SOURCES += \
1238 vnet/bier/bier_bit_string.c \
1239 vnet/bier/bier_entry.c \
1240 vnet/bier/bier_fmask.c \
1241 vnet/bier/bier_fmask_db.c \
1242 vnet/bier/bier_input.c \
1243 vnet/bier/bier_lookup.c \
1244 vnet/bier/bier_output.c \
1245 vnet/bier/bier_table.c \
1246 vnet/bier/bier_types.c \
1247 vnet/bier/bier_test.c \
1248 vnet/bier/bier_api.c \
1249 vnet/bier/bier_drop.c \
1250 vnet/bier/bier_update.c \
1251 vnet/bier/bier_imp_node.c \
1252 vnet/bier/bier_imp.c \
1253 vnet/bier/bier_disp_entry.c \
1254 vnet/bier/bier_disp_lookup_node.c \
1255 vnet/bier/bier_disp_dispatch_node.c \
Neale Ranns91286372017-12-05 13:24:04 -08001256 vnet/bier/bier_disp_table.c \
1257 vnet/bier/bier_bift_table.c
Neale Rannsd792d9c2017-10-21 10:53:20 -07001258
1259nobase_include_HEADERS += \
1260 vnet/bier/bier_types.h \
1261 vnet/bier/bier_entry.h \
1262 vnet/bier/bier_update.h \
1263 vnet/bier/bier.api.h \
1264 vnet/bier/bier_table.h
1265
1266API_FILES += vnet/bier/bier.api
1267
1268########################################
Florin Coras891f0a12017-12-11 11:49:26 -08001269# Test apps
1270########################################
1271
1272noinst_PROGRAMS += tcp_echo udp_echo
1273
1274TEST_APPS_LDADD = libvlibmemoryclient.la libsvm.la libvppinfra.la
1275TEST_APPS_LDADD += -lpthread -lm -lrt
1276
1277tcp_echo_SOURCES = tests/vnet/session/tcp_echo.c
1278tcp_echo_LDADD = $(TEST_APPS_LDADD)
1279
1280udp_echo_SOURCES = tests/vnet/session/udp_echo.c
1281udp_echo_LDADD = $(TEST_APPS_LDADD)
1282
1283########################################
Damjan Marion7cd468a2016-12-19 23:05:39 +01001284# Plugin client library
1285########################################
1286
Damjan Marion7cd468a2016-12-19 23:05:39 +01001287nobase_include_HEADERS += \
1288 vnet/plugin/plugin.h
1289
Damjan Marion7cd468a2016-12-19 23:05:39 +01001290pcap2pg_SOURCES = \
1291 vnet/unix/pcap2pg.c \
1292 vnet/unix/pcap.h
1293
1294pcap2pg_LDFLAGS = -static
1295pcap2pg_LDADD = libvnet.la libvppinfra.la -lpthread libvlibmemory.la -lm -ldl
1296
Dave Baracha0cc5ab2018-02-23 12:09:41 -05001297pcap2cinit_SOURCES = \
1298 vnet/unix/pcap2cinit.c \
1299 vnet/unix/pcap.h
1300
1301pcap2cinit_LDFLAGS = -static
1302pcap2cinit_LDADD = libvnet.la libvppinfra.la -lpthread libvlibmemory.la -lm -ldl
1303
1304noinst_PROGRAMS += pcap2pg pcap2cinit
Damjan Marion7cd468a2016-12-19 23:05:39 +01001305
1306# vi:syntax=automake