2 * Copyright (c) 2016 Cisco and/or its affiliates.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at:
7 * http://www.apache.org/licenses/LICENSE-2.0
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
19 #include <vnet/vnet.h>
20 #include <vnet/ip/ip.h>
24 clib_bitmap_t *rx_mirror_ports;
25 clib_bitmap_t *tx_mirror_ports;
26 u32 num_rx_mirror_ports;
27 u32 num_tx_mirror_ports;
32 /* per-interface vector of span instances */
33 span_interface_t *interfaces;
35 /* biggest sw_if_index used so far */
39 vlib_main_t *vlib_main;
40 vnet_main_t *vnet_main;
43 span_main_t span_main;
47 u32 src_sw_if_index; /* mirrored interface index */
48 u32 mirror_sw_if_index; /* output interface index */
51 #endif /* __span_h__ */
54 span_add_delete_entry (vlib_main_t * vm, u32 src_sw_if_index,
55 u32 dst_sw_if_index, u8 is_add);
57 * fd.io coding-style-patch-verification: ON
60 * eval: (c-set-style "gnu")