]> git.ozlabs.org Git - ppp.git/blobdiff - pppd/plugins/pppoatm/atmres.h
New pppoatm plugin, sent in by David Woodhouse.
[ppp.git] / pppd / plugins / pppoatm / atmres.h
diff --git a/pppd/plugins/pppoatm/atmres.h b/pppd/plugins/pppoatm/atmres.h
new file mode 100644 (file)
index 0000000..d5b3b8c
--- /dev/null
@@ -0,0 +1,36 @@
+/* atmres.h - Common definitions and prototypes for resolver functions */
+
+/* Written 1996,1998 by Werner Almesberger, EPFL-LRC/ICA */
+
+
+#ifndef _ATMRES_H
+#define _ATMRES_H
+
+#include <arpa/nameser.h>
+#include <linux/atm.h>
+
+
+/* Some #defines that may be needed if ANS isn't installed on that system */
+
+#ifndef T_ATMA
+#define T_ATMA         34
+#endif
+#ifndef ATMA_AESA
+#define ATMA_AESA      0
+#endif
+#ifndef ATMA_E164
+#define ATMA_E164      1
+#endif
+
+/* Return codes for text2atm and atm2text */
+
+#define TRY_OTHER -2
+#define FATAL    -1 /* must be -1 */
+
+
+int ans_byname(const char *text,struct sockaddr_atmsvc *addr,int length,
+  int flags);
+int ans_byaddr(char *buffer,int length,const struct sockaddr_atmsvc *addr,
+  int flags);
+
+#endif