summaryrefslogtreecommitdiff
path: root/zebra/connected.c
diff options
context:
space:
mode:
authorpaul <paul>2005-06-28 17:17:12 +0000
committerpaul <paul>2005-06-28 17:17:12 +0000
commita1ac18c4d5b4f8f4f279efb2ae12b46258f22282 (patch)
treee37732ef4b00ae98d1be693e721b01cc2566ba39 /zebra/connected.c
parent94f2b3923e9663d0355a829f22e4e31cf68ee7b8 (diff)
2005-06-28 Paul Jakma <paul.jakma@sun.com>
* (global) Extern and static'ification, with related fixups of declarations, ensuring files include their own headers, etc. if_ioctl.c: (interface_info_ioctl) fix obvious arg mis-order in list loop
Diffstat (limited to 'zebra/connected.c')
-rw-r--r--zebra/connected.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/zebra/connected.c b/zebra/connected.c
index 3ce59530..46d2aab9 100644
--- a/zebra/connected.c
+++ b/zebra/connected.c
@@ -33,6 +33,7 @@
#include "zebra/zserv.h"
#include "zebra/redistribute.h"
#include "zebra/interface.h"
+#include "zebra/connected.h"
/* If same interface address is already exist... */
struct connected *
@@ -88,7 +89,7 @@ connected_up_ipv4 (struct interface *ifp, struct connected *ifc)
/* Add connected IPv4 route to the interface. */
void
connected_add_ipv4 (struct interface *ifp, int flags, struct in_addr *addr,
- int prefixlen, struct in_addr *broad, char *label)
+ u_char prefixlen, struct in_addr *broad, char *label)
{
struct prefix_ipv4 *p;
struct connected *ifc;
@@ -226,7 +227,7 @@ connected_down_ipv4 (struct interface *ifp, struct connected *ifc)
/* Delete connected IPv4 route to the interface. */
void
connected_delete_ipv4 (struct interface *ifp, int flags, struct in_addr *addr,
- int prefixlen, struct in_addr *broad, char *label)
+ u_char prefixlen, struct in_addr *broad, char *label)
{
struct prefix_ipv4 p;
struct connected *ifc;