File: response.h

package info (click to toggle)
dq 20250201-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 1,408 kB
  • sloc: ansic: 13,644; python: 651; makefile: 382; sh: 336
file content (27 lines) | stat: -rw-r--r-- 850 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef RESPONSE_H
#define RESPONSE_H

#include "crypto_uint32.h"

extern unsigned char response[];
extern long long response_len;

extern int response_query(const unsigned char *, const unsigned char [2], const unsigned char [2]);
extern void response_nxdomain(void);
extern void response_servfail(void);
extern void response_id(const unsigned char [2]);
extern void response_tc(void);

extern int response_addbytes(const unsigned char *, long long);
extern int response_addname(const unsigned char *);
extern void response_hidettl(void);
extern int response_rstart(const unsigned char *, const unsigned char [2], crypto_uint32);
extern void response_rfinish(int);

#define RESPONSE_ANSWER 6
#define RESPONSE_AUTHORITY 8
#define RESPONSE_ADDITIONAL 10

extern int response_cname(const unsigned char *, const unsigned char *, crypto_uint32);

#endif