]>
git.ipfire.org Git - thirdparty/u-boot.git/blob - net/dns.h
1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * (C) Masami Komiya <mkomiya@sonare.it> 2005
4 * Copyright 2009, Robin Getz <rgetz@blackfin.uclinux.org>
10 #define DNS_SERVICE_PORT 53
11 #define DNS_TIMEOUT 10000UL
13 /* http://en.wikipedia.org/wiki/List_of_DNS_record_types */
16 DNS_CNAME_RECORD
= 0x05,
24 uint16_t tid
; /* Transaction ID */
25 uint16_t flags
; /* Flags */
26 uint16_t nqueries
; /* Questions */
27 uint16_t nanswers
; /* Answers */
28 uint16_t nauth
; /* Authority PRs */
29 uint16_t nother
; /* Other PRs */
30 unsigned char data
[1]; /* Data, variable length */
31 } __attribute__((packed
));
33 void dns_start(void); /* Begin DNS */