summaryrefslogtreecommitdiffstats
path: root/extras
AgeCommit message (Expand)AuthorFilesLines
2017-10-17VCL: refactor VCL_LDPRELOAD env vars.Dave Wallace1-5/+3
2017-10-16LDPRELOAD: Remove hack code in getpeernameSteven1-14/+0
2017-10-15VCL/LDPRELOAD: getpeername and getsocknameSteven1-30/+10
2017-10-14Fix bug with temporary directory when building rpms.Thomas F Herbert1-1/+1
2017-10-14Deps added to Makefile must also be in spec file.Thomas F Herbert1-0/+4
2017-10-13LDPRELOAD: Add TCP_KEEPIDLE, TCP_KEEPINTVL, and SO_KEEPALIVESteven1-9/+32
2017-10-13LDPRELOAD: Add ioctl, fcntl, and setsockopt supportSteven6-32/+255
2017-10-12libmemif: Add memif_cancel_poll_event() + bug fixing.Milan Lenco3-30/+78
2017-10-12Add support for packaging SUSE RPMs.Marco Varlese2-0/+384
2017-10-12Initial push of vcl-ldpreload to extrasKeith Burns (alagalah)14-0/+8327
2017-10-11Redhat and small system supportJohn DeNisco23-0/+6148
2017-10-09Allow use of /etc/os-release fileMarco Varlese4-45/+32
2017-10-04libmemif: memif_rx_burst fixJakub Grajciar1-2/+2
2017-10-03Repair vlib API socket serverDave Barach2-2/+0
2017-09-28General documentation updatesChris Luke6-31/+41
2017-09-27Update vagrant centos config to CentOS 7.4Dave Wallace3-2/+9
2017-09-25Vagrant fails if Vagrantfile is a symlink on Windows 10.Dave Wallace4-117/+131
2017-09-25Refactor multi-host socket_test.sh for bare-metal.Dave Wallace1-0/+0
2017-09-23libmemif: Jumbo frames data/buffer length fixJakub Grajciar2-83/+195
2017-09-22openSUSE build fixMarco Varlese1-3/+5
2017-09-21Unpack into temporary directory with longer name.Thomas F Herbert1-2/+10
2017-09-20Use openssl 1.0 compat RPM for Fedora 26 and newer.Thomas F Herbert1-1/+4
2017-09-17Add multi-vm Vagrantfile for vcl-test.Dave Wallace4-122/+233
2017-09-15VPP-958: RPM Update wipes out local changes to 80-vpp.confBilly McFall1-2/+2
2017-09-15libmemif: Jumbo frames supportJakub Grajciar9-103/+285
2017-09-13Shared memory packet interface (memif) libraryJakub Grajciar28-0/+11034
2017-09-12Add option to build without multi-buffer crypto.Thomas F Herbert1-2/+10
2017-09-08Fix socket_test.sh vagrant based multi-host tests.Dave Wallace3-3/+26
2017-09-07Fix session connect_* api message handling.Dave Wallace2-6/+6
2017-08-26Add Build Requirements from Makefile to spec file.Thomas F Herbert1-6/+23
2017-08-11Add VPP Communications Library (VCL)Dave Wallace3-0/+27
2017-08-08Create source rpm.Thomas F Herbert2-5/+21
2017-07-27Use relative path to vpp.service.Thomas F Herbert1-1/+1
2017-07-12Decrease steps necessary to upgrading RPM packages fixedKristina Nevolnikova1-16/+22
2017-07-05VPP-900: VPP is released under the Apache 2.0 License (ASL 2.0). Update RPM s...Billy McFall1-1/+1
2017-06-02Add debian 8 support in extras/vagrant/build.shkhers1-0/+9
2017-05-29Relocate Coverity scriptsChris Luke2-0/+106
2017-05-20Restore possibility to build vpp in debug mode for rpmsIgor Mikhailov (imichail)1-2/+6
2017-04-26Move scripts to extras/Damjan Marion3-0/+133
2017-04-24Move emacs stuff to extras/Damjan Marion26-0/+3250
2017-04-20Move vagrant stuff to extras/Damjan Marion10-0/+401
2017-04-19Fix "make dist" to include version number, docouple it from rpm packagingDamjan Marion3-0/+343
d='n811' href='#n811'>811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512
# Copyright (c) 2018-2020 Cisco and/or its affiliates.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at:
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

unset(VNET_SOURCES)
unset(VNET_HEADERS)
unset(VNET_API_FILES)
unset(VNET_MULTIARCH_SOURCES)

option(VPP_IP_FIB_MTRIE_16 "IP FIB's MTRIE Stride is 16-8-8 (if not set it's 8-8-8-8)" ON)

##############################################################################
# Generic stuff
##############################################################################
list(APPEND VNET_SOURCES
  buffer.c
  config.c
  devices/devices.c
  devices/netlink.c
  error.c
  flow/flow.c
  flow/flow_cli.c
  flow/flow_api.c
  handoff.c
  interface.c
  interface_api.c
  interface_cli.c
  interface_format.c
  interface_output.c
  interface/caps.c
  interface/rx_queue.c
  interface/tx_queue.c
  interface/runtime.c
  interface/monitor.c
  interface/stats.c
  interface_stats.c
  misc.c
)

list(APPEND VNET_MULTIARCH_SOURCES
  interface_output.c
  interface_stats.c
  handoff.c
)

