X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Froute.h;h=0d13ad601e78883fefe179b2423c27654f5056fb;hb=47de98b27b28e049c47ce29a056d245fb14a2576;hp=cfe39e4b45f147933ced3aea76f783c7fa5b3359;hpb=886a6f61a1f4cc48a77b42d10f34f9126377d904;p=meshlink diff --git a/src/route.h b/src/route.h index cfe39e4b..0d13ad60 100644 --- a/src/route.h +++ b/src/route.h @@ -1,7 +1,6 @@ /* route.h -- header file for route.c - Copyright (C) 2000-2005 Ivo Timmermans - 2000-2006 Guus Sliepen + Copyright (C) 2014 Guus Sliepen This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -24,27 +23,8 @@ #include "net.h" #include "node.h" -typedef enum rmode_t { - RMODE_HUB = 0, - RMODE_SWITCH, - RMODE_ROUTER, -} rmode_t; +extern bool decrement_ttl; -typedef enum fmode_t { - FMODE_OFF = 0, - FMODE_INTERNAL, - FMODE_KERNEL, -} fmode_t; +extern void route(struct meshlink_handle *mesh, struct node_t *, struct vpn_packet_t *); -extern rmode_t routing_mode; -extern fmode_t forwarding_mode; -extern bool directonly; -extern bool overwrite_mac; -extern bool priorityinheritance; -extern int macexpire; - -extern mac_t mymac; - -extern void route(struct node_t *, struct vpn_packet_t *); - -#endif /* __TINC_ROUTE_H__ */ +#endif /* __TINC_ROUTE_H__ */