Changeset 2099 for Whitix/branches/netchannel/user/sdk/network/dns.c
- Timestamp:
- 06/03/10 22:43:33 (2 years ago)
- Files:
-
- 1 modified
-
Whitix/branches/netchannel/user/sdk/network/dns.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
Whitix/branches/netchannel/user/sdk/network/dns.c
r2094 r2099 10 10 #include "udp.h" 11 11 12 /* Protocol structures. */13 struct DnsHeader14 {15 ushort id;16 ushort flags;17 ushort questions;18 ushort answers;19 ushort authorities;20 ushort additional;21 };22 23 struct DnsQuestionEnd24 {25 ushort type;26 ushort class;27 };28 29 struct DnsAnswer30 {31 ushort name;32 ushort type;33 ushort class;34 ulong ttl;35 ushort length;36 }__attribute__((packed));37 38 12 void DnsStartHeader(struct DnsState* state, char* buf, int maxLength) 39 13 { … … 231 205 if (class != DNS_CLASS_IN) 232 206 { 233 printf(" TODO\n");207 printf("dns: TODO\n"); 234 208 exit(0); 235 209 }
