mirror of
https://github.com/yarrick/iodine.git
synced 2025-01-12 19:09:30 +00:00
Move common #define's into an enum.
This commit is contained in:
parent
e8cda1fa30
commit
1c920b85f6
|
@ -20,12 +20,7 @@ typedef struct {
|
||||||
unsigned arcount :16;
|
unsigned arcount :16;
|
||||||
} HEADER;
|
} HEADER;
|
||||||
|
|
||||||
#define NOERROR 0
|
typedef enum {NOERROR, FORMERR, SERVFAIL, NXDOMAIN, NOTIMP, REFUSED} Error;
|
||||||
#define FORMERR 1
|
|
||||||
#define SERVFAIL 2
|
|
||||||
#define NXDOMAIN 3
|
|
||||||
#define NOTIMP 4
|
|
||||||
#define REFUSED 5
|
|
||||||
|
|
||||||
#define C_IN 1
|
#define C_IN 1
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue