iPXE
Data Fields
dns_request Struct Reference

A DNS request. More...

Data Fields

struct refcnt refcnt
 Reference counter. More...
 
struct interface resolv
 Name resolution interface. More...
 
struct interface socket
 Data transfer interface. More...
 
struct retry_timer timer
 Retry timer. More...
 
union {
   struct sockaddr   sa
 
   struct sockaddr_in   sin
 
   struct sockaddr_in6   sin6
 
address
 Socket address to fill in with resolved address. More...
 
uint16_t qtype
 Initial query type. More...
 
struct {
   struct dns_header   query
 Query header. More...
 
   char   name [DNS_MAX_NAME_LEN]
 Name buffer. More...
 
   struct dns_question   padding
 Space for question. More...
 
buf
 Buffer for current query. More...
 
struct dns_name name
 Current query name. More...
 
struct dns_questionquestion
 Question within current query. More...
 
size_t len
 Length of current query. More...
 
size_t offset
 Offset of search suffix within current query. More...
 
struct dns_name search
 Search list. More...
 
unsigned int index
 Server index. More...
 
unsigned int recursion
 Recursion counter. More...
 

Detailed Description

A DNS request.

Definition at line 452 of file dns.c.

Field Documentation

◆ refcnt

struct refcnt dns_request::refcnt

Reference counter.

Definition at line 454 of file dns.c.

Referenced by dns_resolv().

◆ resolv

struct interface dns_request::resolv

Name resolution interface.

Definition at line 456 of file dns.c.

Referenced by dns_done(), dns_resolv(), and dns_resolved().

◆ socket

struct interface dns_request::socket

Data transfer interface.

Definition at line 458 of file dns.c.

Referenced by dns_done(), dns_resolv(), and dns_send_packet().

◆ timer

struct retry_timer dns_request::timer

Retry timer.

Definition at line 460 of file dns.c.

Referenced by dns_done(), dns_resolv(), dns_send_packet(), and dns_xfer_deliver().

◆ sa

struct sockaddr dns_request::sa

Definition at line 464 of file dns.c.

Referenced by dns_resolv(), and dns_resolved().

◆ sin

struct sockaddr_in dns_request::sin

Definition at line 465 of file dns.c.

Referenced by dns_xfer_deliver().

◆ sin6

struct sockaddr_in6 dns_request::sin6

Definition at line 466 of file dns.c.

Referenced by dns_xfer_deliver().

◆ address

union { ... } dns_request::address

Socket address to fill in with resolved address.

Referenced by dns_resolv(), dns_resolved(), and dns_xfer_deliver().

◆ qtype

uint16_t dns_request::qtype

Initial query type.

Definition at line 469 of file dns.c.

Referenced by dns_question(), dns_resolv(), and dns_xfer_deliver().

◆ query

struct dns_header dns_request::query

Query header.

Definition at line 473 of file dns.c.

Referenced by dns_question(), dns_resolv(), dns_send_packet(), dns_timer_expired(), and dns_xfer_deliver().

◆ name [1/2]

char dns_request::name[DNS_MAX_NAME_LEN]

Name buffer.

Definition at line 475 of file dns.c.

Referenced by dns_progress(), dns_question(), dns_resolv(), dns_send_packet(), and dns_xfer_deliver().

◆ padding

struct dns_question dns_request::padding

Space for question.

Definition at line 477 of file dns.c.

◆ buf

struct { ... } dns_request::buf

Buffer for current query.

Referenced by dns_question(), dns_resolv(), dns_send_packet(), dns_timer_expired(), and dns_xfer_deliver().

◆ name [2/2]

struct dns_name dns_request::name

Current query name.

Definition at line 480 of file dns.c.

◆ question

struct dns_question* dns_request::question

Question within current query.

Definition at line 482 of file dns.c.

Referenced by dns_question(), dns_send_packet(), and dns_xfer_deliver().

◆ len

size_t dns_request::len

Length of current query.

Definition at line 484 of file dns.c.

Referenced by dns_question(), and dns_send_packet().

◆ offset

size_t dns_request::offset

Offset of search suffix within current query.

Definition at line 486 of file dns.c.

Referenced by dns_question(), dns_resolv(), and dns_xfer_deliver().

◆ search

struct dns_name dns_request::search

Search list.

Definition at line 488 of file dns.c.

Referenced by dns_question(), dns_resolv(), and dns_xfer_deliver().

◆ index

unsigned int dns_request::index

Server index.

Definition at line 490 of file dns.c.

Referenced by dns_send_packet(), and dns_timer_expired().

◆ recursion

unsigned int dns_request::recursion

Recursion counter.

Definition at line 492 of file dns.c.

Referenced by dns_xfer_deliver().


The documentation for this struct was generated from the following file: