// L2TPNS Global Stuff
-// $Id: l2tpns.h,v 1.17 2004-09-02 04:18:07 fred_nerk Exp $
+// $Id: l2tpns.h,v 1.23 2004-10-28 03:58:51 bodea Exp $
#ifndef __L2TPNS_H__
#define __L2TPNS_H__
#include <sys/types.h>
#include <libcli.h>
-#define VERSION "2.0.1"
+#define VERSION "2.0.2"
// Limits
#define MAXTUNNEL 500 // could be up to 65535
char bgp_peer[2][64];
u16 bgp_peer_as[2];
#endif
+ char hostname[256]; // our hostname - set to gethostname() by default
};
struct config_descriptt
char *key;
int offset;
int size;
- enum { INT, STRING, UNSIGNED_LONG, SHORT, BOOL, IP } type;
+ enum { INT, STRING, UNSIGNED_LONG, SHORT, BOOL, IP, MAC } type;
};
// arp.c
void routeset(sessionidt, ipt ip, ipt mask, ipt gw, u8 add);
void inittun(void);
void initudp(void);
-void initdata(void);
+void initdata(int optdebug, char *optconfig);
void initippool();
sessionidt sessionbyip(ipt ip);
sessionidt sessionbyuser(char *username);