diff options
Diffstat (limited to 'com32/samples/resolv.c')
-rw-r--r-- | com32/samples/resolv.c | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/com32/samples/resolv.c b/com32/samples/resolv.c index bd49d9f9..f4a0e52a 100644 --- a/com32/samples/resolv.c +++ b/com32/samples/resolv.c @@ -16,6 +16,7 @@ * Resolve an IP address */ +#include <syslinux/pxe_api.h> #include <string.h> #include <stdio.h> #include <console.h> @@ -24,21 +25,7 @@ uint32_t resolv(const char *name) { - com32sys_t reg; - - strcpy((char *)__com32.cs_bounce, name); - - memset(®, 0, sizeof reg); - reg.eax.w[0] = 0x0010; - reg.ebx.w[0] = OFFS(__com32.cs_bounce); - reg.es = SEG(__com32.cs_bounce); - - __intcall(0x22, ®, ®); - - if (reg.eflags.l & EFLAGS_CF) - return 0; - else - return reg.eax.l; + return dns_resolv(name); } int main(int argc, char *argv[]) |