X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=zebra%2Fzebra_fpm_private.h;h=969ab6cfee3b01f65812b893348c8442e00b5482;hb=2569910bb6e5c00ececc60ed15b182e14a88cb9d;hp=1c4fd4c22f5f2b953bcba45ea9a396e08b01cd7e;hpb=e52702f29d003585dcfbb4914b2a52d77a177739;p=mirror_frr.git diff --git a/zebra/zebra_fpm_private.h b/zebra/zebra_fpm_private.h index 1c4fd4c22..969ab6cfe 100644 --- a/zebra/zebra_fpm_private.h +++ b/zebra/zebra_fpm_private.h @@ -16,10 +16,9 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with GNU Zebra; see the file COPYING. If not, write to the - * Free Software Foundation, Inc., 59 Temple Place - Suite 330, - * Boston, MA 02111-1307, USA. + * You should have received a copy of the GNU General Public License along + * with this program; see the file COPYING; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ #ifndef _ZEBRA_FPM_PRIVATE_H @@ -29,33 +28,37 @@ #if defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L -#define zfpm_debug(...) \ - do { \ - if (IS_ZEBRA_DEBUG_FPM) zlog_debug("FPM: " __VA_ARGS__); \ - } while(0) +#define zfpm_debug(...) \ + do { \ + if (IS_ZEBRA_DEBUG_FPM) \ + zlog_debug("FPM: " __VA_ARGS__); \ + } while (0) #elif defined __GNUC__ -#define zfpm_debug(_args...) \ - do { \ - if (IS_ZEBRA_DEBUG_FPM) zlog_debug("FPM: " _args); \ - } while(0) +#define zfpm_debug(_args...) \ + do { \ + if (IS_ZEBRA_DEBUG_FPM) \ + zlog_debug("FPM: " _args); \ + } while (0) #else -static inline void zfpm_debug(const char *format, ...) { return; } +static inline void zfpm_debug(const char *format, ...) +{ + return; +} #endif /* * Externs */ -extern int -zfpm_netlink_encode_route (int cmd, rib_dest_t *dest, struct rib *rib, - char *in_buf, size_t in_buf_len); +extern int zfpm_netlink_encode_route(int cmd, rib_dest_t *dest, + struct route_entry *re, char *in_buf, + size_t in_buf_len); -extern int -zfpm_protobuf_encode_route (rib_dest_t *dest, struct rib *rib, - uint8_t *in_buf, size_t in_buf_len); +extern int zfpm_protobuf_encode_route(rib_dest_t *dest, struct route_entry *re, + uint8_t *in_buf, size_t in_buf_len); -extern struct rib *zfpm_route_for_update (rib_dest_t *dest); +extern struct route_entry *zfpm_route_for_update(rib_dest_t *dest); #endif /* _ZEBRA_FPM_PRIVATE_H */