Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Feb 2019 11:58:40 +0000 (UTC)
From:      Sergey Kandaurov <pluknet@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r344358 - stable/12/lib/libc/net
Message-ID:  <201902201158.x1KBwed7069320@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pluknet
Date: Wed Feb 20 11:58:40 2019
New Revision: 344358
URL: https://svnweb.freebsd.org/changeset/base/344358

Log:
  MFC r343967:
  Sync "struct addrinfo" declaration with netdb.h.
  
  PR:		225880

Modified:
  stable/12/lib/libc/net/getaddrinfo.3
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/lib/libc/net/getaddrinfo.3
==============================================================================
--- stable/12/lib/libc/net/getaddrinfo.3	Wed Feb 20 11:56:30 2019	(r344357)
+++ stable/12/lib/libc/net/getaddrinfo.3	Wed Feb 20 11:58:40 2019	(r344358)
@@ -18,7 +18,7 @@
 .\"
 .\" $FreeBSD$
 .\"
-.Dd September 13, 2017
+.Dd February 10, 2019
 .Dt GETADDRINFO 3
 .Os
 .Sh NAME
@@ -78,14 +78,14 @@ as defined by
 .Aq Pa netdb.h :
 .Bd -literal
 struct addrinfo {
-	int ai_flags;		/* input flags */
-	int ai_family;		/* address family for socket */
-	int ai_socktype;	/* socket type */
-	int ai_protocol;	/* protocol for socket */
-	socklen_t ai_addrlen;	/* length of socket-address */
-	struct sockaddr *ai_addr; /* socket-address for socket */
-	char *ai_canonname;	/* canonical name for service location */
-	struct addrinfo *ai_next; /* pointer to next in list */
+        int     ai_flags;       /* AI_PASSIVE, AI_CANONNAME, .. */
+        int     ai_family;      /* AF_xxx */
+        int     ai_socktype;    /* SOCK_xxx */
+        int     ai_protocol;    /* 0 or IPPROTO_xxx for IPv4 and IPv6 */
+        socklen_t ai_addrlen;   /* length of ai_addr */
+        char    *ai_canonname;  /* canonical name for hostname */
+        struct  sockaddr *ai_addr;      /* binary address */
+        struct  addrinfo *ai_next;      /* next structure in linked list */
 };
 .Ed
 .Pp



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201902201158.x1KBwed7069320>