]>
git.proxmox.com Git - mirror_frr.git/blob - zebra/zebra_fpm_private.h
2 * Private header file for the zebra FPM module.
4 * Copyright (C) 2012 by Open Source Routing.
5 * Copyright (C) 2012 by Internet Systems Consortium, Inc. ("ISC")
7 * This file is part of GNU Zebra.
9 * GNU Zebra is free software; you can redistribute it and/or modify it
10 * under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2, or (at your option)
14 * GNU Zebra is distributed in the hope that it will be useful, but
15 * WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with GNU Zebra; see the file COPYING. If not, write to the
21 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
22 * Boston, MA 02111-1307, USA.
25 #ifndef _ZEBRA_FPM_PRIVATE_H
26 #define _ZEBRA_FPM_PRIVATE_H
28 #include "zebra/debug.h"
30 #if defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L
32 #define zfpm_debug(...) \
34 if (IS_ZEBRA_DEBUG_FPM) zlog_debug("FPM: " __VA_ARGS__); \
37 #elif defined __GNUC__
39 #define zfpm_debug(_args...) \
41 if (IS_ZEBRA_DEBUG_FPM) zlog_debug("FPM: " _args); \
45 static inline void zfpm_debug(const char *format
, ...) { return; }
53 zfpm_netlink_encode_route (int cmd
, rib_dest_t
*dest
, struct rib
*rib
,
54 char *in_buf
, size_t in_buf_len
);
57 zfpm_protobuf_encode_route (rib_dest_t
*dest
, struct rib
*rib
,
58 uint8_t *in_buf
, size_t in_buf_len
);
60 extern struct rib
*zfpm_route_for_update (rib_dest_t
*dest
);
61 #endif /* _ZEBRA_FPM_PRIVATE_H */