first version of the LAC functionality
[l2tpns.git] / l2tplac.h
diff --git a/l2tplac.h b/l2tplac.h
new file mode 100644 (file)
index 0000000..ba81a8e
--- /dev/null
+++ b/l2tplac.h
@@ -0,0 +1,14 @@
+/* L2TPLAC */
+/* $Id: l2tplac.h,v 1.0 2012-07-01 14:49:28 fendo Exp $ */
+
+#ifndef __L2TPLAC_H__
+#define __L2TPLAC_H__
+
+// l2tplac.c
+void initremotelnsdata();
+int session_forward_tolns(uint8_t *buf, int len, sessionidt sess, uint16_t proto);
+int forwardtolns(sessionidt s, char * puser);
+void calc_lac_auth(tunnelidt t, uint8_t id, uint8_t *out);
+int istunneltolns(tunnelidt t);
+int addremotelns(char *mask, char *IP_RemoteLNS, char *Port_RemoteLNS, char *SecretRemoteLNS);
+#endif /* __L2TPLAC_H__ */