list(APPEND VNET_HEADERS
  api_errno.h
  error.h
  buffer.h
  config.h
  devices/devices.h
  devices/netlink.h
  flow/flow.h
  global_funcs.h
  interface/rx_queue_funcs.h
  interface/tx_queue_funcs.h
  interface.h
  interface_funcs.h
  interface_output.h
  ip/ip4_to_ip6.h
  ip/ip6_to_ip4.h
  ip/ip_types_api.h
  l3_types.h
  plugin/plugin.h
  pipeline.h
  vnet.h
  util/radix.h
  util/refcount.h
  format_fns.h
  ip/ip_format_fns.h
  ip/ip_sas.h
  ethernet/ethernet_format_fns.h
  ethernet/ethernet_types_api.h
)

list(APPEND VNET_API_FILES
  interface.api
  interface_types.api
  ip/ip_types.api
  flow/flow_types.api
  flow/flow.api
)

##############################################################################
# Policer infra
##############################################################################
list(APPEND VNET_SOURCES
  policer/node_funcs.c
  policer/policer.c
  policer/xlate.c
  policer/policer_api.c
)

list(APPEND VNET_MULTIARCH_SOURCES
  policer/node_funcs.c
)

list(APPEND VNET_HEADERS
  policer/police.h
  policer/policer.h
  policer/xlate.h
)

list(APPEND VNET_API_FILES
  policer/policer.api
  policer/policer_types.api
)

##############################################################################
# Layer 2 protocols go here
##############################################################################

##############################################################################
# Layer 2 protocol: Ethernet
##############################################################################
list(APPEND VNET_SOURCES
  ethernet/arp_packet.c
  ethernet/ethernet_types_api.c
  ethernet/format.c
  ethernet/init.c
  ethernet/interface.c
  ethernet/mac_address.c
  ethernet/node.c
  ethernet/pg.c
  ethernet/sfp.c
  ethernet/p2p_ethernet.c
  ethernet/p2p_ethernet_input.c
  ethernet/p2p_ethernet_api.c
)

list(APPEND VNET_MULTIARCH_SOURCES
  ethernet/node.c
  ethernet/p2p_ethernet_input.c
)

list(APPEND VNET_HEADERS
  ethernet/error.def
  ethernet/ethernet.h
  ethernet/mac_address.h
  ethernet/packet.h
  ethernet/types.def
  ethernet/sfp.h
  ethernet/p2p_ethernet.h
  ethernet/arp_packet.h
)

list(APPEND VNET_API_FILES
  ethernet/p2p_ethernet.api
  ethernet/ethernet_types.api)

##############################################################################
# Layer 2 protocol: Ethernet bridging
##############################################################################
list(APPEND VNET_SOURCES
  l2/feat_bitmap.c
  l2/l2_api.c
  l2/l2_arp_term.c
  l2/l2_bd.c
  l2/l2_bvi.c
  l2/l2_bvi_node.c
  l2/l2_input_classify.c
  l2/l2_output_classify.c
  l2/l2_efp_filter.c
  l2/l2_fib.c
  l2/l2_flood.c
  l2/l2_fwd.c
  l2/l2_input.c
  l2/l2_input_node.c
  l2/l2_input_vtr.c
  l2/l2_learn.c
  l2/l2_output.c
  l2/l2_in_out_acl.c
  l2/l2_in_out_feat_arc.c
  l2/l2_patch.c
  l2/l2_rw.c
  l2/l2_uu_fwd.c
  l2/l2_vtr.c
  l2/l2_xcrw.c
)

list(APPEND VNET_MULTIARCH_SOURCES
  l2/l2_bvi_node.c
  l2/l2_fwd.c
  l2/l2_learn.c
  l2/l2_output.c
  l2/l2_patch.c
  l2/l2_in_out_feat_arc.c
  l2/l2_input_classify.c
  l2/l2_input_node.c
  l2/l2_output_classify.c
  l2/l2_flood.c
  l2/l2_uu_fwd.c
  l2/l2_efp_filter.c
  l2/l2_rw.c
  l2/l2_xcrw.c
  l2/l2_in_out_acl.c
  l2/l2_input_vtr.c
)

list(APPEND VNET_HEADERS
  l2/feat_bitmap.h
  l2/l2_input.h
  l2/l2_output.h
  l2/l2_vtr.h
  l2/l2_input_vtr.h
  l2/l2_efp_filter.h
  l2/l2_fwd.h
  l2/l2_bd.h
  l2/l2_bvi.h
  l2/l2_flood.h
  l2/l2_fib.h
  l2/l2_rw.h
  l2/l2_xcrw.h
  l2/l2_classify.h
)

list(APPEND VNET_API_FILES l2/l2.api)

##############################################################################
# Layer 2 protocol: SRP
##############################################################################
list(APPEND VNET_SOURCES
  srp/format.c
  srp/interface.c
  srp/node.c
  srp/pg.c
)

list(APPEND VNET_HEADERS
  srp/packet.h
  srp/srp.h
)

##############################################################################
# Layer 2 protocol: PPP
##############################################################################
list(APPEND VNET_SOURCES
  ppp/node.c
  ppp/pg.c
  ppp/ppp.c
)

list(APPEND VNET_HEADERS
  ppp/error.def
  ppp/ppp.h
  ppp/packet.h
)

##############################################################################
# Layer 2 protocol: HDLC
##############################################################################
list(APPEND VNET_SOURCES
  hdlc/node.c
  hdlc/pg.c
  hdlc/hdlc.c
)

