Commit Graph
166 Commits
Author SHA1 Message Date
Brian Wellington 412e5c6211 Add lwres_udp_port, so that test programs can use a different port. 2000-06-19 21:56:48 +00:00
Michael Graff aad37e39b3 protect sin6_scope_id 2000-06-16 01:44:15 +00:00
Michael Graff efe2f579ba add LWRES_CONTEXT_SERVERMODE 2000-06-15 23:48:11 +00:00
Michael Graff 3d2332d68f include <lwres/net.h> so AF_INET6 is always defined 2000-06-15 22:43:48 +00:00
Michael Graff 8313838954 Conditionalize setting of struct sockaddr_in6's sin6_scope_id member.
Some machines have it, older ipv6 flavors do not.
2000-06-15 21:52:21 +00:00
James Brister 52d06580bd Fixed handling of printing of lwres_addr_t.address field. 2000-06-15 21:34:21 +00:00
Michael Graff 2193d51910 latest patches from pr 135 2000-06-15 18:49:54 +00:00
Michael Graff 99dd8505ed Bring up to spec. Patches from pr 134, 135 2000-06-15 18:28:11 +00:00
James Brister e03329a387 253. [func] resolv.conf parser now recognises ';' and '#' as
comments (anywhere in line, not just as the beginning).

 252.   [bug]           resolv.conf parser mishandled masks on sortlists.
                        It slso aborted when an unrecognised keyword was seen,
                        now it silently ignores the entire line.
2000-06-13 17:52:58 +00:00
Andreas Gustafsson 1cad45e9cf whitespace changes in copyright message 2000-06-09 20:59:32 +00:00
Andreas Gustafsson b6007467eb style; no functional change 2000-06-08 18:37:29 +00:00
Andreas Gustafsson c062bee495 style; no functional change 2000-06-08 18:36:52 +00:00
Michael Sawyer 1378841691 Clean-room version of gai_strerror() to get rid of (C) issues. 2000-06-08 18:32:04 +00:00
David Lawrence ed71ea51c6 Silence a few more warnings:
+ missing sigwait prototype on BSD/OS 4.0/4.0.1
 + PTHREAD_ONCE_INIT unbraced initializer warnings on Solaris 2.8.
 + IN6ADDR_ANY_INIT unbraced initializer warnings on BSD/OS 4.*, Linux and
   Solaris 2.8.
2000-06-06 16:06:50 +00:00
David Lawrence 50bd180f4b lwres_gai_strerror()'s return value is massaged to remove the const qualifier,
as specified by RFC 2133.   It's still ultimately const, just not with
the qualifier.
2000-06-01 19:11:21 +00:00
David Lawrence a5e5d67faa gai_strerror is spec'd by RFC 2133 as char *, with no const qualifier.
I'll have to see about how this can be handled more suitably by the code,
but for now, the return value has been revered to not being const qualified.
2000-06-01 18:29:27 +00:00
David Lawrence 8612a0d515 gai_strerror returns const char * now; this change was (erroneously) only made
to netdb.h in my local tree, not to the file that generates it ...
2000-06-01 18:10:37 +00:00
Brian Wellington 89dabedbd0 make lwres_gai_strerror return char *, not const char *. This now matches the
prototype in include/lwres/netdb.h (which was causing a compile failure) and
the strerror man pages.
2000-06-01 18:06:31 +00:00
David Lawrence ca81c3971c Megacommit of many files.
Mostly, several functions that take pointers as arguments, almost
always char * pointers, had those pointers qualified with "const".
Those that returned pointers to previously const-qualified arguments
had their return values qualified as const.  Some structure members
were qualified as const to retain that attribute from the variables
from which they were assigned.

Minor other ISC style cleanups.
2000-06-01 17:39:26 +00:00
David Lawrence db9628e897 changed "c" stack variable from char to unsigned char to quiet Solaris 5.8
warnings that "subscript has type char".
2000-05-25 01:08:07 +00:00
David Lawrence 03a0fca86d define and use LWRES_SOCKADDR_LEN_T for recvfrom() and stop compiler warnings
by casting the sixth parameter of recvfrom() to void *, as with
lib/isc/unix/socket.c.
2000-05-24 05:22:36 +00:00
David Lawrence ed019cabc1 fixed lines > 79 columns wide 2000-05-24 05:10:00 +00:00
David Lawrence 5e09ded492 cast assignment of confdata->ndots to lwres_uint8_t (its type). it was already
being range checked.
2000-05-24 03:02:16 +00:00
David Lawrence e6ce1a0ea9 use _PLATFORM_NEEDINETIN6H 2000-05-18 22:43:48 +00:00
David Lawrence 6c6ad82aca line 454: remark(1552): variable "delim" was set but never used.
It was removed and the function call that set it (getword) was cast to void.
In the context in which it was being used, the return value was not needed.
2000-05-14 03:53:53 +00:00
David Lawrence 221aacd5ff iline 57: remark(1692): prototyped function redeclared without prototype
line 84: remark(1692): prototyped function redeclared without prototype
line 137: remark(1692): prototyped function redeclared without prototype

