-typedef enum rmode_t {
- RMODE_HUB = 0,
- RMODE_SWITCH,
- RMODE_ROUTER,
-} rmode_t;
-
-typedef enum fmode_t {
- FMODE_OFF = 0,
- FMODE_INTERNAL,
- FMODE_KERNEL,
-} fmode_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 age_subnets(void);
-extern void route(struct node_t *, struct vpn_packet_t *);