]> git.proxmox.com Git - mirror_frr.git/blobdiff - zebra/connected.h
eigrpd: eigrp usage of uint32_t to struct in_addr for router_id data
[mirror_frr.git] / zebra / connected.h
index bdcf6085e4b38bd1ca5e1f1f3491f172a4875f2e..75b6e05bda714878a175eace7140ef4665a7dc20 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_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 */