The missing prototypes were added.
2000-05-14 03:52:36 +00:00
David Lawrence 3e3a8b051d "lwconfig.c", line 438: remark(1506): implicit conversion from "long" to
"unsigned char":  rounding, sign extension, or loss of accuracy may
          result

Fixed by ensuring suitable range before assignment.
2000-05-14 03:34:33 +00:00
David Lawrence 80056496f0 line 307: remark(1692): prototyped function redeclared without prototype.
Fixed.
2000-05-14 03:26:31 +00:00
David Lawrence 74cf566d92 "context.c", line 195: remark(1506): implicit conversion from "unsigned int"
to "long":  rounding, sign extension, or loss of accuracy may result

Fixed by ensuring unsigned long ctx->timeout does not overflow the signed
long timeout.tv_sec.
2000-05-14 03:20:17 +00:00
David Lawrence e52750239e Changed the CPP symbol it uses from *_HAVENETINET6* to *_NEEDNETINET6*
to better clarify what is going on with regard to the symbol.
2000-05-13 18:18:08 +00:00
David Lawrence f2fdfe7c42 Silence "end-of-loop condition not reached" warnings from Solaris compiler 2000-05-10 03:33:57 +00:00
David Lawrence 47b26abe77 ensure proper range for argument to ctype functions 2000-05-09 22:22:25 +00:00
David Lawrence d03ee55286 don't try to build getnet.o, since getnet.c no longer exists 2000-05-09 15:01:15 +00:00
Mark Andrews 17d0495c33 160. [cleanup] getnet*() are not going to be implemented at this
stage.
2000-05-09 02:21:58 +00:00
David Lawrence 8764af86f7 /*
* Compilers that use an older prototype for recvfrom() will
	 * warn about the type of the sixth parameter, fromlen.  It
	 * is now standardized as unsigned, specifically as socklen_t.
	 */

(... but the code itself still uses unsigned int.  This comment was added
because HP/UX is complaining now even as other compilers stopped complaining
when it was changed from signed int to unsigned int.)
2000-05-08 19:53:50 +00:00
David Lawrence 6028d1ce03 Needs string.h for function prototypes. For some reason gcc and other
compilers do not warn about the missing str*/mem* prototypes.
2000-05-08 19:23:32 +00:00
David Lawrence 28beeb7067 fromlen changed from int to unsigned int 2000-05-08 17:57:01 +00:00
David Lawrence 1a69a1a78c Megacommit of dozens of files.
Cleanup of redundant/useless header file inclusion.

ISC style lint, primarily for function declarations and standalone
comments -- ie, those that appear on a line without any code, which
should be written as follows:
   /*
    * This is a comment.
    */
2000-05-08 14:38:29 +00:00
Andreas Gustafsson 6ba0a8a5e7 eliminated compiler warnings on alpha 2000-05-03 18:25:52 +00:00
James Brister edcd66a7dd Fixed typo. 2000-05-02 19:43:34 +00:00
Michael Graff 58ff88cca7 use 'flags' rather than 'attributes' and rename pkt->flags to pkt->pktflags 2000-05-02 18:46:44 +00:00
Michael Graff 46fb173b20 add 'attributes' flags to lwres packets 2000-05-02 18:18:45 +00:00
David Lawrence 6b7257f756 include config.h 2000-04-28 02:08:20 +00:00
Michael Graff 98e8a46972 comments from code review 2000-04-26 21:54:50 +00:00
Michael Graff a02ad3bc33 bump to more aliases and more addresses 2000-04-25 22:46:09 +00:00
Michael Graff e44487bfc2 convert sender, arg, action, etc. to ev_sender, ev_arg, ev_action, etc. 2000-04-17 19:22:44 +00:00
Bob Halley dda4bfe649 update copyrights 2000-03-23 19:52:19 +00:00
Michael Graff 915723e400 Copy addresses out, rather than keeping pointers to them from a buffer. This
simplifies code at the expense of copying more.  It is, however, the
easiest way to get sortlist working correctly.  ipv6 addresses now sort
as well.
2000-03-12 01:58:41 +00:00
Michael Graff d736db6dc5 lwres get-addr-by-name returns a linked list, not an array, of names. This
was needed to make adding the sortlist code, which will be checked in
in a few minutes.
2000-03-10 23:11:36 +00:00
Michael Graff a193a7a1f0 s/int/lwres_result_t/ 2000-02-24 00:12:40 +00:00