Show
Ignore:
Timestamp:
06/03/10 22:43:33 (2 years ago)
Author:
mwhitworth
Message:

Add to network stack.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • Whitix/branches/netchannel/user/sdk/network/dns.c

    r2094 r2099  
    1010#include "udp.h" 
    1111 
    12 /* Protocol structures. */ 
    13 struct DnsHeader 
    14 { 
    15         ushort id; 
    16         ushort flags; 
    17         ushort questions; 
    18         ushort answers; 
    19         ushort authorities; 
    20         ushort additional; 
    21 }; 
    22  
    23 struct DnsQuestionEnd 
    24 { 
    25         ushort type; 
    26         ushort class; 
    27 }; 
    28  
    29 struct DnsAnswer 
    30 { 
    31         ushort name; 
    32         ushort type; 
    33         ushort class; 
    34         ulong ttl; 
    35         ushort length; 
    36 }__attribute__((packed)); 
    37  
    3812void DnsStartHeader(struct DnsState* state, char* buf, int maxLength) 
    3913{ 
     
    231205                if (class != DNS_CLASS_IN) 
    232206                { 
    233                         printf("TODO\n"); 
     207                        printf("dns: TODO\n"); 
    234208                        exit(0); 
    235209                }