diff options
Diffstat (limited to 'core/fs/pxe')
-rw-r--r-- | core/fs/pxe/dnsresolv.c | 12 | ||||
-rw-r--r-- | core/fs/pxe/pxe.c | 2 |
2 files changed, 2 insertions, 12 deletions
diff --git a/core/fs/pxe/dnsresolv.c b/core/fs/pxe/dnsresolv.c index afb9e219..26c5b34b 100644 --- a/core/fs/pxe/dnsresolv.c +++ b/core/fs/pxe/dnsresolv.c @@ -88,7 +88,7 @@ static bool parse_dotquad(const char *ip_str, uint32_t *res) * _ip_ if it exists and can be found. If _ip_ = 0 on exit, the * lookup failed. _name_ will be updated */ -__export uint32_t dns_resolv(const char *name) +__export uint32_t pxe_dns(const char *name) { err_t err; struct ip_addr ip; @@ -122,13 +122,3 @@ __export uint32_t dns_resolv(const char *name) return ip.addr; } - -/* - * the one should be called from ASM file - */ -void pm_pxe_dns_resolv(com32sys_t *regs) -{ - const char *name = MK_PTR(regs->ds, regs->esi.w[0]); - - regs->eax.l = dns_resolv(name); -} diff --git a/core/fs/pxe/pxe.c b/core/fs/pxe/pxe.c index 5efcd9c6..9b1a7329 100644 --- a/core/fs/pxe/pxe.c +++ b/core/fs/pxe/pxe.c @@ -241,7 +241,7 @@ static void url_set_ip(struct url_info *url) { url->ip = 0; if (url->host) - url->ip = dns_resolv(url->host); + url->ip = pxe_dns(url->host); if (!url->ip) url->ip = IPInfo.serverip; } |