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.
16 #ifndef __MFIB_SIGNAL_H__
17 #define __MFIB_SIGNAL_H__
19 #include <vlib/vlib.h>
20 #include <vnet/mfib/mfib_types.h>
21 #include <vnet/mfib/mfib_itf.h>
22 #include <vnet/mfib/mfib_entry.h>
24 #define MFIB_SIGNAL_BUFFER_SIZE 255
27 * A pair of indicies, for the entry and interface resp.
29 typedef struct mfib_signal_t_
31 fib_node_index_t mfs_entry;
35 * @brief A buffer copied from the DP plane that triggered the signal
37 u8 mfs_buffer[MFIB_SIGNAL_BUFFER_SIZE];
43 extern void mfib_signal_push(const mfib_entry_t *mfe,
46 extern void mfib_signal_remove_itf(const mfib_itf_t *mfi);
48 extern void mfib_signal_module_init(void);
50 struct vl_api_registration_;
52 extern void vl_mfib_signal_send_one(struct vl_api_registration_ *q,
54 const mfib_signal_t *mfs);
55 extern int mfib_signal_send_one(struct vl_api_registration_ *reg,