// L2TPNS Global Stuff
-// $Id: l2tpns.h,v 1.59 2005/03/10 05:46:55 bodea Exp $
+// $Id: l2tpns.h,v 1.62 2005/04/18 04:18:15 bodea Exp $
#ifndef __L2TPNS_H__
#define __L2TPNS_H__
#define LIBDIR "/usr/lib/l2tpns"
#endif
-#ifndef STATEDIR
-#define STATEDIR "/var/lib/l2tpns"
-#endif
-
#ifndef PLUGINDIR
#define PLUGINDIR LIBDIR // Plugins
#endif
#define FLASHDIR ETCDIR
#endif
-#ifndef DATADIR
-#define DATADIR STATEDIR
-#endif
-
#define TUNDEVICE "/dev/net/tun"
#define RANDOMDEVICE "/dev/urandom" // default, not as secure as /dev/random but non-blocking
-#define STATEFILE DATADIR "/state.dump" // State dump file
#define CONFIGFILE FLASHDIR "/startup-config" // Configuration file
#define CLIUSERS FLASHDIR "/users" // CLI Users file
#define IPPOOLFILE FLASHDIR "/ip_pool" // Address pool configuration
sessionidt sessionbyuser(char *username);
void random_data(uint8_t *buf, int len);
void sessionkill(sessionidt s, char *reason);
-void sessionshutdown(sessionidt s, char *reason);
+void sessionshutdown(sessionidt s, char *reason, int result, int error);
void send_garp(in_addr_t ip);
void tunnelsend(uint8_t *buf, uint16_t l, tunnelidt t);
void sendipcp(tunnelidt t, sessionidt s);