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