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