]> git.proxmox.com Git - mirror_frr.git/blobdiff - babeld/kernel.h
Merge pull request #12654 from Pdoijode/evpn-evi-detail-json-changes
[mirror_frr.git] / babeld / kernel.h
index eb1e793279c52b9b4c5878d6a592d0df3c9bc060..f39bc35bdb2ab4b135d37093bbb2015243182a03 100644 (file)
@@ -29,19 +29,21 @@ THE SOFTWARE.
 
 #define KERNEL_INFINITY 0xFFFF
 
-#define ROUTE_FLUSH 0
-#define ROUTE_ADD 1
-#define ROUTE_MODIFY 2
+enum babel_kernel_routes {
+    ROUTE_FLUSH,
+    ROUTE_ADD,
+    ROUTE_MODIFY,
+};
 
 int kernel_interface_operational(struct interface *interface);
 int kernel_interface_mtu(struct interface *interface);
 int kernel_interface_wireless(struct interface *interface);
-int kernel_route(int operation, const unsigned char *dest, unsigned short plen,
-                 const unsigned char *gate, int ifindex, unsigned int metric,
-                 const unsigned char *newgate, int newifindex,
-                 unsigned int newmetric);
+int kernel_route(enum babel_kernel_routes operation, const unsigned char *dest,
+                unsigned short plen, const unsigned char *gate, int ifindex,
+                unsigned int metric, const unsigned char *newgate,
+                int newifindex, unsigned int newmetric);
 int if_eui64(int ifindex, unsigned char *eui);
-int gettime(struct timeval *tv);
+void gettime(struct timeval *tv);
 int read_random_bytes(void *buf, size_t len);
 
 #endif /* BABEL_KERNEL_H */