X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Froute.h;h=04282486c40398776249d0ad5f6b09deedd692ff;hb=158cbe99f972a1613b7d4d95abfe5fe48e019e67;hp=5af2a0941ad52603ec560db60f7f6af53874f7fd;hpb=33f241d97852d7a171f1aaf1bda7f66356ff889e;p=meshlink diff --git a/src/route.h b/src/route.h index 5af2a094..04282486 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 @@ -36,10 +35,17 @@ typedef enum fmode_t { FMODE_KERNEL, } fmode_t; +typedef enum bmode_t { + BMODE_NONE = 0, + BMODE_MST, + BMODE_DIRECT, +} bmode_t; + extern rmode_t routing_mode; extern fmode_t forwarding_mode; +extern bmode_t broadcast_mode; +extern bool decrement_ttl; extern bool directonly; -extern bool overwrite_mac; extern bool priorityinheritance; extern int macexpire; extern bool pcap; @@ -48,4 +54,4 @@ extern mac_t mymac; extern void route(struct node_t *, struct vpn_packet_t *); -#endif /* __TINC_ROUTE_H__ */ +#endif /* __TINC_ROUTE_H__ */