1 /* 2 * iphlpapi dll implementation -- Setting and storing route information 3 * 4 * These are stubs for functions that set routing information on the target 5 * operating system. They are grouped here because their implementation will 6 * vary widely by operating system. 7 * 8 * Copyright (C) 2004 Art Yerkes 9 * This library is free software; you can redistribute it and/or 10 * modify it under the terms of the GNU Lesser General Public 11 * License as published by the Free Software Foundation; either 12 * version 2.1 of the License, or (at your option) any later version. 13 * 14 * This library is distributed in the hope that it will be useful, 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 17 * Lesser General Public License for more details. 18 * 19 * You should have received a copy of the GNU Lesser General Public 20 * License along with this library; if not, write to the Free Software 21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 22 */ 23 24 #include "config.h" 25 #include "iphlpapi_private.h" 26 27 #include <stdarg.h> 28 #include <stdlib.h> 29 #include <sys/types.h> 30 #ifdef HAVE_NETINET_IN_H 31 # include <netinet/in.h> 32 #endif 33 #ifdef HAVE_ARPA_INET_H 34 # include <arpa/inet.h> 35 #endif 36 #ifdef HAVE_ARPA_NAMESER_H 37 # include <arpa/nameser.h> 38 #endif 39 #ifdef HAVE_RESOLV_H 40 # include <resolv.h> 41 #endif 42 43 #include "windef.h" 44 #include "winbase.h" 45 #include "winreg.h" 46 #include "resinfo.h" 47 #include "iphlpapi.h" 48 #include "wine/debug.h" 49 50 WINE_DEFAULT_DEBUG_CHANNEL(iphlpapi); 51 52 IPHLP_RES_INFO ResInfo; 53 54 PIPHLP_RES_INFO getResInfo() { 55 ResInfo.riCount = _res.nscount; 56 ResInfo.riAddressList = _res.nsaddr_list; 57 return &ResInfo; 58 } 59 60 VOID disposeResInfo( PIPHLP_RES_INFO InfoPtr ) { 61 } 62