aboutsummaryrefslogtreecommitdiffstats
path: root/epan/addr_resolv.c
AgeCommit message (Collapse)AuthorFilesLines
2005-05-20add get_manuf_name_if_known (returns NULL if unknown) in addition to ↵Ulf Lamping1-0/+17
get_manuf_name svn path=/trunk/; revision=14405
2005-05-12Always set "*success" in "ipxnet_addr_lookup()" before returning (thanksGuy Harris1-3/+5
and a tip of the hat to GCC 4.0's interprocedural data flow analysis for catching this one!). svn path=/trunk/; revision=14353
2005-03-24Plug some more small leaks.Guy Harris1-0/+1
svn path=/trunk/; revision=13889
2005-02-22From Francisco Alcoba:Luis Ontanon1-21/+57
changed the behaviour of get_addr_name: - resolve to a name if the address supports it - call address_to_str if it does not, but the address is valid - return "NONE" if it is AT_NONE svn path=/trunk/; revision=13463
2005-01-17Fix a typo in the previous checkin.Guy Harris1-1/+1
svn path=/trunk/; revision=13090
2005-01-17Use WINDIR rather than SYSTEMROOT - WINDIR is apparently set on WindowsGuy Harris1-29/+16
OT as well as NT, while SYSTEMROOT isn't. If it's not set, don't bother looking for the hosts file, rather than trying a path with a fixed drive letter. If it is set, try the Windows NT location first and, if that fails, the Windows OT location. svn path=/trunk/; revision=13088
2005-01-13Add support for a personal hosts file.Guy Harris1-15/+27
Clean up the description of the global and personal ethers and ipxnets files. svn path=/trunk/; revision=13017
2005-01-07Put back the declaration of hostspath on Windows.Guy Harris1-0/+1
svn path=/trunk/; revision=12976
2005-01-07Move the open and close of the hosts file into "read_hosts_file()".Guy Harris1-18/+42
On Windows, if we don't get the SYSTEMROOT environment variable, try various locations where the hosts file is known to exist. svn path=/trunk/; revision=12972
2005-01-07Check return value of getenv(). Lars Roland1-3/+7
It can return NULL, which would lead here to strcpy(hostspath, NULL); *Very* bad. replace g_malloc(), strcpy() and strcat() with one single g_strconcat(). svn path=/trunk/; revision=12970
2004-12-30Add a "get_addr_name()" routine that takes an "address *" and attemptsGuy Harris1-0/+26
to resolve it to a name. Fix up some const-pointer-to-non-const-pointer, and function-pointer-to-void-*, conversions. Fix some comments. svn path=/trunk/; revision=12863
2004-12-27Again, some warnings removed.Ulf Lamping1-1/+5
svn path=/trunk/; revision=12842
2004-11-21removed an MSVC warningUlf Lamping1-0/+2
svn path=/trunk/; revision=12561
2004-11-17Fix some problems when compiling on Windows and when compiling onGuy Harris1-3/+3
systems where INET6 isn't defined. svn path=/trunk/; revision=12541
2004-11-17Don't assume that IPv6 addresses are aligned on 32-bit boundaries.Guy Harris1-1/+2
svn path=/trunk/; revision=12540
2004-11-17Add a hash table for IPv6 addresses, and add an "add_ipv6_name()"Guy Harris1-13/+105
routine to add IPv6-address/name pairings to that table; use that when reading the hosts file. svn path=/trunk/; revision=12537
2004-11-17Rename some routines and structures to reflect that they're specific toGuy Harris1-34/+46
IPv4; use different data structures for port numbers. svn path=/trunk/; revision=12536
2004-11-17Based on code from Francisco Alcoba, read the hosts file on startup ifGuy Harris1-3/+79
we're using ADNS, so that we can resolve host names from the hosts file as well as from DNS. "fgetline()" strips newlines from the line, so don't bother looking for them when tokenizing the line. svn path=/trunk/; revision=12534
2004-11-10fix a typoUlf Lamping1-1/+1
svn path=/trunk/; revision=12502
2004-11-10Don't shut down GNU ADNS if it wasn't initialized.Guy Harris1-1/+2
svn path=/trunk/; revision=12501
2004-11-10Check for errors in "adns_init()", and don't enable ADNS if we get anGuy Harris1-3/+17
error in "adns_init()". (I suspect this is what's causing the crashes somebody's seeing when they run Ethereal on a Windows system with no networking protocols installed - no networking protocols -> no Internet protocols probably -> no ability to set ADNS up.) svn path=/trunk/; revision=12500
2004-10-06Give some more details on the hang in RH 9.Guy Harris1-1/+3
svn path=/trunk/; revision=12214
2004-10-05Turn off the longjmping stuff when doing name lookups - it appears toGuy Harris1-10/+18
cause problems on RH9 when using ADNS, too. svn path=/trunk/; revision=12209
2004-09-27Move prefs.c and prefs.h into the epan subdirectory.Guy Harris1-1/+1
svn path=/trunk/; revision=12115
2004-09-11Use _WIN32 rather than WIN32 to determine if we're compiling on Win32;Guy Harris1-2/+2
according to Gisle Vanem, WIN32 isn't a built-in in MSVC, but _WIN32 is. svn path=/trunk/; revision=11972
2004-08-09Merge the "resolv" rename changes with the trunk.Gerald Combs1-1/+1
svn path=/trunk/; revision=11638
2004-08-06From Albert Chin: rename resolv.{ch} to addr_resolv.{ch}, so that anGuy Harris1-0/+1915
include of <resolv.h> in any system header file gets the system <resolv.h> (needed for builds on Tru64 with GTK+ 1.2[.x]). svn path=/trunk/; revision=11615