fib: A 16-8-8 and a 8-8-8-8 versions of an ip4_fib_t
[vpp.git] / src / vnet / CMakeLists.txt
1 # Copyright (c) 2018-2020 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
14 unset(VNET_SOURCES)
15 unset(VNET_HEADERS)
16 unset(VNET_API_FILES)
17 unset(VNET_MULTIARCH_SOURCES)
18
19 ##############################################################################
20 # Generic stuff
21 ##############################################################################
22 list(APPEND VNET_SOURCES
23   buffer.c
24   config.c
25   devices/devices.c
26   devices/netlink.c
27   flow/flow.c
28   flow/flow_cli.c
29   flow/flow_api.c
30   handoff.c
31   interface.c
32   interface_api.c
33   interface_cli.c
34   interface_format.c
35   interface_output.c
36   interface/rx_queue.c
37   interface/tx_queue.c
38   interface/runtime.c
39   interface_stats.c
40   misc.c
41 )
42
43 list(APPEND VNET_MULTIARCH_SOURCES
44   interface_output.c
45   interface_stats.c
46   handoff.c
47 )
48
49 list(APPEND VNET_HEADERS
50   api_errno.h
51   buffer.h
52   config.h
53   devices/devices.h
54   devices/netlink.h
55   flow/flow.h
56   global_funcs.h
57   handoff.h
58   interface/rx_queue_funcs.h
59   interface/tx_queue_funcs.h
60   interface.h
61   interface_funcs.h
62   interface_output.h
63   ip/ip4_to_ip6.h
64   ip/ip6_to_ip4.h
65   ip/ip_types_api.h
66   l3_types.h
67   plugin/plugin.h
68   pipeline.h
69   vnet.h
70   util/radix.h
71   util/refcount.h
72   format_fns.h
73   ip/ip_format_fns.h
74   ethernet/ethernet_format_fns.h
75 )
76
77 list(APPEND VNET_API_FILES
78   interface.api
79   interface_types.api
80   ip/ip_types.api
81   flow/flow_types.api
82   flow/flow.api
83 )
84
85 ##############################################################################
86 # Policer infra
87 ##############################################################################
88 list(APPEND VNET_SOURCES
89   policer/node_funcs.c
90   policer/policer.c
91   policer/xlate.c
92   policer/policer_api.c
93 )
94
95 list(APPEND VNET_MULTIARCH_SOURCES
96   policer/node_funcs.c
97 )
98
99 list(APPEND VNET_HEADERS
100   policer/police.h
101   policer/policer.h
102   policer/xlate.h
103 )
104
105 list(APPEND VNET_API_FILES
106   policer/policer.api
107   policer/policer_types.api
108 )
109
110 ##############################################################################
111 # Layer 2 protocols go here
112 ##############################################################################
113
114 ##############################################################################
115 # Layer 2 protocol: Ethernet
116 ##############################################################################
117 list(APPEND VNET_SOURCES
118   ethernet/arp_packet.c
119   ethernet/ethernet_types_api.c
120   ethernet/format.c
121   ethernet/init.c
122   ethernet/interface.c
123   ethernet/mac_address.c
124   ethernet/node.c
125   ethernet/pg.c
126   ethernet/sfp.c
127   ethernet/p2p_ethernet.c
128   ethernet/p2p_ethernet_input.c
129   ethernet/p2p_ethernet_api.c
130 )
131
132 list(APPEND VNET_MULTIARCH_SOURCES
133   ethernet/node.c
134   ethernet/p2p_ethernet_input.c
135 )
136
137 list(APPEND VNET_HEADERS
138   ethernet/error.def
139   ethernet/ethernet.h
140   ethernet/mac_address.h
141   ethernet/packet.h
142   ethernet/types.def
143   ethernet/sfp.h
144   ethernet/p2p_ethernet.h
145   ethernet/arp_packet.h
146 )
147
148 list(APPEND VNET_API_FILES
149   ethernet/p2p_ethernet.api
150   ethernet/ethernet_types.api)
151
152 ##############################################################################
153 # Layer 2 protocol: Ethernet bridging
154 ##############################################################################
155 list(APPEND VNET_SOURCES
156   l2/feat_bitmap.c
157   l2/l2_api.c
158   l2/l2_arp_term.c
159   l2/l2_bd.c
160   l2/l2_bvi.c
161   l2/l2_bvi_node.c
162   l2/l2_input_classify.c
163   l2/l2_output_classify.c
164   l2/l2_efp_filter.c
165   l2/l2_fib.c
166   l2/l2_flood.c
167   l2/l2_fwd.c
168   l2/l2_input.c
169   l2/l2_input_node.c
170   l2/l2_input_vtr.c
171   l2/l2_learn.c
172   l2/l2_output.c
173   l2/l2_in_out_acl.c
174   l2/l2_in_out_feat_arc.c
175   l2/l2_patch.c
176   l2/l2_rw.c
177   l2/l2_uu_fwd.c
178   l2/l2_vtr.c
179   l2/l2_xcrw.c
180 )
181
182 list(APPEND VNET_MULTIARCH_SOURCES
183   l2/l2_bvi_node.c
184   l2/l2_fwd.c
185   l2/l2_learn.c
186   l2/l2_output.c
187   l2/l2_patch.c
188   l2/l2_in_out_feat_arc.c
189   l2/l2_input_classify.c
190   l2/l2_input_node.c
191   l2/l2_output_classify.c
192   l2/l2_flood.c
193   l2/l2_uu_fwd.c
194   l2/l2_efp_filter.c
195   l2/l2_rw.c
196   l2/l2_xcrw.c
197   l2/l2_in_out_acl.c
198   l2/l2_input_vtr.c
199 )
200
201 list(APPEND VNET_HEADERS
202   l2/feat_bitmap.h
203   l2/l2_input.h
204   l2/l2_output.h
205   l2/l2_vtr.h
206   l2/l2_input_vtr.h
207   l2/l2_efp_filter.h
208   l2/l2_fwd.h
209   l2/l2_bd.h
210   l2/l2_bvi.h
211   l2/l2_flood.h
212   l2/l2_fib.h
213   l2/l2_rw.h
214   l2/l2_xcrw.h
215   l2/l2_classify.h
216 )
217
218 list(APPEND VNET_API_FILES l2/l2.api)
219
220 ##############################################################################
221 # Layer 2 protocol: SRP
222 ##############################################################################
223 list(APPEND VNET_SOURCES
224   srp/format.c
225   srp/interface.c
226   srp/node.c
227   srp/pg.c
228 )
229
230 list(APPEND VNET_HEADERS
231   srp/packet.h
232   srp/srp.h
233 )
234
235 ##############################################################################
236 # Layer 2 protocol: PPP
237 ##############################################################################
238 list(APPEND VNET_SOURCES
239   ppp/node.c
240   ppp/pg.c
241   ppp/ppp.c
242 )
243
244 list(APPEND VNET_HEADERS
245   ppp/error.def
246   ppp/ppp.h
247   ppp/packet.h
248 )
249
250 ##############################################################################
251 # Layer 2 protocol: HDLC
252 ##############################################################################
253 list(APPEND VNET_SOURCES
254   hdlc/node.c
255   hdlc/pg.c
256   hdlc/hdlc.c
257 )
258
259 list(APPEND VNET_HEADERS
260   hdlc/error.def
261   hdlc/hdlc.h
262   hdlc/packet.h
263 )
264
265 ##############################################################################
266 # Layer 2 protocol: LLC
267 ##############################################################################
268 list(APPEND VNET_SOURCES
269   llc/llc.c
270   llc/node.c
271   llc/pg.c
272 )
273
274 list(APPEND VNET_HEADERS
275   llc/llc.h
276 )
277
278 ##############################################################################
279 # Layer 2 protocol: SNAP
280 ##############################################################################
281 list(APPEND VNET_SOURCES
282   snap/snap.c
283   snap/node.c
284   snap/pg.c
285 )
286
287 list(APPEND VNET_HEADERS
288   snap/snap.h
289 )
290
291 ##############################################################################
292 # Layer 2 / vxlan
293 ##############################################################################
294 list(APPEND VNET_SOURCES
295   vxlan/vxlan.c
296   vxlan/encap.c
297   vxlan/decap.c
298   vxlan/vxlan_api.c
299 )
300
301 list(APPEND VNET_MULTIARCH_SOURCES
302   vxlan/encap.c
303 )
304
305 list(APPEND VNET_HEADERS
306   vxlan/vxlan.h
307   vxlan/vxlan_packet.h
308   vxlan/vxlan_error.def
309 )
310
311 list(APPEND VNET_MULTIARCH_SOURCES vxlan/decap.c)
312
313 list(APPEND VNET_API_FILES vxlan/vxlan.api)
314
315 ##############################################################################
316 # Layer 2 / Bonding
317 ##############################################################################
318 list(APPEND VNET_SOURCES
319   bonding/cli.c
320   bonding/node.c
321   bonding/device.c
322   bonding/bond_api.c
323 )
324
325 list(APPEND VNET_HEADERS
326   bonding/node.h
327 )
328
329 list(APPEND VNET_MULTIARCH_SOURCES bonding/node.c bonding/device.c)
330 list(APPEND VNET_API_FILES bonding/bond.api)
331
332 ##############################################################################
333 # Layer 2/3 "classify"
334 ##############################################################################
335 list(APPEND VNET_SOURCES
336   classify/vnet_classify.c
337   classify/trace_classify.h
338   classify/ip_classify.c
339   classify/in_out_acl.c
340   classify/policer_classify.c
341   classify/flow_classify.c
342   classify/flow_classify_node.c
343   classify/vnet_classify.h
344   classify/classify_api.c
345 )
346
347 list(APPEND VNET_MULTIARCH_SOURCES
348   classify/ip_classify.c
349   classify/flow_classify_node.c
350 )
351
352 list(APPEND VNET_HEADERS
353   classify/vnet_classify.h
354   classify/trace_classify.h
355   classify/in_out_acl.h
356   classify/policer_classify.h
357   classify/flow_classify.h
358 )
359
360 list(APPEND VNET_API_FILES classify/classify.api)
361
362 ##############################################################################
363 # Layer 3 protocols go here
364 ##############################################################################
365
366 ##############################################################################
367 # Layer 3 protocol: IP v4/v6
368 ##############################################################################
369 list(APPEND VNET_SOURCES
370   ip/format.c
371   ip/icmp4.c
372   ip/icmp6.c
373   ip/ip46_cli.c
374   ip/ip_types_api.c
375   ip/ip46_address.c
376   ip/ip4_format.c
377   ip/ip4_forward.c
378   ip/ip4_punt_drop.c
379   ip/ip4_input.c
380   ip/ip4_options.c
381   ip/ip4_mtrie.c
382   ip/ip4_pg.c
383   ip/ip4_source_and_port_range_check.c
384   ip/reass/ip4_full_reass.c
385   ip/reass/ip4_sv_reass.c
386   ip/ip6_format.c
387   ip/ip6_forward.c
388   ip/ip6_ll_table.c
389   ip/ip6_ll_types.c
390   ip/ip6_punt_drop.c
391   ip/ip6_hop_by_hop.c
392   ip/ip6_input.c
393   ip/ip6_link.c
394   ip/ip6_pg.c
395   ip/reass/ip6_full_reass.c
396   ip/reass/ip6_sv_reass.c
397   ip/ip_api.c
398   ip/ip_checksum.c
399   ip/ip_container_proxy.c
400   ip/ip_frag.c
401   ip/ip.c
402   ip/ip_interface.c
403   ip/ip_init.c
404   ip/ip_in_out_acl.c
405   ip/ip_path_mtu.c
406   ip/ip_path_mtu_node.c
407   ip/ip_punt_drop.c
408   ip/ip_types.c
409   ip/lookup.c
410   ip/punt_api.c
411   ip/punt.c
412   ip/punt_node.c
413   ip/vtep.c
414 )
415
416 list(APPEND VNET_MULTIARCH_SOURCES
417   ip/ip4_punt_drop.c
418   ip/reass/ip4_full_reass.c
419   ip/ip6_hop_by_hop.c
420   ip/reass/ip6_full_reass.c
421   ip/reass/ip4_sv_reass.c
422   ip/ip6_hop_by_hop.c
423   ip/reass/ip6_full_reass.c
424   ip/reass/ip6_sv_reass.c
425   ip/ip6_input.c
426   ip/ip6_punt_drop.c
427   ip/punt_node.c
428   ip/ip_in_out_acl.c
429   ip/ip_path_mtu_node.c
430 )
431
432 list(APPEND VNET_HEADERS
433   ip/format.h
434   ip/icmp46_packet.h
435   ip/icmp4.h
436   ip/icmp6.h
437   ip/igmp_packet.h
438   ip/ip4_error.h
439   ip/ip4.h
440   ip/ip4_mtrie.h
441   ip/ip4_inlines.h
442   ip/ip4_packet.h
443   ip/ip46_address.h
444   ip/ip6_error.h
445   ip/ip6.h
446   ip/ip6_hop_by_hop.h
447   ip/ip6_hop_by_hop_packet.h
448   ip/ip6_inlines.h
449   ip/ip6_packet.h
450   ip/ip.h
451   ip/ip_container_proxy.h
452   ip/ip_flow_hash.h
453   ip/ip_table.h
454   ip/ip_interface.h
455   ip/ip_packet.h
456   ip/ip_source_and_port_range_check.h
457   ip/ip_types.h
458   ip/lookup.h
459   ip/ports.def
460   ip/protocols.def
461   ip/punt_error.def
462   ip/punt.h
463 )
464
465 list(APPEND VNET_API_FILES
466   ip/ip.api
467   ip/punt.api
468 )
469
470 list(APPEND VNET_MULTIARCH_SOURCES
471   ip/ip4_forward.c
472   ip/ip6_forward.c
473   ip/ip4_input.c
474 )
475
476 ##############################################################################
477 # Layer 3 neighbours
478 ##############################################################################
479 list(APPEND VNET_SOURCES
480   ip-neighbor/ip_neighbor.c
481   ip-neighbor/ip_neighbor_api.c
482   ip-neighbor/ip_neighbor_dp.c
483   ip-neighbor/ip_neighbor_types.c
484   ip-neighbor/ip_neighbor_watch.c
485   ip-neighbor/ip4_neighbor.c
486   ip-neighbor/ip6_neighbor.c
487 )
488
489 list(APPEND VNET_HEADERS
490   ip-neighbor/ip_neighbor.h
491   ip-neighbor/ip_neighbor_types.h
492 )
493
494 list(APPEND VNET_API_FILES
495   ip-neighbor/ip_neighbor.api
496 )
497
498 ##############################################################################
499 # Bidirectional Forwarding Detection
500 ##############################################################################
501
502 list(APPEND VNET_HEADERS
503   bfd/bfd_protocol.h
504   bfd/bfd_main.h
505   bfd/bfd_api.h
506   bfd/bfd_udp.h
507 )
508
509 list(APPEND VNET_SOURCES
510   bfd/bfd_api.h
511   bfd/bfd_udp.c
512   bfd/bfd_main.c
513   bfd/bfd_protocol.c
514   bfd/bfd_cli.c
515   bfd/bfd_api.c
516 )
517
518 list(APPEND VNET_API_FILES bfd/bfd.api)
519
520 ##############################################################################
521 # Crypto
522 ##############################################################################
523
524 list(APPEND VNET_SOURCES
525   crypto/cli.c
526   crypto/crypto.c
527   crypto/format.c
528   crypto/node.c
529   crypto/crypto_api.c
530 )
531
532 list(APPEND VNET_HEADERS
533   crypto/crypto.h
534 )
535
536 list(APPEND VNET_MULTIARCH_SOURCES crypto/node.c)
537
538 list(APPEND VNET_API_FILES crypto/crypto.api)
539
540 ##############################################################################
541 # Layer 3 protocol: IPSec
542 ##############################################################################
543 list(APPEND VNET_SOURCES
544   ipsec/ipsec.c
545   ipsec/ipsec_cli.c
546   ipsec/ipsec_format.c
547   ipsec/ipsec_handoff.c
548   ipsec/ipsec_input.c
549   ipsec/ipsec_itf.c
550   ipsec/ipsec_punt.c
551   ipsec/ipsec_sa.c
552   ipsec/ipsec_spd.c
553   ipsec/ipsec_spd_policy.c
554   ipsec/ipsec_tun.c
555   ipsec/ipsec_tun_in.c
556   ipsec/esp_format.c
557   ipsec/esp_encrypt.c
558   ipsec/esp_decrypt.c
559   ipsec/ah_decrypt.c
560   ipsec/ah_encrypt.c
561   ipsec/ipsec_api.c
562   ipsec/ipsec_types_api.c
563 )
564
565 list(APPEND VNET_MULTIARCH_SOURCES
566   ipsec/esp_encrypt.c
567   ipsec/esp_decrypt.c
568   ipsec/ah_decrypt.c
569   ipsec/ah_encrypt.c
570   ipsec/ipsec_handoff.c
571   ipsec/ipsec_output.c
572   ipsec/ipsec_input.c
573   ipsec/ipsec_tun_in.c
574 )
575
576 list(APPEND VNET_API_FILES ipsec/ipsec_types.api)
577 list(APPEND VNET_API_FILES ipsec/ipsec.api)
578
579 list(APPEND VNET_SOURCES
580   ipsec/ipsec_output.c
581 )
582
583 list(APPEND VNET_HEADERS
584   ipsec/ipsec.h
585   ipsec/ipsec_spd.h
586   ipsec/ipsec_spd_policy.h
587   ipsec/ipsec_sa.h
588   ipsec/ipsec_tun.h
589   ipsec/ipsec_types_api.h
590   ipsec/ipsec_punt.h
591   ipsec/esp.h
592   ipsec/ah.h
593 )
594
595 ##############################################################################
596 # Layer 3 protocol: osi
597 ##############################################################################
598 list(APPEND VNET_SOURCES
599   osi/node.c
600   osi/osi.c
601   osi/pg.c
602 )
603
604 list(APPEND VNET_HEADERS
605   osi/osi.h
606 )
607
608 ##############################################################################
609 # Layer 4 protocol: tcp
610 ##############################################################################
611 list(APPEND VNET_SOURCES
612   tcp/tcp_api.c
613   tcp/tcp_format.c
614   tcp/tcp_pg.c
615   tcp/tcp_syn_filter4.c
616   tcp/tcp_output.c
617   tcp/tcp_input.c
618   tcp/tcp_newreno.c
619   tcp/tcp_bt.c
620   tcp/tcp_cli.c
621   tcp/tcp_cubic.c
622   tcp/tcp_debug.c
623   tcp/tcp_sack.c
624   tcp/tcp_timer.c
625   tcp/tcp.c
626 )
627
628 list(APPEND VNET_MULTIARCH_SOURCES
629   tcp/tcp_input.c
630   tcp/tcp_output.c
631   tcp/tcp_syn_filter4.c
632 )
633
634 list(APPEND VNET_HEADERS
635   tcp/tcp_packet.h
636   tcp/tcp_timer.h
637   tcp/tcp_bt.h
638   tcp/tcp_cc.h
639   tcp/tcp_debug.h
640   tcp/tcp_inlines.h
641   tcp/tcp_sack.h
642   tcp/tcp_types.h
643   tcp/tcp.h
644   tcp/tcp_error.def
645 )
646
647 list(APPEND VNET_API_FILES tcp/tcp.api)
648
649 ##############################################################################
650 # Layer 4 protocol: udp
651 ##############################################################################
652 list(APPEND VNET_SOURCES
653   udp/udp.c
654   udp/udp_cli.c
655   udp/udp_input.c
656   udp/udp_format.c
657   udp/udp_local.c
658   udp/udp_pg.c
659   udp/udp_encap_node.c
660   udp/udp_encap.c
661   udp/udp_decap.c
662   udp/udp_api.c
663 )
664
665 list(APPEND VNET_MULTIARCH_SOURCES
666   udp/udp_local.c
667   udp/udp_encap_node.c
668 )
669
670 list(APPEND VNET_HEADERS
671   udp/udp_error.def
672   udp/udp.h
673   udp/udp_packet.h
674   udp/udp_inlines.h
675   udp/udp_local.h
676 )
677
678 list(APPEND VNET_API_FILES udp/udp.api)
679
680 ##############################################################################
681 # Tunnel protocol: gre
682 ##############################################################################
683 list(APPEND VNET_SOURCES
684   gre/gre.c
685   gre/node.c
686   gre/interface.c
687   gre/pg.c
688   gre/gre_api.c
689 )
690
691 list(APPEND VNET_MULTIARCH_SOURCES
692   gre/node.c
693   gre/gre.c
694 )
695
696 list(APPEND VNET_HEADERS
697   gre/gre.h
698   gre/packet.h
699   gre/error.def
700 )
701
702 list(APPEND VNET_API_FILES gre/gre.api)
703
704 ##############################################################################
705 # Tunnel protocol: ipip
706 ##############################################################################
707 list(APPEND VNET_SOURCES
708   ipip/ipip.c
709   ipip/node.c
710   ipip/sixrd.c
711   ipip/ipip_api.c
712   ipip/ipip_cli.c
713 )
714
715 list(APPEND VNET_MULTIARCH_SOURCES
716   ipip/node.c
717 )
718
719 list(APPEND VNET_HEADERS
720   ipip/ipip.h
721 )
722
723 list(APPEND VNET_API_FILES
724   ipip/ipip.api
725 )
726
727 ##############################################################################
728 # Tunnel infra
729 ##############################################################################
730 list(APPEND VNET_SOURCES
731   tunnel/tunnel.c
732   tunnel/tunnel_types_api.c
733 )
734
735 list(APPEND VNET_API_FILES
736   tunnel/tunnel_types.api
737 )
738
739 list(APPEND VNET_HEADERS
740   tunnel/tunnel.h
741   tunnel/tunnel_dp.h
742 )
743
744 ##############################################################################
745 # Tunnel protocol: gre+mpls
746 ##############################################################################
747 list(APPEND VNET_SOURCES
748   mpls/mpls.c
749   mpls/mpls_lookup.c
750   mpls/mpls_output.c
751   mpls/mpls_features.c
752   mpls/mpls_input.c
753   mpls/interface.c
754   mpls/mpls_tunnel.c
755   mpls/pg.c
756   mpls/mpls_api.c
757 )
758
759 list(APPEND VNET_MULTIARCH_SOURCES
760   mpls/mpls_output.c
761   mpls/mpls_input.c
762   mpls/mpls_lookup.c
763   mpls/mpls_features.c
764 )
765
766 list(APPEND VNET_HEADERS
767   mpls/mpls.h
768   mpls/mpls_types.h
769   mpls/mpls_tunnel.h
770   mpls/packet.h
771   mpls/error.def
772 )
773
774 list(APPEND VNET_API_FILES mpls/mpls.api)
775
776 ##############################################################################
777 # Tunnel protocol: vxlan-gbp
778 ##############################################################################
779 list(APPEND VNET_SOURCES
780   vxlan-gbp/decap.c
781   vxlan-gbp/encap.c
782   vxlan-gbp/vxlan_gbp_api.c
783   vxlan-gbp/vxlan_gbp.c
784   vxlan-gbp/vxlan_gbp_packet.c
785 )
786
787 list (APPEND VNET_MULTIARCH_SOURCES
788   vxlan-gbp/decap.c
789   vxlan-gbp/encap.c
790 )
791
792 list(APPEND VNET_HEADERS
793   vxlan-gbp/vxlan_gbp.h
794   vxlan-gbp/vxlan_gbp_packet.h
795   vxlan-gbp/vxlan_gbp_error.def
796 )
797
798 list(APPEND VNET_API_FILES vxlan-gbp/vxlan_gbp.api)
799
800 ##############################################################################
801 # Tunnel protocol: vxlan-gpe
802 ##############################################################################
803
804 list(APPEND VNET_SOURCES
805   vxlan-gpe/vxlan_gpe.c
806   vxlan-gpe/encap.c
807   vxlan-gpe/decap.c
808   vxlan-gpe/vxlan_gpe_api.c
809 )
810
811 list (APPEND VNET_MULTIARCH_SOURCES
812   vxlan-gpe/decap.c
813 )
814
815 list(APPEND VNET_HEADERS
816   vxlan-gpe/vxlan_gpe.h
817   vxlan-gpe/vxlan_gpe_packet.h
818   vxlan-gpe/vxlan_gpe_error.def
819 )
820
821 list(APPEND VNET_API_FILES vxlan-gpe/vxlan_gpe.api)
822
823 ##############################################################################
824 # ipv6 segment routing
825 ##############################################################################
826
827 list(APPEND VNET_SOURCES
828   srv6/sr.c
829   srv6/sr_localsid.c
830   srv6/sr_policy_rewrite.c
831   srv6/sr_steering.c
832   srv6/sr_api.c
833 )
834
835 list(APPEND VNET_HEADERS
836   srv6/sr_packet.h
837   srv6/sr.h
838 )
839
840 list(APPEND VNET_API_FILES
841   srv6/sr.api
842   srv6/sr_types.api
843 )
844
845 ##############################################################################
846 # mpls segment routing
847 ##############################################################################
848
849 list(APPEND VNET_SOURCES
850   srmpls/sr_mpls_policy.c
851   srmpls/sr_mpls_steering.c
852   srmpls/sr_mpls_api.c
853 )
854
855 list(APPEND VNET_HEADERS
856   srmpls/sr_mpls.h
857 )
858
859 list(APPEND VNET_API_FILES
860   srmpls/sr_mpls.api
861 )
862
863 ##############################################################################
864 # IPFIX / netflow v10
865 ##############################################################################
866 list(APPEND VNET_SOURCES
867   ipfix-export/flow_report.c
868   ipfix-export/flow_api.c
869 )
870
871 list(APPEND VNET_HEADERS
872   ipfix-export/flow_report.h
873   ipfix-export/ipfix_info_elements.h
874   ipfix-export/ipfix_packet.h
875 )
876
877 list(APPEND VNET_API_FILES ipfix-export/ipfix_export.api)
878
879 ##############################################################################
880 # GSO
881 ##############################################################################
882 list(APPEND VNET_SOURCES
883   gso/cli.c
884   gso/gso.c
885   gso/gso_api.c
886   gso/node.c
887 )
888
889 list(APPEND VNET_HEADERS
890   gso/gro.h
891   gso/gro_func.h
892   gso/hdr_offset_parser.h
893   gso/gso.h
894 )
895
896 list(APPEND VNET_API_FILES
897   gso/gso.api
898 )
899
900 ##############################################################################
901 # IPFIX classify code
902 ##############################################################################
903
904 list(APPEND VNET_SOURCES
905   ipfix-export/flow_report_classify.c
906 )
907
908 list(APPEND VNET_HEADERS
909   ipfix-export/flow_report_classify.h
910 )
911
912 ##############################################################################
913 # lawful intercept
914 ##############################################################################
915
916 list(APPEND VNET_SOURCES
917   lawful-intercept/lawful_intercept.c
918   lawful-intercept/node.c
919 )
920
921 list(APPEND VNET_MULTIARCH_SOURCES
922   lawful-intercept/node.c
923 )
924
925 list(APPEND VNET_HEADERS
926   lawful-intercept/lawful_intercept.h
927 )
928
929 ##############################################################################
930 # SPAN (port mirroring)
931 ##############################################################################
932
933 list(APPEND VNET_SOURCES
934   span/span_api.c
935   span/span.c
936   span/node.c
937 )
938
939 list(APPEND VNET_MULTIARCH_SOURCES
940   span/node.c
941 )
942
943 list(APPEND VNET_HEADERS
944   span/span.h
945 )
946
947 list(APPEND VNET_API_FILES span/span.api)
948
949 ##############################################################################
950 # Packet generator
951 ##############################################################################
952
953 list(APPEND VNET_SOURCES
954   pg/cli.c
955   pg/edit.c
956   pg/init.c
957   pg/input.c
958   pg/output.c
959   pg/stream.c
960   pg/pg_api.c
961 )
962
963 list(APPEND VNET_HEADERS
964   pg/pg.h
965   pg/edit.h
966 )
967
968 list(APPEND VNET_API_FILES pg/pg.api)
969
970 ##############################################################################
971 # virtio
972 ##############################################################################
973
974 list(APPEND VNET_SOURCES
975   devices/virtio/cli.c
976   devices/virtio/device.c
977   devices/virtio/format.c
978   devices/virtio/node.c
979   devices/virtio/pci.c
980   devices/virtio/vhost_user.c
981   devices/virtio/vhost_user_input.c
982   devices/virtio/vhost_user_output.c
983   devices/virtio/vhost_user_api.c
984   devices/virtio/virtio.c
985   devices/virtio/virtio_api.c
986   devices/virtio/virtio_pci_legacy.c
987   devices/virtio/virtio_pci_modern.c
988   devices/virtio/virtio_process.c
989   devices/virtio/virtio_types_api.c
990 )
991
992 list(APPEND VNET_HEADERS
993   devices/virtio/pci.h
994   devices/virtio/virtio.h
995   devices/virtio/virtio_buffering.h
996   devices/virtio/virtio_std.h
997   devices/virtio/virtio_pci_legacy.h
998   devices/virtio/virtio_pci_modern.h
999   devices/virtio/vhost_std.h
1000   devices/virtio/vhost_user.h
1001   devices/virtio/virtio_types_api.h
1002 )
1003
1004 list(APPEND VNET_MULTIARCH_SOURCES
1005   devices/virtio/vhost_user_input.c
1006   devices/virtio/vhost_user_output.c
1007   devices/virtio/node.c
1008   devices/af_packet/node.c
1009   devices/virtio/device.c
1010 )
1011
1012 list(APPEND VNET_API_FILES
1013   devices/virtio/vhost_user.api
1014   devices/virtio/virtio.api
1015   devices/virtio/virtio_types.api
1016 )
1017
1018 ##############################################################################
1019 # tap interface (with virtio backend)
1020 ##############################################################################
1021
1022 list(APPEND VNET_SOURCES
1023   devices/tap/cli.c
1024   devices/tap/tap.c
1025   devices/tap/tapv2_api.c
1026 )
1027
1028 list(APPEND VNET_HEADERS
1029   devices/tap/tap.h
1030 )
1031
1032 list(APPEND VNET_API_FILES
1033   devices/tap/tapv2.api
1034 )
1035
1036 ##############################################################################
1037 # tap interface (with virtio backend)
1038 ##############################################################################
1039
1040 list(APPEND VNET_SOURCES
1041   devices/pipe/pipe_api.c
1042   devices/pipe/pipe.c
1043 )
1044
1045 list(APPEND VNET_HEADERS
1046   devices/pipe/pipe.h
1047 )
1048
1049 list(APPEND VNET_API_FILES devices/pipe/pipe.api)
1050
1051 ##############################################################################
1052 # session managmeent
1053 ##############################################################################
1054
1055 list(APPEND VNET_SOURCES
1056   session/session.c
1057   session/session_debug.c
1058   session/session_table.c
1059   session/session_rules_table.c
1060   session/session_lookup.c
1061   session/session_node.c
1062   session/transport.c
1063   session/application.c
1064   session/application_worker.c
1065   session/session_cli.c
1066   session/application_interface.c
1067   session/application_local.c
1068   session/application_namespace.c
1069   session/segment_manager.c
1070   session/session_api.c
1071 )
1072
1073 list(APPEND VNET_HEADERS
1074   session/session.h
1075   session/session_table.h
1076   session/session_rules_table.h
1077   session/session_types.h
1078   session/session_lookup.h
1079   session/application.h
1080   session/transport.h
1081   session/transport_types.h
1082   session/application_interface.h
1083   session/application_local.h
1084   session/application_namespace.h
1085   session/session_debug.h
1086   session/segment_manager.h
1087   session/mma_template.h
1088   session/mma_template.c
1089   session/mma_16.h
1090   session/mma_40.h
1091 )
1092
1093 list(APPEND VNET_API_FILES session/session.api)
1094
1095 ##############################################################################
1096 # TLS protocol
1097 ##############################################################################
1098
1099 list(APPEND VNET_SOURCES
1100   tls/tls.c
1101 )
1102
1103 list(APPEND VNET_HEADERS
1104   tls/tls.h
1105   tls/tls_test.h
1106 )
1107
1108 ##############################################################################
1109 # Linux packet interface
1110 ##############################################################################
1111
1112 list(APPEND VNET_SOURCES
1113   devices/af_packet/af_packet.c
1114   devices/af_packet/device.c
1115   devices/af_packet/node.c
1116   devices/af_packet/cli.c
1117   devices/af_packet/af_packet_api.c
1118 )
1119
1120 list(APPEND VNET_MULTIARCH_SOURCES
1121   devices/af_packet/device.c
1122 )
1123
1124 list(APPEND VNET_HEADERS
1125   devices/af_packet/af_packet.h
1126 )
1127
1128 list(APPEND VNET_API_FILES devices/af_packet/af_packet.api)
1129
1130 ##############################################################################
1131 # Driver feature graph arc support
1132 ##############################################################################
1133
1134 list(APPEND VNET_SOURCES
1135   feature/feature.c
1136   feature/feature_api.c
1137   feature/registration.c
1138 )
1139
1140 list(APPEND VNET_HEADERS
1141   feature/feature.h
1142 )
1143
1144 list(APPEND VNET_API_FILES feature/feature.api)
1145
1146 ##############################################################################
1147 # Unix kernel related
1148 ##############################################################################
1149
1150 # FIXME: unix/hgshm.c
1151
1152 list(APPEND VNET_SOURCES
1153   unix/gdb_funcs.c
1154   unix/tuntap.c
1155 )
1156
1157 list(APPEND VNET_HEADERS
1158   unix/tuntap.h
1159 )
1160
1161 ##############################################################################
1162 # FIB
1163 ##############################################################################
1164
1165 list(APPEND VNET_SOURCES
1166   fib/fib.c
1167   fib/ip4_fib_hash.c
1168   fib/ip4_fib.c
1169   fib/ip4_fib_16.c
1170   fib/ip4_fib_8.c
1171   fib/ip6_fib.c
1172   fib/mpls_fib.c
1173   fib/fib_table.c
1174   fib/fib_walk.c
1175   fib/fib_types.c
1176   fib/fib_node.c
1177   fib/fib_node_list.c
1178   fib/fib_entry.c
1179   fib/fib_entry_src.c
1180   fib/fib_entry_src_adj.c
1181   fib/fib_entry_src_api.c
1182   fib/fib_entry_src_drop.c
1183   fib/fib_entry_src_interface.c
1184   fib/fib_entry_src_interpose.c
1185   fib/fib_entry_src_lisp.c
1186   fib/fib_entry_src_mpls.c
1187   fib/fib_entry_src_simple.c
1188   fib/fib_entry_src_rr.c
1189   fib/fib_entry_cover.c
1190   fib/fib_entry_delegate.c
1191   fib/fib_entry_track.c
1192   fib/fib_path_list.c
1193   fib/fib_path.c
1194   fib/fib_path_ext.c
1195   fib/fib_sas.c
1196   fib/fib_source.c
1197   fib/fib_urpf_list.c
1198   fib/fib_attached_export.c
1199   fib/fib_api.c
1200   fib/fib_bfd.c
1201 )
1202
1203 list(APPEND VNET_HEADERS
1204   fib/fib.h
1205   fib/fib_api.h
1206   fib/ip4_fib.h
1207   fib/ip6_fib.h
1208   fib/fib_types.h
1209   fib/fib_table.h
1210   fib/fib_node.h
1211   fib/fib_node_list.h
1212   fib/fib_entry.h
1213   fib/fib_entry_delegate.h
1214   fib/fib_sas.h
1215   fib/fib_source.h
1216 )
1217
1218 list(APPEND VNET_API_FILES
1219   fib/fib_types.api
1220   fib/fib.api
1221 )
1222
1223 ##############################################################################
1224 # ADJ
1225 ##############################################################################
1226
1227 list(APPEND VNET_SOURCES
1228   adj/adj_nbr.c
1229   adj/adj_glean.c
1230   adj/adj_midchain.c
1231   adj/adj_midchain_node.c
1232   adj/adj_midchain_delegate.c
1233   adj/adj_mcast.c
1234   adj/adj_l2.c
1235   adj/adj_nsh.c
1236   adj/adj.c
1237   adj/rewrite.c
1238   adj/adj_bfd.c
1239   adj/adj_delegate.c
1240 )
1241
1242 list(APPEND VNET_MULTIARCH_SOURCES
1243   adj/adj_nsh.c
1244   adj/adj_l2.c
1245   adj/adj_midchain_node.c
1246 )
1247
1248 list(APPEND VNET_HEADERS
1249   adj/adj.h
1250   adj/adj_types.h
1251   adj/adj_glean.h
1252   adj/adj_nsh.h
1253   adj/adj_nbr.h
1254   adj/adj_midchain.h
1255   adj/rewrite.h
1256 )
1257
1258 ##############################################################################
1259 # Data-Plane Objects
1260 ##############################################################################
1261
1262 list(APPEND VNET_SOURCES
1263   dpo/dpo.c
1264   dpo/drop_dpo.c
1265   dpo/ip_null_dpo.c
1266   dpo/ip6_ll_dpo.c
1267   dpo/punt_dpo.c
1268   dpo/receive_dpo.c
1269   dpo/load_balance.c
1270   dpo/load_balance_map.c
1271   dpo/lookup_dpo.c
1272   dpo/classify_dpo.c
1273   dpo/replicate_dpo.c
1274   dpo/interface_rx_dpo.c
1275   dpo/interface_tx_dpo.c
1276   dpo/mpls_disposition.c
1277   dpo/mpls_label_dpo.c
1278   dpo/l3_proxy_dpo.c
1279   dpo/dvr_dpo.c
1280   dpo/pw_cw.c
1281 )
1282
1283 list(APPEND VNET_MULTIARCH_SOURCES
1284   dpo/lookup_dpo.h
1285   dpo/mpls_disposition.c
1286   dpo/dvr_dpo.c
1287   dpo/mpls_label_dpo.c
1288   dpo/interface_rx_dpo.c
1289 )
1290
1291 list(APPEND VNET_HEADERS
1292   dpo/load_balance.h
1293   dpo/drop_dpo.h
1294   dpo/lookup_dpo.h
1295   dpo/punt_dpo.h
1296   dpo/classify_dpo.h
1297   dpo/receive_dpo.h
1298   dpo/ip_null_dpo.h
1299   dpo/replicate_dpo.h
1300   dpo/dpo.h
1301 )
1302
1303 ##############################################################################
1304 # Multicast FIB
1305 ##############################################################################
1306
1307 list(APPEND VNET_SOURCES
1308   mfib/mfib_forward.c
1309   mfib/ip4_mfib.c
1310   mfib/ip6_mfib.c
1311   mfib/mfib_api.c
1312   mfib/mfib_types.c
1313   mfib/mfib_signal.c
1314   mfib/mfib_itf.c
1315   mfib/mfib_entry.c
1316   mfib/mfib_entry.c
1317   mfib/mfib_entry_cover.c
1318   mfib/mfib_entry_delegate.c
1319   mfib/mfib_entry_src.c
1320   mfib/mfib_entry_src_rr.c
1321   mfib/mfib_table.c
1322 )
1323
1324 list(APPEND VNET_MULTIARCH_SOURCES
1325   mfib/mfib_forward.c
1326 )
1327
1328 list(APPEND VNET_HEADERS
1329   mfib/ip4_mfib.h
1330   mfib/mfib_types.h
1331   mfib/mfib_table.h
1332 )
1333
1334 list(APPEND VNET_API_FILES mfib/mfib_types.api)
1335
1336 ##############################################################################
1337 # Utilities
1338 ##############################################################################
1339
1340 list(APPEND VNET_SOURCES
1341   util/radix.c
1342   util/refcount.c
1343   util/throttle.c
1344 )
1345
1346 list(APPEND VNET_HEADERS
1347   util/throttle.h
1348 )
1349
1350 ##############################################################################
1351 # QoS
1352 ##############################################################################
1353
1354 list(APPEND VNET_SOURCES
1355   qos/qos_types.c
1356   qos/qos_api.c
1357   qos/qos_egress_map.c
1358   qos/qos_record.c
1359   qos/qos_record_node.c
1360   qos/qos_store.c
1361   qos/qos_store_node.c
1362   qos/qos_mark.c
1363   qos/qos_mark_node.c
1364 )
1365
1366 list(APPEND VNET_MULTIARCH_SOURCES
1367   qos/qos_record_node.c
1368   qos/qos_mark_node.c
1369 )
1370
1371 list(APPEND VNET_API_FILES qos/qos.api)
1372
1373 ##############################################################################
1374 # BIER
1375 ##############################################################################
1376
1377 list(APPEND VNET_SOURCES
1378   bier/bier_bit_string.c
1379   bier/bier_entry.c
1380   bier/bier_fmask.c
1381   bier/bier_fmask_db.c
1382   bier/bier_input.c
1383   bier/bier_lookup.c
1384   bier/bier_output.c
1385   bier/bier_table.c
1386   bier/bier_types.c
1387   bier/bier_api.c
1388   bier/bier_drop.c
1389   bier/bier_update.c
1390   bier/bier_imp_node.c
1391   bier/bier_imp.c
1392   bier/bier_disp_entry.c
1393   bier/bier_disp_lookup_node.c
1394   bier/bier_disp_dispatch_node.c
1395   bier/bier_disp_table.c
1396   bier/bier_bift_table.c
1397 )
1398
1399 list(APPEND VNET_MULTIARCH_SOURCES
1400   bier/bier_disp_dispatch_node.c
1401   bier/bier_disp_lookup_node.c
1402   bier/bier_imp_node.c
1403 )
1404
1405 list(APPEND VNET_HEADERS
1406   bier/bier_types.h
1407   bier/bier_entry.h
1408   bier/bier_update.h
1409   bier/bier_table.h
1410 )
1411
1412 list(APPEND VNET_API_FILES bier/bier.api)
1413
1414 ##############################################################################
1415 # SYSLOG
1416 ##############################################################################
1417
1418 list (APPEND VNET_SOURCES
1419   syslog/syslog_api.c
1420   syslog/syslog_udp.c
1421   syslog/syslog.c
1422 )
1423
1424 list(APPEND VNET_HEADERS
1425   syslog/syslog_udp.h
1426   syslog/syslog.h
1427 )
1428
1429 list(APPEND VNET_API_FILES syslog/syslog.api)
1430
1431 ##############################################################################
1432 # Tunnel Endpoint Information Base
1433 ##############################################################################
1434
1435 list (APPEND VNET_SOURCES
1436   teib/teib_api.c
1437   teib/teib_cli.c
1438   teib/teib.c
1439 )
1440
1441 list(APPEND VNET_HEADERS
1442   teib/teib.h
1443 )
1444
1445 list(APPEND VNET_API_FILES teib/teib.api)
1446
1447 ##############################################################################
1448 # ARP/ND
1449 ##############################################################################
1450
1451 list (APPEND VNET_SOURCES
1452   arp/arp_api.c
1453   arp/arp.c
1454   arp/arp_proxy.c
1455 )
1456
1457 list(APPEND VNET_HEADERS
1458   arp/arp.h
1459 )
1460
1461 list(APPEND VNET_API_FILES arp/arp.api)
1462
1463 list (APPEND VNET_SOURCES
1464   ip6-nd/ip6_mld.c
1465   ip6-nd/ip6_nd.c
1466   ip6-nd/ip6_nd_api.c
1467   ip6-nd/ip6_nd_proxy.c
1468   ip6-nd/ip6_ra.c
1469   ip6-nd/rd_cp.c
1470   ip6-nd/rd_cp_api.c
1471 )
1472
1473 list(APPEND VNET_HEADERS
1474   ip6-nd/ip6_nd.h
1475 )
1476
1477 list(APPEND VNET_API_FILES
1478   ip6-nd/ip6_nd.api
1479   ip6-nd/rd_cp.api
1480 )
1481
1482 ##############################################################################
1483 # VNET Library
1484 ##############################################################################
1485
1486 add_vpp_library(vnet
1487   SOURCES ${VNET_SOURCES}
1488   MULTIARCH_SOURCES ${VNET_MULTIARCH_SOURCES}
1489   INSTALL_HEADERS ${VNET_HEADERS}
1490   API_FILES ${VNET_API_FILES}
1491   LINK_LIBRARIES vppinfra svm vlib
1492   DEPENDS vpp_version_h api_headers
1493 )
1494
1495 ##############################################################################
1496 # vpp api test client library
1497 ##############################################################################
1498
1499 add_vpp_library (vatclient
1500   SOURCES ip/ip_types_api.c
1501   DEPENDS api_headers
1502 )
1503
1504 ##############################################################################
1505 # VAT2 plugins
1506 ##############################################################################
1507 add_vpp_test_library(vnet
1508   ${VNET_API_FILES}
1509 )
1510
1511 ##############################################################################