OpenBSD CVS

CVS log for src/include/netdb.h


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

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: OPENBSD_5_6_BASE


Revision 1.32 / (download) - annotate - [select for diffs], Mon Apr 28 21:38:59 2014 UTC (10 years, 1 month 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

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.