summaryrefslogtreecommitdiffstats
path: root/src/tests/resolve/resolve.c
Commit message (Collapse)AuthorAgeFilesLines
* Make dejagnu tests work with non-FQDN hostnameGreg Hudson2011-09-011-23/+0
| | | | | | | | By making an entry for $hostname in [domain_realm], we can relax the requirement that the canonicalized local hostname must have a parent domain. This makes the test suite work more easily on Fedora. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25124 dc483132-0cff-0310-8789-dd5450dbe970
* Adjust most C source files to match the new standards for copyrightGreg Hudson2011-03-091-4/+4
| | | | | | and license comments. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24695 dc483132-0cff-0310-8789-dd5450dbe970
* allow testing even if name->addr->name mapping doesn't workKen Raeburn2009-12-031-8/+21
| | | | | | | | | | | | | | | Many of the tests are set up to fail if the local hostname can't be mapped to an address and back to a name again. If the name results in an address, and we can get a fully-qualified name or something that looks like it, though, we should be able to just go ahead and run some tests. This is also closer to the current behavior of sname_to_principal when reverse DNS is enabled. ticket: 6590 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23439 dc483132-0cff-0310-8789-dd5450dbe970
* Mark and reindent tests, with some exclusionsTom Yu2009-11-301-90/+91
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23394 dc483132-0cff-0310-8789-dd5450dbe970
* make mark-cstyleTom Yu2009-10-311-14/+12
| | | | | | make reindent git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23100 dc483132-0cff-0310-8789-dd5450dbe970
* include netinet/in.h to make sure we know what struct in_addr looks likeKen Raeburn2009-01-281-0/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21820 dc483132-0cff-0310-8789-dd5450dbe970
* Use a struct in_addr to insure alignment of address - instead ofEzra Peisach2009-01-251-3/+3
| | | | | | | | | | random alignment on the stack. Solaris 2.10 has issues if the address is not aligned. The rest of the code in the tree uses a struct in_addr or mallocs the address - which will be sufficiently aligned. ticket: 6308 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21794 dc483132-0cff-0310-8789-dd5450dbe970
* Include autoconf.hKen Raeburn2007-03-251-0/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19273 dc483132-0cff-0310-8789-dd5450dbe970
* * resolve.c (main): If gethostbyname fails, report the failing hostnameKen Raeburn2003-07-221-1/+3
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15711 dc483132-0cff-0310-8789-dd5450dbe970
* * resolve.c: Include stdlib.h (if present) for exit() prototypeEzra Peisach2001-07-061-0/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13581 dc483132-0cff-0310-8789-dd5450dbe970
* * resolve.c (main): Make error message note that misconfigurationTom Yu2001-06-121-2/+13
| | | | | | | of /etc/hosts, as well as problems with resolver library, are all likely to cause failure. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13343 dc483132-0cff-0310-8789-dd5450dbe970
* copyright notice updates from 1.1 branchKen Raeburn1999-09-241-1/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11853 dc483132-0cff-0310-8789-dd5450dbe970
* * resolve.c: Include unistd.h if present on system (forEzra Peisach1998-03-301-1/+4
| | | | | | gethostname prototype). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10505 dc483132-0cff-0310-8789-dd5450dbe970
* resolve.c (main): Make the test for a FQDN be a bit more stringentTheodore Tso1997-02-241-1/+7
| | | | | | | Makefile.in (resolve): The resolve program doesn't need to be linked against the Kerberos library. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9967 dc483132-0cff-0310-8789-dd5450dbe970
* Fix fencepost error; use argv[1] to test for a specfied host if argcTheodore Tso1995-09-131-1/+1
| | | | | | is >= 1, not just > 1. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6775 dc483132-0cff-0310-8789-dd5450dbe970
* Add --quiet option which only prints the fully qualified domain name.Theodore Tso1995-05-021-7/+25
| | | | | | | This will allow this routine to be used in the deja gnu tests to determine the FQDN of the local host. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5679 dc483132-0cff-0310-8789-dd5450dbe970
* * resolve.c (main): copy the address sent back by gethostbynameMark Eichin1995-04-261-3/+7
| | | | | | | before calling gethostbyaddr, since the return is *static*. (main): reindent declaration to make add-change-log-entry happy. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5483 dc483132-0cff-0310-8789-dd5450dbe970
* Added Ezra's test to see if you have a buggy resolver or notTheodore Tso1995-03-011-0/+119
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5041 dc483132-0cff-0310-8789-dd5450dbe970