]> git.proxmox.com Git - mirror_frr.git/blobdiff - zebra/connected.h
zebra: delay default vrf name after vrf initialization
[mirror_frr.git] / zebra / connected.h
index 3e37346853826ace42747bb8f5be527a438ce409..75b6e05bda714878a175eace7140ef4665a7dc20 100644 (file)
 #ifndef _ZEBRA_CONNECTED_H
 #define _ZEBRA_CONNECTED_H
 
-extern struct connected *
-connected_check (struct interface *ifp, struct prefix *p);
+#include <zebra.h>
+#include <stdint.h>
 
-extern void
-connected_add_ipv4 (struct interface *ifp, int flags, struct in_addr *addr, 
-                   u_char prefixlen, struct in_addr *broad, 
-                   const char *label);
+#include "lib/if.h"
+#include "lib/prefix.h"
 
-extern void
-connected_delete_ipv4 (struct interface *ifp, int flags, struct in_addr *addr,
-                      u_char prefixlen, struct in_addr *broad);
+extern struct connected *connected_check(struct interface *ifp,
+                                        union prefixconstptr p);
+extern struct connected *connected_check_ptp(struct interface *ifp,
+                                            union prefixconstptr p,
+                                            union prefixconstptr d);
 
-extern void
-connected_delete_ipv4_unnumbered (struct connected *ifc);
+extern void connected_add_ipv4(struct interface *ifp, int flags,
+                              struct in_addr *addr, uint8_t prefixlen,
+                              struct in_addr *broad, const char *label);
 
-extern void connected_up_ipv4 (struct interface *, struct connected *);
-extern void connected_down_ipv4 (struct interface *, struct connected *);
+extern void connected_delete_ipv4(struct interface *ifp, int flags,
+                                 struct in_addr *addr, uint8_t prefixlen,
+                                 struct in_addr *broad);
 
-extern void
-connected_add_ipv6 (struct interface *ifp, int flags, struct in6_addr *address,
-                   u_char prefixlen, struct in6_addr *broad,
-                   const char *label);
-extern void
-connected_delete_ipv6 (struct interface *ifp, struct in6_addr *address,
-                      u_char prefixlen, struct in6_addr *broad);
+extern void connected_delete_ipv4_unnumbered(struct connected *ifc);
 
-extern void connected_up_ipv6 (struct interface *, struct connected *);
-extern void connected_down_ipv6 (struct interface *ifp, struct connected *);
+extern void connected_up(struct interface *ifp, struct connected *ifc);
+extern void connected_down(struct interface *ifp, struct connected *ifc);
 
-extern int connected_is_unnumbered (struct interface *);
+extern void connected_add_ipv6(struct interface *ifp, int flags,
+                              struct in6_addr *address, struct in6_addr *broad,
+                              uint8_t prefixlen, const char *label);
+extern void connected_delete_ipv6(struct interface *ifp,
+                                 struct in6_addr *address,
+                                 struct in6_addr *broad, uint8_t prefixlen);
+
+extern int connected_is_unnumbered(struct interface *);
 
 #endif /*_ZEBRA_CONNECTED_H */