list(APPEND VNET_HEADERS
  hdlc/error.def
  hdlc/hdlc.h
  hdlc/packet.h
)

##############################################################################
# Layer 2 protocol: LLC
##############################################################################
list(APPEND VNET_SOURCES
  llc/llc.c
  llc/node.c
  llc/pg.c
)

list(APPEND VNET_HEADERS
  llc/llc.h
)

##############################################################################
# Layer 2 protocol: SNAP
##############################################################################
list(APPEND VNET_SOURCES
  snap/snap.c
  snap/node.c
  snap/pg.c
)

list(APPEND VNET_HEADERS
  snap/snap.h
)

##############################################################################
# Layer 2 / vxlan
##############################################################################
list(APPEND VNET_SOURCES
  vxlan/vxlan.c
  vxlan/encap.c
  vxlan/decap.c
  vxlan/vxlan_api.c
)

list(APPEND VNET_MULTIARCH_SOURCES
  vxlan/encap.c
)

list(APPEND VNET_HEADERS
  vxlan/vxlan.h
  vxlan/vxlan_packet.h
  vxlan/vxlan_error.def
)

list(APPEND VNET_MULTIARCH_SOURCES vxlan/decap.c)

list(APPEND VNET_API_FILES vxlan/vxlan.api)

##############################################################################
# Layer 2 / Bonding
##############################################################################
list(APPEND VNET_SOURCES
  bonding/cli.c
  bonding/node.c
  bonding/device.c
  bonding/bond_api.c
)

list(APPEND VNET_HEADERS
  bonding/node.h
)

list(APPEND VNET_MULTIARCH_SOURCES bonding/node.c bonding/device.c)
list(APPEND VNET_API_FILES bonding/bond.api)

##############################################################################
# Layer 2/3 "classify"
##############################################################################
list(APPEND VNET_SOURCES
  classify/vnet_classify.c
  classify/trace_classify.h
  classify/ip_classify.c
  classify/in_out_acl.c
  classify/policer_classify.c
  classify/flow_classify.c
  classify/flow_classify_node.c
  classify/vnet_classify.h
  classify/classify_api.c
)

list(APPEND VNET_MULTIARCH_SOURCES
  classify/ip_classify.c
  classify/flow_classify_node.c
)

list(APPEND VNET_HEADERS
  classify/vnet_classify.h
  classify/trace_classify.h
  classify/in_out_acl.h
  classify/policer_classify.h
  classify/flow_classify.h
)

list(APPEND VNET_API_FILES classify/classify.api)

##############################################################################
# Layer 3 protocols go here
##############################################################################

##############################################################################
# Layer 3 protocol: IP v4/v6
##############################################################################
list(APPEND VNET_SOURCES
  ip/format.c
  ip/icmp4.c
  ip/icmp6.c
  ip/ip46_cli.c
  ip/ip_types_api.c
  ip/ip46_address.c
  ip/ip4_format.c
  ip/ip4_forward.c
  ip/ip4_punt_drop.c
  ip/ip4_input.c
  ip/ip4_options.c
  ip/ip4_mtrie.c
  ip/ip4_pg.c
  ip/ip4_source_and_port_range_check.c
  ip/reass/ip4_full_reass.c
  ip/reass/ip4_sv_reass.c
  ip/ip6_format.c
  ip/ip6_forward.c
  ip/ip6_ll_table.c
  ip/ip6_ll_types.c
  ip/ip6_punt_drop.c
  ip/ip6_hop_by_hop.c
  ip/ip6_input.c
  ip/ip6_link.c
  ip/ip6_pg.c
  ip/reass/ip6_full_reass.c
  ip/reass/ip6_sv_reass.c
  ip/ip_api.c
  ip/ip_checksum.c
  ip/ip_container_proxy.c
  ip/ip_frag.c
  ip/ip.c
  ip/ip_interface.c
  ip/ip_init.c
  ip/ip_in_out_acl.c
  ip/ip_path_mtu.c
  ip/ip_path_mtu_node.c
  ip/ip_punt_drop.c
  ip/ip_types.c
  ip/lookup.c
  ip/punt_api.c
  ip/punt.c
  ip/punt_node.c
  ip/vtep.c
  ip/ip_sas.c
)

list(APPEND VNET_MULTIARCH_SOURCES
  ip/ip4_punt_drop.c
  ip/reass/ip4_full_reass.c
  ip/ip6_hop_by_hop.c
  ip/reass/ip6_full_reass.c
  ip/reass/ip4_sv_reass.c
  ip/ip6_hop_by_hop.c
  ip/reass/ip6_full_reass.c
  ip/reass/ip6_sv_reass.c
  ip/ip6_input.c
  ip/ip6_punt_drop.c
  ip/punt_node.c
  ip/ip_in_out_acl.c
  ip/ip_path_mtu_node.c
)

