| Revision a56903,
619 bytes
checked in by Marcel Bokhorst <marcel@…>, 13 months ago
(diff) |
|
Android support (#105) patch from Marcel Bokhorst
|
-
Property mode set to
100644
|
| Line | |
|---|
| 1 | |
|---|
| 2 | #ifndef __FIX_ANDROID_H__ |
|---|
| 3 | #define __FIX_ANDROID_H__ |
|---|
| 4 | |
|---|
| 5 | typedef struct { |
|---|
| 6 | unsigned id :16; |
|---|
| 7 | unsigned rd :1; |
|---|
| 8 | unsigned tc :1; |
|---|
| 9 | unsigned aa :1; |
|---|
| 10 | unsigned opcode :4; |
|---|
| 11 | unsigned qr :1; |
|---|
| 12 | unsigned rcode :4; |
|---|
| 13 | unsigned cd: 1; |
|---|
| 14 | unsigned ad: 1; |
|---|
| 15 | unsigned unused :1; |
|---|
| 16 | unsigned ra :1; |
|---|
| 17 | unsigned qdcount :16; |
|---|
| 18 | unsigned ancount :16; |
|---|
| 19 | unsigned nscount :16; |
|---|
| 20 | unsigned arcount :16; |
|---|
| 21 | } HEADER; |
|---|
| 22 | |
|---|
| 23 | #define NOERROR 0 |
|---|
| 24 | #define FORMERR 1 |
|---|
| 25 | #define SERVFAIL 2 |
|---|
| 26 | #define NXDOMAIN 3 |
|---|
| 27 | #define NOTIMP 4 |
|---|
| 28 | #define REFUSED 5 |
|---|
| 29 | |
|---|
| 30 | #define C_IN 1 |
|---|
| 31 | |
|---|
| 32 | #define T_A 1 |
|---|
| 33 | #define T_CNAME 5 |
|---|
| 34 | #define T_NULL 10 |
|---|
| 35 | #define T_MX 15 |
|---|
| 36 | #define T_TXT 16 |
|---|
| 37 | #define T_SRV 33 |
|---|
| 38 | |
|---|
| 39 | #endif |
|---|
Note: See
TracBrowser
for help on using the repository browser.