]>
git.ipfire.org Git - people/ms/u-boot.git/blob - net/dns.h
2 * (C) Masami Komiya <mkomiya@sonare.it> 2005
3 * Copyright 2009, Robin Getz <rgetz@blackfin.uclinux.org>
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License as
7 * published by the Free Software Foundation; either version 2, or (at
8 * your option) any later version.
14 #define DNS_SERVICE_PORT 53
15 #define DNS_TIMEOUT 10000UL
17 /* http://en.wikipedia.org/wiki/List_of_DNS_record_types */
20 DNS_CNAME_RECORD
= 0x05,
28 uint16_t tid
; /* Transaction ID */
29 uint16_t flags
; /* Flags */
30 uint16_t nqueries
; /* Questions */
31 uint16_t nanswers
; /* Answers */
32 uint16_t nauth
; /* Authority PRs */
33 uint16_t nother
; /* Other PRs */
34 unsigned char data
[1]; /* Data, variable length */
37 extern void DnsStart(void); /* Begin DNS */