list(APPEND VNET_HEADERS
  ip/format.h
  ip/icmp46_packet.h
  ip/icmp4.h
  ip/icmp6.h
  ip/igmp_packet.h
  ip/ip4.h
  ip/ip4_mtrie.h
  ip/ip4_inlines.h
  ip/ip4_packet.h
  ip/ip46_address.h
  ip/ip6.h
  ip/ip6_hop_by_hop.h
  ip/ip6_hop_by_hop_packet.h
  ip/ip6_inlines.h
  ip/ip6_packet.h
  ip/ip.h
  ip/ip_container_proxy.h
  ip/ip_flow_hash.h
  ip/ip_table.h
  ip/ip_interface.h
  ip/ip_packet.h
  ip/ip_psh_cksum.h
  ip/ip_source_and_port_range_check.h
  ip/ip_types.h
  ip/lookup.h
  ip/ports.def
  ip/protocols.def
  ip/punt_error.def
  ip/punt.h
  ip/reass/ip4_sv_reass.h
  ip/reass/ip6_sv_reass.h
)

list(APPEND VNET_API_FILES
  ip/ip.api
  ip/punt.api
)

list(APPEND VNET_MULTIARCH_SOURCES
  ip/ip4_forward.c
  ip/ip6_forward.c
  ip/ip4_input.c
)

##############################################################################
# Layer 3 neighbours
##############################################################################
list(APPEND VNET_SOURCES
  ip-neighbor/ip_neighbor.c
  ip-neighbor/ip_neighbor_api.c
  ip-neighbor/ip_neighbor_dp.c
  ip-neighbor/ip_neighbor_types.c
  ip-neighbor/ip_neighbor_watch.c
  ip-neighbor/ip4_neighbor.c
  ip-neighbor/ip6_neighbor.c
)

list(APPEND VNET_HEADERS
  ip-neighbor/ip_neighbor.h
  ip-neighbor/ip_neighbor_types.h
)

list(APPEND VNET_API_FILES
  ip-neighbor/ip_neighbor.api
)

##############################################################################
# Bidirectional Forwarding Detection
##############################################################################

list(APPEND VNET_HEADERS
  bfd/bfd_protocol.h
  bfd/bfd_main.h
  bfd/bfd_api.h
  bfd/bfd_udp.h
)

list(APPEND VNET_SOURCES
  bfd/bfd_api.h
  bfd/bfd_udp.c
  bfd/bfd_main.c
  bfd/bfd_protocol.c
  bfd/bfd_cli.c
  bfd/bfd_api.c
)

list(APPEND VNET_API_FILES bfd/bfd.api)

##############################################################################
# Crypto
##############################################################################

list(APPEND VNET_SOURCES
  crypto/cli.c
  crypto/crypto.c
  crypto/format.c
  crypto/node.c
  crypto/crypto_api.c
)

list(APPEND VNET_HEADERS
  crypto/crypto.h
)

list(APPEND VNET_MULTIARCH_SOURCES crypto/node.c)

list(APPEND VNET_API_FILES crypto/crypto.api)

##############################################################################
# Layer 3 protocol: IPSec
##############################################################################
list(APPEND VNET_SOURCES
  ipsec/ipsec.c
  ipsec/ipsec_cli.c
  ipsec/ipsec_format.c
  ipsec/ipsec_handoff.c
  ipsec/ipsec_input.c
  ipsec/ipsec_itf.c
  ipsec/ipsec_punt.c
  ipsec/ipsec_sa.c
  ipsec/ipsec_spd.c
  ipsec/ipsec_spd_policy.c
  ipsec/ipsec_tun.c
  ipsec/ipsec_tun_in.c
  ipsec/esp_format.c
  ipsec/esp_encrypt.c
  ipsec/esp_decrypt.c
  ipsec/ah_decrypt.c
  ipsec/ah_encrypt.c
  ipsec/ipsec_api.c
  ipsec/ipsec_types_api.c
)

list(APPEND VNET_MULTIARCH_SOURCES
  ipsec/esp_encrypt.c
  ipsec/esp_decrypt.c
  ipsec/ah_decrypt.c
  ipsec/ah_encrypt.c
  ipsec/ipsec_handoff.c
  ipsec/ipsec_output.c
  ipsec/ipsec_input.c
  ipsec/ipsec_tun_in.c
)

list(APPEND VNET_API_FILES ipsec/ipsec_types.api)
list(APPEND VNET_API_FILES ipsec/ipsec.api)

list(APPEND VNET_SOURCES
  ipsec/ipsec_output.c
)

list(APPEND VNET_HEADERS
  ipsec/ipsec.h
  ipsec/ipsec_spd.h
  ipsec/ipsec_spd_policy.h
  ipsec/ipsec_sa.h
  ipsec/ipsec_tun.h
  ipsec/ipsec_types_api.h
  ipsec/ipsec_punt.h
  ipsec/esp.h
  ipsec/ah.h
)

##############################################################################
# Layer 3 protocol: osi
##############################################################################
list(APPEND VNET_SOURCES
  osi/node.c
  osi/osi.c
  osi/pg.c
)

list(APPEND VNET_HEADERS
  osi/osi.h
)

##############################################################################
# Layer 4 protocol: tcp
##############################################################################
list(APPEND VNET_SOURCES
  tcp/tcp_api.c
  tcp/tcp_format.c
  tcp/tcp_pg.c
  tcp/tcp_syn_filter4.c
  tcp/tcp_output.c
  tcp/tcp_input.c
  tcp/tcp_newreno.c
  tcp/tcp_bt.c
  tcp/tcp_cli.c
  tcp/tcp_cubic.c
  tcp/tcp_debug.c
  tcp/tcp_sack.c
  tcp/tcp_timer.c
  tcp/tcp.c
)

list(APPEND VNET_MULTIARCH_SOURCES
  tcp/tcp_input.c
  tcp/tcp_output.c
  tcp/tcp_syn_filter4.c
)

