Export mymac.

This commit is contained in:
Guus Sliepen 2003-07-15 16:26:18 +00:00
parent 784db4e70d
commit d26a4af456
2 changed files with 5 additions and 3 deletions

View file

@ -17,7 +17,7 @@
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
$Id: route.c,v 1.1.2.57 2003/07/12 17:41:47 guus Exp $ $Id: route.c,v 1.1.2.58 2003/07/15 16:26:18 guus Exp $
*/ */
#include "config.h" #include "config.h"
@ -84,7 +84,7 @@ int routing_mode = RMODE_ROUTER;
int priorityinheritance = 0; int priorityinheritance = 0;
int macexpire = 600; int macexpire = 600;
int overwrite_mac = 0; int overwrite_mac = 0;
static mac_t mymac = {{0xFE, 0xFD, 0, 0, 0, 0}}; mac_t mymac = {{0xFE, 0xFD, 0, 0, 0, 0}};
/* RFC 1071 */ /* RFC 1071 */

View file

@ -17,7 +17,7 @@
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
$Id: route.h,v 1.1.2.11 2003/07/12 17:41:47 guus Exp $ $Id: route.h,v 1.1.2.12 2003/07/15 16:26:18 guus Exp $
*/ */
#ifndef __TINC_ROUTE_H__ #ifndef __TINC_ROUTE_H__
@ -34,6 +34,8 @@ extern int overwrite_mac;
extern int priorityinheritance; extern int priorityinheritance;
extern int macexpire; extern int macexpire;
extern mac_t mymac;
extern void age_mac(void); extern void age_mac(void);
extern void route_incoming(node_t *, vpn_packet_t *); extern void route_incoming(node_t *, vpn_packet_t *);
extern void route_outgoing(vpn_packet_t *); extern void route_outgoing(vpn_packet_t *);