]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC 281734-281736,287997-287998:
authorhrs <hrs@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 20 Sep 2015 22:27:19 +0000 (22:27 +0000)
committerhrs <hrs@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 20 Sep 2015 22:27:19 +0000 (22:27 +0000)
commit4edbbe474cd996e5233b60794e0cf18a5a0850db
treecbe45a1efa9eb8284f9c981d87cc744fe618822f
parentda71770d826db3b640e5e136d33d45de125603c1
MFC 281734-281736,287997-287998:

- Fix a crash on a rpc entry when an IPv6 address is explicitly
  specified in -a flag.

- Fix a bug that sockaddr_in was used where sockaddr_in6 should have
  been used.  This was not actually harmful because offsetof(struct
  sockaddr_in, sin_port) is equal to offsetof(struct sockaddr_in6,
  sin6_port).

- Remove unused union p_un.

- Use NI_MAXHOST-long buffer for getnameinfo().
  Although INET6_ADDRSTRLEN was designed to hold the longest
  IPv6 address in IPv4-mapped address format a long time ago,
  getnameinfo() can return scope identifier in addition to it.

git-svn-id: svn://svn.freebsd.org/base/stable/10@288048 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
usr.sbin/inetd/inetd.c