list(APPEND VNET_HEADERS
  tcp/tcp_packet.h
  tcp/tcp_timer.h
  tcp/tcp_bt.h
  tcp/tcp_cc.h
  tcp/tcp_debug.h
  tcp/tcp_inlines.h
  tcp/tcp_sack.h
  tcp/tcp_types.h
  tcp/tcp.h
  tcp/tcp_error.def
)

list(APPEND VNET_API_FILES tcp/tcp.api)

##############################################################################
# Layer 4 protocol: udp
##############################################################################
list(APPEND VNET_SOURCES
  udp/udp.c
  udp/udp_cli.c
  udp/udp_input.c
  udp/udp_format.c
  udp/udp_local.c
  udp/udp_pg.c
  udp/udp_encap_node.c
  udp/udp_encap.c
  udp/udp_decap.c
  udp/udp_api.c
  udp/udp_output.c
)

list(APPEND VNET_MULTIARCH_SOURCES
  udp/udp_local.c
  udp/udp_encap_node.c
)

list(APPEND VNET_HEADERS
  udp/udp_error.def
  udp/udp.h
  udp/udp_encap.h
  udp/udp_packet.h
  udp/udp_inlines.h
  udp/udp_local.h
)

list(APPEND VNET_API_FILES udp/udp.api)

##############################################################################
# Tunnel protocol: gre
##############################################################################
list(APPEND VNET_SOURCES
  gre/gre.c
  gre/node.c
  gre/interface.c
  gre/pg.c
  gre/gre_api.c
)

list(APPEND VNET_MULTIARCH_SOURCES
  gre/node.c
  gre/gre.c
)

list(APPEND VNET_HEADERS
  gre/gre.h
  gre/packet.h
  gre/error.def
)

list(APPEND VNET_API_FILES gre/gre.api)

##############################################################################
# Tunnel protocol: ipip
##############################################################################
list(APPEND VNET_SOURCES
  ipip/ipip.c
  ipip/node.c
  ipip/sixrd.c
  ipip/ipip_api.c
  ipip/ipip_cli.c
)

list(APPEND VNET_MULTIARCH_SOURCES
  ipip/node.c
)

list(APPEND VNET_HEADERS
  ipip/ipip.h
)

list(APPEND VNET_API_FILES
  ipip/ipip.api
)

##############################################################################
# Tunnel infra
##############################################################################
list(APPEND VNET_SOURCES
  tunnel/tunnel.c
  tunnel/tunnel_types_api.c
)

list(APPEND VNET_API_FILES
  tunnel/tunnel_types.api
)

list(APPEND VNET_HEADERS
  tunnel/tunnel.h
  tunnel/tunnel_dp.h
  tunnel/tunnel_types_api.h
)

##############################################################################
# Tunnel protocol: gre+mpls
##############################################################################
list(APPEND VNET_SOURCES
  mpls/mpls.c
  mpls/mpls_lookup.c
  mpls/mpls_output.c
  mpls/mpls_features.c
  mpls/mpls_input.c
  mpls/interface.c
  mpls/mpls_tunnel.c
  mpls/pg.c
  mpls/mpls_api.c
)

list(APPEND VNET_MULTIARCH_SOURCES
  mpls/mpls_output.c
  mpls/mpls_input.c
  mpls/mpls_lookup.c
  mpls/mpls_features.c
)

list(APPEND VNET_HEADERS
  mpls/mpls.h
  mpls/mpls_lookup.h
  mpls/mpls_types.h
  mpls/mpls_tunnel.h
  mpls/packet.h
)

list(APPEND VNET_API_FILES mpls/mpls.api)

##############################################################################
# Tunnel protocol: vxlan-gpe
##############################################################################

list(APPEND VNET_SOURCES
  vxlan-gpe/vxlan_gpe.c
  vxlan-gpe/encap.c
  vxlan-gpe/decap.c
  vxlan-gpe/vxlan_gpe_api.c
)

list (APPEND VNET_MULTIARCH_SOURCES
  vxlan-gpe/decap.c
)

list(APPEND VNET_HEADERS
  vxlan-gpe/vxlan_gpe.h
  vxlan-gpe/vxlan_gpe_packet.h
  vxlan-gpe/vxlan_gpe_error.def
)

list(APPEND VNET_API_FILES vxlan-gpe/vxlan_gpe.api)

##############################################################################
# ipv6 segment routing
##############################################################################

list(APPEND VNET_SOURCES
  srv6/sr.c
  srv6/sr_localsid.c
  srv6/sr_policy_rewrite.c
  srv6/sr_steering.c
  srv6/sr_api.c
  srv6/sr_pt.c
  srv6/sr_pt_node.c
  srv6/sr_pt_api.c
)

list(APPEND VNET_HEADERS
  srv6/sr_packet.h
  srv6/sr.h
  srv6/sr_pt.h
)

list(APPEND VNET_API_FILES
  srv6/sr.api
  srv6/sr_types.api
  srv6/sr_pt.api
)

##############################################################################
# mpls segment routing
##############################################################################

list(APPEND VNET_SOURCES
  srmpls/sr_mpls_policy.c
  srmpls/sr_mpls_steering.c
  srmpls/sr_mpls_api.c
)

list(APPEND VNET_HEADERS
  srmpls/sr_mpls.h
)

list(APPEND VNET_API_FILES
  srmpls/sr_mpls.api
)

