]> git.proxmox.com Git - mirror_frr.git/blobdiff - zebra/connected.h
Merge pull request #3465 from donaldsharp/nexthop_active_update
[mirror_frr.git] / zebra / connected.h
index eaf79fe9aadd5b3a00501c9764a954ebb8d2188b..75b6e05bda714878a175eace7140ef4665a7dc20 100644 (file)
 #ifndef _ZEBRA_CONNECTED_H
 #define _ZEBRA_CONNECTED_H
 
+#include <zebra.h>
+#include <stdint.h>
+
+#include "lib/if.h"
+#include "lib/prefix.h"
+
 extern struct connected *connected_check(struct interface *ifp,
-                                        struct prefix *p);
+                                        union prefixconstptr p);
+extern struct connected *connected_check_ptp(struct interface *ifp,
+                                            union prefixconstptr p,
+                                            union prefixconstptr d);
 
 extern void connected_add_ipv4(struct interface *ifp, int flags,
-                              struct in_addr *addr, u_char prefixlen,
+                              struct in_addr *addr, uint8_t prefixlen,
                               struct in_addr *broad, const char *label);
 
 extern void connected_delete_ipv4(struct interface *ifp, int flags,
-                                 struct in_addr *addr, u_char prefixlen,
+                                 struct in_addr *addr, uint8_t prefixlen,
                                  struct in_addr *broad);
 
 extern void connected_delete_ipv4_unnumbered(struct connected *ifc);
 
-extern void connected_up_ipv4(struct interface *, struct connected *);
-extern void connected_down_ipv4(struct interface *, struct connected *);
+extern void connected_up(struct interface *ifp, struct connected *ifc);
+extern void connected_down(struct interface *ifp, struct connected *ifc);
 
 extern void connected_add_ipv6(struct interface *ifp, int flags,
-                              struct in6_addr *address, u_char prefixlen,
-                              struct in6_addr *broad, const char *label);
+                              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, u_char prefixlen,
-                                 struct in6_addr *broad);
-
-extern void connected_up_ipv6(struct interface *, struct connected *);
-extern void connected_down_ipv6(struct interface *ifp, struct connected *);
+                                 struct in6_addr *address,
+                                 struct in6_addr *broad, uint8_t prefixlen);
 
 extern int connected_is_unnumbered(struct interface *);