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