1 /* Hey Emacs use -*- mode: C -*- */
3 * Copyright (c) 2016 Cisco and/or its affiliates.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at:
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 /** \brief Enable/Disable span to mirror traffic from one interface to another
18 @param client_index - opaque cookie to identify the sender
19 @param context - sender context which was passed in the request
20 @param sw_if_index_from - interface to be mirorred
21 @param sw_if_index_to - interface where the traffic is mirrored
22 @param state - 0 = disabled, 1 = rx enabled, 2 = tx enabled, 3 tx & rx enabled
24 autoreply define sw_interface_span_enable_disable {
32 /** \brief SPAN dump request
33 @param client_index - opaque cookie to identify the sender
34 @param context - sender context, to match reply w/ request
36 define sw_interface_span_dump {
41 /** \brief Reply to SPAN dump request
42 @param context - sender context which was passed in the request
43 @param sw_if_index_from - mirorred interface
44 @param sw_if_index_to - interface where the traffic is mirrored
45 @param state - 0 = disabled, 1 = rx enabled, 2 = tx enabled, 3 tx & rx enabled
47 define sw_interface_span_details {