Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [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 | |
| 14 | AUTOMAKE_OPTIONS = foreign subdir-objects |
| 15 | |
Sergio Gonzalez Monroy | a10f62b | 2016-11-25 13:36:12 +0000 | [diff] [blame] | 16 | AM_CFLAGS = -Wall -Werror @DPDK@ @DPDK_CRYPTO@ @IPSEC@ @IPV6SR@ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 17 | |
| 18 | libvnet_la_SOURCES = |
Todd Foggoa | 4ea4ecd | 2016-03-17 14:22:34 -0400 | [diff] [blame] | 19 | libvnetplugin_la_SOURCES = |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 20 | nobase_include_HEADERS = |
Dave Barach | 4e281a4 | 2015-12-14 11:13:29 -0500 | [diff] [blame] | 21 | noinst_PROGRAMS = |
Filip Tehlar | 254b036 | 2016-04-07 10:04:34 +0200 | [diff] [blame] | 22 | TESTS = |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 23 | |
Ole Troan | d575e69 | 2016-08-25 12:26:47 +0200 | [diff] [blame] | 24 | dpdk_libs = |
| 25 | if WITH_DPDK |
| 26 | dpdk_libs += -l:libdpdk.a |
| 27 | endif |
| 28 | |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 29 | ######################################## |
| 30 | # Generic stuff |
| 31 | ######################################## |
| 32 | libvnet_la_SOURCES += \ |
| 33 | vnet/config.c \ |
Damjan Marion | 51327ac | 2016-11-09 11:59:42 +0100 | [diff] [blame] | 34 | vnet/devices/devices.c \ |
Damjan Marion | 0247b46 | 2016-06-08 01:37:11 +0200 | [diff] [blame] | 35 | vnet/handoff.c \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 36 | vnet/interface.c \ |
| 37 | vnet/interface_cli.c \ |
| 38 | vnet/interface_format.c \ |
| 39 | vnet/interface_output.c \ |
| 40 | vnet/misc.c \ |
| 41 | vnet/replication.c \ |
| 42 | vnet/rewrite.c |
| 43 | |
| 44 | nobase_include_HEADERS += \ |
| 45 | vnet/api_errno.h \ |
| 46 | vnet/buffer.h \ |
| 47 | vnet/config.h \ |
Damjan Marion | 8bdc63b | 2016-11-02 14:48:21 +0100 | [diff] [blame] | 48 | vnet/devices/devices.h \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 49 | vnet/global_funcs.h \ |
Damjan Marion | 0247b46 | 2016-06-08 01:37:11 +0200 | [diff] [blame] | 50 | vnet/handoff.h \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 51 | vnet/interface.h \ |
| 52 | vnet/interface_funcs.h \ |
| 53 | vnet/l3_types.h \ |
| 54 | vnet/pipeline.h \ |
| 55 | vnet/replication.h \ |
| 56 | vnet/rewrite.h \ |
| 57 | vnet/vnet.h |
| 58 | |
| 59 | ######################################## |
| 60 | # Policer infra |
| 61 | ######################################## |
| 62 | |
| 63 | libvnet_la_SOURCES += \ |
| 64 | vnet/policer/node_funcs.c \ |
| 65 | vnet/policer/policer.c \ |
| 66 | vnet/policer/xlate.c |
| 67 | |
| 68 | nobase_include_HEADERS += \ |
| 69 | vnet/policer/police.h \ |
Matus Fabian | 65fcd4d | 2016-05-13 05:44:48 -0700 | [diff] [blame] | 70 | vnet/policer/policer.h \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 71 | vnet/policer/xlate.h |
| 72 | |
Dave Barach | c07bf5d | 2016-02-17 17:52:26 -0500 | [diff] [blame] | 73 | ######################################## |
| 74 | # Cop - junk filter |
| 75 | ######################################## |
| 76 | |
| 77 | libvnet_la_SOURCES += \ |
| 78 | vnet/cop/cop.c \ |
| 79 | vnet/cop/node1.c \ |
| 80 | vnet/cop/ip4_whitelist.c \ |
| 81 | vnet/cop/ip6_whitelist.c |
| 82 | |
| 83 | nobase_include_HEADERS += \ |
| 84 | vnet/cop/cop.h |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 85 | |
| 86 | ######################################## |
| 87 | # Layer 2 protocols go here |
| 88 | ######################################## |
| 89 | |
| 90 | ######################################## |
| 91 | # Layer 2 protocol: Ethernet |
| 92 | ######################################## |
| 93 | libvnet_la_SOURCES += \ |
| 94 | vnet/ethernet/arp.c \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 95 | vnet/ethernet/format.c \ |
| 96 | vnet/ethernet/init.c \ |
| 97 | vnet/ethernet/interface.c \ |
| 98 | vnet/ethernet/node.c \ |
| 99 | vnet/ethernet/pg.c |
| 100 | |
| 101 | nobase_include_HEADERS += \ |
| 102 | vnet/ethernet/arp_packet.h \ |
| 103 | vnet/ethernet/error.def \ |
| 104 | vnet/ethernet/ethernet.h \ |
| 105 | vnet/ethernet/packet.h \ |
| 106 | vnet/ethernet/types.def |
| 107 | |
| 108 | ######################################## |
| 109 | # Layer 2 protocol: Ethernet bridging |
| 110 | ######################################## |
| 111 | libvnet_la_SOURCES += \ |
| 112 | vnet/l2/feat_bitmap.c \ |
| 113 | vnet/l2/l2_bd.c \ |
| 114 | vnet/l2/l2_bvi.c \ |
Dave Barach | b84a3e5 | 2016-08-30 17:01:52 -0400 | [diff] [blame] | 115 | vnet/l2/l2_input_classify.c \ |
| 116 | vnet/l2/l2_output_classify.c \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 117 | vnet/l2/l2_efp_filter.c \ |
| 118 | vnet/l2/l2_fib.c \ |
| 119 | vnet/l2/l2_flood.c \ |
| 120 | vnet/l2/l2_fwd.c \ |
| 121 | vnet/l2/l2_input_acl.c \ |
| 122 | vnet/l2/l2_input.c \ |
| 123 | vnet/l2/l2_input_vtr.c \ |
| 124 | vnet/l2/l2_learn.c \ |
| 125 | vnet/l2/l2_output_acl.c \ |
| 126 | vnet/l2/l2_output.c \ |
| 127 | vnet/l2/l2_patch.c \ |
Pierre Pfister | d6f5b96 | 2016-03-21 16:17:52 +0000 | [diff] [blame] | 128 | vnet/l2/l2_rw.c \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 129 | vnet/l2/l2_vtr.c \ |
| 130 | vnet/l2/l2_xcrw.c |
| 131 | |
| 132 | nobase_include_HEADERS += \ |
| 133 | vnet/l2/feat_bitmap.h \ |
| 134 | vnet/l2/l2_input.h \ |
| 135 | vnet/l2/l2_output.h \ |
| 136 | vnet/l2/l2_vtr.h \ |
| 137 | vnet/l2/l2_input_vtr.h \ |
| 138 | vnet/l2/l2_efp_filter.h \ |
| 139 | vnet/l2/l2_fwd.h \ |
| 140 | vnet/l2/l2_bd.h \ |
| 141 | vnet/l2/l2_bvi.h \ |
| 142 | vnet/l2/l2_flood.h \ |
| 143 | vnet/l2/l2_fib.h \ |
Pierre Pfister | d6f5b96 | 2016-03-21 16:17:52 +0000 | [diff] [blame] | 144 | vnet/l2/l2_rw.h \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 145 | vnet/l2/l2_xcrw.h \ |
| 146 | vnet/l2/l2_classify.h |
| 147 | |
| 148 | ######################################## |
| 149 | # Layer 2 protocol: SRP |
| 150 | ######################################## |
| 151 | libvnet_la_SOURCES += \ |
| 152 | vnet/srp/format.c \ |
| 153 | vnet/srp/interface.c \ |
| 154 | vnet/srp/node.c \ |
| 155 | vnet/srp/pg.c |
| 156 | |
| 157 | nobase_include_HEADERS += \ |
| 158 | vnet/srp/packet.h \ |
| 159 | vnet/srp/srp.h |
| 160 | |
| 161 | ######################################## |
| 162 | # Layer 2 protocol: PPP |
| 163 | ######################################## |
| 164 | libvnet_la_SOURCES += \ |
| 165 | vnet/ppp/node.c \ |
| 166 | vnet/ppp/pg.c \ |
| 167 | vnet/ppp/ppp.c |
| 168 | |
| 169 | nobase_include_HEADERS += \ |
| 170 | vnet/ppp/error.def \ |
| 171 | vnet/ppp/ppp.h \ |
| 172 | vnet/ppp/packet.h |
| 173 | |
| 174 | ######################################## |
| 175 | # Layer 2 protocol: HDLC |
| 176 | ######################################## |
| 177 | libvnet_la_SOURCES += \ |
| 178 | vnet/hdlc/node.c \ |
| 179 | vnet/hdlc/pg.c \ |
| 180 | vnet/hdlc/hdlc.c |
| 181 | |
| 182 | nobase_include_HEADERS += \ |
| 183 | vnet/hdlc/error.def \ |
| 184 | vnet/hdlc/hdlc.h \ |
| 185 | vnet/hdlc/packet.h |
| 186 | |
| 187 | ######################################## |
| 188 | # Layer 2 protocol: LLC |
| 189 | ######################################## |
| 190 | libvnet_la_SOURCES += \ |
| 191 | vnet/llc/llc.c \ |
| 192 | vnet/llc/node.c \ |
| 193 | vnet/llc/pg.c |
| 194 | |
| 195 | nobase_include_HEADERS += \ |
| 196 | vnet/llc/llc.h |
| 197 | |
| 198 | ######################################## |
| 199 | # Layer 2 protocol: SNAP |
| 200 | ######################################## |
| 201 | libvnet_la_SOURCES += \ |
| 202 | vnet/snap/snap.c \ |
| 203 | vnet/snap/node.c \ |
| 204 | vnet/snap/pg.c |
| 205 | |
| 206 | nobase_include_HEADERS += \ |
| 207 | vnet/snap/snap.h |
| 208 | |
| 209 | ######################################## |
| 210 | # Layer 2 / vxlan |
| 211 | ######################################## |
| 212 | libvnet_la_SOURCES += \ |
| 213 | vnet/vxlan/vxlan.c \ |
| 214 | vnet/vxlan/encap.c \ |
| 215 | vnet/vxlan/decap.c |
| 216 | |
| 217 | nobase_include_HEADERS += \ |
| 218 | vnet/vxlan/vxlan.h \ |
Dave Barach | ced48e7 | 2016-02-08 15:57:35 -0500 | [diff] [blame] | 219 | vnet/vxlan/vxlan_packet.h \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 220 | vnet/vxlan/vxlan_error.def |
| 221 | |
| 222 | ######################################## |
Dave Barach | ced48e7 | 2016-02-08 15:57:35 -0500 | [diff] [blame] | 223 | # Layer 2 / CDP |
| 224 | ######################################## |
| 225 | libvnet_la_SOURCES += \ |
| 226 | vnet/cdp/cdp_input.c \ |
| 227 | vnet/cdp/cdp_node.c \ |
| 228 | vnet/cdp/cdp_periodic.c |
| 229 | |
| 230 | nobase_include_HEADERS += \ |
| 231 | vnet/cdp/cdp_protocol.h |
| 232 | |
| 233 | ######################################## |
Klement Sekera | de4582b | 2016-09-13 12:27:08 +0200 | [diff] [blame] | 234 | # Layer 2 / LLDP |
| 235 | ######################################## |
| 236 | libvnet_la_SOURCES += \ |
| 237 | vnet/lldp/lldp_input.c \ |
| 238 | vnet/lldp/lldp_node.c \ |
| 239 | vnet/lldp/lldp_output.c \ |
| 240 | vnet/lldp/lldp_cli.c |
| 241 | |
| 242 | nobase_include_HEADERS += \ |
| 243 | vnet/lldp/lldp_protocol.h |
| 244 | |
| 245 | ######################################## |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 246 | # Layer 2/3 "classify" |
| 247 | ######################################## |
| 248 | libvnet_la_SOURCES += \ |
| 249 | vnet/classify/vnet_classify.c \ |
| 250 | vnet/classify/ip_classify.c \ |
| 251 | vnet/classify/input_acl.c \ |
Matus Fabian | 70e6a8d | 2016-06-20 08:10:42 -0700 | [diff] [blame] | 252 | vnet/classify/policer_classify.c \ |
Juraj Sloboda | 506b245 | 2016-08-07 23:45:24 -0700 | [diff] [blame] | 253 | vnet/classify/flow_classify.c \ |
| 254 | vnet/classify/flow_classify_node.c \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 255 | vnet/classify/vnet_classify.h |
| 256 | |
| 257 | nobase_include_HEADERS += \ |
| 258 | vnet/classify/vnet_classify.h \ |
Matus Fabian | 70e6a8d | 2016-06-20 08:10:42 -0700 | [diff] [blame] | 259 | vnet/classify/input_acl.h \ |
Juraj Sloboda | 506b245 | 2016-08-07 23:45:24 -0700 | [diff] [blame] | 260 | vnet/classify/policer_classify.h \ |
| 261 | vnet/classify/flow_classify.h |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 262 | |
| 263 | ######################################## |
| 264 | # Layer 3 protocols go here |
| 265 | ######################################## |
| 266 | |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 267 | ######################################## |
| 268 | # Layer 3 protocol: IP v4/v6 |
| 269 | ######################################## |
| 270 | libvnet_la_SOURCES += \ |
| 271 | vnet/ip/format.c \ |
| 272 | vnet/ip/icmp4.c \ |
| 273 | vnet/ip/icmp6.c \ |
| 274 | vnet/ip/ip46_cli.c \ |
| 275 | vnet/ip/ip4_format.c \ |
| 276 | vnet/ip/ip4_forward.c \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 277 | vnet/ip/ip4_input.c \ |
| 278 | vnet/ip/ip4_mtrie.c \ |
| 279 | vnet/ip/ip4_pg.c \ |
Dave Barach | 6f9bca2 | 2016-04-30 10:25:32 -0400 | [diff] [blame] | 280 | vnet/ip/ip4_source_and_port_range_check.c \ |
Damjan Marion | 770930c | 2016-10-13 14:10:10 +0200 | [diff] [blame] | 281 | vnet/ip/ip4_source_check.c \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 282 | vnet/ip/ip6_format.c \ |
| 283 | vnet/ip/ip6_forward.c \ |
| 284 | vnet/ip/ip6_hop_by_hop.c \ |
| 285 | vnet/ip/ip6_input.c \ |
| 286 | vnet/ip/ip6_neighbor.c \ |
| 287 | vnet/ip/ip6_pg.c \ |
| 288 | vnet/ip/ip_checksum.c \ |
Damjan Marion | 770930c | 2016-10-13 14:10:10 +0200 | [diff] [blame] | 289 | vnet/ip/ip_frag.c \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 290 | vnet/ip/ip.h \ |
| 291 | vnet/ip/ip_init.c \ |
Damjan Marion | 770930c | 2016-10-13 14:10:10 +0200 | [diff] [blame] | 292 | vnet/ip/ip_input_acl.c \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 293 | vnet/ip/lookup.c \ |
Damjan Marion | 770930c | 2016-10-13 14:10:10 +0200 | [diff] [blame] | 294 | vnet/ip/ping.c \ |
| 295 | vnet/ip/punt.c \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 296 | vnet/ip/udp_format.c \ |
| 297 | vnet/ip/udp_init.c \ |
| 298 | vnet/ip/udp_local.c \ |
Damjan Marion | 770930c | 2016-10-13 14:10:10 +0200 | [diff] [blame] | 299 | vnet/ip/udp_pg.c |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 300 | |
| 301 | nobase_include_HEADERS += \ |
| 302 | vnet/ip/format.h \ |
| 303 | vnet/ip/icmp46_packet.h \ |
Ole Troan | 92eade1 | 2016-01-13 20:17:08 +0100 | [diff] [blame] | 304 | vnet/ip/icmp4.h \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 305 | vnet/ip/icmp6.h \ |
| 306 | vnet/ip/igmp_packet.h \ |
Damjan Marion | 770930c | 2016-10-13 14:10:10 +0200 | [diff] [blame] | 307 | vnet/ip/ip4_error.h \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 308 | vnet/ip/ip4.h \ |
| 309 | vnet/ip/ip4_mtrie.h \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 310 | vnet/ip/ip4_packet.h \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 311 | vnet/ip/ip6_error.h \ |
Damjan Marion | 770930c | 2016-10-13 14:10:10 +0200 | [diff] [blame] | 312 | vnet/ip/ip6.h \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 313 | vnet/ip/ip6_hop_by_hop.h \ |
| 314 | vnet/ip/ip6_hop_by_hop_packet.h \ |
| 315 | vnet/ip/ip6_packet.h \ |
Damjan Marion | 770930c | 2016-10-13 14:10:10 +0200 | [diff] [blame] | 316 | vnet/ip/ip.h \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 317 | vnet/ip/ip_packet.h \ |
Damjan Marion | 770930c | 2016-10-13 14:10:10 +0200 | [diff] [blame] | 318 | vnet/ip/ip_source_and_port_range_check.h \ |
| 319 | vnet/ip/lookup.h \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 320 | vnet/ip/ports.def \ |
| 321 | vnet/ip/protocols.def \ |
Alexander Popovsky (apopovsk) | 4a7e58b | 2016-10-05 22:31:23 -0700 | [diff] [blame] | 322 | vnet/ip/punt_error.def \ |
Damjan Marion | 770930c | 2016-10-13 14:10:10 +0200 | [diff] [blame] | 323 | vnet/ip/punt.h \ |
| 324 | vnet/ip/tcp_packet.h \ |
| 325 | vnet/ip/udp_error.def \ |
| 326 | vnet/ip/udp.h \ |
| 327 | vnet/ip/udp_packet.h |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 328 | |
| 329 | ######################################## |
| 330 | # Layer 3 protocol: IPSec |
| 331 | ######################################## |
Dave Barach | 61efa14 | 2016-01-22 08:23:09 -0500 | [diff] [blame] | 332 | if WITH_IPSEC |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 333 | libvnet_la_SOURCES += \ |
| 334 | vnet/ipsec/ipsec.c \ |
| 335 | vnet/ipsec/ipsec_cli.c \ |
| 336 | vnet/ipsec/ipsec_format.c \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 337 | vnet/ipsec/ipsec_input.c \ |
| 338 | vnet/ipsec/ipsec_if.c \ |
| 339 | vnet/ipsec/ipsec_if_in.c \ |
| 340 | vnet/ipsec/ipsec_if_out.c \ |
| 341 | vnet/ipsec/esp_encrypt.c \ |
| 342 | vnet/ipsec/esp_decrypt.c \ |
| 343 | vnet/ipsec/ikev2.c \ |
| 344 | vnet/ipsec/ikev2_crypto.c \ |
| 345 | vnet/ipsec/ikev2_cli.c \ |
| 346 | vnet/ipsec/ikev2_payload.c \ |
| 347 | vnet/ipsec/ikev2_format.c |
Sergio Gonzalez Monroy | a10f62b | 2016-11-25 13:36:12 +0000 | [diff] [blame] | 348 | if WITH_DPDK_CRYPTO |
| 349 | libvnet_la_SOURCES += \ |
| 350 | vnet/devices/dpdk/ipsec/esp_encrypt.c \ |
| 351 | vnet/devices/dpdk/ipsec/esp_decrypt.c \ |
| 352 | vnet/devices/dpdk/ipsec/crypto_node.c \ |
| 353 | vnet/devices/dpdk/ipsec/cli.c \ |
| 354 | vnet/devices/dpdk/ipsec/ipsec.c |
| 355 | endif |
| 356 | endif |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 357 | |
Damjan Marion | e936bbe | 2016-02-25 23:17:38 +0100 | [diff] [blame] | 358 | libvnet_la_SOURCES += \ |
| 359 | vnet/ipsec/ipsec_output.c |
| 360 | |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 361 | nobase_include_HEADERS += \ |
| 362 | vnet/ipsec/ipsec.h \ |
| 363 | vnet/ipsec/esp.h \ |
| 364 | vnet/ipsec/ikev2.h \ |
| 365 | vnet/ipsec/ikev2_priv.h |
Sergio Gonzalez Monroy | a10f62b | 2016-11-25 13:36:12 +0000 | [diff] [blame] | 366 | if WITH_DPDK_CRYPTO |
| 367 | nobase_include_HEADERS += \ |
| 368 | vnet/devices/dpdk/ipsec/ipsec.h \ |
| 369 | vnet/devices/dpdk/ipsec/esp.h |
| 370 | endif |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 371 | |
| 372 | ######################################## |
| 373 | # Layer 3 protocol: osi |
| 374 | ######################################## |
| 375 | libvnet_la_SOURCES += \ |
| 376 | vnet/osi/node.c \ |
| 377 | vnet/osi/osi.c \ |
| 378 | vnet/osi/pg.c |
| 379 | |
| 380 | nobase_include_HEADERS += \ |
| 381 | vnet/osi/osi.h |
| 382 | |
| 383 | ######################################## |
| 384 | # Layer 3 protocol: MAP |
| 385 | ######################################## |
| 386 | libvnet_la_SOURCES += \ |
| 387 | vnet/map/map.c \ |
Neale Ranns | 0bfe5d8 | 2016-08-25 15:29:12 +0100 | [diff] [blame] | 388 | vnet/map/map_dpo.c \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 389 | vnet/map/ip4_map.c \ |
| 390 | vnet/map/ip6_map.c \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 391 | vnet/map/ip4_map_t.c \ |
| 392 | vnet/map/ip6_map_t.c |
| 393 | |
| 394 | nobase_include_HEADERS += \ |
Neale Ranns | 0bfe5d8 | 2016-08-25 15:29:12 +0100 | [diff] [blame] | 395 | vnet/map/map.h \ |
| 396 | vnet/map/map_dpo.h |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 397 | |
Ole Troan | d575e69 | 2016-08-25 12:26:47 +0200 | [diff] [blame] | 398 | if ENABLE_TESTS |
| 399 | TESTS += test_map |
| 400 | test_map_SOURCES = \ |
| 401 | vnet/map/test.c |
| 402 | test_map_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG |
| 403 | |
| 404 | test_map_LDADD = libvnet.la -lvppinfra -lvlib \ |
| 405 | -lpthread -lvlibmemory -lvlibapi -lvlib_unix \ |
| 406 | -ldl -lsvm -lrt |
| 407 | |
| 408 | test_map_LDFLAGS = -static |
| 409 | endif |
| 410 | |
| 411 | |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 412 | ######################################## |
| 413 | # Tunnel protocol: gre |
| 414 | ######################################## |
| 415 | libvnet_la_SOURCES += \ |
| 416 | vnet/gre/gre.c \ |
| 417 | vnet/gre/node.c \ |
| 418 | vnet/gre/interface.c \ |
| 419 | vnet/gre/pg.c |
| 420 | |
| 421 | nobase_include_HEADERS += \ |
| 422 | vnet/gre/gre.h \ |
| 423 | vnet/gre/packet.h \ |
| 424 | vnet/gre/error.def |
| 425 | |
| 426 | ######################################## |
| 427 | # Tunnel protocol: l2tpv3 |
| 428 | ######################################## |
| 429 | libvnet_la_SOURCES += \ |
| 430 | vnet/l2tp/l2tp.c \ |
| 431 | vnet/l2tp/encap.c \ |
| 432 | vnet/l2tp/decap.c \ |
| 433 | vnet/l2tp/pg.c |
| 434 | |
| 435 | nobase_include_HEADERS += \ |
| 436 | vnet/l2tp/l2tp.h \ |
| 437 | vnet/l2tp/packet.h |
| 438 | |
| 439 | ######################################## |
| 440 | # Tunnel protocol: gre+mpls |
| 441 | ######################################## |
| 442 | libvnet_la_SOURCES += \ |
Neale Ranns | 0bfe5d8 | 2016-08-25 15:29:12 +0100 | [diff] [blame] | 443 | vnet/mpls/mpls.c \ |
| 444 | vnet/mpls/mpls_lookup.c \ |
| 445 | vnet/mpls/mpls_output.c \ |
| 446 | vnet/mpls/mpls_features.c \ |
| 447 | vnet/mpls/node.c \ |
| 448 | vnet/mpls/interface.c \ |
| 449 | vnet/mpls/policy_encap.c \ |
| 450 | vnet/mpls/pg.c |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 451 | |
| 452 | nobase_include_HEADERS += \ |
Neale Ranns | 0bfe5d8 | 2016-08-25 15:29:12 +0100 | [diff] [blame] | 453 | vnet/mpls/mpls.h \ |
| 454 | vnet/mpls/mpls_types.h \ |
| 455 | vnet/mpls/packet.h \ |
| 456 | vnet/mpls/error.def |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 457 | |
| 458 | |
| 459 | ######################################## |
Keith Burns (alagalah) | 94b1442 | 2016-05-05 18:16:50 -0700 | [diff] [blame] | 460 | # Tunnel protocol: vxlan-gpe |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 461 | ######################################## |
| 462 | |
| 463 | libvnet_la_SOURCES += \ |
Keith Burns (alagalah) | 94b1442 | 2016-05-05 18:16:50 -0700 | [diff] [blame] | 464 | vnet/vxlan-gpe/vxlan_gpe.c \ |
| 465 | vnet/vxlan-gpe/encap.c \ |
| 466 | vnet/vxlan-gpe/decap.c |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 467 | |
| 468 | nobase_include_HEADERS += \ |
Keith Burns (alagalah) | 94b1442 | 2016-05-05 18:16:50 -0700 | [diff] [blame] | 469 | vnet/vxlan-gpe/vxlan_gpe.h \ |
| 470 | vnet/vxlan-gpe/vxlan_gpe_packet.h \ |
| 471 | vnet/vxlan-gpe/vxlan_gpe_error.def |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 472 | |
| 473 | ######################################## |
Matus Fabian | 694265d | 2016-08-10 01:55:36 -0700 | [diff] [blame] | 474 | # Tunnel protocol: ipsec+gre |
| 475 | ######################################## |
| 476 | libvnet_la_SOURCES += \ |
| 477 | vnet/ipsec-gre/ipsec_gre.c \ |
| 478 | vnet/ipsec-gre/node.c \ |
| 479 | vnet/ipsec-gre/interface.c |
| 480 | |
| 481 | nobase_include_HEADERS += \ |
| 482 | vnet/ipsec-gre/ipsec_gre.h \ |
| 483 | vnet/ipsec-gre/error.def |
| 484 | |
| 485 | ######################################## |
Florin Coras | e127a7e | 2016-02-18 22:20:01 +0100 | [diff] [blame] | 486 | # LISP control plane: lisp-cp |
| 487 | ######################################## |
| 488 | |
| 489 | libvnet_la_SOURCES += \ |
| 490 | vnet/lisp-cp/lisp_types.c \ |
Neale Ranns | 0bfe5d8 | 2016-08-25 15:29:12 +0100 | [diff] [blame] | 491 | vnet/lisp-cp/lisp_cp_dpo.c \ |
Florin Coras | e127a7e | 2016-02-18 22:20:01 +0100 | [diff] [blame] | 492 | vnet/lisp-cp/control.c \ |
| 493 | vnet/lisp-cp/gid_dictionary.c \ |
| 494 | vnet/lisp-cp/lisp_msg_serdes.c \ |
| 495 | vnet/lisp-cp/packets.c |
| 496 | |
| 497 | nobase_include_HEADERS += \ |
| 498 | vnet/lisp-cp/lisp_types.h \ |
| 499 | vnet/lisp-cp/packets.h \ |
| 500 | vnet/lisp-cp/gid_dictionary.h \ |
| 501 | vnet/lisp-cp/lisp_cp_messages.h \ |
| 502 | vnet/lisp-cp/lisp_msg_serdes.h \ |
| 503 | vnet/lisp-cp/control.h |
| 504 | |
Filip Tehlar | 254b036 | 2016-04-07 10:04:34 +0200 | [diff] [blame] | 505 | |
| 506 | if ENABLE_TESTS |
Ole Troan | d575e69 | 2016-08-25 12:26:47 +0200 | [diff] [blame] | 507 | LDS = -lvppinfra -l:libvlib.a $(dpdk_libs) -l:libvlibmemory.a \ |
Filip Tehlar | 254b036 | 2016-04-07 10:04:34 +0200 | [diff] [blame] | 508 | -l:libvlibapi.a -l:libsvm.a -lpthread -ldl -lrt -lm -l:libvlib_unix.a |
| 509 | |
| 510 | TESTS += test_cp_serdes test_lisp_types |
| 511 | |
| 512 | test_cp_serdes_SOURCES = \ |
| 513 | test/lisp-cp/test_cp_serdes.c \ |
| 514 | vnet/lisp-cp/lisp_msg_serdes.c \ |
| 515 | vnet/lisp-cp/lisp_types.c \ |
| 516 | vnet/lisp-cp/packets.c \ |
| 517 | vnet/ip/ip_checksum.c |
| 518 | |
| 519 | test_lisp_types_SOURCES = \ |
| 520 | test/lisp-cp/test_lisp_types.c \ |
| 521 | vnet/lisp-cp/lisp_types.c |
| 522 | |
| 523 | test_cp_serdes_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG |
| 524 | test_lisp_types_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG |
| 525 | |
| 526 | test_cp_serdes_LDADD = libvnet.la $(LDS) |
| 527 | test_lisp_types_LDADD = libvnet.la $(LDS) |
| 528 | |
| 529 | test_cp_serdes_LDFLAGS = -static |
| 530 | test_lisp_types_LDFLAGS = -static |
| 531 | endif |
| 532 | |
Florin Coras | e127a7e | 2016-02-18 22:20:01 +0100 | [diff] [blame] | 533 | ######################################## |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 534 | # Tunnel protocol: lisp-gpe |
| 535 | ######################################## |
| 536 | |
| 537 | libvnet_la_SOURCES += \ |
| 538 | vnet/lisp-gpe/lisp_gpe.c \ |
Neale Ranns | 0bfe5d8 | 2016-08-25 15:29:12 +0100 | [diff] [blame] | 539 | vnet/lisp-gpe/lisp_gpe_sub_interface.c \ |
| 540 | vnet/lisp-gpe/lisp_gpe_adjacency.c \ |
| 541 | vnet/lisp-gpe/lisp_gpe_tunnel.c \ |
Neale Ranns | 5e575b1 | 2016-10-03 09:40:25 +0100 | [diff] [blame] | 542 | vnet/lisp-gpe/lisp_gpe_fwd_entry.c \ |
| 543 | vnet/lisp-gpe/lisp_gpe_tenant.c \ |
Florin Coras | 577c355 | 2016-04-21 00:45:40 +0200 | [diff] [blame] | 544 | vnet/lisp-gpe/interface.c \ |
Florin Coras | e127a7e | 2016-02-18 22:20:01 +0100 | [diff] [blame] | 545 | vnet/lisp-gpe/decap.c |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 546 | |
| 547 | nobase_include_HEADERS += \ |
| 548 | vnet/lisp-gpe/lisp_gpe.h \ |
Neale Ranns | 5e575b1 | 2016-10-03 09:40:25 +0100 | [diff] [blame] | 549 | vnet/lisp-gpe/lisp_gpe_fwd_entry.h \ |
| 550 | vnet/lisp-gpe/lisp_gpe_tenant.h \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 551 | vnet/lisp-gpe/lisp_gpe_packet.h \ |
Florin Coras | e127a7e | 2016-02-18 22:20:01 +0100 | [diff] [blame] | 552 | vnet/lisp-gpe/lisp_gpe_error.def |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 553 | |
Filip Tehlar | 254b036 | 2016-04-07 10:04:34 +0200 | [diff] [blame] | 554 | if ENABLE_TESTS |
| 555 | TESTS += test_test |
| 556 | |
| 557 | test_test_SOURCES = test/lisp-gpe/test.c |
| 558 | |
| 559 | test_test_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG |
| 560 | |
| 561 | test_test_LDADD = $(LIBOBJS) |
| 562 | |
| 563 | noinst_PROGRAMS += $(TESTS) |
| 564 | check_PROGRAMS = $(TESTS) |
| 565 | endif |
| 566 | |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 567 | ######################################## |
| 568 | # DHCP client |
| 569 | ######################################## |
| 570 | libvnet_la_SOURCES += \ |
| 571 | vnet/dhcp/client.c \ |
| 572 | vnet/dhcp/client.h |
| 573 | |
| 574 | nobase_include_HEADERS += \ |
| 575 | vnet/dhcp/client.h |
| 576 | |
| 577 | ######################################## |
| 578 | # DHCP proxy |
| 579 | ######################################## |
| 580 | libvnet_la_SOURCES += \ |
| 581 | vnet/dhcp/proxy_node.c \ |
| 582 | vnet/dhcp/proxy.h |
| 583 | |
| 584 | nobase_include_HEADERS += \ |
| 585 | vnet/dhcp/packet.h \ |
| 586 | vnet/dhcp/proxy.h \ |
| 587 | vnet/dhcp/proxy_error.def |
| 588 | |
| 589 | ######################################## |
| 590 | # ipv6 segment routing |
| 591 | ######################################## |
Dave Barach | 61efa14 | 2016-01-22 08:23:09 -0500 | [diff] [blame] | 592 | |
| 593 | if WITH_IPV6SR |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 594 | libvnet_la_SOURCES += \ |
Keith Burns (alagalah) | 52fc44d | 2016-03-25 09:38:50 -0700 | [diff] [blame] | 595 | vnet/sr/sr.c \ |
| 596 | vnet/sr/sr_replicate.c |
Dave Barach | 61efa14 | 2016-01-22 08:23:09 -0500 | [diff] [blame] | 597 | endif |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 598 | |
| 599 | nobase_include_HEADERS += \ |
| 600 | vnet/sr/sr_packet.h \ |
| 601 | vnet/sr/sr_error.def \ |
| 602 | vnet/sr/sr.h |
| 603 | |
| 604 | ######################################## |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 605 | # DHCPv6 proxy |
| 606 | ######################################## |
| 607 | libvnet_la_SOURCES += \ |
| 608 | vnet/dhcpv6/proxy_node.c |
| 609 | |
| 610 | nobase_include_HEADERS += \ |
| 611 | vnet/dhcpv6/packet.h \ |
| 612 | vnet/dhcpv6/proxy.h \ |
| 613 | vnet/dhcpv6/proxy_error.def |
| 614 | |
| 615 | ######################################## |
| 616 | # IPFIX / netflow v10 |
| 617 | ######################################## |
| 618 | libvnet_la_SOURCES += \ |
| 619 | vnet/flow/flow_report.c |
| 620 | |
| 621 | nobase_include_HEADERS += \ |
| 622 | vnet/flow/flow_report.h \ |
| 623 | vnet/flow/ipfix_info_elements.h \ |
| 624 | vnet/flow/ipfix_packet.h |
| 625 | |
| 626 | ######################################## |
Juraj Sloboda | 819ec6f | 2016-08-07 23:40:03 -0700 | [diff] [blame] | 627 | # IPFIX classify code |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 628 | ######################################## |
| 629 | |
| 630 | libvnet_la_SOURCES += \ |
Juraj Sloboda | 819ec6f | 2016-08-07 23:40:03 -0700 | [diff] [blame] | 631 | vnet/flow/flow_report_classify.c |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 632 | |
| 633 | nobase_include_HEADERS += \ |
Juraj Sloboda | 819ec6f | 2016-08-07 23:40:03 -0700 | [diff] [blame] | 634 | vnet/flow/flow_report_classify.h |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 635 | |
| 636 | ######################################## |
| 637 | # lawful intercept |
| 638 | ######################################## |
| 639 | |
| 640 | libvnet_la_SOURCES += \ |
| 641 | vnet/lawful-intercept/lawful_intercept.c \ |
| 642 | vnet/lawful-intercept/node.c |
| 643 | |
| 644 | nobase_include_HEADERS += \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 645 | vnet/lawful-intercept/lawful_intercept.h |
| 646 | |
| 647 | ######################################## |
Pavel Kotucek | f6e3dc4 | 2016-11-04 09:58:01 +0100 | [diff] [blame] | 648 | # SPAN (port mirroring) |
| 649 | ######################################## |
| 650 | |
| 651 | libvnet_la_SOURCES += \ |
| 652 | vnet/span/span.c \ |
| 653 | vnet/span/node.c |
| 654 | |
| 655 | nobase_include_HEADERS += \ |
| 656 | vnet/span/span.h |
| 657 | |
| 658 | ######################################## |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 659 | # Packet generator |
| 660 | ######################################## |
| 661 | |
| 662 | libvnet_la_SOURCES += \ |
| 663 | vnet/pg/cli.c \ |
| 664 | vnet/pg/edit.c \ |
| 665 | vnet/pg/init.c \ |
| 666 | vnet/pg/input.c \ |
| 667 | vnet/pg/output.c \ |
| 668 | vnet/pg/stream.c |
| 669 | |
| 670 | nobase_include_HEADERS += \ |
| 671 | vnet/pg/pg.h \ |
| 672 | vnet/pg/edit.h |
| 673 | |
| 674 | ######################################## |
Padraig Connolly | 999bbc4 | 2016-11-15 09:35:50 +0000 | [diff] [blame] | 675 | # DPDK |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 676 | ######################################## |
| 677 | if WITH_DPDK |
| 678 | libvnet_la_SOURCES += \ |
| 679 | vnet/devices/dpdk/dpdk_priv.h \ |
| 680 | vnet/devices/dpdk/device.c \ |
Damjan Marion | 7f62097 | 2016-02-25 16:00:11 +0100 | [diff] [blame] | 681 | vnet/devices/dpdk/format.c \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 682 | vnet/devices/dpdk/init.c \ |
| 683 | vnet/devices/dpdk/node.c \ |
Jasvinder Singh | 85ecc81 | 2016-07-21 17:02:19 +0100 | [diff] [blame] | 684 | vnet/devices/dpdk/hqos.c \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 685 | vnet/devices/dpdk/cli.c |
| 686 | |
| 687 | nobase_include_HEADERS += \ |
Damjan Marion | 0f8ecf0 | 2016-06-27 08:30:30 +0200 | [diff] [blame] | 688 | vnet/devices/dpdk/dpdk.h |
Damjan Marion | b4d8927 | 2016-05-12 22:14:45 +0200 | [diff] [blame] | 689 | else |
| 690 | libvnet_la_SOURCES += \ |
| 691 | vnet/devices/nic/ixge.c \ |
| 692 | vnet/devices/nic/ixge.h \ |
| 693 | vnet/devices/nic/sfp.c \ |
| 694 | vnet/devices/nic/sfp.h |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 695 | endif |
| 696 | |
| 697 | ######################################## |
| 698 | # virtio |
| 699 | ######################################## |
| 700 | |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 701 | libvnet_la_SOURCES += \ |
| 702 | vnet/devices/virtio/vhost-user.c |
| 703 | |
| 704 | nobase_include_HEADERS += \ |
| 705 | vnet/devices/virtio/vhost-user.h |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 706 | |
| 707 | ######################################## |
| 708 | # ssvm ethernet |
| 709 | ######################################## |
| 710 | libvnet_la_SOURCES += \ |
| 711 | vnet/devices/ssvm/ssvm_eth.c \ |
| 712 | vnet/devices/ssvm/node.c |
| 713 | |
| 714 | nobase_include_HEADERS += \ |
| 715 | vnet/devices/ssvm/ssvm_eth.h |
| 716 | |
| 717 | ######################################## |
Damjan Marion | 83243a0 | 2016-02-29 13:09:30 +0100 | [diff] [blame] | 718 | # Linux packet interface |
| 719 | ######################################## |
| 720 | |
| 721 | libvnet_la_SOURCES += \ |
| 722 | vnet/devices/af_packet/af_packet.c \ |
| 723 | vnet/devices/af_packet/device.c \ |
| 724 | vnet/devices/af_packet/node.c \ |
| 725 | vnet/devices/af_packet/cli.c |
| 726 | |
| 727 | nobase_include_HEADERS += \ |
| 728 | vnet/devices/af_packet/af_packet.h |
| 729 | |
| 730 | ######################################## |
Damjan Marion | 108c731 | 2016-04-20 05:04:20 +0200 | [diff] [blame] | 731 | # NETMAP interface |
| 732 | ######################################## |
| 733 | |
| 734 | libvnet_la_SOURCES += \ |
| 735 | vnet/devices/netmap/netmap.c \ |
| 736 | vnet/devices/netmap/device.c \ |
| 737 | vnet/devices/netmap/node.c \ |
| 738 | vnet/devices/netmap/cli.c |
| 739 | |
| 740 | nobase_include_HEADERS += \ |
| 741 | vnet/devices/netmap/netmap.h |
| 742 | |
| 743 | |
| 744 | ######################################## |
Damjan Marion | 2231150 | 2016-10-28 20:30:15 +0200 | [diff] [blame] | 745 | # Driver feature graph arc support |
| 746 | ######################################## |
| 747 | |
| 748 | libvnet_la_SOURCES += \ |
Damjan Marion | 2231150 | 2016-10-28 20:30:15 +0200 | [diff] [blame] | 749 | vnet/feature/feature.c \ |
| 750 | vnet/feature/registration.c |
| 751 | |
| 752 | nobase_include_HEADERS += \ |
| 753 | vnet/feature/feature.h |
| 754 | |
| 755 | ######################################## |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 756 | # Unix kernel related |
| 757 | ######################################## |
| 758 | |
| 759 | # FIXME: vnet/unix/hgshm.c |
| 760 | |
| 761 | libvnet_la_SOURCES += \ |
| 762 | vnet/unix/gdb_funcs.c \ |
| 763 | vnet/unix/pcap.c \ |
| 764 | vnet/unix/tapcli.c \ |
| 765 | vnet/unix/tuntap.c |
| 766 | |
| 767 | nobase_include_HEADERS += \ |
| 768 | vnet/unix/pcap.h \ |
| 769 | vnet/unix/tuntap.h \ |
| 770 | vnet/unix/tapcli.h |
| 771 | |
Todd Foggoa | 4ea4ecd | 2016-03-17 14:22:34 -0400 | [diff] [blame] | 772 | ######################################## |
Neale Ranns | 0bfe5d8 | 2016-08-25 15:29:12 +0100 | [diff] [blame] | 773 | # FIB |
| 774 | ######################################## |
| 775 | |
| 776 | libvnet_la_SOURCES += \ |
| 777 | vnet/fib/fib.c \ |
| 778 | vnet/fib/fib_test.c \ |
| 779 | vnet/fib/ip4_fib.c \ |
| 780 | vnet/fib/ip6_fib.c \ |
| 781 | vnet/fib/mpls_fib.c \ |
| 782 | vnet/fib/fib_table.c \ |
| 783 | vnet/fib/fib_walk.c \ |
| 784 | vnet/fib/fib_types.c \ |
| 785 | vnet/fib/fib_node.c \ |
| 786 | vnet/fib/fib_node_list.c \ |
| 787 | vnet/fib/fib_entry.c \ |
| 788 | vnet/fib/fib_entry_src.c \ |
| 789 | vnet/fib/fib_entry_src_rr.c \ |
| 790 | vnet/fib/fib_entry_src_interface.c \ |
| 791 | vnet/fib/fib_entry_src_default_route.c \ |
| 792 | vnet/fib/fib_entry_src_special.c \ |
| 793 | vnet/fib/fib_entry_src_api.c \ |
| 794 | vnet/fib/fib_entry_src_adj.c \ |
| 795 | vnet/fib/fib_entry_src_mpls.c \ |
| 796 | vnet/fib/fib_entry_src_lisp.c \ |
| 797 | vnet/fib/fib_entry_cover.c \ |
| 798 | vnet/fib/fib_path_list.c \ |
| 799 | vnet/fib/fib_path.c \ |
| 800 | vnet/fib/fib_path_ext.c \ |
Neale Ranns | 3ee4404 | 2016-10-03 13:05:48 +0100 | [diff] [blame] | 801 | vnet/fib/fib_urpf_list.c \ |
Neale Ranns | 0bfe5d8 | 2016-08-25 15:29:12 +0100 | [diff] [blame] | 802 | vnet/fib/fib_attached_export.c |
| 803 | |
| 804 | nobase_include_HEADERS += \ |
| 805 | vnet/fib/fib.h \ |
| 806 | vnet/fib/ip4_fib.h \ |
| 807 | vnet/fib/ip6_fib.h \ |
| 808 | vnet/fib/fib_types.h \ |
| 809 | vnet/fib/fib_table.h \ |
| 810 | vnet/fib/fib_node.h \ |
| 811 | vnet/fib/fib_node_list.h \ |
| 812 | vnet/fib/fib_entry.h |
| 813 | |
| 814 | ######################################## |
| 815 | # ADJ |
| 816 | ######################################## |
| 817 | |
| 818 | libvnet_la_SOURCES += \ |
Neale Ranns | 0bfe5d8 | 2016-08-25 15:29:12 +0100 | [diff] [blame] | 819 | vnet/adj/adj_nbr.c \ |
| 820 | vnet/adj/adj_rewrite.c \ |
| 821 | vnet/adj/adj_glean.c \ |
| 822 | vnet/adj/adj_midchain.c \ |
Neale Ranns | 5e575b1 | 2016-10-03 09:40:25 +0100 | [diff] [blame] | 823 | vnet/adj/adj_l2.c \ |
Neale Ranns | 0bfe5d8 | 2016-08-25 15:29:12 +0100 | [diff] [blame] | 824 | vnet/adj/adj.c |
| 825 | |
| 826 | nobase_include_HEADERS += \ |
| 827 | vnet/adj/adj.h \ |
| 828 | vnet/adj/adj_types.h \ |
| 829 | vnet/adj/adj_rewrite.h \ |
| 830 | vnet/adj/adj_glean.h \ |
| 831 | vnet/adj/adj_nbr.h |
| 832 | |
| 833 | ######################################## |
| 834 | # Data-Plane Objects |
| 835 | ######################################## |
| 836 | |
| 837 | libvnet_la_SOURCES += \ |
| 838 | vnet/dpo/dpo.c \ |
| 839 | vnet/dpo/drop_dpo.c \ |
Neale Ranns | 948e00f | 2016-10-20 13:39:34 +0100 | [diff] [blame] | 840 | vnet/dpo/ip_null_dpo.c \ |
Neale Ranns | 0bfe5d8 | 2016-08-25 15:29:12 +0100 | [diff] [blame] | 841 | vnet/dpo/punt_dpo.c \ |
| 842 | vnet/dpo/receive_dpo.c \ |
| 843 | vnet/dpo/load_balance.c \ |
| 844 | vnet/dpo/load_balance_map.c \ |
| 845 | vnet/dpo/lookup_dpo.c \ |
| 846 | vnet/dpo/classify_dpo.c \ |
| 847 | vnet/dpo/mpls_label_dpo.c |
| 848 | |
| 849 | nobase_include_HEADERS += \ |
| 850 | vnet/dpo/load_balance.h \ |
| 851 | vnet/dpo/drop_dpo.h \ |
| 852 | vnet/dpo/lookup_dpo.h \ |
| 853 | vnet/dpo/punt_dpo.h \ |
| 854 | vnet/dpo/classify_dpo.h \ |
| 855 | vnet/dpo/receive_dpo.h \ |
Neale Ranns | 948e00f | 2016-10-20 13:39:34 +0100 | [diff] [blame] | 856 | vnet/dpo/ip_null_dpo.h \ |
Neale Ranns | 0bfe5d8 | 2016-08-25 15:29:12 +0100 | [diff] [blame] | 857 | vnet/dpo/dpo.h |
| 858 | |
| 859 | ######################################## |
Todd Foggoa | 4ea4ecd | 2016-03-17 14:22:34 -0400 | [diff] [blame] | 860 | # Plugin client library |
| 861 | ######################################## |
| 862 | |
| 863 | libvnetplugin_la_SOURCES += \ |
| 864 | vnet/plugin/p1.c |
| 865 | |
| 866 | nobase_include_HEADERS += \ |
| 867 | vnet/plugin/plugin.h |
| 868 | |
| 869 | lib_LTLIBRARIES = libvnet.la libvnetplugin.la |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 870 | |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 871 | pcap2pg_SOURCES = \ |
| 872 | vnet/unix/pcap2pg.c \ |
| 873 | vnet/unix/pcap.h |
| 874 | |
| 875 | pcap2pg_LDFLAGS = -static |
| 876 | pcap2pg_LDADD = libvnet.la -l:libvppinfra.a -lpthread -lm -ldl |
| 877 | |
| 878 | noinst_PROGRAMS += pcap2pg |