DNS: Remove some unused, non-functional DNS functions
This commit is contained in:
parent
ae57fd7ee2
commit
effda16cf5
@ -131,10 +131,6 @@ printf("NET1: Configuring %s\n", CONFIG_EXAMPLES_BRIDGE_NET1_IFNAME);
|
||||
netlib_set_ipv4netmask(CONFIG_EXAMPLES_BRIDGE_NET1_IFNAME, &addr);
|
||||
|
||||
#ifdef CONFIG_EXAMPLES_BRIDGE_NET1_DHCPC
|
||||
/* Set up the resolver */
|
||||
|
||||
dns_bind();
|
||||
|
||||
/* Get the MAC address of the NIC */
|
||||
|
||||
netlib_getmacaddr(CONFIG_EXAMPLES_BRIDGE_NET1_IFNAME, mac);
|
||||
@ -256,10 +252,6 @@ printf("NET2: Configuring %s\n", CONFIG_EXAMPLES_BRIDGE_NET2_IFNAME);
|
||||
netlib_set_ipv4netmask(CONFIG_EXAMPLES_BRIDGE_NET2_IFNAME, &addr);
|
||||
|
||||
#ifdef CONFIG_EXAMPLES_BRIDGE_NET2_DHCPC
|
||||
/* Set up the resolver */
|
||||
|
||||
dns_bind();
|
||||
|
||||
/* Get the MAC address of the NIC */
|
||||
|
||||
netlib_getmacaddr(CONFIG_EXAMPLES_BRIDGE_NET2_IFNAME, mac);
|
||||
|
@ -136,10 +136,6 @@ int discover_main(int argc, char *argv[])
|
||||
netlib_set_ipv4netmask("eth0", &addr);
|
||||
|
||||
#ifdef CONFIG_EXAMPLES_DISCOVER_DHCPC
|
||||
/* Set up the resolver */
|
||||
|
||||
dns_bind();
|
||||
|
||||
/* Get the MAC address of the NIC */
|
||||
|
||||
netlib_getmacaddr("eth0", mac);
|
||||
|
@ -145,10 +145,6 @@ static int tcpecho_netsetup()
|
||||
netlib_set_ipv4netmask("eth0", &addr);
|
||||
|
||||
#ifdef CONFIG_EXAMPLES_TCPECHO_DHCPC
|
||||
/* Set up the resolver */
|
||||
|
||||
dns_bind();
|
||||
|
||||
/* Get the MAC address of the NIC */
|
||||
|
||||
netlib_getmacaddr("eth0", mac);
|
||||
|
@ -142,10 +142,6 @@ int webserver_main(int argc, char *argv[])
|
||||
netlib_set_ipv4netmask("eth0", &addr);
|
||||
|
||||
#ifdef CONFIG_EXAMPLES_WEBSERVER_DHCPC
|
||||
/* Set up the resolver */
|
||||
|
||||
dns_bind();
|
||||
|
||||
/* Get the MAC address of the NIC */
|
||||
|
||||
netlib_getmacaddr("eth0", mac);
|
||||
|
@ -309,10 +309,6 @@ static int xmlrpc_netinit(void)
|
||||
netlib_set_ipv4netmask("eth0", &addr);
|
||||
|
||||
#ifdef CONFIG_EXAMPLES_XMLRPC_DHCPC
|
||||
/* Set up the resolver */
|
||||
|
||||
dns_bind();
|
||||
|
||||
/* Get the MAC address of the NIC */
|
||||
|
||||
netlib_getmacaddr("eth0", mac);
|
||||
|
@ -287,15 +287,10 @@ static void nsh_netinit_configure(void)
|
||||
#endif /* CONFIG_NET_ICMPv6_AUTOCONF */
|
||||
#endif /* CONFIG_NET_IPv6 */
|
||||
|
||||
#if defined(CONFIG_NSH_DHCPC) || defined(CONFIG_NSH_DNS)
|
||||
/* Set up the resolver */
|
||||
|
||||
dns_bind();
|
||||
#if defined(CONFIG_NSH_DNS)
|
||||
addr.s_addr = HTONL(CONFIG_NSH_DNSIPADDR);
|
||||
dns_setserver(&addr);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_NSH_DHCPC)
|
||||
/* Get the MAC address of the NIC */
|
||||
|
Loading…
Reference in New Issue
Block a user