From: Lei Xia Date: Wed, 13 Aug 2008 20:12:50 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: vmmhack1-ramdisk-boot-iso-puppy~1 X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=commitdiff_plain;h=d11d67ed4a0554803379bfc13002fa2ec0e14cb5;hp=86c94f9d9d98acdd2f057a35ce97f571742a4ecf;p=palacios.git *** empty log message *** --- diff --git a/palacios/src/net/resolv.c b/palacios/src/net/resolv.c index 51aacba..cdf1d81 100644 --- a/palacios/src/net/resolv.c +++ b/palacios/src/net/resolv.c @@ -56,7 +56,7 @@ * * This file is part of the uIP TCP/IP stack. * - * $Id: resolv.c,v 1.1 2008/08/06 23:21:19 andrewlxia Exp $ + * $Id: resolv.c,v 1.2 2008/08/13 20:12:50 andrewlxia Exp $ * */ @@ -133,6 +133,33 @@ static u8_t seqno; static struct uip_udp_conn *resolv_conn = NULL; +int appcall(void){ //for UIP_APPCALL, referred in uip-conf.h + + return 0; +} + +void uip_log(char *msg) //you should replace this by your own log function +{ + //PrintDebug("\nuIP log:"); + //PrintDebug(msg); +} + + +/** + * Callback function which is called when a hostname is found. + * + * This function must be implemented by the module that uses the DNS + * resolver. It is called when a hostname is found, or when a hostname + * was not found. + * + * \param name A pointer to the name that was looked up. \param + * ipaddr A pointer to a 4-byte array containing the IP address of the + * hostname, or NULL if the hostname could not be found. + */ +void resolv_found(char *name, u16_t *ipaddr){ + +} + /*---------------------------------------------------------------------------*/ /** \internal * Walk through a compact encoded DNS name and return the end of it.