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