Mark Andrews
3a6eda3188
fix bad hand pullup
2005-06-08 02:35:21 +00:00
Mark Andrews
c222f039d7
update copyright notice
2005-06-08 00:13:16 +00:00
Mark Andrews
f577cb3639
1866. [bug] resolv.conf parse errors were being ignored by
...
dig/host/nslookup. [RT #14841 ]
1865. [bug] Silently ignore nameservers in /etc/resolv.conf with
bad addresses. [RT #14841 ]
2005-06-07 01:00:19 +00:00
Mark Andrews
347c832469
update copyrights
2004-03-08 09:05:15 +00:00
Mark Andrews
cbdd3a318b
update lib copyrights
2004-03-06 08:15:48 +00:00
Mark Andrews
330673ab12
sync with HEAD
2003-10-10 06:34:10 +00:00
Mark Andrews
388732593d
cleanup spaces before semicolons.
2003-09-24 03:47:21 +00:00
Mark Andrews
57b54234cd
sizeof style
2003-09-11 00:18:18 +00:00
Mark Andrews
c1df871a18
silence compiler warnings (HPUX/11i)
2003-07-23 06:57:59 +00:00
Andreas Gustafsson
34729dbcb3
split lwres/net.h into separate Unix and Win32 version to facilitate
...
porting; rely on that header for networking definitions rather than redundantly
including OS-dependent headers from the various lwres .c files
2001-07-10 18:26:12 +00:00
David Lawrence
ae6860081f
a different fix for the lwres_net_aton problem in lwres_create_addr, that
...
addresses any alignment issues that might have existed with casting
an unsigned char pointer to a struct pointer.
2001-04-12 22:45:12 +00:00
David Lawrence
7944c8c5f7
case unsigned char addrbuf pointer to struct in_addr * when used as second
...
argument to lwres_net_aton, to quiet compiler warning
2001-04-12 20:23:48 +00:00
Brian Wellington
7b1ab9e210
don't do 0.0.0.0 -> 127.0.0.1 conversion for netmasks.
2001-04-02 23:05:14 +00:00
Brian Wellington
765eb27068
call inet_aton, not inet_pton when parsing resolv.conf
2001-04-02 22:33:31 +00:00
Brian Wellington
ac3f9fa1ec
remove unnecessary #includes
2001-03-06 23:02:04 +00:00
Brian Wellington
ea6709ec8a
702. [func] If the address 0.0.0.0 is seen in resolv.conf,
...
use 127.0.0.1 instead. [RT #693 ]
2001-01-23 00:41:55 +00:00
Brian Wellington
499b34cea0
copyright update
2001-01-09 22:01:04 +00:00
Brian Wellington
8f80322fb5
Support for lwresd on addresses other than 127.0.0.1.
2000-10-05 22:27:54 +00:00
David Lawrence
40f53fa8d9
Trailing whitespace trimmed. Perhaps running "perl util/spacewhack.pl in your
...
own CVS tree will help minimize CVS conflicts. Maybe not.
Blame Graff for getting me to trim all trailing whitespace.
2000-08-01 01:33:37 +00:00
David Lawrence
15a4474541
word wrap copyright notice at column 70
2000-07-27 09:55:03 +00:00
Brian Wellington
d8c8722f28
313. [bug] When parsing resolv.conf, don't terminate on an
...
error. Instead, parse as much as possible, but
still return an error if one was found.
2000-07-07 18:58:46 +00:00
Brian Wellington
03968c0f5e
removed dead code
2000-07-07 18:28:58 +00:00
Brian Wellington
4b7167e96a
312. [bug] Increase the number of allowed elements in the
...
resolv.conf search path from 6 to 8. If there
are more than this, ignore the remainder rather
than returning a failure in lwres_conf_parse.
2000-07-07 18:24:11 +00:00
Brian Wellington
a4b496f2ab
311. [bug] lwres_conf_parse failed when the first line of
...
resolv.conf was empty or a comment.
2000-07-07 18:16:46 +00:00
Brian Wellington
23ce1c7cca
Lots of the comments were wrong.
2000-07-06 20:05:13 +00:00
Brian Wellington
e2894b0e50
304. [bug] If more than LWRES_CONFMAXNAMESERVERS servers
...
are listed in resolv.conf, silently ignore them
instead of returning failure.
2000-07-03 20:13:12 +00:00
Brian Wellington
6f4317150b
remove dead code
2000-06-27 00:24:27 +00:00
David Lawrence
9c3531d72a
add RCS id string
2000-06-22 22:00:42 +00:00
Michael Graff
3d2332d68f
include <lwres/net.h> so AF_INET6 is always defined
2000-06-15 22:43:48 +00:00
James Brister
52d06580bd
Fixed handling of printing of lwres_addr_t.address field.
2000-06-15 21:34:21 +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
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
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
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
47b26abe77
ensure proper range for argument to ctype functions
2000-05-09 22:22:25 +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
Michael Graff
36bc67f257
more formatting nits
2000-02-18 03:52:34 +00:00
Michael Graff
9ca3879f71
formatting nits, and make 'search' work.
2000-02-18 01:09:36 +00:00
Bob Halley
f9c8626738
lint
2000-02-16 18:51:08 +00:00
James Brister
ffbec84459
resolv.conf parsing routines.
2000-02-16 17:38:28 +00:00