diff options
author | paul <paul> | 2005-06-28 17:17:12 +0000 |
---|---|---|
committer | paul <paul> | 2005-06-28 17:17:12 +0000 |
commit | a1ac18c4d5b4f8f4f279efb2ae12b46258f22282 (patch) | |
tree | e37732ef4b00ae98d1be693e721b01cc2566ba39 /zebra/rt_ioctl.c | |
parent | 94f2b3923e9663d0355a829f22e4e31cf68ee7b8 (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/rt_ioctl.c')
-rw-r--r-- | zebra/rt_ioctl.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/zebra/rt_ioctl.c b/zebra/rt_ioctl.c index a8e9e521..f4997e22 100644 --- a/zebra/rt_ioctl.c +++ b/zebra/rt_ioctl.c @@ -26,19 +26,21 @@ #include "log.h" #include "if.h" +#include "zebra/zserv.h" #include "zebra/rib.h" #include "zebra/debug.h" +#include "zebra/rt.h" /* Initialize of kernel interface. There is no kernel communication support under ioctl(). So this is dummy stub function. */ void -kernel_init () +kernel_init (void) { return; } /* Dummy function of routing socket. */ -void +static void kernel_read (int sock) { return; @@ -160,7 +162,7 @@ kernel_add_route (struct prefix_ipv4 *dest, struct in_addr *gate, } /* Interface to ioctl route message. */ -int +static int kernel_ioctl_ipv4 (u_long cmd, struct prefix *p, struct rib *rib, int family) { int ret; @@ -360,7 +362,7 @@ kernel_delete_ipv4 (struct prefix *p, struct rib *rib) #include <linux/ipv6_route.h> #endif -int +static int kernel_ioctl_ipv6 (u_long type, struct prefix_ipv6 *dest, struct in6_addr *gate, int index, int flags) { @@ -421,7 +423,7 @@ kernel_ioctl_ipv6 (u_long type, struct prefix_ipv6 *dest, struct in6_addr *gate, return ret; } -int +static int kernel_ioctl_ipv6_multipath (u_long cmd, struct prefix *p, struct rib *rib, int family) { @@ -551,7 +553,7 @@ kernel_delete_ipv6 (struct prefix *p, struct rib *rib) /* Delete IPv6 route from the kernel. */ int kernel_delete_ipv6_old (struct prefix_ipv6 *dest, struct in6_addr *gate, - int index, int flags, int table) + unsigned int index, int flags, int table) { return kernel_ioctl_ipv6 (SIOCDELRT, dest, gate, index, flags); } |