pike.git / lib / modules / Protocols.pmod / DNS.pmod

version» Context lines:

pike.git/lib/modules/Protocols.pmod/DNS.pmod:1: - // $Id: DNS.pmod,v 1.100 2008/07/24 16:04:20 grubba Exp $ + // $Id: DNS.pmod,v 1.101 2009/03/16 14:09:54 grubba Exp $   // Not yet finished -- Fredrik Hubinette      //! Domain Name System   //! RFC 1034, RFC 1035 and RFC 2308   //!      #pike __REAL_VERSION__      final constant NOERROR=0;   final constant FORMERR=1;
pike.git/lib/modules/Protocols.pmod/DNS.pmod:754: Inside #if defined(__NT__) and #if constant(RegGetKeyNames)
   "Parameters\\Interfaces"), string key)    {    catch {    res += ({ RegGetValue(HKEY_LOCAL_MACHINE,    "SYSTEM\\CurrentControlSet\\Services\\Tcpip\\"    "Parameters\\Interfaces\\" + key, val) });    };    }    };   #endif +  res -= ({ UNDEFINED });    return sizeof(res) ? res : ({ fallbackvalue });    }      #else /* !__NT__ */       protected private mapping(string:string) etc_hosts;       protected private int is_ip(string ip)    {    // FIXME: Doesn't work with IPv6