C
enum { DNS_START = 0, DNS_ARP_START_RESOLVE, DNS_ARP_RESOLVE, DNS_OPEN_SOCKET, DNS_QUERY, DNS_GET_RESULT, DNS_FAIL, DNS_DONE } smDNS;
Description
State machine for a DNS query
Members
Members |
Description |
DNS_START = 0 |
Initial state to reset client state variables |
DNS_ARP_START_RESOLVE |
Send ARP resolution of DNS server or gateway MAC address |
DNS_ARP_RESOLVE |
Wait for response to ARP request |
DNS_OPEN_SOCKET |
Open UDP socket |
DNS_QUERY |
Send DNS query to DNS server |
DNS_GET_RESULT |
Wait for response from DNS server |
DNS_FAIL |
ARP or DNS server not responding |
DNS_DONE |
DNS query is finished |