##############################################################################
# IPFIX / netflow v10
##############################################################################
list(APPEND VNET_SOURCES
  ipfix-export/flow_report.c
  ipfix-export/flow_api.c
)

list(APPEND VNET_HEADERS
  ipfix-export/flow_report.h
  ipfix-export/ipfix_info_elements.h
  ipfix-export/ipfix_packet.h
)

list(APPEND VNET_API_FILES ipfix-export/ipfix_export.api)

##############################################################################
# HASH
##############################################################################
list(APPEND VNET_SOURCES
  hash/hash.c
  hash/cli.c
  hash/crc32_5tuple.c
  hash/handoff_eth.c
  hash/hash_eth.c
)

list(APPEND VNET_HEADERS
  hash/hash.h
)

##############################################################################
# GSO
##############################################################################
list(APPEND VNET_SOURCES
  gso/cli.c
  gso/gso.c
  gso/gso_api.c
  gso/node.c
)

list(APPEND VNET_HEADERS
  gso/gro.h
  gso/gro_func.h
  gso/hdr_offset_parser.h
  gso/gso.h
)

list(APPEND VNET_API_FILES
  gso/gso.api
)

##############################################################################
# IPFIX classify code
##############################################################################

list(APPEND VNET_SOURCES
  ipfix-export/flow_report_classify.c
)

list(APPEND VNET_HEADERS
  ipfix-export/flow_report_classify.h
)

##############################################################################
# lawful intercept
##############################################################################

list(APPEND VNET_SOURCES
  lawful-intercept/lawful_intercept.c
  lawful-intercept/node.c
)

list(APPEND VNET_MULTIARCH_SOURCES
  lawful-intercept/node.c
)

list(APPEND VNET_HEADERS
  lawful-intercept/lawful_intercept.h
)

##############################################################################
# SPAN (port mirroring)
##############################################################################

list(APPEND VNET_SOURCES
  span/span_api.c
  span/span.c
  span/node.c
)

list(APPEND VNET_MULTIARCH_SOURCES
  span/node.c
)

list(APPEND VNET_HEADERS
  span/span.h
)

list(APPEND VNET_API_FILES span/span.api)

##############################################################################
# Packet generator
##############################################################################

list(APPEND VNET_SOURCES
  pg/cli.c
  pg/edit.c
  pg/init.c
  pg/input.c
  pg/output.c
  pg/stream.c
  pg/pg_api.c
)

list(APPEND VNET_HEADERS
  pg/pg.h
  pg/edit.h
)

list(APPEND VNET_API_FILES pg/pg.api)

##############################################################################
# virtio
##############################################################################

list(APPEND VNET_SOURCES
  devices/virtio/cli.c
  devices/virtio/device.c
  devices/virtio/format.c
  devices/virtio/node.c
  devices/virtio/pci.c
  devices/virtio/virtio.c
  devices/virtio/virtio_api.c
  devices/virtio/virtio_pci_legacy.c
  devices/virtio/virtio_pci_modern.c
  devices/virtio/virtio_pre_input.c
  devices/virtio/virtio_types_api.c
)

list(APPEND VNET_HEADERS
  devices/virtio/pci.h
  devices/virtio/virtio.h
  devices/virtio/virtio_buffering.h
  devices/virtio/virtio_std.h
  devices/virtio/virtio_pci_legacy.h
  devices/virtio/virtio_pci_modern.h
  devices/virtio/vhost_std.h
  devices/virtio/virtio_types_api.h
)

list(APPEND VNET_MULTIARCH_SOURCES
  devices/virtio/node.c
  devices/virtio/device.c
)

list(APPEND VNET_API_FILES
  devices/virtio/virtio.api
  devices/virtio/virtio_types.api
)

##############################################################################
# tap interface (with virtio backend)
##############################################################################

list(APPEND VNET_SOURCES
  devices/tap/cli.c
  devices/tap/tap.c
  devices/tap/tapv2_api.c
)

list(APPEND VNET_HEADERS
  devices/tap/tap.h
)

list(APPEND VNET_API_FILES
  devices/tap/tapv2.api
)

##############################################################################
# tap interface (with virtio backend)
##############################################################################

list(APPEND VNET_SOURCES
  devices/pipe/pipe_api.c
  devices/pipe/pipe.c
)

list(APPEND VNET_HEADERS
  devices/pipe/pipe.h
)

list(APPEND VNET_API_FILES devices/pipe/pipe.api)

##############################################################################
# session managmeent
##############################################################################

list(APPEND VNET_SOURCES
  session/session.c
  session/session_debug.c
  session/session_table.c
  session/session_rules_table.c
  session/session_lookup.c
  session/session_node.c
  session/transport.c
  session/application.c
  session/application_worker.c
  session/session_cli.c
  session/application_interface.c
  session/application_local.c
  session/application_namespace.c
  session/segment_manager.c
  session/session_api.c
)

list(APPEND VNET_HEADERS
  session/session.h
  session/session_table.h
  session/session_rules_table.h
  session/session_types.h
  session/session_lookup.h
  session/application.h
  session/transport.h
  session/transport_types.h
  session/application_interface.h
  session/application_local.h
  session/application_namespace.h
  session/session_debug.h
  session/segment_manager.h
  session/mma_template.h
  session/mma_template.c
  session/mma_16.h
  session/mma_40.h
)

list(APPEND VNET_API_FILES session/session.api)

##############################################################################
# TLS protocol
##############################################################################

