]> git.proxmox.com Git - mirror_frr.git/blobdiff - zebra/zebra_fpm_private.h
lib: enforce vrf_name_to_id by returning default_vrf when name is null
[mirror_frr.git] / zebra / zebra_fpm_private.h
index 1c4fd4c22f5f2b953bcba45ea9a396e08b01cd7e..969ab6cfee3b01f65812b893348c8442e00b5482 100644 (file)
  * 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
 
 #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 */