The NetBSD Project

CVS log for src/lib/libc/net/gethnamaddr.c

[BACK] Up to [cvs.NetBSD.org] / src / lib / libc / net

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.92.18.1 / (download) - annotate - [select for diffs], Sun Nov 29 11:25:31 2020 UTC (13 months, 3 weeks ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-2-RELEASE
Changes since 1.92: +3 -3 lines
Diff to previous 1.92 (colored) next main 1.93 (colored)

Pull up following revision(s) (requested by is in ticket #1135):

	lib/libc/net/getaddrinfo.c: revision 1.120
	lib/libc/net/gethnamaddr.c: revision 1.93
	include/arpa/nameser_compat.h: revision 1.8

Don't complain about additional DNAME records received when resolving A or
AAAA (like already done for SIG/KEY and CNAME).

Revision 1.92.8.1 / (download) - annotate - [select for diffs], Sun Nov 29 11:18:54 2020 UTC (13 months, 3 weeks ago) by martin
Branch: netbsd-8
Changes since 1.92: +3 -3 lines
Diff to previous 1.92 (colored) next main 1.93 (colored)

Pull up following revision(s) (requested by is in ticket #1625):

	lib/libc/net/getaddrinfo.c: revision 1.120
	lib/libc/net/gethnamaddr.c: revision 1.93
	include/arpa/nameser_compat.h: revision 1.8

Don't complain about additional DNAME records received when resolving A or
AAAA (like already done for SIG/KEY and CNAME).

Revision 1.93 / (download) - annotate - [select for diffs], Wed Nov 18 12:49:52 2020 UTC (14 months ago) by is
Branch: MAIN
CVS Tags: cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, HEAD
Changes since 1.92: +3 -3 lines
Diff to previous 1.92 (colored)

Don't complain about additional DNAME records received when resolving A or
AAAA (like already done for SIG/KEY and CNAME).

Revision 1.77.4.3 / (download) - annotate - [select for diffs], Tue Jun 21 19:39:25 2016 UTC (5 years, 7 months ago) by snj
Branch: netbsd-6
Changes since 1.77.4.2: +5 -6 lines
Diff to previous 1.77.4.2 (colored) to branchpoint 1.77 (colored) next main 1.78 (colored)

Pull up following revision(s) (requested by buhrow in ticket #1085):
	src/lib/libc/net/gethnamaddr.c: patch
Fix parsing of /etc/hosts.  PR lib/48926.

Revision 1.92 / (download) - annotate - [select for diffs], Tue Sep 22 16:16:02 2015 UTC (6 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, phil-wifi, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-9-base, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, is-mlppp-base, is-mlppp, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: netbsd-9, netbsd-8
Changes since 1.91: +19 -16 lines
Diff to previous 1.91 (colored)

- fix various leaks on error
- don't use the wrong error variable in switch
- always set the error return code
- return consistent errors when the input data cannot be handled.

Revision 1.79.2.1 / (download) - annotate - [select for diffs], Wed Aug 20 00:02:15 2014 UTC (7 years, 5 months ago) by tls
Branch: tls-maxphys
Changes since 1.79: +446 -534 lines
Diff to previous 1.79 (colored) next main 1.80 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.90.2.1 / (download) - annotate - [select for diffs], Sun Aug 10 06:51:50 2014 UTC (7 years, 5 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.90: +52 -51 lines
Diff to previous 1.90 (colored) next main 1.91 (colored)

Rebase.

Revision 1.91 / (download) - annotate - [select for diffs], Thu Jun 19 15:08:18 2014 UTC (7 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7
Changes since 1.90: +52 -51 lines
Diff to previous 1.90 (colored)

use fparseln() instead of abusing fgetln(), so that the last line that
might not have a terminating newline is processed.

Revision 1.77.2.3 / (download) - annotate - [select for diffs], Thu May 22 11:36:53 2014 UTC (7 years, 8 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.77.2.2: +418 -507 lines
Diff to previous 1.77.2.2 (colored) to branchpoint 1.77 (colored) next main 1.78 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.90 / (download) - annotate - [select for diffs], Fri Jan 24 17:26:18 2014 UTC (8 years ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base9, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3
Branch point for: tls-earlyentropy
Changes since 1.89: +7 -10 lines
Diff to previous 1.89 (colored)

CID 1163170, 1164171, resource leak
CID 1161172 double free

Revision 1.89 / (download) - annotate - [select for diffs], Fri Jan 17 12:39:47 2014 UTC (8 years ago) by drochner
Branch: MAIN
Changes since 1.88: +5 -5 lines
Diff to previous 1.88 (colored)

fix memory allocation, and an off-by-one

Revision 1.88 / (download) - annotate - [select for diffs], Fri Jan 17 02:08:44 2014 UTC (8 years ago) by christos
Branch: MAIN
Changes since 1.87: +2 -4 lines
Diff to previous 1.87 (colored)

the addition is handled in the alias.

Revision 1.87 / (download) - annotate - [select for diffs], Fri Jan 17 02:03:44 2014 UTC (8 years ago) by christos
Branch: MAIN
Changes since 1.86: +23 -29 lines
Diff to previous 1.86 (colored)

Move more code into the macro, and fix the bug where realloc would cause
a dangling pointer and memory corruption.

Revision 1.86 / (download) - annotate - [select for diffs], Thu Jan 16 20:59:21 2014 UTC (8 years ago) by christos
Branch: MAIN
Changes since 1.85: +53 -17 lines
Diff to previous 1.85 (colored)

Remove MAXALIASES limit

Revision 1.73.18.3 / (download) - annotate - [select for diffs], Mon Dec 23 23:12:44 2013 UTC (8 years, 1 month ago) by riz
Branch: netbsd-5
Changes since 1.73.18.2: +10 -7 lines
Diff to previous 1.73.18.2 (colored) to branchpoint 1.73 (colored) next main 1.74 (colored)

Apply patch (requested by bad in ticket #1887):

src/lib/libc/net/getaddrinfo.c r1.106:
this is supposed to be re-entrant, call don't call __hostalias that uses
a static buffer.

src/lib/libc/net/gethnamaddr.c r1.85:
- don't clobber hp in the RES_USE_INET6 case
- increment naddrs in the yp case
- don't use __hostalias(), it is not thread-safe.

This should finish addressing PR lib/46454

Revision 1.77.4.2 / (download) - annotate - [select for diffs], Mon Dec 23 22:56:48 2013 UTC (8 years, 1 month ago) by riz
Branch: netbsd-6
Changes since 1.77.4.1: +10 -7 lines
Diff to previous 1.77.4.1 (colored) to branchpoint 1.77 (colored)

Apply additional patches (requested by bad in ticket #975):

src/lib/libc/net/getaddrinfo.c r1.106:
this is supposed to be re-entrant, call don't call __hostalias that uses
a static buffer.

src/lib/libc/net/gethnamaddr.c r1.85:
- don't clobber hp in the RES_USE_INET6 case
- increment naddrs in the yp case
- don't use __hostalias(), it is not thread-safe.

Fixes additional issues in PR lib/46454

Revision 1.85 / (download) - annotate - [select for diffs], Sun Dec 22 02:45:16 2013 UTC (8 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.84: +10 -7 lines
Diff to previous 1.84 (colored)

- don't clobber hp in the RES_USE_INET6 case
- increment naddrs in the yp case
- don't use __hostalias(), it is not thread-safe.

Revision 1.73.18.2 / (download) - annotate - [select for diffs], Thu Dec 19 08:11:45 2013 UTC (8 years, 1 month ago) by bouyer
Branch: netbsd-5
Changes since 1.73.18.1: +3 -3 lines
Diff to previous 1.73.18.1 (colored) to branchpoint 1.73 (colored)

Fix ticket 1887: fix gethostbyaddr prototype, second argument is socklen_t
not size_t.

Revision 1.77.4.1 / (download) - annotate - [select for diffs], Wed Dec 18 22:39:32 2013 UTC (8 years, 1 month ago) by bouyer
Branch: netbsd-6
Changes since 1.77: +397 -507 lines
Diff to previous 1.77 (colored)

Pullup the following revisions, requested by bad in ticket 975:
	lib/libc/net/gethnamaddr.c			1.79-1.81, 1.84
	lib/libc/net/getnameinfo.3			1.37-1.40
	lib/libc/net/getnameinfo.c			1.51, 1.52, 1.54
	lib/libc/net/hostent.h				1.1, 1.2
	lib/libc/net/sethostent.c			1.17-1.19

Make getnameinfo(3) re-entrant (ahem __ypdomain).
Add not advertised reentrant functions: {get,set,end}hostent_r,
gethostbyname{,2}_r, gethostbyaddr_r. Make getnameinfo(3) use
gethostbyaddr_r(3).
Implement no-check-names.

Revision 1.73.18.1 / (download) - annotate - [select for diffs], Wed Dec 18 20:23:35 2013 UTC (8 years, 1 month ago) by bouyer
Branch: netbsd-5
Changes since 1.73: +388 -499 lines
Diff to previous 1.73 (colored)

Apply patch, requested by bad in ticket #1887:
	lib/libc/net/gethnamaddr.c			1.79-1.82 via patch
	lib/libc/net/getnameinfo.3			1.37-1.40 via patch
	lib/libc/net/getnameinfo.c			1.4 via patch
	lib/libc/net/hostent.h				1.1, 1.2 via patch
	lib/libc/net/sethostent.c			1.17-1.19 via patch

Make getnameinfo(3) re-entrant (ahem __ypdomain).
Add not advertised reentrant functions: {get,set,end}hostent_r,
gethostbyname{,2}_r, gethostbyaddr_r. Make getnameinfo(3) use
gethostbyaddr_r(3).
Implement no-check-names.

Revision 1.84 / (download) - annotate - [select for diffs], Tue Aug 27 09:56:12 2013 UTC (8 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.83: +17 -247 lines
Diff to previous 1.83 (colored)

move the host file getbyname and getbyaddr functions to sethostent.c so
that they are in a separate file from the dns ones in order for libhack
to use them.

Revision 1.83 / (download) - annotate - [select for diffs], Thu Aug 22 10:04:28 2013 UTC (8 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.82: +4 -4 lines
Diff to previous 1.82 (colored)

get rid of bogus + 1

Revision 1.82 / (download) - annotate - [select for diffs], Mon Aug 19 07:18:42 2013 UTC (8 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.81: +3 -3 lines
Diff to previous 1.81 (colored)

fix gethostbyaddr prototype per TOG.

Revision 1.81 / (download) - annotate - [select for diffs], Sun Aug 18 09:57:16 2013 UTC (8 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.80: +3 -3 lines
Diff to previous 1.80 (colored)

appease lint.

Revision 1.80 / (download) - annotate - [select for diffs], Fri Aug 16 15:27:12 2013 UTC (8 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.79: +525 -412 lines
Diff to previous 1.79 (colored)

Add not advertised reentrant functions: {get,set,end}hostent_r,
gethostbyname{,2}_r, gethostbyaddr_r. Make getnameinfo(3) use
gethostbyaddr_r(3) so it is re-entrant (ahem __ypdomain). These
are not being advertised because there is a bunch of different
implementation of them that have a variety of type signatures.

If people want to follow someone's implementation, it is now easy.

Revision 1.77.2.2 / (download) - annotate - [select for diffs], Tue Oct 30 18:58:53 2012 UTC (9 years, 2 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.77.2.1: +13 -7 lines
Diff to previous 1.77.2.1 (colored) to branchpoint 1.77 (colored)

sync with head

Revision 1.79 / (download) - annotate - [select for diffs], Sun Sep 9 16:42:23 2012 UTC (9 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, agc-symver-base, agc-symver
Branch point for: tls-maxphys
Changes since 1.78: +13 -7 lines
Diff to previous 1.78 (colored)

implement no-check-names

Revision 1.77.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:05:21 2012 UTC (9 years, 9 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.77: +20 -19 lines
Diff to previous 1.77 (colored)

sync with head

Revision 1.78 / (download) - annotate - [select for diffs], Tue Mar 13 21:13:40 2012 UTC (9 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4
Changes since 1.77: +20 -19 lines
Diff to previous 1.77 (colored)

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@

Revision 1.77 / (download) - annotate - [select for diffs], Sat Oct 15 23:00:02 2011 UTC (10 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus
Branch point for: yamt-pagecache, netbsd-6
Changes since 1.76: +4 -4 lines
Diff to previous 1.76 (colored)

close on exec fixes:
- open + fcntl -> open O_CLOEXEC
- configuration database file descriptors that can stay open are now opened
  fopen(db, "re")

Revision 1.76 / (download) - annotate - [select for diffs], Sun Aug 29 15:40:35 2010 UTC (11 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Changes since 1.75: +9 -9 lines
Diff to previous 1.75 (colored)

dprintf is claimed by posix.

Revision 1.75 / (download) - annotate - [select for diffs], Fri Oct 2 07:41:08 2009 UTC (12 years, 3 months ago) by wiz
Branch: MAIN
CVS Tags: matt-premerge-20091211
Changes since 1.74: +3 -3 lines
Diff to previous 1.74 (colored)

Revert a -> an changes: Adding an 'n' follows pronunciation, not writing.

Revision 1.74 / (download) - annotate - [select for diffs], Fri Oct 2 06:49:23 2009 UTC (12 years, 3 months ago) by cegger
Branch: MAIN
Changes since 1.73: +3 -3 lines
Diff to previous 1.73 (colored)

fix grammar: a -> an

Revision 1.71.4.1 / (download) - annotate - [select for diffs], Sun Jun 3 17:25:56 2007 UTC (14 years, 7 months ago) by wrstuden
Branch: wrstuden-fixsa
Changes since 1.71: +2 -2 lines
Diff to previous 1.71 (colored) next main 1.72 (colored)

Catch up with now-somewhat-dated netbsd-4. These changes took longer
than expected for me to actually get around to merging.

Revision 1.71.2.1 / (download) - annotate - [select for diffs], Thu May 17 21:25:16 2007 UTC (14 years, 8 months ago) by jdc
Branch: netbsd-4
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0
Changes since 1.71: +2 -2 lines
Diff to previous 1.71 (colored) next main 1.72 (colored)

Add missing BIND 9.4.x include file and library changes (requested by
tron in ticket #662).

Revision 1.73 / (download) - annotate - [select for diffs], Sat Jan 27 22:27:35 2007 UTC (14 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, mjf-devfs2-base, mjf-devfs2, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-nbase, matt-armv6-base, matt-armv6, keiichi-mipv6-base, keiichi-mipv6, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend, hpcarm-cleanup-nbase, hpcarm-cleanup-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf, christos-time_t-nbase, christos-time_t-base, christos-time_t
Branch point for: netbsd-5
Changes since 1.72: +0 -0 lines
Diff to previous 1.72 (colored)

Appropriate versions are not supplied by bind anymore.

Revision 1.72, Sat Jan 27 22:26:44 2007 UTC (14 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.71: +2 -2 lines
FILE REMOVED

merge in resolver portion of bind-9.4.0-rc2

Revision 1.71 / (download) - annotate - [select for diffs], Sun Oct 15 16:14:46 2006 UTC (15 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-4-base
Branch point for: wrstuden-fixsa, netbsd-4
Changes since 1.70: +7 -6 lines
Diff to previous 1.70 (colored)

fix incomplete initializers

Revision 1.70 / (download) - annotate - [select for diffs], Wed Mar 22 00:03:51 2006 UTC (15 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.69: +5 -3 lines
Diff to previous 1.69 (colored)

Coverity CID 2279: Plug memory leak.

Revision 1.69 / (download) - annotate - [select for diffs], Wed Mar 22 00:03:00 2006 UTC (15 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.68: +5 -3 lines
Diff to previous 1.68 (colored)

Coverity CID 2280: Plug memory leak.

Revision 1.68 / (download) - annotate - [select for diffs], Tue Jan 24 17:29:33 2006 UTC (16 years ago) by christos
Branch: MAIN
Changes since 1.67: +5 -5 lines
Diff to previous 1.67 (colored)

PR/32616: Yves-Emmanuel JUTARD: Fix compilation with -DDEBUG

Revision 1.67 / (download) - annotate - [select for diffs], Thu Sep 15 23:33:41 2005 UTC (16 years, 4 months ago) by tsarna
Branch: MAIN
Changes since 1.66: +2 -9 lines
Diff to previous 1.66 (colored)

Rest of fix for PR#31184: getaddrinfo() now honors resolv.conf sortlist
directive for dns answers.

Also, unifdef the RESLVSORT (non-)option sillyness.

Reviewed by christos.

Revision 1.66 / (download) - annotate - [select for diffs], Thu Sep 15 15:25:40 2005 UTC (16 years, 4 months ago) by tsarna
Branch: MAIN
Changes since 1.65: +4 -3 lines
Diff to previous 1.65 (colored)

Re-enable resolv.conf sortlist support in gethostbyname().

Fixes first part of PR#31184.  addrsort() was not exposed to the rest of
libc as it turns out not to be usable for getaddrinfo(), so a different
sorter will be implemented for that.

Revision 1.65 / (download) - annotate - [select for diffs], Wed Jun 1 04:39:36 2005 UTC (16 years, 7 months ago) by lukem
Branch: MAIN
Changes since 1.64: +3 -2 lines
Diff to previous 1.64 (colored)

appease gcc -Wuninitialized

Revision 1.58.2.3 / (download) - annotate - [select for diffs], Mon Nov 29 06:15:48 2004 UTC (17 years, 1 month ago) by jmc
Branch: netbsd-2-0
CVS Tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-RELEASE, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2
Changes since 1.58.2.2: +6 -4 lines
Diff to previous 1.58.2.2 (colored) to branchpoint 1.58 (colored) next main 1.59 (colored)

Pullup rev 1.64 (requested by lukem in ticket #998)

Fix gethostent(3) (which was reenabled in rev 1.63) so that it actually
works by allowing _gethtent() to treat host.h_addrtype==0 && host.h_length==0
as "any address family" when parsing.

Revision 1.64 / (download) - annotate - [select for diffs], Tue Nov 23 03:42:13 2004 UTC (17 years, 2 months ago) by lukem
Branch: MAIN
CVS Tags: netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3
Changes since 1.63: +6 -4 lines
Diff to previous 1.63 (colored)

Fix gethostent(3) (which was reenabled in rev 1.63) so that it actually
works by allowing _gethtent() to treat host.h_addrtype==0 && host.h_length==0
as "any address family" when parsing.

Revision 1.58.2.2 / (download) - annotate - [select for diffs], Sat Sep 11 11:53:31 2004 UTC (17 years, 4 months ago) by he
Branch: netbsd-2-0
CVS Tags: netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1
Changes since 1.58.2.1: +5 -49 lines
Diff to previous 1.58.2.1 (colored) to branchpoint 1.58 (colored)

Pull up revision 1.63 (via patch, requested by ginsbach in ticket #834):
  Restore gethostent() as a supported interface.  Yes, it
  may be obsolete, but it is specified by IEEE Std 1003.1,
  2004 Edition (POSIX) and the X/Open standards (Issue 66
  and XNS 5.2).

Revision 1.33.4.9 / (download) - annotate - [select for diffs], Wed Aug 25 21:16:34 2004 UTC (17 years, 5 months ago) by he
Branch: netbsd-1-5
Changes since 1.33.4.8: +2 -11 lines
Diff to previous 1.33.4.8 (colored) to branchpoint 1.33 (colored) next main 1.34 (colored)

Pull up revision 1.62 (via patch, requested by itojun in ticket #156):
  No longer query ip6.int, since e.f.f.3.ip6.arpa is ready too.

Revision 1.42.2.13 / (download) - annotate - [select for diffs], Sun Aug 22 14:28:03 2004 UTC (17 years, 5 months ago) by tron
Branch: netbsd-1-6
Changes since 1.42.2.12: +2 -11 lines
Diff to previous 1.42.2.12 (colored) to branchpoint 1.42 (colored) next main 1.43 (colored)

Pull up revision 1.62 via patch (requested by itojun in ticket #1731):
now that e.f.f.3.ip6.arpa is ready, we no longer need to query ip6.int

Revision 1.58.2.1 / (download) - annotate - [select for diffs], Sun Aug 22 14:05:45 2004 UTC (17 years, 5 months ago) by tron
Branch: netbsd-2-0
Changes since 1.58: +2 -11 lines
Diff to previous 1.58 (colored)

Pull up revision 1.62 via patch (requested by itojun in ticket #775):
now that e.f.f.3.ip6.arpa is ready, we no longer need to query ip6.int

Revision 1.63 / (download) - annotate - [select for diffs], Tue Aug 17 02:29:56 2004 UTC (17 years, 5 months ago) by ginsbach
Branch: MAIN
Changes since 1.62: +5 -44 lines
Diff to previous 1.62 (colored)

Restore gethostent() as a supported interface.  Yes, it maybe obsolete
but it is specified by IEEE Std 1003.1, 2004 Edition (POSIX) and
the X/Open standards (Issue 6 and XNS 5.2).

* revert change removing gethostent() from gethostbyname(3) man page
* delete kruft from gethnamaddr.c leaving only gethostent() as a
  wrapper around _gethtent().
* revert recent changes to <netdb.h>
  + restore gethostent() prototype
  + restore freehostent() prototype; handle similar to non-shipped
    getipnodby*() prototypes
  + use correct XOPEN_SOURCE version (520 not 500) for freeaddrinfo()
    prototype; interface specified by XNS5.2 not XNS5

Reviewd by <christos> and <drochner>.

Revision 1.62 / (download) - annotate - [select for diffs], Wed Jul 21 03:16:29 2004 UTC (17 years, 6 months ago) by itojun
Branch: MAIN
Changes since 1.61: +2 -12 lines
Diff to previous 1.61 (colored)

now that e.f.f.3.ip6.arpa is ready, we no longer need to query ip6.int

Revision 1.61 / (download) - annotate - [select for diffs], Fri Jun 4 20:05:25 2004 UTC (17 years, 7 months ago) by ginsbach
Branch: MAIN
Changes since 1.60: +3 -6 lines
Diff to previous 1.60 (colored)

Change remaining K&R style function definition to ANSI; Reviewd by <christos>.

Revision 1.60 / (download) - annotate - [select for diffs], Sun May 23 16:54:13 2004 UTC (17 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.59: +16 -7 lines
Diff to previous 1.59 (colored)

centralize res_*init() calls in __res_get_state()

Revision 1.59 / (download) - annotate - [select for diffs], Fri May 21 02:30:03 2004 UTC (17 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.58: +167 -172 lines
Diff to previous 1.58 (colored)

Finish bind9 resolver merge.

Revision 1.33.4.8 / (download) - annotate - [select for diffs], Thu Apr 15 08:00:45 2004 UTC (17 years, 9 months ago) by msaitoh
Branch: netbsd-1-5
Changes since 1.33.4.7: +5 -5 lines
Diff to previous 1.33.4.7 (colored) to branchpoint 1.33 (colored)

Pullup rev. 1.58 (requested by itojun in ticket #141):

 Back out rev. 1.56; `pointer points the byte just after the valid
 region' is normal case.  If the parser wants something more, there
 should be another bounds check for it.

Revision 1.33.4.7 / (download) - annotate - [select for diffs], Wed Apr 7 22:37:51 2004 UTC (17 years, 9 months ago) by jmc
Branch: netbsd-1-5
Changes since 1.33.4.6: +5 -5 lines
Diff to previous 1.33.4.6 (colored) to branchpoint 1.33 (colored)

Pullup revs 1.56-1.57 (requested by itojun in ticket #102)

Fix off by one and other cleanups

Revision 1.42.2.12 / (download) - annotate - [select for diffs], Sat Oct 11 23:24:59 2003 UTC (18 years, 3 months ago) by tron
Branch: netbsd-1-6
CVS Tags: netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002
Changes since 1.42.2.11: +5 -5 lines
Diff to previous 1.42.2.11 (colored) to branchpoint 1.42 (colored)

Pull up revision 1.58 (requested by bad in ticket #1521):
Back out rev. 1.56; `pointer points the byte just after the valid region'
is normal case.  If the parser wants something more, there should be
another bounds check for it.

Revision 1.58 / (download) - annotate - [select for diffs], Sat Oct 11 03:35:42 2003 UTC (18 years, 3 months ago) by enami
Branch: MAIN
CVS Tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Changes since 1.57: +5 -5 lines
Diff to previous 1.57 (colored)

Back out rev. 1.56; `pointer points the byte just after the valid region'
is normal case.  If the parser wants something more, there should be
another bounds check for it.

Revision 1.42.2.11 / (download) - annotate - [select for diffs], Sat Oct 4 08:42:55 2003 UTC (18 years, 3 months ago) by tron
Branch: netbsd-1-6
Changes since 1.42.2.10: +4 -4 lines
Diff to previous 1.42.2.10 (colored) to branchpoint 1.42 (colored)

Pull up revision 1.57 (requested by itojun in ticket #1509):
paren around macro arg

Revision 1.42.2.10 / (download) - annotate - [select for diffs], Sat Oct 4 08:40:42 2003 UTC (18 years, 3 months ago) by tron
Branch: netbsd-1-6
Changes since 1.42.2.9: +5 -5 lines
Diff to previous 1.42.2.9 (colored) to branchpoint 1.42 (colored)

Pull up revision 1.56 (requested by itojun in ticket #1509):
off-by-one.  from millert@openbsd

Revision 1.57 / (download) - annotate - [select for diffs], Fri Oct 3 22:04:44 2003 UTC (18 years, 3 months ago) by itojun
Branch: MAIN
Changes since 1.56: +4 -4 lines
Diff to previous 1.56 (colored)

paren around macro arg

Revision 1.56 / (download) - annotate - [select for diffs], Fri Oct 3 22:04:03 2003 UTC (18 years, 3 months ago) by itojun
Branch: MAIN
Changes since 1.55: +5 -5 lines
Diff to previous 1.55 (colored)

off-by-one.  from millert@openbsd

Revision 1.55 / (download) - annotate - [select for diffs], Thu Aug 7 16:43:07 2003 UTC (18 years, 5 months ago) by agc
Branch: MAIN
Changes since 1.54: +3 -7 lines
Diff to previous 1.54 (colored)

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

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

Revision 1.54 / (download) - annotate - [select for diffs], Sat May 17 01:36:03 2003 UTC (18 years, 8 months ago) by itojun
Branch: MAIN
Changes since 1.53: +5 -5 lines
Diff to previous 1.53 (colored)

bound copies

Revision 1.39.2.5 / (download) - annotate - [select for diffs], Mon Nov 11 22:22:23 2002 UTC (19 years, 2 months ago) by nathanw
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.39.2.4: +2 -2 lines
Diff to previous 1.39.2.4 (colored) next main 1.40 (colored)

Catch up to -current

Revision 1.53 / (download) - annotate - [select for diffs], Mon Nov 11 16:50:34 2002 UTC (19 years, 2 months ago) by thorpej
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, fvdl_fs64_base
Changes since 1.52: +4 -4 lines
Diff to previous 1.52 (colored)

Fix signed/unsigned comparison warnings.

Revision 1.33.4.6 / (download) - annotate - [select for diffs], Thu Sep 5 06:21:36 2002 UTC (19 years, 4 months ago) by itojun
Branch: netbsd-1-5
Changes since 1.33.4.5: +3 -4 lines
Diff to previous 1.33.4.5 (colored) to branchpoint 1.33 (colored)

make diff smaller to 1.39

Revision 1.33.4.5 / (download) - annotate - [select for diffs], Thu Sep 5 01:11:07 2002 UTC (19 years, 4 months ago) by itojun
Branch: netbsd-1-5
Changes since 1.33.4.4: +3 -3 lines
Diff to previous 1.33.4.4 (colored) to branchpoint 1.33 (colored)

backout change which shouldn't be committed (int/socklen_t change)

Revision 1.33.4.4 / (download) - annotate - [select for diffs], Wed Sep 4 02:30:51 2002 UTC (19 years, 4 months ago) by itojun
Branch: netbsd-1-5
Changes since 1.33.4.3: +159 -68 lines
Diff to previous 1.33.4.3 (colored) to branchpoint 1.33 (colored)

lib/libc/net/getaddrinfo.c			1.56
lib/libc/net/res_mkquery.c			1.22
  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.

lib/libc/net/getaddrinfo.c			1.50
  remove redundant declarations of h_errno and __hostalias

lib/libc/net/getaddrinfo.c			1.52
  make sure "qname" argument to getanswer() is properly given.  from lukem

lib/libc/net/getaddrinfo.c			1.54
lib/libc/net/gethnamaddr.c			1.43,1.49-1.50
lib/libc/net/getnetnamadr.c			1.23
  use snprintf, string manipulation cleanups

lib/libc/net/getaddrinfo.c			1.57-1.59
  correct port range check and signed/unsigned mixup

lib/libc/net/getaddrinfo.c			1.60-1.61
  lint clean

lib/libc/net/getaddrinfo.c			1.62
lib/libc/net/gethnamaddr.c			1.51
  drop AAAA reply with IPv4 mapped address.  sync w/kame
  draft-itojun-v6ops-v4mapped-harmful-00.txt

lib/libc/net/getaddrinfo.c			1.63
lib/libc/net/gethnamaddr.c			1.52
lib/libc/net/getnetnamadr.c			1.24
  allocate 64K recieve buffer for DNS responses.

lib/libc/net/gethnamaddr.c			1.38
  Varargsify dprintf to allow for format string checking

lib/libc/net/gethnamaddr.c			1.39
lib/libc/net/getnetnamadr.c			1.20
  remove redundant declarations.

lib/libc/net/gethnamaddr.c			1.41
  do not reverse-lookup scoped IPv6 address.  it does not make sense as
  there's no way to give scope identifier.  sync w/kame

lib/libc/net/gethnamaddr.c			1.42
  style

lib/libc/net/gethnamaddr.c			1.45
  do not pass uninitialized variable to nsdispatch().

lib/libc/net/gethnamaddr.c			1.48
  query ip6.arpa then ip6.int for IPv6 reverse lookup.  follows RFC3152.

Revision 1.39.2.4 / (download) - annotate - [select for diffs], Tue Aug 27 23:49:34 2002 UTC (19 years, 5 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.39.2.3: +48 -21 lines
Diff to previous 1.39.2.3 (colored)

Catch up to -current.

Revision 1.42.2.9 / (download) - annotate - [select for diffs], Tue Aug 27 09:23:26 2002 UTC (19 years, 5 months ago) by lukem
Branch: netbsd-1-6
CVS Tags: netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001
Changes since 1.42.2.8: +26 -16 lines
Diff to previous 1.42.2.8 (colored) to branchpoint 1.42 (colored)

Pull up revision 1.52 (requested by itojun in ticket #735):
allocate 64K recieve buffer for DNS responses.

Revision 1.52 / (download) - annotate - [select for diffs], Tue Aug 27 08:50:49 2002 UTC (19 years, 5 months ago) by itojun
Branch: MAIN
Changes since 1.51: +26 -16 lines
Diff to previous 1.51 (colored)

allocate 64K recieve buffer for DNS responses.

Revision 1.42.2.8 / (download) - annotate - [select for diffs], Sat Aug 24 02:57:20 2002 UTC (19 years, 5 months ago) by lukem
Branch: netbsd-1-6
Changes since 1.42.2.7: +10 -2 lines
Diff to previous 1.42.2.7 (colored) to branchpoint 1.42 (colored)

Pull up revision 1.51 (requested by itojun in ticket #718):
drop AAAA reply with IPv4 mapped address.  sync w/kame
draft-itojun-v6ops-v4mapped-harmful-00.txt

Revision 1.51 / (download) - annotate - [select for diffs], Thu Aug 22 16:32:14 2002 UTC (19 years, 5 months ago) by itojun
Branch: MAIN
Changes since 1.50: +10 -2 lines
Diff to previous 1.50 (colored)

drop AAAA reply with IPv4 mapped address.  sync w/kame
draft-itojun-v6ops-v4mapped-harmful-00.txt

Revision 1.42.2.7 / (download) - annotate - [select for diffs], Sat Aug 17 15:55:37 2002 UTC (19 years, 5 months ago) by lukem
Branch: netbsd-1-6
Changes since 1.42.2.6: +11 -5 lines
Diff to previous 1.42.2.6 (colored) to branchpoint 1.42 (colored)

Pull up revision 1.50 (requested by itojun in ticket #694):
set h_errno properly if internal string manipulation fails.

Revision 1.42.2.6 / (download) - annotate - [select for diffs], Sat Aug 17 15:45:30 2002 UTC (19 years, 5 months ago) by lukem
Branch: netbsd-1-6
Changes since 1.42.2.5: +11 -8 lines
Diff to previous 1.42.2.5 (colored) to branchpoint 1.42 (colored)

Pull up revision 1.49 (requested by itojun in ticket #694):
eliminate sprintf, use snprintf.  check strlcat error.

Revision 1.50 / (download) - annotate - [select for diffs], Fri Aug 16 21:54:00 2002 UTC (19 years, 5 months ago) by itojun
Branch: MAIN
Changes since 1.49: +11 -5 lines
Diff to previous 1.49 (colored)

set h_errno properly if internal string manipulation fails.

Revision 1.49 / (download) - annotate - [select for diffs], Fri Aug 16 11:30:28 2002 UTC (19 years, 5 months ago) by itojun
Branch: MAIN
Changes since 1.48: +11 -8 lines
Diff to previous 1.48 (colored)

eliminate sprintf, use snprintf.  check strlcat error.

Revision 1.39.2.3 / (download) - annotate - [select for diffs], Thu Aug 1 03:28:14 2002 UTC (19 years, 5 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.39.2.2: +31 -36 lines
Diff to previous 1.39.2.2 (colored)

Catch up to -current.

Revision 1.42.2.5 / (download) - annotate - [select for diffs], Mon Jul 29 15:23:35 2002 UTC (19 years, 6 months ago) by lukem
Branch: netbsd-1-6
CVS Tags: netbsd-1-6-RC1
Changes since 1.42.2.4: +9 -3 lines
Diff to previous 1.42.2.4 (colored) to branchpoint 1.42 (colored)

Pull up revision 1.48 (requested by itojun in ticket #569):
query ip6.arpa then ip6.int for IPv6 reverse lookup.  follows RFC3152.

Revision 1.42.2.4 / (download) - annotate - [select for diffs], Mon Jul 29 15:22:28 2002 UTC (19 years, 6 months ago) by lukem
Branch: netbsd-1-6
Changes since 1.42.2.3: +14 -13 lines
Diff to previous 1.42.2.3 (colored) to branchpoint 1.42 (colored)

Pull up revision 1.43 (requested by lukem as a prerequisite for ticket #569):
be picky about string manipulation in reverse lookups

Revision 1.48 / (download) - annotate - [select for diffs], Mon Jul 29 10:01:58 2002 UTC (19 years, 6 months ago) by itojun
Branch: MAIN
Changes since 1.47: +9 -3 lines
Diff to previous 1.47 (colored)

query ip6.arpa then ip6.int for IPv6 reverse lookup.  follows RFC3152.

Revision 1.14.2.3 / (download) - annotate - [select for diffs], Wed Jun 26 21:54:27 2002 UTC (19 years, 7 months ago) by he
Branch: netbsd-1-4
Changes since 1.14.2.2: +23 -34 lines
Diff to previous 1.14.2.2 (colored) to branchpoint 1.14 (colored) next main 1.15 (colored)

Pull up revisions 1.45-1.46 (via patch, requested by he):
  Fix remote buffer overrun on hostbuf[].  Also fix up logic of
  buffer handling.

Revision 1.33.4.3 / (download) - annotate - [select for diffs], Wed Jun 26 16:30:27 2002 UTC (19 years, 7 months ago) by he
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-PATCH003
Changes since 1.33.4.2: +3 -3 lines
Diff to previous 1.33.4.2 (colored) to branchpoint 1.33 (colored)

Pull up revision 1.47 (requested by itojun):
  Correct usage of DIAGASSERT after recent change.

Revision 1.33.4.2 / (download) - annotate - [select for diffs], Wed Jun 26 16:13:25 2002 UTC (19 years, 7 months ago) by he
Branch: netbsd-1-5
Changes since 1.33.4.1: +23 -34 lines
Diff to previous 1.33.4.1 (colored) to branchpoint 1.33 (colored)

Pull up revisions 1.45-1.46 (requested by itojun):
  Fix remote buffer overrun on hostbuf[].  Also fix up logic of
  buffer handling.

Revision 1.42.2.3 / (download) - annotate - [select for diffs], Wed Jun 26 11:15:53 2002 UTC (19 years, 7 months ago) by lukem
Branch: netbsd-1-6
Changes since 1.42.2.2: +3 -3 lines
Diff to previous 1.42.2.2 (colored) to branchpoint 1.42 (colored)

Pull up revision 1.47 (requested by itojun in ticket #376):
correct DIAGASSERT

Revision 1.42.2.2 / (download) - annotate - [select for diffs], Wed Jun 26 11:11:15 2002 UTC (19 years, 7 months ago) by lukem
Branch: netbsd-1-6
Changes since 1.42.2.1: +22 -33 lines
Diff to previous 1.42.2.1 (colored) to branchpoint 1.42 (colored)

Pull up revision 1.46 (requested by itojun in ticket #371):
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.

Revision 1.42.2.1 / (download) - annotate - [select for diffs], Wed Jun 26 11:07:57 2002 UTC (19 years, 7 months ago) by lukem
Branch: netbsd-1-6
Changes since 1.42: +3 -3 lines
Diff to previous 1.42 (colored)

Pull up revision 1.45 (requested by itojun in ticket #371):
do not pass uninitialized variable to nsdispatch().

Revision 1.47 / (download) - annotate - [select for diffs], Wed Jun 26 09:39:48 2002 UTC (19 years, 7 months ago) by itojun
Branch: MAIN
Changes since 1.46: +3 -3 lines
Diff to previous 1.46 (colored)

correct DIAGASSERT

Revision 1.46 / (download) - annotate - [select for diffs], Wed Jun 26 06:00:07 2002 UTC (19 years, 7 months ago) by itojun
Branch: MAIN
Changes since 1.45: +22 -33 lines
Diff to previous 1.45 (colored)

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.

Revision 1.45 / (download) - annotate - [select for diffs], Wed Jun 26 02:40:46 2002 UTC (19 years, 7 months ago) by itojun
Branch: MAIN
Changes since 1.44: +3 -3 lines
Diff to previous 1.44 (colored)

do not pass uninitialized variable to nsdispatch().

Revision 1.39.2.2 / (download) - annotate - [select for diffs], Fri Jun 21 18:18:14 2002 UTC (19 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.39.2.1: +22 -20 lines
Diff to previous 1.39.2.1 (colored)

Catch up to -current.

Revision 1.44 / (download) - annotate - [select for diffs], Sun May 26 14:48:19 2002 UTC (19 years, 8 months ago) by wiz
Branch: MAIN
Changes since 1.43: +3 -8 lines
Diff to previous 1.43 (colored)

__STDC__ is always defined on NetBSD.

Revision 1.43 / (download) - annotate - [select for diffs], Wed May 22 02:39:15 2002 UTC (19 years, 8 months ago) by itojun
Branch: MAIN
Changes since 1.42: +14 -13 lines
Diff to previous 1.42 (colored)

be picky about string manipulation in reverse lookups

Revision 1.42 / (download) - annotate - [select for diffs], Sat May 18 00:07:28 2002 UTC (19 years, 8 months ago) by itojun
Branch: MAIN
CVS Tags: netbsd-1-6-base
Branch point for: netbsd-1-6
Changes since 1.41: +3 -3 lines
Diff to previous 1.41 (colored)

style

Revision 1.41 / (download) - annotate - [select for diffs], Fri May 17 22:40:31 2002 UTC (19 years, 8 months ago) by itojun
Branch: MAIN
Changes since 1.40: +9 -3 lines
Diff to previous 1.40 (colored)

do not reverse-lookup scoped IPv6 address.  it does not make sense as
there's no way to give scope identifier.  sync w/kame

Revision 1.39.2.1 / (download) - annotate - [select for diffs], Mon Oct 8 20:20:08 2001 UTC (20 years, 3 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.39: +4 -3 lines
Diff to previous 1.39 (colored)

Catch up to -current.

Revision 1.40 / (download) - annotate - [select for diffs], Thu Apr 26 12:55:32 2001 UTC (20 years, 9 months ago) by kleink
Branch: MAIN
Changes since 1.39: +4 -3 lines
Diff to previous 1.39 (colored)

Change the `len' arguemtn to gethostbyaddr(3) from int to socklen_t in
accordance with XNS5.2; fixes PR standards/12703.

Revision 1.39 / (download) - annotate - [select for diffs], Wed Dec 20 20:51:08 2000 UTC (21 years, 1 month ago) by christos
Branch: MAIN
Branch point for: nathanw_sa
Changes since 1.38: +4 -9 lines
Diff to previous 1.38 (colored)

remove redundant declarations.

Revision 1.38 / (download) - annotate - [select for diffs], Wed Oct 4 14:56:24 2000 UTC (21 years, 3 months ago) by sommerfeld
Branch: MAIN
Changes since 1.37: +10 -8 lines
Diff to previous 1.37 (colored)

Varargsify dprintf to allow for format string checking

Revision 1.14.2.2 / (download) - annotate - [select for diffs], Fri Aug 4 15:21:27 2000 UTC (21 years, 5 months ago) by he
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-PATCH003
Changes since 1.14.2.1: +10 -8 lines
Diff to previous 1.14.2.1 (colored) to branchpoint 1.14 (colored)

Pull up revision 1.36 (requested by itojun):
  Prevent host_addrs overrun, possibly provoked by rogue NIS server.

Revision 1.33.4.1 / (download) - annotate - [select for diffs], Sun Jul 30 05:45:30 2000 UTC (21 years, 6 months ago) by itojun
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-RELEASE, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2
Changes since 1.33: +10 -8 lines
Diff to previous 1.33 (colored)

pullup 1.35 -> 1.36 (approved by releng-1-5)

 > plug host_addrs overrun.  rogue NIS server can transmit tons of lines,
 > effectively overrun host_addrs buffer.

Revision 1.37 / (download) - annotate - [select for diffs], Sun Jul 30 03:01:01 2000 UTC (21 years, 6 months ago) by itojun
Branch: MAIN
Changes since 1.36: +76 -23 lines
Diff to previous 1.36 (colored)

on gethostby* with NIS backend, make a lookup against ipnodes.{byname,byaddr}
for non-IPv4 address.  obeys solaris8 practice.

XXX does not support scoped address extension, as gethostby* are not
scope-aware.  always use getaddrinfo/getnameinfo.
XXX it is not very useful at this moment, if you define multiple entries for
single hostname.  see PR 10713 for detail.

Revision 1.36 / (download) - annotate - [select for diffs], Sun Jul 30 02:44:36 2000 UTC (21 years, 6 months ago) by itojun
Branch: MAIN
Changes since 1.35: +10 -8 lines
Diff to previous 1.35 (colored)

plug host_addrs overrun.  rogue NIS server can transmit tons of lines,
effectively overrun host_addrs buffer.

Revision 1.35 / (download) - annotate - [select for diffs], Fri Jul 7 08:03:38 2000 UTC (21 years, 6 months ago) by itohy
Branch: MAIN
Changes since 1.34: +6 -6 lines
Diff to previous 1.34 (colored)

Passing "char" values to ctype(3) functions is problematic.
If an argument of a ctype function is outside "unsigned char"
and if it is not EOF, the behavior is undefined.

The isascii(3) is the sole exception of above and it was used to
be used to check a value was valid for other ctype functions in
ancient systems.  On modern systems, the ctype functions take
all values of "unsigned char", and this check is obsolete and
even wrong for non-ASCII systems.  However, we leave the isascii()
untouched for now, so as not to change the current behavior.

Revision 1.34 / (download) - annotate - [select for diffs], Thu Jul 6 02:52:07 2000 UTC (21 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.33: +4 -4 lines
Diff to previous 1.33 (colored)

add CONSTCOND where appropriate

Revision 1.33 / (download) - annotate - [select for diffs], Tue May 23 07:03:10 2000 UTC (21 years, 8 months ago) by tron
Branch: MAIN
CVS Tags: netbsd-1-5-base, minoura-xpg4dl-base, minoura-xpg4dl
Branch point for: netbsd-1-5
Changes since 1.32: +4 -4 lines
Diff to previous 1.32 (colored)

Fix an alignment problem introduced by the patch for PR lib/8032.
Fixes PR lib/10048 by J.T. Conklin.

Revision 1.1.1.2 / (download) - annotate - [select for diffs] (vendor branch), Tue Apr 25 14:50:44 2000 UTC (21 years, 9 months ago) by itojun
Branch: ISC
CVS Tags: v4_9_7
Changes since 1.1.1.1: +41 -4 lines
Diff to previous 1.1.1.1 (colored)

BIND 4.9.7

Revision 1.32 / (download) - annotate - [select for diffs], Tue Apr 25 13:47:38 2000 UTC (21 years, 9 months ago) by itojun
Branch: MAIN
Changes since 1.31: +42 -5 lines
Diff to previous 1.31 (colored)

sync with BIND 4.9.7.  strict boundary checking.

Revision 1.31 / (download) - annotate - [select for diffs], Sun Apr 2 21:31:54 2000 UTC (21 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.30: +19 -17 lines
Diff to previous 1.30 (colored)

Try to silence some of the lint warnings. Unfortunately we cannot fix
them all right now until we fix the ALIGN() macro to return u_long in
all the ports.

Revision 1.30 / (download) - annotate - [select for diffs], Sat Jan 22 23:30:27 2000 UTC (22 years ago) by mycroft
Branch: MAIN
Changes since 1.29: +6 -6 lines
Diff to previous 1.29 (colored)

Delint.

Revision 1.29 / (download) - annotate - [select for diffs], Sat Jan 22 22:19:14 2000 UTC (22 years ago) by mycroft
Branch: MAIN
Changes since 1.28: +4 -4 lines
Diff to previous 1.28 (colored)

Delint.
Remove trailing ; from uses of __weak_alias().  The macro inserts this if
needed.

Revision 1.14.2.1 / (download) - annotate - [select for diffs], Sat Jan 8 17:50:49 2000 UTC (22 years ago) by he
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-PATCH002
Changes since 1.14: +6 -5 lines
Diff to previous 1.14 (colored)

Pull up revision 1.28 (requested by assar):
  Reduce superfluous warnings on replies from DNSSEC-enabled name
  servers.  Fixes PR#8779.

Revision 1.28 / (download) - annotate - [select for diffs], Tue Dec 28 15:47:41 1999 UTC (22 years, 1 month ago) by assar
Branch: MAIN
Changes since 1.27: +6 -5 lines
Diff to previous 1.27 (colored)

ignore KEY and SIG records when matching responses to the query.  we
get those as extras from DNSsec-enabled name servers.

Revision 1.26.2.1 / (download) - annotate - [select for diffs], Mon Dec 27 18:29:41 1999 UTC (22 years, 1 month ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.26: +3 -3 lines
Diff to previous 1.26 (colored) next main 1.27 (colored)

Pull up to last week's -current.

Revision 1.27 / (download) - annotate - [select for diffs], Sun Oct 24 12:36:02 1999 UTC (22 years, 3 months ago) by lukem
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, comdex-fall-1999-base, comdex-fall-1999
Changes since 1.26: +3 -3 lines
Diff to previous 1.26 (colored)

change default nsswitch.conf entry for `hosts' from:
	hosts: dns files
to
	hosts: files dns

this should speed things up a lot at boot if hostnames that are in
/etc/hosts are used for ifconfig, route, etc.

Revision 1.26 / (download) - annotate - [select for diffs], Mon Sep 20 04:39:11 1999 UTC (22 years, 4 months ago) by lukem
Branch: MAIN
Branch point for: wrstuden-devbsize
Changes since 1.25: +2 -23 lines
Diff to previous 1.25 (colored)

back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.
_DIAGASSERT() is still retained.

Revision 1.25 / (download) - annotate - [select for diffs], Thu Sep 16 11:45:11 1999 UTC (22 years, 4 months ago) by lukem
Branch: MAIN
Changes since 1.24: +77 -18 lines
Diff to previous 1.24 (colored)

* use _DIAGASSERT() to check pointer arguments against NULL and file
  descriptors against -1 (as appropriate).
* add actual checks which to detect stuff that would trigger_DIAGASSERT(),
  and attempt to return a sane error condition.
* knf some code
* remove some `register' decls.

the first two items result in the addition of code similar to the
following in various functions:

		_DIAGASSERT(path != NULL)
	#ifdef _DIAGNOSTIC
		if (path == NULL) {
			errno = EFAULT;
			return (-1);
		}
	#endif

Revision 1.24 / (download) - annotate - [select for diffs], Mon Aug 9 15:00:14 1999 UTC (22 years, 5 months ago) by itojun
Branch: MAIN
Changes since 1.23: +6 -8 lines
Diff to previous 1.23 (colored)

do not make reverse query against IPv6 unspecified, or loopback addresses.

From: ume@mahoroba.org

Revision 1.23 / (download) - annotate - [select for diffs], Mon Jul 19 19:42:27 1999 UTC (22 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.22: +12 -10 lines
Diff to previous 1.22 (colored)

- make sure that host_addr is suitably aligned
- add appropriate casts
- take out & in from array; it is meaningless

Revision 1.22 / (download) - annotate - [select for diffs], Mon Jul 19 17:43:59 1999 UTC (22 years, 6 months ago) by tron
Branch: MAIN
Changes since 1.21: +7 -3 lines
Diff to previous 1.21 (colored)

Make sure that "h_addr_list" pointers are longword aligned because some
broken applications depend on it. Fixes PR lib/8032 by David K Brownlee.

Revision 1.21 / (download) - annotate - [select for diffs], Tue Jul 6 02:00:41 1999 UTC (22 years, 6 months ago) by itojun
Branch: MAIN
Changes since 1.20: +9 -2 lines
Diff to previous 1.20 (colored)

fix name resolution problem when you have "hosts: files dns" on
/etc/nsswitch.conf.

This was because of two reasons:
- /etc/hosts lookup code damaged some of internal
  state used by gethostbyname2().
- getaddrinfo() was not persistent enough against errors.

Sorry for the delay, and hope this fix all the following PRs
(I checked in my environment immitating those PRs and it worked for me)
PR: 7901, 7912, 7921

Revision 1.20 / (download) - annotate - [select for diffs], Sun Jul 4 22:44:28 1999 UTC (22 years, 6 months ago) by itojun
Branch: MAIN
Changes since 1.19: +6 -6 lines
Diff to previous 1.19 (colored)

check address family on getting entries from /etc/hosts.

Revision 1.19 / (download) - annotate - [select for diffs], Thu Jul 1 16:43:18 1999 UTC (22 years, 6 months ago) by itojun
Branch: MAIN
Changes since 1.18: +3 -3 lines
Diff to previous 1.18 (colored)

fix hardcoded T_A.
this fixes gethostbyname2(host, AF_INET6) to actually work.

Revision 1.18 / (download) - annotate - [select for diffs], Wed Jun 2 22:14:07 1999 UTC (22 years, 7 months ago) by tron
Branch: MAIN
Changes since 1.17: +74 -12 lines
Diff to previous 1.17 (colored)

As discussed on "tech-net@netbsd.org":
Enhance the file resolver to return all IP addresses of a host on a
call to gethostbyname().

Revision 1.17 / (download) - annotate - [select for diffs], Tue May 4 13:51:39 1999 UTC (22 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.16: +8 -20 lines
Diff to previous 1.16 (colored)

Remove unused 'len' and the relevant gcc kludges.

Revision 1.16 / (download) - annotate - [select for diffs], Mon May 3 15:20:28 1999 UTC (22 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.15: +9 -12 lines
Diff to previous 1.15 (colored)

Don't bother de-linting inside __GNUC__ ifdefs.

Revision 1.15 / (download) - annotate - [select for diffs], Sun Apr 18 02:27:53 1999 UTC (22 years, 9 months ago) by lukem
Branch: MAIN
Changes since 1.14: +8 -2 lines
Diff to previous 1.14 (colored)

specifically include stdarg/varargs.h

Revision 1.14 / (download) - annotate - [select for diffs], Wed Jan 20 23:31:02 1999 UTC (23 years ago) by lukem
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH001
Branch point for: netbsd-1-4
Changes since 1.13: +6 -4 lines
Diff to previous 1.13 (colored)

minor knf; don't exceed 80 columns ;)

Revision 1.13 / (download) - annotate - [select for diffs], Wed Jan 20 13:09:04 1999 UTC (23 years ago) by christos
Branch: MAIN
Changes since 1.12: +25 -11 lines
Diff to previous 1.12 (colored)

add ARGSUSED

Revision 1.12 / (download) - annotate - [select for diffs], Tue Jan 19 08:26:35 1999 UTC (23 years ago) by lukem
Branch: MAIN
Changes since 1.11: +5 -5 lines
Diff to previous 1.11 (colored)

constify ns_dtab defs

Revision 1.11 / (download) - annotate - [select for diffs], Tue Jan 19 08:01:12 1999 UTC (23 years ago) by lukem
Branch: MAIN
Changes since 1.10: +18 -10 lines
Diff to previous 1.10 (colored)

convert to new nsdispatch(3). lookup defaults back to "dns files"

Revision 1.10 / (download) - annotate - [select for diffs], Mon Jan 18 05:26:08 1999 UTC (23 years ago) by lukem
Branch: MAIN
Changes since 1.9: +7 -8 lines
Diff to previous 1.9 (colored)

before each call to nsdispatch(), set h_errno to NETDB_INTERNAL, and only
change to NETDB_SUCCESS if nsdispatch() returns NS_SUCCESS.  it is up to the
internal methods to change h_errno from NETDB_INTERNAL to a more appropriate
value when an error is detected.

Revision 1.9 / (download) - annotate - [select for diffs], Sat Jan 16 07:48:23 1999 UTC (23 years ago) by lukem
Branch: MAIN
Changes since 1.8: +245 -137 lines
Diff to previous 1.8 (colored)

pull nsswitch up to main branch
convert getnetby*() to nsswitch (from resolv.conf lookup)

Revision 1.7.2.3 / (download) - annotate - [select for diffs], Thu Jan 14 06:59:09 1999 UTC (23 years ago) by lukem
Branch: lukem-nsswitch2
Changes since 1.7.2.2: +14 -18 lines
Diff to previous 1.7.2.2 (colored) next main 1.8 (colored)

use new ns_dtab structure

Revision 1.8 / (download) - annotate - [select for diffs], Fri Nov 13 15:46:53 1998 UTC (23 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.7: +11 -10 lines
Diff to previous 1.7 (colored)

delint

Revision 1.7.2.2 / (download) - annotate - [select for diffs], Mon Nov 2 03:29:36 1998 UTC (23 years, 2 months ago) by lukem
Branch: lukem-nsswitch2
Changes since 1.7.2.1: +1253 -0 lines
Diff to previous 1.7.2.1 (colored)

sync with current, assign my copyrights to TNF

Revision 1.7.2.1, Thu Oct 15 10:22:23 1998 UTC (23 years, 3 months ago) by lukem
Branch: lukem-nsswitch2
Changes since 1.7: +0 -1140 lines
FILE REMOVED

file gethnamaddr.c was added on branch lukem-nsswitch2 on 1998-11-02 03:29:36 +0000

Revision 1.7 / (download) - annotate - [select for diffs], Thu Oct 15 10:22:23 1998 UTC (23 years, 3 months ago) by kleink
Branch: MAIN
Branch point for: lukem-nsswitch2
Changes since 1.6: +12 -11 lines
Diff to previous 1.6 (colored)

(bcmp(), bcopy(), bzero()) -> (memcmp(), memcpy(), memset())

Revision 1.6 / (download) - annotate - [select for diffs], Wed Oct 14 19:33:49 1998 UTC (23 years, 3 months ago) by kleink
Branch: MAIN
Changes since 1.5: +5 -3 lines
Diff to previous 1.5 (colored)

Since these files are shared with parts of the BIND-4 userland (outside libc),
do the internal symbol renaming dance only if inside the libc build environment.

Revision 1.5 / (download) - annotate - [select for diffs], Tue Oct 13 20:54:02 1998 UTC (23 years, 3 months ago) by kleink
Branch: MAIN
Changes since 1.4: +7 -2 lines
Diff to previous 1.4 (colored)

Need internal names for gethostby{addr,name}().

Revision 1.4 / (download) - annotate - [select for diffs], Tue Jan 6 05:01:16 1998 UTC (24 years ago) by perry
Branch: MAIN
Changes since 1.3: +3 -3 lines
Diff to previous 1.3 (colored)

$Id: -> Id: (to make hunting down other bad Ids easier).

Revision 1.3 / (download) - annotate - [select for diffs], Thu Jul 31 20:55:21 1997 UTC (24 years, 5 months ago) by thorpej
Branch: MAIN
CVS Tags: netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA, netbsd-1-3
Changes since 1.2: +3 -2 lines
Diff to previous 1.2 (colored)

Bring over changes where were mistakenly committed to gethostnamadr.c:

date: 1997/07/21 14:07:54;  author: jtc;  state: Exp;  lines: +3 -2
If port provides __weak_alias(), provide an Standard C and POSIX pure
identifier namespace by renaming non standard functions and variables
such that they have a leading underscore.  The library will use those
names internally.  Weak aliases are used to provide the original names
to the API.

This is only the first part of this change.  It is most of the functions
which are implemented in C for all NetBSD ports.  Subsequent changes are
to add the same support to the remaining C files, to assembly files, and
to the automagically generated assembly source used for system calls.
When all of the above is done, ports with weak alias support should add
a definition for __weak_alias to <sys/cdefs.h>.

Revision 1.2 / (download) - annotate - [select for diffs], Sun Jul 20 13:33:18 1997 UTC (24 years, 6 months ago) by mrg
Branch: MAIN
Changes since 1.1: +264 -104 lines
Diff to previous 1.1 (colored)

merge bind 4.9.6 resolver.  still need to fix <resolv.h>

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Sun Jul 20 04:07:44 1997 UTC (24 years, 6 months ago) by mrg
Branch: ISC
CVS Tags: v4_9_6
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

bind 4.9.6 resolver files.

Revision 1.1 / (download) - annotate - [select for diffs], Sun Jul 20 04:07:44 1997 UTC (24 years, 6 months ago) by mrg
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>