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