OpenBSD CVS

CVS log for src/include/netdb.h


[BACK] Up to [local] / src / include

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.33 / (download) - annotate - [select for diffs], Sun Jan 18 20:29:31 2015 UTC (9 years, 4 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9, OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7, HEAD
Changes since 1.32: +2 -7 lines
Diff to previous 1.32 (colored)

Stop including <sys/param.h> from <netdb.h>.  Portable software must either
include <sys/param.h> (to operate in legacy mode) or if it wishes to operate
in the POSIX world use <limits.h>
ok guenther millert doug naddy

Revision 1.32 / (download) - annotate - [select for diffs], Mon Apr 28 21:38:59 2014 UTC (10 years ago) by sperreault
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.31: +4 -2 lines
Diff to previous 1.31 (colored)

Implement AI_ADDRCONFIG

This is a getaddrinfo() flag that is defined thusly in RFC 3493:

   If the AI_ADDRCONFIG flag is specified, IPv4 addresses shall be
   returned only if an IPv4 address is configured on the local system,
   and IPv6 addresses shall be returned only if an IPv6 address is
   configured on the local system.  The loopback address is not
   considered for this case as valid as a configured address.

      For example, when using the DNS, a query for AAAA records should
      occur only if the node has at least one IPv6 address configured
      (other than IPv6 loopback) and a query for A records should occur
      only if the node has at least one IPv4 address configured (other
      than the IPv4 loopback).

The flag is set by default when hints is NULL.

ok Eric Faurot, Jason McIntyre

Revision 1.31 / (download) - annotate - [select for diffs], Sat Sep 15 00:47:08 2012 UTC (11 years, 8 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3
Changes since 1.30: +42 -42 lines
Diff to previous 1.30 (colored)

Improve POSIX/SUS compliance of <netdb.h>, <sys/socket.h>, and <sys/un.h>.

Much ports testing of various versions by naddy@ and jasper@
ok matthew@, miller@

Revision 1.30 / (download) - annotate - [select for diffs], Tue Jan 17 02:36:55 2012 UTC (12 years, 4 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1
Changes since 1.29: +1 -2 lines
Diff to previous 1.29 (colored)

net_addrcmp() dies. found out to be a horrific function by eric
ok guenther

Revision 1.29 / (download) - annotate - [select for diffs], Thu Jul 7 14:25:15 2011 UTC (12 years, 10 months ago) by sobrado
Branch: MAIN
CVS Tags: OPENBSD_5_0_BASE, OPENBSD_5_0
Changes since 1.28: +2 -2 lines
Diff to previous 1.28 (colored)

fix typos; while here, improve spacing in comments.

changes to libevent and zlib headers sent to the upstream maintainers.

ok jmc@ (for typos), millert@

Revision 1.28 / (download) - annotate - [select for diffs], Tue Apr 5 00:46:06 2011 UTC (13 years, 1 month ago) by matthew
Branch: MAIN
Changes since 1.27: +3 -2 lines
Diff to previous 1.27 (colored)

Add AI_FQDN flag to getaddrinfo(3).  Prompted by discussions with djm@
about cert checking in OpenSSH.  Man page wording tweaks thanks to
jmc@.

ok henning@, jmc@; positive feedback from djm@, ajacoutat@

Committing now to reuse guenther@'s libc minor bump instead of
cranking it again, as suggested by deraadt@.

Revision 1.27 / (download) - annotate - [select for diffs], Tue Jun 2 16:47:50 2009 UTC (14 years, 11 months ago) by jasper
Branch: MAIN
CVS Tags: OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6
Changes since 1.26: +2 -1 lines
Diff to previous 1.26 (colored)

- define EAI_OVERFLOW, as per IEEE Std 1003.1-2001(Interpretation #13)

hint from claudio@, ok millert@

Revision 1.26 / (download) - annotate - [select for diffs], Thu May 7 16:32:53 2009 UTC (15 years ago) by jacekm
Branch: MAIN
Changes since 1.25: +2 -2 lines
Diff to previous 1.25 (colored)

fix confusing comment; ok krw@

Revision 1.25 / (download) - annotate - [select for diffs], Tue Dec 13 00:35:22 2005 UTC (18 years, 5 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0, OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.24: +8 -11 lines
Diff to previous 1.24 (colored)

First step in include files overhaul.  Use __FOO_VISIBLE (as defined
in sys/cdefs.h) instead of _FOO_SOURCE.  Also fix several namespace
pollution issues, including the byte order defines.  OK deraadt@

Revision 1.24 / (download) - annotate - [select for diffs], Wed Jun 8 18:32:32 2005 UTC (18 years, 11 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.23: +2 -2 lines
Diff to previous 1.23 (colored)

Make gethostbyaddr() prototype match POSIX.  This means len is now
unsigned but there is no ABI change.  OK deraadt@

Revision 1.23 / (download) - annotate - [select for diffs], Mon Dec 20 22:35:32 2004 UTC (19 years, 5 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.22: +2 -2 lines
Diff to previous 1.22 (colored)

gai_strerror() should return const char *; OK deraadt@

Revision 1.22 / (download) - annotate - [select for diffs], Wed Nov 17 03:57:53 2004 UTC (19 years, 6 months ago) by itojun
Branch: MAIN
Changes since 1.21: +1 -2 lines
Diff to previous 1.21 (colored)

remove NI_WITHSCOPEID

Revision 1.21 / (download) - annotate - [select for diffs], Mon Oct 25 03:09:01 2004 UTC (19 years, 6 months ago) by millert
Branch: MAIN
Changes since 1.20: +9 -11 lines
Diff to previous 1.20 (colored)

Change return value of reentrant getproto* and getserv* to match the
IBM/Digital API.

Revision 1.20 / (download) - annotate - [select for diffs], Sun Oct 17 20:24:23 2004 UTC (19 years, 7 months ago) by millert
Branch: MAIN
Changes since 1.19: +47 -1 lines
Diff to previous 1.19 (colored)

Reentrant versions of getprotoent(3) and getservent(3).  Adapted from
changes in NetBSD by Christos.  OK otto@

Revision 1.19 / (download) - annotate - [select for diffs], Wed Apr 14 07:06:15 2004 UTC (20 years, 1 month ago) by itojun
Branch: MAIN
CVS Tags: OPENBSD_3_6_BASE, OPENBSD_3_6
Changes since 1.18: +5 -3 lines
Diff to previous 1.18 (colored)

implement RFC3493 AI_NUMERICSERV.  tedu ok

Revision 1.18 / (download) - annotate - [select for diffs], Mon Jun 2 19:34:12 2003 UTC (20 years, 11 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_5_BASE, OPENBSD_3_5, OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.17: +2 -6 lines
Diff to previous 1.17 (colored)

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999.  Proofed by myself and Theo.

Revision 1.17 / (download) - annotate - [select for diffs], Mon Jun 3 12:14:30 2002 UTC (21 years, 11 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3, OPENBSD_3_2_BASE, OPENBSD_3_2
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored)

compatiblity -> compatibility
decriptor -> descriptor
authentciated -> authenticated
transmition -> transmission

Revision 1.16 / (download) - annotate - [select for diffs], Sun Feb 17 19:42:21 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.15: +5 -6 lines
Diff to previous 1.15 (colored)

Manual cleanup of remaining userland __P use (excluding packages maintained outside the tree)

Revision 1.15 / (download) - annotate - [select for diffs], Sat Feb 16 21:27:17 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
Changes since 1.14: +28 -28 lines
Diff to previous 1.14 (colored)

Part one of userland __P removal.  Done with a simple regexp with some minor hand editing to make comments line up correctly.  Another pass is forthcoming that handles the cases that could not be done automatically.

Revision 1.14 / (download) - annotate - [select for diffs], Mon Aug 6 14:40:47 2001 UTC (22 years, 9 months ago) by jakob
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE, OPENBSD_3_0
Changes since 1.13: +38 -1 lines
Diff to previous 1.13 (colored)

add getrrsetbyname(3) - API to retrieve arbitrary DNS records

Revision 1.13 / (download) - annotate - [select for diffs], Tue Jun 5 02:38:05 2001 UTC (22 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.12: +26 -7 lines
Diff to previous 1.12 (colored)

repair copyright notices for NRL & cmetz; cmetz

Revision 1.12 / (download) - annotate - [select for diffs], Wed Feb 21 15:12:00 2001 UTC (23 years, 3 months ago) by itojun
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE, OPENBSD_2_9
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored)

change ai_addrlen to socklen_t.  now it conforms to
draft-ietf-ipngwg-rfc2553bis-03.txt.  backward compatibility concern:
- should be safe to change signed to unsigned, as we never return
  negative value.
- sizeof(int) is 4 for all archs, so there's no size change with socklen_t
  (= u_int32_t)

commented by deraadt.

Revision 1.11 / (download) - annotate - [select for diffs], Wed Oct 4 22:54:23 2000 UTC (23 years, 7 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_2_8_BASE, OPENBSD_2_8
Changes since 1.10: +8 -8 lines
Diff to previous 1.10 (colored)

Remove parameter names in prototypes (always a bad idea)

Revision 1.10 / (download) - annotate - [select for diffs], Mon May 15 10:50:39 2000 UTC (24 years ago) by itojun
Branch: MAIN
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)

correct type of 2nd argument to meet RFC2553. (this should raise no ABI
problem due to type promotion).  PR 1228.

Revision 1.9 / (download) - annotate - [select for diffs], Wed Feb 9 12:22:08 2000 UTC (24 years, 3 months ago) by itojun
Branch: MAIN
CVS Tags: OPENBSD_2_7_BASE, OPENBSD_2_7
Changes since 1.8: +4 -2 lines
Diff to previous 1.8 (colored)

revise extended scoped address format support.  delimiter and the order
is changed, based on discussion in ipngwg scoped address cabal.
past code:	fe80::1@de0
now:		de0%fe80::1
this will be in sync with next extended address format proposal
(which should be final - I don't want to make this kind of change again).

Revision 1.8 / (download) - annotate - [select for diffs], Thu Dec 30 08:54:20 1999 UTC (24 years, 4 months ago) by itojun
Branch: MAIN
Changes since 1.7: +9 -1 lines
Diff to previous 1.7 (colored)

replace NRL get{addr,name}info with KAME get{addr,name}info.

removed functionality:
	new code will not return AF_LOCAL addrinfo struct.
added funtionality:
	SOCK_RAW is permitted as ai_socktype (no servname allowed).
	draft-ietf-ipngwg-scopedaddr-format-00.txt

Revision 1.7 / (download) - annotate - [select for diffs], Sat Jul 3 18:14:51 1999 UTC (24 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_6_BASE, OPENBSD_2_6
Changes since 1.6: +3 -2 lines
Diff to previous 1.6 (colored)

proto net_addrcmp()

Revision 1.6 / (download) - annotate - [select for diffs], Wed Jun 23 21:55:29 1999 UTC (24 years, 11 months ago) by cmetz
Branch: MAIN
Changes since 1.5: +2 -1 lines
Diff to previous 1.5 (colored)

Added some protocol independent interfaces (supposedly IPv6 support APIs, but
ones that are useful for all protocols, not just IPv6).

Revision 1.5 / (download) - annotate - [select for diffs], Sat Jun 5 23:47:07 1999 UTC (24 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.4: +55 -1 lines
Diff to previous 1.4 (colored)

getaddrinfo() info prototypes and such; cmetz

Revision 1.4 / (download) - annotate - [select for diffs], Sat Apr 5 20:58:28 1997 UTC (27 years, 1 month ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_5_BASE, OPENBSD_2_5, OPENBSD_2_4_BASE, OPENBSD_2_4, OPENBSD_2_3_BASE, OPENBSD_2_3, OPENBSD_2_2_BASE, OPENBSD_2_2, OPENBSD_2_1_BASE, OPENBSD_2_1
Changes since 1.3: +4 -4 lines
Diff to previous 1.3 (colored)

Use in_addr_t not u_long.

Revision 1.3 / (download) - annotate - [select for diffs], Thu Mar 13 19:11:49 1997 UTC (27 years, 2 months ago) by downsj
Branch: MAIN
Changes since 1.2: +4 -2 lines
Diff to previous 1.2 (colored)

BIND 4.9.5 includes.

Revision 1.2 / (download) - annotate - [select for diffs], Mon Feb 19 19:53:13 1996 UTC (28 years, 3 months ago) by dm
Branch: MAIN
CVS Tags: OPENBSD_2_0_BASE, OPENBSD_2_0
Changes since 1.1: +56 -12 lines
Diff to previous 1.1 (colored)

netbsd: bind 4.9.3

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Wed Oct 18 08:41:13 1995 UTC (28 years, 7 months ago) by deraadt
CVS Tags: netbsd_1_1
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

initial import of NetBSD tree

Revision 1.1 / (download) - annotate - [select for diffs], Wed Oct 18 08:41:13 1995 UTC (28 years, 7 months ago) by deraadt
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.