History log of /netbsd-src/lib/libc/net/getnetnamadr.c (Results 1 – 25 of 45)
Revision Date Author Comments
# d06dd93f 05-Jun-2020 nia <nia@NetBSD.org>

Remove more bogus tests for 64-bit i386 and SuperH.

These are always false.


# 4dddbc1f 26-Oct-2015 christos <christos@NetBSD.org>

put the state back after it is used.


# 208f1289 26-Oct-2015 christos <christos@NetBSD.org>

PR/50367: Stefan Schaeckeler: Apply fix to obey RES_CHECKNAME to getnetbyaddr
and getnetbyname.


# c5e820ca 13-Mar-2012 christos <christos@NetBSD.org>

PR/45989: Martin Husemann: lint invocation does include -w only on i386

- turn lint -w for all the platforms after fixing the lint warnings.
- add _DIAGASSERTS() for casts that would assign values t

PR/45989: Martin Husemann: lint invocation does include -w only on i386

- turn lint -w for all the platforms after fixing the lint warnings.
- add _DIAGASSERTS() for casts that would assign values to types that
would not fit.
- change types, add casts
- change into ansii prototypes
- turn on _DIAGNOSTIC for libc (during current, to be eliminated for release
builds)

approved by core@

show more ...


# edf03256 18-May-2008 lukem <lukem@NetBSD.org>

Fix possible memory leak in error path.
Part of PR 38677.


# 2713f767 08-May-2008 lukem <lukem@NetBSD.org>

Convert getnetbyname(3) and getnetbyaddr(3) to the more "standard"
nsdispatch() backend method API.


# d8aac843 08-May-2008 lukem <lukem@NetBSD.org>

Fix a misuse of an automatic as a static that was exposed by the previous.


# 6e5e2748 08-May-2008 lukem <lukem@NetBSD.org>

Fix DNS getnetbyname(), which has been broken for at least 5.5 years
(if not longer).


# efba316d 27-Jan-2007 christos <christos@NetBSD.org>

Appropriate versions are not supplied by bind anymore.


# d73eb73d 27-Jan-2007 christos <christos@NetBSD.org>

merge in resolver portion of bind-9.4.0-rc2


# ce2c90c7 15-Oct-2006 christos <christos@NetBSD.org>

fix incomplete initializers


# 6a8419e3 18-Sep-2006 tsutsui <tsutsui@NetBSD.org>

Change type of `net' variable passed via va_list in
_{files,dns,yp}_getenetbyaddr() functions from unsigned long to uint32_t.
In rev 1.29, getnetbyaddr(3) was changed to take uint32_t `net' argument

Change type of `net' variable passed via va_list in
_{files,dns,yp}_getenetbyaddr() functions from unsigned long to uint32_t.
In rev 1.29, getnetbyaddr(3) was changed to take uint32_t `net' argument
and also passisng uint32_t `net' to nsdispatch(3) varargs, but
these callback functions were not changed accordingly.

Patch was provided by christos, and this fixes amd(8) coredumps on alpha
when /etc/nsswitch.conf has more than one sources for netgroups.

show more ...


# f44127c4 17-Mar-2006 ginsbach <ginsbach@NetBSD.org>

Fix Coverity issue 2281, resource leak, function return without freeing
dynamically allocated storage.


# 2f0fdfa7 01-Jun-2005 lukem <lukem@NetBSD.org>

Move the test for "more strict reverse lookup handling" to the correct
location so that an uninitialized `in' won't be used if net_i == BYADDR.
Detected with gcc -Wuninitialized, confirmed by diffing

Move the test for "more strict reverse lookup handling" to the correct
location so that an uninitialized `in' won't be used if net_i == BYADDR.
Detected with gcc -Wuninitialized, confirmed by diffing against BIND 4.9.11.
(The bug was introduced in rev 1.26. Hi Itojun! :)

show more ...


# 13cc3543 23-May-2004 christos <christos@NetBSD.org>

centralize res_*init() calls in __res_get_state()


# d14c1915 21-May-2004 christos <christos@NetBSD.org>

Finish bind9 resolver merge.


# 8d54bc18 08-May-2004 kleink <kleink@NetBSD.org>

struct netnet.n_net used to be an unsigned long integer.

In XNS5, and subsequently in POSIX-2001 it was changed to socklen_t.

To accomodate for this while preserving binary compatibility with the
o

struct netnet.n_net used to be an unsigned long integer.

In XNS5, and subsequently in POSIX-2001 it was changed to socklen_t.

To accomodate for this while preserving binary compatibility with the
old interface, prepend or append 32 bits of padding, depending on
the (LP64 data model) architecture's endianness. Fixes PR
standards/21411 from Ben Harris.

This should be deleted the next time the libc major number is
incremented.

Also, update getnetbyaddr(3)'s `net' argument accordingly.

show more ...


# b763e098 29-Jan-2004 lukem <lukem@NetBSD.org>

Use the correct parameters when building the YP map name in _yp_getnetbyaddr().
Fixes getnetbyaddr() when reading from YP. From Brian Ginsbach in email.


# eb7c1594 07-Aug-2003 agc <agc@NetBSD.org>

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22280, verified by myself.


# 095b0375 14-Nov-2002 itojun <itojun@NetBSD.org>

pull in changes in http://www.isc.org/products/BIND/patches/bind4910.diff
- better error check on __dn_skipname
- more strict reverse lookup handling


# d7ec2d59 13-Nov-2002 itojun <itojun@NetBSD.org>

fix remote buffer overrun. from openbsd tree (1997).


# 62f36ff8 27-Aug-2002 itojun <itojun@NetBSD.org>

allocate 64K recieve buffer for DNS responses.


# 5c323232 16-Aug-2002 itojun <itojun@NetBSD.org>

eliminate sprintf, use snprintf. check strlcat error.


# 092b3bc6 26-Jun-2002 itojun <itojun@NetBSD.org>

avoid remote buffer overrun on hostbuf[]. From: Joost Pol <joost@pine.nl>

correct bad practice in the code - it uses two changing variables
to manage buffer (buf and buflen). we eliminate buflen a

avoid remote buffer overrun on hostbuf[]. From: Joost Pol <joost@pine.nl>

correct bad practice in the code - it uses two changing variables
to manage buffer (buf and buflen). we eliminate buflen and use
fixed point (ep) as the ending pointer.

this fix is critical.

show more ...


# e3e4fede 26-May-2002 wiz <wiz@NetBSD.org>

__STDC__ is always defined on NetBSD.


12