You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
724 B
37 lines
724 B
/* 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
|