list(APPEND VNET_SOURCES
  tls/tls.c
)

list(APPEND VNET_HEADERS
  tls/tls.h
  tls/tls_test.h
)


##############################################################################
# Driver feature graph arc support
##############################################################################

list(APPEND VNET_SOURCES
  feature/feature.c
  feature/feature_api.c
  feature/registration.c
)

list(APPEND VNET_HEADERS
  feature/feature.h
)

list(APPEND VNET_API_FILES feature/feature.api)

##############################################################################
# Unix kernel related
##############################################################################

# FIXME: unix/hgshm.c

list(APPEND VNET_SOURCES
  unix/gdb_funcs.c
  unix/tuntap.c
)

list(APPEND VNET_HEADERS
  unix/tuntap.h
)

##############################################################################
# FIB
##############################################################################

list(APPEND VNET_SOURCES
  fib/fib.c
  fib/ip4_fib_hash.c
  fib/ip4_fib.c
  fib/ip4_fib_16.c
  fib/ip4_fib_8.c
  fib/ip6_fib.c
  fib/mpls_fib.c
  fib/fib_table.c
  fib/fib_walk.c
  fib/fib_types.c
  fib/fib_node.c
  fib/fib_node_list.c
  fib/fib_entry.c
  fib/fib_entry_src.c
  fib/fib_entry_src_adj.c
  fib/fib_entry_src_api.c
  fib/fib_entry_src_drop.c
  fib/fib_entry_src_interface.c
  fib/fib_entry_src_interpose.c
  fib/fib_entry_src_lisp.c
  fib/fib_entry_src_mpls.c
  fib/fib_entry_src_simple.c
  fib/fib_entry_src_rr.c
  fib/fib_entry_cover.c
  fib/fib_entry_delegate.c
  fib/fib_entry_track.c
  fib/fib_path_list.c
  fib/fib_path.c
  fib/fib_path_ext.c
  fib/fib_sas.c
  fib/fib_source.c
  fib/fib_urpf_list.c
  fib/fib_attached_export.c
  fib/fib_api.c
  fib/fib_bfd.c
)

list(APPEND VNET_HEADERS
  fib/fib.h
  fib/fib_api.h
  fib/fib_entry_track.h
  fib/ip4_fib.h
  fib/ip4_fib_8.h
  fib/ip4_fib_16.h
  fib/ip4_fib_hash.h
  fib/ip6_fib.h
  fib/fib_types.h
  fib/fib_table.h
  fib/fib_node.h
  fib/fib_node_list.h
  fib/fib_entry.h
  fib/fib_entry_delegate.h
  fib/fib_path.h
  fib/fib_path_list.h
  fib/fib_sas.h
  fib/fib_source.h
)

list(APPEND VNET_API_FILES
  fib/fib_types.api
  fib/fib.api
)

##############################################################################
# ADJ
##############################################################################

list(APPEND VNET_SOURCES
  adj/adj_nbr.c
  adj/adj_glean.c
  adj/adj_midchain.c
  adj/adj_midchain_node.c
  adj/adj_midchain_delegate.c
  adj/adj_mcast.c
  adj/adj_l2.c
  adj/adj_nsh.c
  adj/adj.c
  adj/rewrite.c
  adj/adj_bfd.c
  adj/adj_delegate.c
)

list(APPEND VNET_MULTIARCH_SOURCES
  adj/adj_nsh.c
  adj/adj_l2.c
  adj/adj_midchain_node.c
)

list(APPEND VNET_HEADERS
  adj/adj.h
  adj/adj_types.h
  adj/adj_glean.h
  adj/adj_nsh.h
  adj/adj_nbr.h
  adj/adj_midchain.h
  adj/rewrite.h
)

##############################################################################
# Data-Plane Objects
##############################################################################

list(APPEND VNET_SOURCES
  dpo/dpo.c
  dpo/drop_dpo.c
  dpo/ip_null_dpo.c
  dpo/ip6_ll_dpo.c
  dpo/punt_dpo.c
  dpo/receive_dpo.c
  dpo/load_balance.c
  dpo/load_balance_map.c
  dpo/lookup_dpo.c
  dpo/classify_dpo.c
  dpo/replicate_dpo.c
  dpo/interface_rx_dpo.c
  dpo/interface_tx_dpo.c
  dpo/mpls_disposition.c
  dpo/mpls_label_dpo.c
  dpo/l3_proxy_dpo.c
  dpo/dvr_dpo.c
  dpo/pw_cw.c
)

list(APPEND VNET_MULTIARCH_SOURCES
  dpo/lookup_dpo.h
  dpo/mpls_disposition.c
  dpo/dvr_dpo.c
  dpo/mpls_label_dpo.c
  dpo/interface_rx_dpo.c
)

list(APPEND VNET_HEADERS
  dpo/load_balance.h
  dpo/load_balance_map.h
  dpo/drop_dpo.h
  dpo/lookup_dpo.h
  dpo/punt_dpo.h
  dpo/classify_dpo.h
  dpo/receive_dpo.h
  dpo/ip_null_dpo.h
  dpo/replicate_dpo.h
  dpo/dpo.h
)

##############################################################################
# Multicast FIB
##############################################################################

