Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 1 | # Copyright (c) 2015 Cisco and/or its affiliates. |
| 2 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 3 | # you may not use this file except in compliance with the License. |
| 4 | # You may obtain a copy of the License at: |
| 5 | # |
| 6 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 7 | # |
| 8 | # Unless required by applicable law or agreed to in writing, software |
| 9 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 10 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 11 | # See the License for the specific language governing permissions and |
| 12 | # limitations under the License. |
| 13 | |
Damjan Marion | 724f64c | 2017-01-11 11:11:00 +0100 | [diff] [blame] | 14 | lib_LTLIBRARIES += libvnet.la |
| 15 | |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 16 | libvnet_la_SOURCES = |
Damjan Marion | c74a86a | 2017-01-16 14:00:03 +0100 | [diff] [blame] | 17 | libvnet_la_DEPENDENCIES = \ |
| 18 | libvppinfra.la \ |
| 19 | libvlib.la \ |
| 20 | libsvmdb.la \ |
| 21 | libsvm.la \ |
Dave Barach | 654ceaf | 2017-03-29 16:59:02 -0400 | [diff] [blame] | 22 | libvlibmemory.la |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 23 | |
Damjan Marion | c3a814b | 2017-02-28 19:22:22 +0100 | [diff] [blame] | 24 | libvnet_la_LIBADD = $(libvnet_la_DEPENDENCIES) -lm -lpthread -ldl -lrt |
Damjan Marion | 45a00c4 | 2017-01-08 15:34:50 +0100 | [diff] [blame] | 25 | |
Damjan Marion | a9a951f | 2017-01-16 22:06:10 +0100 | [diff] [blame] | 26 | if WITH_LIBSSL |
Damjan Marion | 45a00c4 | 2017-01-08 15:34:50 +0100 | [diff] [blame] | 27 | libvnet_la_LIBADD += -lcrypto |
| 28 | endif |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 29 | |
| 30 | ######################################## |
| 31 | # Generic stuff |
| 32 | ######################################## |
| 33 | libvnet_la_SOURCES += \ |
| 34 | vnet/config.c \ |
| 35 | vnet/devices/devices.c \ |
| 36 | vnet/handoff.c \ |
| 37 | vnet/interface.c \ |
| 38 | vnet/interface_api.c \ |
| 39 | vnet/interface_cli.c \ |
| 40 | vnet/interface_format.c \ |
| 41 | vnet/interface_output.c \ |
| 42 | vnet/misc.c \ |
Neale Ranns | fa5d198 | 2017-02-20 14:19:51 -0800 | [diff] [blame] | 43 | vnet/replication.c |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 44 | |
| 45 | nobase_include_HEADERS += \ |
| 46 | vnet/api_errno.h \ |
| 47 | vnet/buffer.h \ |
| 48 | vnet/config.h \ |
| 49 | vnet/devices/devices.h \ |
| 50 | vnet/global_funcs.h \ |
| 51 | vnet/handoff.h \ |
| 52 | vnet/interface.h \ |
| 53 | vnet/interface.api.h \ |
| 54 | vnet/interface_funcs.h \ |
| 55 | vnet/l3_types.h \ |
| 56 | vnet/pipeline.h \ |
| 57 | vnet/replication.h \ |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 58 | vnet/vnet.h \ |
| 59 | vnet/vnet_all_api_h.h \ |
Gabriel Ganne | 5842c78 | 2017-01-30 13:44:04 +0100 | [diff] [blame] | 60 | vnet/vnet_msg_enum.h \ |
| 61 | vnet/util/radix.h |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 62 | |
| 63 | API_FILES += vnet/interface.api |
| 64 | |
| 65 | ######################################## |
| 66 | # Policer infra |
| 67 | ######################################## |
| 68 | |
| 69 | libvnet_la_SOURCES += \ |
| 70 | vnet/policer/node_funcs.c \ |
| 71 | vnet/policer/policer.c \ |
Pavel Kotucek | d9aad29 | 2017-01-25 08:45:38 +0100 | [diff] [blame] | 72 | vnet/policer/xlate.c \ |
| 73 | vnet/policer/policer_api.c |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 74 | |
| 75 | nobase_include_HEADERS += \ |
| 76 | vnet/policer/police.h \ |
| 77 | vnet/policer/policer.h \ |
Pavel Kotucek | d9aad29 | 2017-01-25 08:45:38 +0100 | [diff] [blame] | 78 | vnet/policer/xlate.h \ |
| 79 | vnet/policer/policer.api.h |
| 80 | |
| 81 | API_FILES += vnet/policer/policer.api |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 82 | |
| 83 | ######################################## |
| 84 | # Cop - junk filter |
| 85 | ######################################## |
| 86 | |
| 87 | libvnet_la_SOURCES += \ |
| 88 | vnet/cop/cop.c \ |
| 89 | vnet/cop/node1.c \ |
| 90 | vnet/cop/ip4_whitelist.c \ |
Pavel Kotucek | 884cf26 | 2017-01-25 08:27:15 +0100 | [diff] [blame] | 91 | vnet/cop/ip6_whitelist.c \ |
| 92 | vnet/cop/cop_api.c |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 93 | |
| 94 | nobase_include_HEADERS += \ |
Pavel Kotucek | 884cf26 | 2017-01-25 08:27:15 +0100 | [diff] [blame] | 95 | vnet/cop/cop.h \ |
| 96 | vnet/cop/cop.api.h |
| 97 | |
| 98 | API_FILES += vnet/cop/cop.api |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 99 | |
| 100 | ######################################## |
| 101 | # Layer 2 protocols go here |
| 102 | ######################################## |
| 103 | |
| 104 | ######################################## |
| 105 | # Layer 2 protocol: Ethernet |
| 106 | ######################################## |
| 107 | libvnet_la_SOURCES += \ |
| 108 | vnet/ethernet/arp.c \ |
| 109 | vnet/ethernet/format.c \ |
| 110 | vnet/ethernet/init.c \ |
| 111 | vnet/ethernet/interface.c \ |
| 112 | vnet/ethernet/node.c \ |
Damjan Marion | 374e2c5 | 2017-03-09 20:38:15 +0100 | [diff] [blame] | 113 | vnet/ethernet/pg.c \ |
| 114 | vnet/ethernet/sfp.c |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 115 | |
| 116 | nobase_include_HEADERS += \ |
| 117 | vnet/ethernet/arp_packet.h \ |
| 118 | vnet/ethernet/error.def \ |
| 119 | vnet/ethernet/ethernet.h \ |
| 120 | vnet/ethernet/packet.h \ |
Damjan Marion | 374e2c5 | 2017-03-09 20:38:15 +0100 | [diff] [blame] | 121 | vnet/ethernet/types.def \ |
| 122 | vnet/ethernet/sfp.h |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 123 | |
| 124 | ######################################## |
| 125 | # Layer 2 protocol: Ethernet bridging |
| 126 | ######################################## |
| 127 | libvnet_la_SOURCES += \ |
| 128 | vnet/l2/feat_bitmap.c \ |
| 129 | vnet/l2/l2_api.c \ |
| 130 | vnet/l2/l2_bd.c \ |
| 131 | vnet/l2/l2_bvi.c \ |
| 132 | vnet/l2/l2_input_classify.c \ |
| 133 | vnet/l2/l2_output_classify.c \ |
| 134 | vnet/l2/l2_efp_filter.c \ |
| 135 | vnet/l2/l2_fib.c \ |
| 136 | vnet/l2/l2_flood.c \ |
| 137 | vnet/l2/l2_fwd.c \ |
| 138 | vnet/l2/l2_input_acl.c \ |
| 139 | vnet/l2/l2_input.c \ |
| 140 | vnet/l2/l2_input_vtr.c \ |
| 141 | vnet/l2/l2_learn.c \ |
| 142 | vnet/l2/l2_output_acl.c \ |
| 143 | vnet/l2/l2_output.c \ |
| 144 | vnet/l2/l2_patch.c \ |
| 145 | vnet/l2/l2_rw.c \ |
| 146 | vnet/l2/l2_vtr.c \ |
| 147 | vnet/l2/l2_xcrw.c |
| 148 | |
| 149 | nobase_include_HEADERS += \ |
| 150 | vnet/l2/feat_bitmap.h \ |
| 151 | vnet/l2/l2_input.h \ |
| 152 | vnet/l2/l2_output.h \ |
| 153 | vnet/l2/l2_vtr.h \ |
| 154 | vnet/l2/l2_input_vtr.h \ |
| 155 | vnet/l2/l2_efp_filter.h \ |
| 156 | vnet/l2/l2_fwd.h \ |
| 157 | vnet/l2/l2_bd.h \ |
| 158 | vnet/l2/l2_bvi.h \ |
| 159 | vnet/l2/l2_flood.h \ |
| 160 | vnet/l2/l2_fib.h \ |
| 161 | vnet/l2/l2_rw.h \ |
| 162 | vnet/l2/l2_xcrw.h \ |
| 163 | vnet/l2/l2_classify.h \ |
| 164 | vnet/l2/l2.api.h |
| 165 | |
| 166 | API_FILES += vnet/l2/l2.api |
| 167 | |
| 168 | ######################################## |
| 169 | # Layer 2 protocol: SRP |
| 170 | ######################################## |
| 171 | libvnet_la_SOURCES += \ |
| 172 | vnet/srp/format.c \ |
| 173 | vnet/srp/interface.c \ |
| 174 | vnet/srp/node.c \ |
| 175 | vnet/srp/pg.c |
| 176 | |
| 177 | nobase_include_HEADERS += \ |
| 178 | vnet/srp/packet.h \ |
| 179 | vnet/srp/srp.h |
| 180 | |
| 181 | ######################################## |
| 182 | # Layer 2 protocol: PPP |
| 183 | ######################################## |
| 184 | libvnet_la_SOURCES += \ |
| 185 | vnet/ppp/node.c \ |
| 186 | vnet/ppp/pg.c \ |
| 187 | vnet/ppp/ppp.c |
| 188 | |
| 189 | nobase_include_HEADERS += \ |
| 190 | vnet/ppp/error.def \ |
| 191 | vnet/ppp/ppp.h \ |
| 192 | vnet/ppp/packet.h |
| 193 | |
| 194 | ######################################## |
| 195 | # Layer 2 protocol: HDLC |
| 196 | ######################################## |
| 197 | libvnet_la_SOURCES += \ |
| 198 | vnet/hdlc/node.c \ |
| 199 | vnet/hdlc/pg.c \ |
| 200 | vnet/hdlc/hdlc.c |
| 201 | |
| 202 | nobase_include_HEADERS += \ |
| 203 | vnet/hdlc/error.def \ |
| 204 | vnet/hdlc/hdlc.h \ |
| 205 | vnet/hdlc/packet.h |
| 206 | |
| 207 | ######################################## |
| 208 | # Layer 2 protocol: LLC |
| 209 | ######################################## |
| 210 | libvnet_la_SOURCES += \ |
| 211 | vnet/llc/llc.c \ |
| 212 | vnet/llc/node.c \ |
| 213 | vnet/llc/pg.c |
| 214 | |
| 215 | nobase_include_HEADERS += \ |
| 216 | vnet/llc/llc.h |
| 217 | |
| 218 | ######################################## |
| 219 | # Layer 2 protocol: SNAP |
| 220 | ######################################## |
| 221 | libvnet_la_SOURCES += \ |
| 222 | vnet/snap/snap.c \ |
| 223 | vnet/snap/node.c \ |
| 224 | vnet/snap/pg.c |
| 225 | |
| 226 | nobase_include_HEADERS += \ |
| 227 | vnet/snap/snap.h |
| 228 | |
| 229 | ######################################## |
| 230 | # Layer 2 / vxlan |
| 231 | ######################################## |
| 232 | libvnet_la_SOURCES += \ |
| 233 | vnet/vxlan/vxlan.c \ |
| 234 | vnet/vxlan/encap.c \ |
| 235 | vnet/vxlan/decap.c \ |
| 236 | vnet/vxlan/vxlan_api.c |
| 237 | |
| 238 | nobase_include_HEADERS += \ |
| 239 | vnet/vxlan/vxlan.h \ |
| 240 | vnet/vxlan/vxlan_packet.h \ |
| 241 | vnet/vxlan/vxlan_error.def \ |
| 242 | vnet/vxlan/vxlan.api.h |
| 243 | |
| 244 | API_FILES += vnet/vxlan/vxlan.api |
| 245 | |
| 246 | ######################################## |
| 247 | # Layer 2 / CDP |
| 248 | ######################################## |
| 249 | libvnet_la_SOURCES += \ |
| 250 | vnet/cdp/cdp_input.c \ |
| 251 | vnet/cdp/cdp_node.c \ |
| 252 | vnet/cdp/cdp_periodic.c |
| 253 | |
| 254 | nobase_include_HEADERS += \ |
| 255 | vnet/cdp/cdp_protocol.h |
| 256 | |
| 257 | ######################################## |
| 258 | # Layer 2 / LLDP |
| 259 | ######################################## |
| 260 | libvnet_la_SOURCES += \ |
| 261 | vnet/lldp/lldp_input.c \ |
| 262 | vnet/lldp/lldp_node.c \ |
| 263 | vnet/lldp/lldp_output.c \ |
| 264 | vnet/lldp/lldp_cli.c |
| 265 | |
| 266 | nobase_include_HEADERS += \ |
| 267 | vnet/lldp/lldp_protocol.h |
| 268 | |
| 269 | ######################################## |
| 270 | # Layer 2/3 "classify" |
| 271 | ######################################## |
| 272 | libvnet_la_SOURCES += \ |
| 273 | vnet/classify/vnet_classify.c \ |
| 274 | vnet/classify/ip_classify.c \ |
| 275 | vnet/classify/input_acl.c \ |
| 276 | vnet/classify/policer_classify.c \ |
| 277 | vnet/classify/flow_classify.c \ |
| 278 | vnet/classify/flow_classify_node.c \ |
Pavel Kotucek | d2c97d9 | 2017-01-24 10:58:12 +0100 | [diff] [blame] | 279 | vnet/classify/vnet_classify.h \ |
| 280 | vnet/classify/classify_api.c |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 281 | |
| 282 | nobase_include_HEADERS += \ |
| 283 | vnet/classify/vnet_classify.h \ |
| 284 | vnet/classify/input_acl.h \ |
| 285 | vnet/classify/policer_classify.h \ |
Pavel Kotucek | d2c97d9 | 2017-01-24 10:58:12 +0100 | [diff] [blame] | 286 | vnet/classify/flow_classify.h \ |
| 287 | vnet/classify/classify.api.h |
| 288 | |
| 289 | API_FILES += vnet/classify/classify.api |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 290 | |
| 291 | ######################################## |
| 292 | # Layer 3 protocols go here |
| 293 | ######################################## |
| 294 | |
| 295 | ######################################## |
| 296 | # Layer 3 protocol: IP v4/v6 |
| 297 | ######################################## |
| 298 | libvnet_la_SOURCES += \ |
| 299 | vnet/ip/format.c \ |
| 300 | vnet/ip/icmp4.c \ |
| 301 | vnet/ip/icmp6.c \ |
| 302 | vnet/ip/ip46_cli.c \ |
| 303 | vnet/ip/ip4_format.c \ |
| 304 | vnet/ip/ip4_forward.c \ |
| 305 | vnet/ip/ip4_input.c \ |
| 306 | vnet/ip/ip4_mtrie.c \ |
| 307 | vnet/ip/ip4_pg.c \ |
| 308 | vnet/ip/ip4_source_and_port_range_check.c \ |
| 309 | vnet/ip/ip4_source_check.c \ |
| 310 | vnet/ip/ip6_format.c \ |
| 311 | vnet/ip/ip6_forward.c \ |
| 312 | vnet/ip/ip6_hop_by_hop.c \ |
| 313 | vnet/ip/ip6_input.c \ |
| 314 | vnet/ip/ip6_neighbor.c \ |
| 315 | vnet/ip/ip6_pg.c \ |
| 316 | vnet/ip/ip_api.c \ |
| 317 | vnet/ip/ip_checksum.c \ |
| 318 | vnet/ip/ip_frag.c \ |
| 319 | vnet/ip/ip.h \ |
| 320 | vnet/ip/ip_init.c \ |
| 321 | vnet/ip/ip_input_acl.c \ |
| 322 | vnet/ip/lookup.c \ |
| 323 | vnet/ip/ping.c \ |
Dave Barach | 68b0fb0 | 2017-02-28 15:15:56 -0500 | [diff] [blame] | 324 | vnet/ip/punt.c |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 325 | |
| 326 | nobase_include_HEADERS += \ |
| 327 | vnet/ip/format.h \ |
| 328 | vnet/ip/icmp46_packet.h \ |
| 329 | vnet/ip/icmp4.h \ |
| 330 | vnet/ip/icmp6.h \ |
| 331 | vnet/ip/igmp_packet.h \ |
| 332 | vnet/ip/ip.api.h \ |
| 333 | vnet/ip/ip4_error.h \ |
| 334 | vnet/ip/ip4.h \ |
| 335 | vnet/ip/ip4_mtrie.h \ |
| 336 | vnet/ip/ip4_packet.h \ |
| 337 | vnet/ip/ip6_error.h \ |
| 338 | vnet/ip/ip6.h \ |
| 339 | vnet/ip/ip6_hop_by_hop.h \ |
| 340 | vnet/ip/ip6_hop_by_hop_packet.h \ |
| 341 | vnet/ip/ip6_packet.h \ |
| 342 | vnet/ip/ip6_neighbor.h \ |
| 343 | vnet/ip/ip.h \ |
| 344 | vnet/ip/ip_packet.h \ |
| 345 | vnet/ip/ip_source_and_port_range_check.h \ |
| 346 | vnet/ip/lookup.h \ |
| 347 | vnet/ip/ports.def \ |
| 348 | vnet/ip/protocols.def \ |
| 349 | vnet/ip/punt_error.def \ |
Dave Barach | 68b0fb0 | 2017-02-28 15:15:56 -0500 | [diff] [blame] | 350 | vnet/ip/punt.h |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 351 | |
| 352 | API_FILES += vnet/ip/ip.api |
| 353 | |
| 354 | ######################################## |
| 355 | # Bidirectional Forwarding Detection |
| 356 | ######################################## |
| 357 | |
| 358 | nobase_include_HEADERS += \ |
| 359 | vnet/bfd/bfd_protocol.h \ |
| 360 | vnet/bfd/bfd_main.h \ |
| 361 | vnet/bfd/bfd_api.h \ |
| 362 | vnet/bfd/bfd_udp.h \ |
| 363 | vnet/bfd/bfd.api.h |
| 364 | |
| 365 | libvnet_la_SOURCES += \ |
| 366 | vnet/bfd/bfd_api.h \ |
| 367 | vnet/bfd/bfd_udp.c \ |
| 368 | vnet/bfd/bfd_main.c \ |
| 369 | vnet/bfd/bfd_protocol.c \ |
Klement Sekera | 7388448 | 2017-02-23 09:26:30 +0100 | [diff] [blame] | 370 | vnet/bfd/bfd_cli.c \ |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 371 | vnet/bfd/bfd_api.c |
| 372 | |
| 373 | API_FILES += vnet/bfd/bfd.api |
| 374 | |
| 375 | ######################################## |
| 376 | # Layer 3 protocol: IPSec |
| 377 | ######################################## |
Damjan Marion | a9a951f | 2017-01-16 22:06:10 +0100 | [diff] [blame] | 378 | if WITH_LIBSSL |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 379 | libvnet_la_SOURCES += \ |
| 380 | vnet/ipsec/ipsec.c \ |
| 381 | vnet/ipsec/ipsec_cli.c \ |
| 382 | vnet/ipsec/ipsec_format.c \ |
| 383 | vnet/ipsec/ipsec_input.c \ |
| 384 | vnet/ipsec/ipsec_if.c \ |
| 385 | vnet/ipsec/ipsec_if_in.c \ |
| 386 | vnet/ipsec/ipsec_if_out.c \ |
| 387 | vnet/ipsec/esp_encrypt.c \ |
| 388 | vnet/ipsec/esp_decrypt.c \ |
| 389 | vnet/ipsec/ikev2.c \ |
| 390 | vnet/ipsec/ikev2_crypto.c \ |
| 391 | vnet/ipsec/ikev2_cli.c \ |
| 392 | vnet/ipsec/ikev2_payload.c \ |
| 393 | vnet/ipsec/ikev2_format.c \ |
| 394 | vnet/ipsec/ipsec_api.c |
| 395 | |
| 396 | API_FILES += vnet/ipsec/ipsec.api |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 397 | endif |
| 398 | |
| 399 | libvnet_la_SOURCES += \ |
| 400 | vnet/ipsec/ipsec_output.c |
| 401 | |
| 402 | nobase_include_HEADERS += \ |
| 403 | vnet/ipsec/ipsec.h \ |
| 404 | vnet/ipsec/esp.h \ |
| 405 | vnet/ipsec/ikev2.h \ |
| 406 | vnet/ipsec/ikev2_priv.h \ |
| 407 | vnet/ipsec/ipsec.api.h |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 408 | |
| 409 | ######################################## |
| 410 | # Layer 3 protocol: osi |
| 411 | ######################################## |
| 412 | libvnet_la_SOURCES += \ |
| 413 | vnet/osi/node.c \ |
| 414 | vnet/osi/osi.c \ |
| 415 | vnet/osi/pg.c |
| 416 | |
| 417 | nobase_include_HEADERS += \ |
| 418 | vnet/osi/osi.h |
| 419 | |
| 420 | ######################################## |
| 421 | # Layer 3 protocol: MAP |
| 422 | ######################################## |
| 423 | libvnet_la_SOURCES += \ |
| 424 | vnet/map/map.c \ |
| 425 | vnet/map/map_dpo.c \ |
| 426 | vnet/map/ip4_map.c \ |
| 427 | vnet/map/ip6_map.c \ |
| 428 | vnet/map/ip4_map_t.c \ |
| 429 | vnet/map/ip6_map_t.c \ |
| 430 | vnet/map/map_api.c |
| 431 | |
| 432 | nobase_include_HEADERS += \ |
| 433 | vnet/map/map.h \ |
| 434 | vnet/map/map_dpo.h \ |
| 435 | vnet/map/map.api.h |
| 436 | |
| 437 | API_FILES += vnet/map/map.api |
| 438 | |
| 439 | if ENABLE_TESTS |
| 440 | TESTS += test_map |
| 441 | test_map_SOURCES = \ |
| 442 | vnet/map/test.c |
| 443 | test_map_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG |
| 444 | |
| 445 | test_map_LDADD = libvnet.la libvppinfra.la libvlib.la \ |
Dave Barach | 654ceaf | 2017-03-29 16:59:02 -0400 | [diff] [blame] | 446 | -lpthread -lvlibmemory -ldl -lsvm -lrt |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 447 | |
| 448 | test_map_LDFLAGS = -static |
| 449 | endif |
| 450 | |
Dave Barach | 68b0fb0 | 2017-02-28 15:15:56 -0500 | [diff] [blame] | 451 | ######################################## |
| 452 | # Layer 4 protocol: tcp |
| 453 | ######################################## |
| 454 | libvnet_la_SOURCES += \ |
| 455 | vnet/tcp/tcp_format.c \ |
| 456 | vnet/tcp/tcp_pg.c \ |
| 457 | vnet/tcp/tcp_syn_filter4.c \ |
| 458 | vnet/tcp/tcp_output.c \ |
| 459 | vnet/tcp/tcp_input.c \ |
| 460 | vnet/tcp/tcp_newreno.c \ |
Florin Coras | 6792ec0 | 2017-03-13 03:49:51 -0700 | [diff] [blame] | 461 | vnet/tcp/builtin_client.c \ |
Florin Coras | e04c299 | 2017-03-01 08:17:34 -0800 | [diff] [blame] | 462 | vnet/tcp/builtin_server.c \ |
Florin Coras | 6792ec0 | 2017-03-13 03:49:51 -0700 | [diff] [blame] | 463 | vnet/tcp/tcp_test.c \ |
Dave Barach | 68b0fb0 | 2017-02-28 15:15:56 -0500 | [diff] [blame] | 464 | vnet/tcp/tcp.c |
| 465 | |
| 466 | nobase_include_HEADERS += \ |
| 467 | vnet/tcp/tcp_packet.h \ |
| 468 | vnet/tcp/tcp_timer.h \ |
Florin Coras | e69f495 | 2017-03-07 10:06:24 -0800 | [diff] [blame] | 469 | vnet/tcp/tcp_debug.h \ |
Dave Barach | 68b0fb0 | 2017-02-28 15:15:56 -0500 | [diff] [blame] | 470 | vnet/tcp/tcp.h |
| 471 | |
| 472 | ######################################## |
| 473 | # Layer 4 protocol: udp |
| 474 | ######################################## |
| 475 | libvnet_la_SOURCES += \ |
| 476 | vnet/udp/udp.c \ |
| 477 | vnet/udp/udp_input.c \ |
| 478 | vnet/udp/builtin_server.c \ |
| 479 | vnet/udp/udp_format.c \ |
| 480 | vnet/udp/udp_local.c \ |
| 481 | vnet/udp/udp_pg.c |
| 482 | |
| 483 | nobase_include_HEADERS += \ |
| 484 | vnet/udp/udp_error.def \ |
| 485 | vnet/udp/udp.h \ |
| 486 | vnet/udp/udp_packet.h |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 487 | |
| 488 | ######################################## |
| 489 | # Tunnel protocol: gre |
| 490 | ######################################## |
| 491 | libvnet_la_SOURCES += \ |
| 492 | vnet/gre/gre.c \ |
| 493 | vnet/gre/node.c \ |
| 494 | vnet/gre/interface.c \ |
| 495 | vnet/gre/pg.c \ |
| 496 | vnet/gre/gre_api.c |
| 497 | |
| 498 | nobase_include_HEADERS += \ |
| 499 | vnet/gre/gre.h \ |
| 500 | vnet/gre/packet.h \ |
| 501 | vnet/gre/error.def \ |
| 502 | vnet/gre/gre.api.h |
| 503 | |
| 504 | API_FILES += vnet/gre/gre.api |
| 505 | |
| 506 | ######################################## |
| 507 | # Tunnel protocol: l2tpv3 |
| 508 | ######################################## |
| 509 | libvnet_la_SOURCES += \ |
| 510 | vnet/l2tp/l2tp.c \ |
| 511 | vnet/l2tp/encap.c \ |
| 512 | vnet/l2tp/decap.c \ |
| 513 | vnet/l2tp/pg.c \ |
| 514 | vnet/l2tp/l2tp_api.c |
| 515 | |
| 516 | nobase_include_HEADERS += \ |
| 517 | vnet/l2tp/l2tp.h \ |
| 518 | vnet/l2tp/packet.h \ |
| 519 | vnet/l2tp/l2tp.api.h |
| 520 | |
| 521 | API_FILES += vnet/l2tp/l2tp.api |
| 522 | |
| 523 | ######################################## |
| 524 | # Tunnel protocol: gre+mpls |
| 525 | ######################################## |
| 526 | libvnet_la_SOURCES += \ |
| 527 | vnet/mpls/mpls.c \ |
| 528 | vnet/mpls/mpls_lookup.c \ |
| 529 | vnet/mpls/mpls_output.c \ |
| 530 | vnet/mpls/mpls_features.c \ |
Neale Ranns | 696e88d | 2017-03-16 07:34:55 -0400 | [diff] [blame] | 531 | vnet/mpls/mpls_input.c \ |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 532 | vnet/mpls/interface.c \ |
| 533 | vnet/mpls/mpls_tunnel.c \ |
Pavel Kotucek | 0f971d8 | 2017-01-03 10:48:54 +0100 | [diff] [blame] | 534 | vnet/mpls/pg.c \ |
| 535 | vnet/mpls/mpls_api.c |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 536 | |
| 537 | nobase_include_HEADERS += \ |
| 538 | vnet/mpls/mpls.h \ |
| 539 | vnet/mpls/mpls_types.h \ |
| 540 | vnet/mpls/mpls_tunnel.h \ |
| 541 | vnet/mpls/packet.h \ |
Pavel Kotucek | 0f971d8 | 2017-01-03 10:48:54 +0100 | [diff] [blame] | 542 | vnet/mpls/error.def \ |
| 543 | vnet/mpls/mpls.api.h |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 544 | |
Pavel Kotucek | 0f971d8 | 2017-01-03 10:48:54 +0100 | [diff] [blame] | 545 | API_FILES += vnet/mpls/mpls.api |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 546 | |
| 547 | ######################################## |
| 548 | # Tunnel protocol: vxlan-gpe |
| 549 | ######################################## |
| 550 | |
| 551 | libvnet_la_SOURCES += \ |
| 552 | vnet/vxlan-gpe/vxlan_gpe.c \ |
| 553 | vnet/vxlan-gpe/encap.c \ |
| 554 | vnet/vxlan-gpe/decap.c \ |
| 555 | vnet/vxlan-gpe/vxlan_gpe_api.c |
| 556 | |
| 557 | nobase_include_HEADERS += \ |
| 558 | vnet/vxlan-gpe/vxlan_gpe.h \ |
| 559 | vnet/vxlan-gpe/vxlan_gpe_packet.h \ |
| 560 | vnet/vxlan-gpe/vxlan_gpe_error.def \ |
| 561 | vnet/vxlan-gpe/vxlan_gpe.api.h |
| 562 | |
| 563 | API_FILES += vnet/vxlan-gpe/vxlan_gpe.api |
| 564 | |
| 565 | ######################################## |
| 566 | # Tunnel protocol: ipsec+gre |
| 567 | ######################################## |
| 568 | libvnet_la_SOURCES += \ |
| 569 | vnet/ipsec-gre/ipsec_gre.c \ |
| 570 | vnet/ipsec-gre/node.c \ |
| 571 | vnet/ipsec-gre/interface.c \ |
| 572 | vnet/ipsec-gre/ipsec_gre_api.c |
| 573 | |
| 574 | nobase_include_HEADERS += \ |
| 575 | vnet/ipsec-gre/ipsec_gre.h \ |
| 576 | vnet/ipsec-gre/error.def \ |
| 577 | vnet/ipsec-gre/ipsec_gre.api.h |
| 578 | |
| 579 | API_FILES += vnet/ipsec-gre/ipsec_gre.api |
| 580 | |
| 581 | ######################################## |
| 582 | # LISP control plane: lisp-cp |
| 583 | ######################################## |
| 584 | |
| 585 | libvnet_la_SOURCES += \ |
| 586 | vnet/lisp-cp/lisp_types.c \ |
| 587 | vnet/lisp-cp/lisp_cp_dpo.c \ |
| 588 | vnet/lisp-cp/control.c \ |
| 589 | vnet/lisp-cp/gid_dictionary.c \ |
| 590 | vnet/lisp-cp/lisp_msg_serdes.c \ |
| 591 | vnet/lisp-cp/packets.c \ |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 592 | vnet/lisp-cp/one_cli.c \ |
Florin Coras | f3dc11a | 2017-01-24 03:13:43 -0800 | [diff] [blame] | 593 | vnet/lisp-cp/lisp_cli.c \ |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 594 | vnet/lisp-cp/one_api.c \ |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 595 | vnet/lisp-cp/lisp_api.c |
| 596 | |
| 597 | nobase_include_HEADERS += \ |
| 598 | vnet/lisp-cp/lisp_types.h \ |
| 599 | vnet/lisp-cp/packets.h \ |
| 600 | vnet/lisp-cp/gid_dictionary.h \ |
| 601 | vnet/lisp-cp/lisp_cp_messages.h \ |
| 602 | vnet/lisp-cp/lisp_msg_serdes.h \ |
| 603 | vnet/lisp-cp/control.h \ |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 604 | vnet/lisp-cp/one.api.h \ |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 605 | vnet/lisp-cp/lisp.api.h |
| 606 | |
| 607 | API_FILES += vnet/lisp-cp/lisp.api |
Filip Tehlar | 694396d | 2017-02-17 14:29:11 +0100 | [diff] [blame] | 608 | API_FILES += vnet/lisp-cp/one.api |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 609 | |
| 610 | if ENABLE_TESTS |
| 611 | LDS = \ |
| 612 | libvppinfra.la \ |
| 613 | libvnet.la \ |
| 614 | libvlib.la \ |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 615 | libsvm.la \ |
| 616 | libsvmdb.la \ |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 617 | libvlibmemory.la \ |
Damjan Marion | c74a86a | 2017-01-16 14:00:03 +0100 | [diff] [blame] | 618 | -lpthread -ldl -lrt -lm |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 619 | |
| 620 | TESTS += test_cp_serdes test_lisp_types |
| 621 | |
| 622 | test_cp_serdes_SOURCES = \ |
| 623 | tests/vnet/lisp-cp/test_cp_serdes.c \ |
| 624 | vnet/lisp-cp/lisp_msg_serdes.c \ |
| 625 | vnet/lisp-cp/lisp_types.c \ |
| 626 | vnet/lisp-cp/packets.c \ |
| 627 | vnet/ip/ip_checksum.c |
| 628 | |
| 629 | test_lisp_types_SOURCES = \ |
| 630 | tests/vnet/lisp-cp/test_lisp_types.c \ |
| 631 | vnet/lisp-cp/lisp_types.c |
| 632 | |
| 633 | test_cp_serdes_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG |
| 634 | test_lisp_types_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG |
| 635 | |
Damjan Marion | c74a86a | 2017-01-16 14:00:03 +0100 | [diff] [blame] | 636 | test_cp_serdes_LDADD = $(LDS) |
| 637 | test_lisp_types_LDADD = $(LDS) |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 638 | endif |
| 639 | |
| 640 | ######################################## |
| 641 | # Tunnel protocol: lisp-gpe |
| 642 | ######################################## |
| 643 | |
| 644 | libvnet_la_SOURCES += \ |
| 645 | vnet/lisp-gpe/lisp_gpe.c \ |
| 646 | vnet/lisp-gpe/lisp_gpe_sub_interface.c \ |
| 647 | vnet/lisp-gpe/lisp_gpe_adjacency.c \ |
| 648 | vnet/lisp-gpe/lisp_gpe_tunnel.c \ |
| 649 | vnet/lisp-gpe/lisp_gpe_fwd_entry.c \ |
| 650 | vnet/lisp-gpe/lisp_gpe_tenant.c \ |
| 651 | vnet/lisp-gpe/interface.c \ |
| 652 | vnet/lisp-gpe/decap.c \ |
| 653 | vnet/lisp-gpe/lisp_gpe_api.c |
| 654 | |
| 655 | nobase_include_HEADERS += \ |
| 656 | vnet/lisp-gpe/lisp_gpe.h \ |
| 657 | vnet/lisp-gpe/lisp_gpe_fwd_entry.h \ |
| 658 | vnet/lisp-gpe/lisp_gpe_tenant.h \ |
| 659 | vnet/lisp-gpe/lisp_gpe_packet.h \ |
| 660 | vnet/lisp-gpe/lisp_gpe_error.def \ |
| 661 | vnet/lisp-gpe/lisp_gpe.api.h |
| 662 | |
| 663 | API_FILES += vnet/lisp-gpe/lisp_gpe.api |
| 664 | |
| 665 | if ENABLE_TESTS |
| 666 | TESTS += test_test |
| 667 | |
| 668 | test_test_SOURCES = tests/vnet/lisp-gpe/test.c |
| 669 | |
| 670 | test_test_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG |
| 671 | |
| 672 | test_test_LDADD = $(LIBOBJS) |
| 673 | |
| 674 | noinst_PROGRAMS += $(TESTS) |
| 675 | check_PROGRAMS += $(TESTS) |
| 676 | endif |
| 677 | |
| 678 | ######################################## |
| 679 | # DHCP client |
| 680 | ######################################## |
| 681 | libvnet_la_SOURCES += \ |
| 682 | vnet/dhcp/client.c \ |
Pavel Kotucek | c8d8770 | 2017-01-25 07:25:32 +0100 | [diff] [blame] | 683 | vnet/dhcp/client.h \ |
| 684 | vnet/dhcp/dhcp_api.c |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 685 | |
| 686 | nobase_include_HEADERS += \ |
Neale Ranns | 2dd6852 | 2017-02-16 03:38:59 -0800 | [diff] [blame] | 687 | vnet/dhcp/client.h \ |
Pavel Kotucek | c8d8770 | 2017-01-25 07:25:32 +0100 | [diff] [blame] | 688 | vnet/dhcp/dhcp.api.h |
| 689 | |
| 690 | API_FILES += vnet/dhcp/dhcp.api |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 691 | |
| 692 | ######################################## |
| 693 | # DHCP proxy |
| 694 | ######################################## |
| 695 | libvnet_la_SOURCES += \ |
Neale Ranns | 2dd6852 | 2017-02-16 03:38:59 -0800 | [diff] [blame] | 696 | vnet/dhcp/dhcp6_proxy_node.c \ |
| 697 | vnet/dhcp/dhcp4_proxy_node.c \ |
| 698 | vnet/dhcp/dhcp_proxy.c |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 699 | |
| 700 | nobase_include_HEADERS += \ |
Neale Ranns | 2dd6852 | 2017-02-16 03:38:59 -0800 | [diff] [blame] | 701 | vnet/dhcp/dhcp4_packet.h \ |
| 702 | vnet/dhcp/dhcp6_packet.h \ |
| 703 | vnet/dhcp/dhcp_proxy.h \ |
| 704 | vnet/dhcp/dhcp6_proxy_error.def \ |
| 705 | vnet/dhcp/dhcp4_proxy_error.def |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 706 | |
| 707 | ######################################## |
| 708 | # ipv6 segment routing |
| 709 | ######################################## |
| 710 | |
Damjan Marion | a9a951f | 2017-01-16 22:06:10 +0100 | [diff] [blame] | 711 | if WITH_LIBSSL |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 712 | libvnet_la_SOURCES += \ |
Pablo Camarillo | fb38095 | 2016-12-07 18:34:18 +0100 | [diff] [blame] | 713 | vnet/sr/sr.c \ |
| 714 | vnet/sr/sr_localsid.c \ |
| 715 | vnet/sr/sr_policy_rewrite.c \ |
| 716 | vnet/sr/sr_steering.c \ |
Pavel Kotucek | 0f971d8 | 2017-01-03 10:48:54 +0100 | [diff] [blame] | 717 | vnet/sr/sr_api.c |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 718 | endif |
| 719 | |
| 720 | nobase_include_HEADERS += \ |
| 721 | vnet/sr/sr_packet.h \ |
Pavel Kotucek | 0f971d8 | 2017-01-03 10:48:54 +0100 | [diff] [blame] | 722 | vnet/sr/sr.h \ |
| 723 | vnet/sr/sr.api.h |
| 724 | |
| 725 | API_FILES += vnet/sr/sr.api |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 726 | |
| 727 | ######################################## |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 728 | # IPFIX / netflow v10 |
| 729 | ######################################## |
| 730 | libvnet_la_SOURCES += \ |
Pavel Kotucek | eb9e666 | 2017-01-24 13:40:26 +0100 | [diff] [blame] | 731 | vnet/flow/flow_report.c \ |
| 732 | vnet/flow/flow_api.c |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 733 | |
| 734 | nobase_include_HEADERS += \ |
| 735 | vnet/flow/flow_report.h \ |
| 736 | vnet/flow/ipfix_info_elements.h \ |
Pavel Kotucek | eb9e666 | 2017-01-24 13:40:26 +0100 | [diff] [blame] | 737 | vnet/flow/ipfix_packet.h \ |
| 738 | vnet/flow/flow.api.h |
| 739 | |
| 740 | API_FILES += vnet/flow/flow.api |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 741 | |
| 742 | ######################################## |
| 743 | # IPFIX classify code |
| 744 | ######################################## |
| 745 | |
| 746 | libvnet_la_SOURCES += \ |
| 747 | vnet/flow/flow_report_classify.c |
| 748 | |
| 749 | nobase_include_HEADERS += \ |
| 750 | vnet/flow/flow_report_classify.h |
| 751 | |
| 752 | ######################################## |
| 753 | # lawful intercept |
| 754 | ######################################## |
| 755 | |
| 756 | libvnet_la_SOURCES += \ |
| 757 | vnet/lawful-intercept/lawful_intercept.c \ |
| 758 | vnet/lawful-intercept/node.c |
| 759 | |
| 760 | nobase_include_HEADERS += \ |
| 761 | vnet/lawful-intercept/lawful_intercept.h |
| 762 | |
| 763 | ######################################## |
| 764 | # SPAN (port mirroring) |
| 765 | ######################################## |
| 766 | |
| 767 | libvnet_la_SOURCES += \ |
| 768 | vnet/span/span_api.c \ |
| 769 | vnet/span/span.c \ |
| 770 | vnet/span/node.c |
| 771 | |
| 772 | nobase_include_HEADERS += \ |
| 773 | vnet/span/span.api.h \ |
| 774 | vnet/span/span.h |
| 775 | |
| 776 | API_FILES += vnet/span/span.api |
| 777 | |
| 778 | ######################################## |
| 779 | # Packet generator |
| 780 | ######################################## |
| 781 | |
| 782 | libvnet_la_SOURCES += \ |
| 783 | vnet/pg/cli.c \ |
| 784 | vnet/pg/edit.c \ |
| 785 | vnet/pg/init.c \ |
| 786 | vnet/pg/input.c \ |
| 787 | vnet/pg/output.c \ |
| 788 | vnet/pg/stream.c |
| 789 | |
| 790 | nobase_include_HEADERS += \ |
| 791 | vnet/pg/pg.h \ |
| 792 | vnet/pg/edit.h |
| 793 | |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 794 | ######################################## |
| 795 | # virtio |
| 796 | ######################################## |
| 797 | |
| 798 | libvnet_la_SOURCES += \ |
| 799 | vnet/devices/virtio/vhost-user.c \ |
| 800 | vnet/devices/virtio/vhost_user_api.c |
| 801 | |
| 802 | nobase_include_HEADERS += \ |
| 803 | vnet/devices/virtio/vhost-user.h \ |
| 804 | vnet/devices/virtio/vhost_user.api.h |
| 805 | |
| 806 | API_FILES += vnet/devices/virtio/vhost_user.api |
| 807 | |
| 808 | ######################################## |
| 809 | # ssvm ethernet |
| 810 | ######################################## |
| 811 | libvnet_la_SOURCES += \ |
| 812 | vnet/devices/ssvm/ssvm_eth.c \ |
| 813 | vnet/devices/ssvm/node.c |
| 814 | |
| 815 | nobase_include_HEADERS += \ |
| 816 | vnet/devices/ssvm/ssvm_eth.h |
| 817 | |
| 818 | ######################################## |
Dave Barach | 68b0fb0 | 2017-02-28 15:15:56 -0500 | [diff] [blame] | 819 | # session managmeent |
| 820 | ######################################## |
| 821 | |
| 822 | libvnet_la_SOURCES += \ |
| 823 | vnet/session/session.c \ |
| 824 | vnet/session/node.c \ |
| 825 | vnet/session/transport.c \ |
| 826 | vnet/session/application.c \ |
| 827 | vnet/session/session_cli.c \ |
| 828 | vnet/session/hashes.c \ |
| 829 | vnet/session/application_interface.c \ |
Florin Coras | 6cf30ad | 2017-04-04 23:08:23 -0700 | [diff] [blame] | 830 | vnet/session/segment_manager.c \ |
Dave Barach | 68b0fb0 | 2017-02-28 15:15:56 -0500 | [diff] [blame] | 831 | vnet/session/session_api.c |
| 832 | |
| 833 | nobase_include_HEADERS += \ |
| 834 | vnet/session/session.h \ |
| 835 | vnet/session/application.h \ |
| 836 | vnet/session/transport.h \ |
Alexander Popovsky (apopovsk) | 6f6f52a | 2017-03-03 16:06:26 -0800 | [diff] [blame] | 837 | vnet/session/application_interface.h \ |
Florin Coras | e69f495 | 2017-03-07 10:06:24 -0800 | [diff] [blame] | 838 | vnet/session/session_debug.h \ |
Florin Coras | 6cf30ad | 2017-04-04 23:08:23 -0700 | [diff] [blame] | 839 | vnet/session/segment_manager.h \ |
Alexander Popovsky (apopovsk) | 6f6f52a | 2017-03-03 16:06:26 -0800 | [diff] [blame] | 840 | vnet/session/session.api.h |
Dave Barach | 68b0fb0 | 2017-02-28 15:15:56 -0500 | [diff] [blame] | 841 | |
| 842 | API_FILES += vnet/session/session.api |
| 843 | |
| 844 | ######################################## |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 845 | # Linux packet interface |
| 846 | ######################################## |
| 847 | |
| 848 | libvnet_la_SOURCES += \ |
| 849 | vnet/devices/af_packet/af_packet.c \ |
| 850 | vnet/devices/af_packet/device.c \ |
| 851 | vnet/devices/af_packet/node.c \ |
| 852 | vnet/devices/af_packet/cli.c \ |
| 853 | vnet/devices/af_packet/af_packet_api.c |
| 854 | |
| 855 | nobase_include_HEADERS += \ |
| 856 | vnet/devices/af_packet/af_packet.h \ |
| 857 | vnet/devices/af_packet/af_packet.api.h |
| 858 | |
| 859 | API_FILES += vnet/devices/af_packet/af_packet.api |
| 860 | |
| 861 | ######################################## |
| 862 | # NETMAP interface |
| 863 | ######################################## |
| 864 | |
| 865 | libvnet_la_SOURCES += \ |
| 866 | vnet/devices/netmap/netmap.c \ |
| 867 | vnet/devices/netmap/device.c \ |
| 868 | vnet/devices/netmap/node.c \ |
| 869 | vnet/devices/netmap/cli.c \ |
| 870 | vnet/devices/netmap/netmap_api.c |
| 871 | |
| 872 | nobase_include_HEADERS += \ |
| 873 | vnet/devices/netmap/netmap.h \ |
| 874 | vnet/devices/netmap/netmap.api.h |
| 875 | |
| 876 | API_FILES += vnet/devices/netmap/netmap.api |
| 877 | |
| 878 | ######################################## |
| 879 | # Driver feature graph arc support |
| 880 | ######################################## |
| 881 | |
| 882 | libvnet_la_SOURCES += \ |
| 883 | vnet/feature/feature.c \ |
| 884 | vnet/feature/registration.c |
| 885 | |
| 886 | nobase_include_HEADERS += \ |
| 887 | vnet/feature/feature.h |
| 888 | |
| 889 | ######################################## |
| 890 | # Unix kernel related |
| 891 | ######################################## |
| 892 | |
| 893 | # FIXME: vnet/unix/hgshm.c |
| 894 | |
| 895 | libvnet_la_SOURCES += \ |
| 896 | vnet/unix/gdb_funcs.c \ |
| 897 | vnet/unix/pcap.c \ |
| 898 | vnet/unix/tap_api.c \ |
| 899 | vnet/unix/tapcli.c \ |
| 900 | vnet/unix/tuntap.c |
| 901 | |
| 902 | nobase_include_HEADERS += \ |
| 903 | vnet/unix/pcap.h \ |
| 904 | vnet/unix/tuntap.h \ |
| 905 | vnet/unix/tap.api.h \ |
| 906 | vnet/unix/tapcli.h |
| 907 | |
| 908 | API_FILES += vnet/unix/tap.api |
| 909 | |
| 910 | ######################################## |
| 911 | # FIB |
| 912 | ######################################## |
| 913 | |
| 914 | libvnet_la_SOURCES += \ |
| 915 | vnet/fib/fib.c \ |
| 916 | vnet/fib/fib_test.c \ |
| 917 | vnet/fib/ip4_fib.c \ |
| 918 | vnet/fib/ip6_fib.c \ |
| 919 | vnet/fib/mpls_fib.c \ |
| 920 | vnet/fib/fib_table.c \ |
| 921 | vnet/fib/fib_walk.c \ |
| 922 | vnet/fib/fib_types.c \ |
| 923 | vnet/fib/fib_node.c \ |
| 924 | vnet/fib/fib_node_list.c \ |
| 925 | vnet/fib/fib_entry.c \ |
| 926 | vnet/fib/fib_entry_src.c \ |
| 927 | vnet/fib/fib_entry_src_rr.c \ |
| 928 | vnet/fib/fib_entry_src_interface.c \ |
| 929 | vnet/fib/fib_entry_src_default_route.c \ |
| 930 | vnet/fib/fib_entry_src_special.c \ |
| 931 | vnet/fib/fib_entry_src_api.c \ |
| 932 | vnet/fib/fib_entry_src_adj.c \ |
| 933 | vnet/fib/fib_entry_src_mpls.c \ |
| 934 | vnet/fib/fib_entry_src_lisp.c \ |
| 935 | vnet/fib/fib_entry_cover.c \ |
| 936 | vnet/fib/fib_entry_delegate.c \ |
| 937 | vnet/fib/fib_path_list.c \ |
| 938 | vnet/fib/fib_path.c \ |
| 939 | vnet/fib/fib_path_ext.c \ |
| 940 | vnet/fib/fib_urpf_list.c \ |
Neale Ranns | 88fc83e | 2017-04-05 08:11:14 -0700 | [diff] [blame] | 941 | vnet/fib/fib_attached_export.c \ |
| 942 | vnet/fib/fib_bfd.c |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 943 | |
| 944 | nobase_include_HEADERS += \ |
| 945 | vnet/fib/fib.h \ |
| 946 | vnet/fib/fib_api.h \ |
| 947 | vnet/fib/ip4_fib.h \ |
| 948 | vnet/fib/ip6_fib.h \ |
| 949 | vnet/fib/fib_types.h \ |
| 950 | vnet/fib/fib_table.h \ |
| 951 | vnet/fib/fib_node.h \ |
| 952 | vnet/fib/fib_node_list.h \ |
| 953 | vnet/fib/fib_entry.h \ |
| 954 | vnet/fib/fib_entry_delegate.h |
| 955 | |
| 956 | ######################################## |
| 957 | # ADJ |
| 958 | ######################################## |
| 959 | |
| 960 | libvnet_la_SOURCES += \ |
| 961 | vnet/adj/adj_nbr.c \ |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 962 | vnet/adj/adj_glean.c \ |
| 963 | vnet/adj/adj_midchain.c \ |
Neale Ranns | 32e1c01 | 2016-11-22 17:07:28 +0000 | [diff] [blame] | 964 | vnet/adj/adj_mcast.c \ |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 965 | vnet/adj/adj_l2.c \ |
Florin Coras | ce1b4c7 | 2017-01-26 14:25:34 -0800 | [diff] [blame] | 966 | vnet/adj/adj_nsh.c \ |
Neale Ranns | fa5d198 | 2017-02-20 14:19:51 -0800 | [diff] [blame] | 967 | vnet/adj/adj.c \ |
Neale Ranns | 88fc83e | 2017-04-05 08:11:14 -0700 | [diff] [blame] | 968 | vnet/adj/rewrite.c \ |
| 969 | vnet/adj/adj_bfd.c \ |
| 970 | vnet/adj/adj_delegate.c |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 971 | |
| 972 | nobase_include_HEADERS += \ |
| 973 | vnet/adj/adj.h \ |
| 974 | vnet/adj/adj_types.h \ |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 975 | vnet/adj/adj_glean.h \ |
Florin Coras | ce1b4c7 | 2017-01-26 14:25:34 -0800 | [diff] [blame] | 976 | vnet/adj/adj_nsh.h \ |
Neale Ranns | fa5d198 | 2017-02-20 14:19:51 -0800 | [diff] [blame] | 977 | vnet/adj/adj_nbr.h \ |
| 978 | vnet/adj/rewrite.h |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 979 | |
| 980 | ######################################## |
| 981 | # Data-Plane Objects |
| 982 | ######################################## |
| 983 | |
| 984 | libvnet_la_SOURCES += \ |
| 985 | vnet/dpo/dpo.c \ |
| 986 | vnet/dpo/drop_dpo.c \ |
| 987 | vnet/dpo/ip_null_dpo.c \ |
| 988 | vnet/dpo/punt_dpo.c \ |
| 989 | vnet/dpo/receive_dpo.c \ |
| 990 | vnet/dpo/load_balance.c \ |
| 991 | vnet/dpo/load_balance_map.c \ |
Neale Ranns | 32e1c01 | 2016-11-22 17:07:28 +0000 | [diff] [blame] | 992 | vnet/dpo/lookup_dpo.c \ |
| 993 | vnet/dpo/classify_dpo.c \ |
| 994 | vnet/dpo/replicate_dpo.c \ |
Neale Ranns | 0f26c5a | 2017-03-01 15:12:11 -0800 | [diff] [blame] | 995 | vnet/dpo/interface_dpo.c \ |
| 996 | vnet/dpo/mpls_disposition.c \ |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 997 | vnet/dpo/mpls_label_dpo.c |
| 998 | |
| 999 | nobase_include_HEADERS += \ |
| 1000 | vnet/dpo/load_balance.h \ |
| 1001 | vnet/dpo/drop_dpo.h \ |
| 1002 | vnet/dpo/lookup_dpo.h \ |
| 1003 | vnet/dpo/punt_dpo.h \ |
| 1004 | vnet/dpo/classify_dpo.h \ |
| 1005 | vnet/dpo/receive_dpo.h \ |
| 1006 | vnet/dpo/ip_null_dpo.h \ |
| 1007 | vnet/dpo/dpo.h |
| 1008 | |
| 1009 | ######################################## |
Neale Ranns | 32e1c01 | 2016-11-22 17:07:28 +0000 | [diff] [blame] | 1010 | # Multicast FIB |
| 1011 | ######################################## |
| 1012 | |
| 1013 | libvnet_la_SOURCES += \ |
| 1014 | vnet/mfib/mfib_test.c \ |
| 1015 | vnet/mfib/mfib_forward.c \ |
| 1016 | vnet/mfib/ip4_mfib.c \ |
| 1017 | vnet/mfib/ip6_mfib.c \ |
| 1018 | vnet/mfib/mfib_types.c \ |
| 1019 | vnet/mfib/mfib_signal.c \ |
| 1020 | vnet/mfib/mfib_itf.c \ |
| 1021 | vnet/mfib/mfib_entry.c \ |
| 1022 | vnet/mfib/mfib_table.c |
| 1023 | |
| 1024 | nobase_include_HEADERS += \ |
| 1025 | vnet/mfib/ip4_mfib.h \ |
| 1026 | vnet/mfib/mfib_types.h \ |
| 1027 | vnet/mfib/mfib_table.h |
| 1028 | |
| 1029 | ######################################## |
| 1030 | # Utilities |
| 1031 | ######################################## |
| 1032 | |
| 1033 | libvnet_la_SOURCES += \ |
| 1034 | vnet/util/radix.c |
| 1035 | |
| 1036 | ######################################## |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 1037 | # Plugin client library |
| 1038 | ######################################## |
| 1039 | |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 1040 | nobase_include_HEADERS += \ |
| 1041 | vnet/plugin/plugin.h |
| 1042 | |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 1043 | pcap2pg_SOURCES = \ |
| 1044 | vnet/unix/pcap2pg.c \ |
| 1045 | vnet/unix/pcap.h |
| 1046 | |
| 1047 | pcap2pg_LDFLAGS = -static |
| 1048 | pcap2pg_LDADD = libvnet.la libvppinfra.la -lpthread libvlibmemory.la -lm -ldl |
| 1049 | |
| 1050 | noinst_PROGRAMS += pcap2pg |
| 1051 | |
| 1052 | # vi:syntax=automake |