Home | History | Annotate | Download | only in pppoatm
      1 /* atmres.h - Common definitions and prototypes for resolver functions */
      2 
      3 /* Written 1996,1998 by Werner Almesberger, EPFL-LRC/ICA */
      4 
      5 
      6 #ifndef _ATMRES_H
      7 #define _ATMRES_H
      8 
      9 #include <arpa/nameser.h>
     10 #include <linux/atm.h>
     11 
     12 
     13 /* Some #defines that may be needed if ANS isn't installed on that system */
     14 
     15 #ifndef T_ATMA
     16 #define T_ATMA		34
     17 #endif
     18 #ifndef ATMA_AESA
     19 #define ATMA_AESA	0
     20 #endif
     21 #ifndef ATMA_E164
     22 #define ATMA_E164	1
     23 #endif
     24 
     25 /* Return codes for text2atm and atm2text */
     26 
     27 #define TRY_OTHER -2
     28 #define FATAL	  -1 /* must be -1 */
     29 
     30 
     31 int ans_byname(const char *text,struct sockaddr_atmsvc *addr,int length,
     32   int flags);
     33 int ans_byaddr(char *buffer,int length,const struct sockaddr_atmsvc *addr,
     34   int flags);
     35 
     36 #endif
     37