| 1 | #ifndef RESPONSE_H |
| 2 | #define RESPONSE_H |
| 3 | |
| 4 | #include "uint32.h" |
| 5 | |
| 6 | extern char response[]; |
| 7 | extern unsigned int response_len; |
| 8 | |
| 9 | extern int response_query(const char *,const char *,const char *); |
| 10 | extern void response_nxdomain(void); |
| 11 | extern void response_servfail(void); |
| 12 | extern void response_id(const char *); |
| 13 | extern void response_tc(void); |
| 14 | |
| 15 | extern int response_addbytes(const char *,unsigned int); |
| 16 | extern int response_addname(const char *); |
| 17 | extern void response_hidettl(void); |
| 18 | extern int response_rstart(const char *,const char *,uint32); |
| 19 | extern void response_rfinish(int); |
| 20 | |
| 21 | #define RESPONSE_ANSWER 6 |
| 22 | #define RESPONSE_AUTHORITY 8 |
| 23 | #define RESPONSE_ADDITIONAL 10 |
| 24 | |
| 25 | extern int response_cname(const char *,const char *,uint32); |
| 26 | |
| 27 | #endif |