1 // SPDX-License-Identifier: MIT
3 Copyright (c) 2007, 2008 by Juliusz Chroboczek
9 #include <netinet/in.h>
10 #include "babel_main.h"
13 #define KERNEL_INFINITY 0xFFFF
15 enum babel_kernel_routes
{
21 int kernel_interface_operational(struct interface
*interface
);
22 int kernel_interface_mtu(struct interface
*interface
);
23 int kernel_interface_wireless(struct interface
*interface
);
24 int kernel_route(enum babel_kernel_routes operation
, const unsigned char *dest
,
25 unsigned short plen
, const unsigned char *gate
, int ifindex
,
26 unsigned int metric
, const unsigned char *newgate
,
27 int newifindex
, unsigned int newmetric
);
28 int if_eui64(int ifindex
, unsigned char *eui
);
29 void gettime(struct timeval
*tv
);
30 int read_random_bytes(void *buf
, size_t len
);
32 #endif /* BABEL_KERNEL_H */