aboutsummaryrefslogtreecommitdiffstats
path: root/com32/libupload
diff options
context:
space:
mode:
authorPaulo Alcantara <pcacjr@zytor.com>2012-05-04 02:17:46 -0300
committerPaulo Alcantara <pcacjr@zytor.com>2012-05-12 00:56:22 -0300
commit6aba981cd9310bae94587d3e51106261bf0e27b9 (patch)
tree46359ec76905f68643122469d255f62e345d6289 /com32/libupload
parent289cc36d32e57d28d5070e975101d37cd96580f2 (diff)
downloadsyslinux-6aba981cd9310bae94587d3e51106261bf0e27b9.tar.gz
syslinux-6aba981cd9310bae94587d3e51106261bf0e27b9.tar.xz
syslinux-6aba981cd9310bae94587d3e51106261bf0e27b9.zip
pxe: resolve names via DNS from protected-mode code
Syslinux used to call __intcall() for calling routines of the old COMBOOT API to resolve names via DNS (INT 22h, AX=0x0010) that seemed pointless, since INT 22h, AX=0x0010 does call the protected-mode function pm_pxe_resolv_dns() when calling INT 22h, AX=0x0010. So, for resolving names via DNS we must call pxe_dns_resolv() (a protected-mode function) instead for now. Signed-off-by: Paulo Alcantara <pcacjr@zytor.com>
Diffstat (limited to 'com32/libupload')
-rw-r--r--com32/libupload/upload_tftp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/com32/libupload/upload_tftp.c b/com32/libupload/upload_tftp.c
index 5e73c1c5..10427ace 100644
--- a/com32/libupload/upload_tftp.c
+++ b/com32/libupload/upload_tftp.c
@@ -153,7 +153,7 @@ static int upload_tftp_write(struct upload_backend *be)
tftp.seq = 0;
if (be->argv[1]) {
- tftp.srv_ip = pxe_dns(be->argv[1]);
+ tftp.srv_ip = pxe_dns_resolv(be->argv[1]);
if (!tftp.srv_ip) {
// printf("\nUnable to resolve hostname: %s\n", be->argv[1]);
return -TFTP_ERR_UNABLE_TO_RESOLVE;