list(APPEND VNET_SOURCES
  mfib/mfib_forward.c
  mfib/ip4_mfib.c
  mfib/ip6_mfib.c
  mfib/mfib_api.c
  mfib/mfib_types.c
  mfib/mfib_signal.c
  mfib/mfib_itf.c
  mfib/mfib_entry.c
  mfib/mfib_entry.c
  mfib/mfib_entry_cover.c
  mfib/mfib_entry_delegate.c
  mfib/mfib_entry_src.c
  mfib/mfib_entry_src_rr.c
  mfib/mfib_table.c
)

list(APPEND VNET_MULTIARCH_SOURCES
  mfib/mfib_forward.c
)

list(APPEND VNET_HEADERS
  mfib/ip4_mfib.h
  mfib/mfib_types.h
  mfib/mfib_table.h
)

list(APPEND VNET_API_FILES mfib/mfib_types.api)

##############################################################################
# Utilities
##############################################################################

list(APPEND VNET_SOURCES
  util/radix.c
  util/refcount.c
  util/throttle.c
)

list(APPEND VNET_HEADERS
  util/throttle.h
)

##############################################################################
# QoS
##############################################################################

list(APPEND VNET_SOURCES
  qos/qos_types.c
  qos/qos_api.c
  qos/qos_egress_map.c
  qos/qos_record.c
  qos/qos_record_node.c
  qos/qos_store.c
  qos/qos_store_node.c
  qos/qos_mark.c
  qos/qos_mark_node.c
)

list(APPEND VNET_MULTIARCH_SOURCES
  qos/qos_record_node.c
  qos/qos_mark_node.c
)

list(APPEND VNET_API_FILES qos/qos.api)

##############################################################################
# BIER
##############################################################################

list(APPEND VNET_SOURCES
  bier/bier_bit_string.c
  bier/bier_entry.c
  bier/bier_fmask.c
  bier/bier_fmask_db.c
  bier/bier_input.c
  bier/bier_lookup.c
  bier/bier_output.c
  bier/bier_table.c
  bier/bier_types.c
  bier/bier_api.c
  bier/bier_drop.c
  bier/bier_update.c
  bier/bier_imp_node.c
  bier/bier_imp.c
  bier/bier_disp_entry.c
  bier/bier_disp_lookup_node.c
  bier/bier_disp_dispatch_node.c
  bier/bier_disp_table.c
  bier/bier_bift_table.c
)

list(APPEND VNET_MULTIARCH_SOURCES
  bier/bier_disp_dispatch_node.c
  bier/bier_disp_lookup_node.c
  bier/bier_imp_node.c
)

list(APPEND VNET_HEADERS
  bier/bier_bit_string.h
  bier/bier_entry.h
  bier/bier_fwd.h
  bier/bier_hdr_inlines.h
  bier/bier_update.h
  bier/bier_table.h
  bier/bier_types.h
)

list(APPEND VNET_API_FILES bier/bier.api)

##############################################################################
# SYSLOG
##############################################################################

list (APPEND VNET_SOURCES
  syslog/syslog_api.c
  syslog/syslog_udp.c
  syslog/syslog.c
)

list(APPEND VNET_HEADERS
  syslog/syslog_udp.h
  syslog/syslog.h
)

list(APPEND VNET_API_FILES syslog/syslog.api)

##############################################################################
# Tunnel Endpoint Information Base
##############################################################################

list (APPEND VNET_SOURCES
  teib/teib_api.c
  teib/teib_cli.c
  teib/teib.c
)

list(APPEND VNET_HEADERS
  teib/teib.h
)

list(APPEND VNET_API_FILES teib/teib.api)

##############################################################################
# ARP/ND
##############################################################################

list (APPEND VNET_SOURCES
  arp/arp_api.c
  arp/arp.c
  arp/arp_proxy.c
)

list(APPEND VNET_HEADERS
  arp/arp.h
)

list(APPEND VNET_API_FILES arp/arp.api)

list (APPEND VNET_SOURCES
  ip6-nd/ip6_mld.c
  ip6-nd/ip6_nd.c
  ip6-nd/ip6_nd_api.c
  ip6-nd/ip6_nd_proxy.c
  ip6-nd/ip6_nd_mirror_proxy.c
  ip6-nd/ip6_ra.c
  ip6-nd/rd_cp.c
  ip6-nd/rd_cp_api.c
)

list(APPEND VNET_HEADERS
  ip6-nd/ip6_nd.h
)

list(APPEND VNET_API_FILES
  ip6-nd/ip6_nd.api
  ip6-nd/rd_cp.api
)

##############################################################################
# VNET Library
##############################################################################

add_vpp_library(vnet
  SOURCES ${VNET_SOURCES}
  MULTIARCH_SOURCES ${VNET_MULTIARCH_SOURCES}
  INSTALL_HEADERS ${VNET_HEADERS}
  API_FILES ${VNET_API_FILES}
  LINK_LIBRARIES vppinfra svm vlib
  DEPENDS vpp_version_h api_headers
)

##############################################################################
# vpp api test client library
##############################################################################

add_vpp_library (vatclient
  SOURCES ip/ip_types_api.c
  DEPENDS api_headers
)

add_vat_test_library(vnet
  interface_test.c
  ip/ip_test.c
  arp/arp_test.c
  ip6-nd/ip6_nd_test.c
  srmpls/sr_mpls_test.c
  session/session_test.c
  l2/l2_test.c
  ipsec/ipsec_test.c
)

##############################################################################
# VAT2 plugins
##############################################################################
add_vpp_test_library(vnet
  ${VNET_API_FILES}
)

##############################################################################