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