THE SOFTWARE.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <sys/time.h>
#include <sys/param.h>
#include <time.h>
}
int
-kernel_route(int operation, const unsigned char *pref, unsigned short plen,
- const unsigned char *gate, int ifindex, unsigned int metric,
- const unsigned char *newgate, int newifindex,
+kernel_route(enum babel_kernel_routes operation, const unsigned char *pref,
+ unsigned short plen, const unsigned char *gate, int ifindex,
+ unsigned int metric, const unsigned char *newgate, int newifindex,
unsigned int newmetric)
{
int rc;
newmetric);
return rc;
break;
- default:
- zlog_err("this should never happen (false value - kernel_route)");
- assert(0);
- exit(1);
- break;
}
+
+ return 0;
}
static int
return -1;
}
- u_char len = (u_char) ifp->hw_addr_len;
+ uint8_t len = (uint8_t)ifp->hw_addr_len;
char *tmp = (void*) ifp->hw_addr;
if (len == 8) {