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