grub/grub-core/net
Gustavo Luiz Duarte 9e236169e9
issue separate DNS queries for ipv4 and ipv6
Adding multiple questions on a single DNS query is not supportted by
most DNS servers. This patch issues two separate DNS queries
sequentially for ipv4 and then for ipv6.

Fixes: https://savannah.gnu.org/bugs/?39710

 * grub-core/net/bootp.c (parse_dhcp_vendor): Add DNS option.
 * grub-core/net/dns.c (grub_dns_qtype_id): New enum.
 * (grub_net_dns_lookup): Now using separated dns packages.
 * (grub_cmd_nslookup): Add error condition.
 * (grub_cmd_list_dns): Print DNS option.
 * (grub_cmd_add_dns): Add four parameters: --only-ipv4,
 * --only-ipv6, --prefer-ipv4, and --prefer-ipv6.
 * include/grub/net.h (grub_dns_option_t): New enum.
 * (grub_net_network_level_address): option added.

Also-by: Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
Signed-off-by: Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2013-11-05 17:41:16 -02:00
..
drivers Split emunet into platform-dependent and GRUB-binding parts. Keep 2013-10-15 11:55:20 +02:00
arp.c * grub-core/net/arp.c: Remove variable length arrays. 2013-10-20 17:40:21 +02:00
bootp.c issue separate DNS queries for ipv4 and ipv6 2013-11-05 17:41:16 -02:00
dns.c issue separate DNS queries for ipv4 and ipv6 2013-11-05 17:41:16 -02:00
ethernet.c support routed pings 2011-10-13 20:53:22 +02:00
http.c * grub-core/net/http.c: Fix bad free. 2013-04-12 20:17:53 +02:00
icmp.c support routed pings 2011-10-13 20:53:22 +02:00
icmp6.c * grub-core/net/arp.c: Remove variable length arrays. 2013-10-20 17:40:21 +02:00
ip.c * grub-core/disk/ahci.c: Add needed explicit cast. 2013-08-21 21:02:14 +02:00
net.c * grub-core/fs/ext2.c (grub_ext2_read_symlink): Use memcpy rather 2013-11-01 18:44:46 +01:00
netbuff.c * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff. 2012-05-08 16:03:02 +02:00
tcp.c * grub-core/disk/ahci.c: Add needed explicit cast. 2013-08-21 21:02:14 +02:00
tftp.c * grub-core/net/tftp.c: Retransmit ack when rereceiving old packet. 2013-10-27 19:15:37 +01:00
udp.c * grub-core/disk/ahci.c: Add needed explicit cast. 2013-08-21 21:02:14 +02:00