Hiroki Sato
20d96999a4
Make getnameinfo(3) salen requirement less strict and
...
document details of salen in getnameinfo(3) manual page.
getnameinfo(3) returned EAI_FAIL when salen was not equal to
the length corresponding to the value specified by sa->sa_family.
However, POSIX or RFC 3493 does not require it and RFC 4038
Sec.6.2.3 shows an example passing sizeof(struct sockaddr_storage)
to salen.
This change makes the requirement less strict by accepting
salen up to sizeof(struct sockaddr_storage). It also includes
two more changes: one is to fix return values because both SUSv4
and RFC 3493 require EAI_FAMILY when the address length is invalid,
another is to fix sa_len dependency in PF_LOCAL.
Pointed out by: Christophe Beauval
Reviewed by: ae
Differential Revision: https://reviews.freebsd.org/D14585
2018-03-15 13:46:28 +00:00
..
2017-10-31 00:07:04 +00:00
2018-03-04 17:06:37 +00:00
2017-11-26 02:00:33 +00:00
2017-10-31 00:07:04 +00:00
2017-10-31 00:07:04 +00:00
2018-01-24 14:24:17 +00:00
2017-10-31 00:07:04 +00:00
2017-10-31 00:07:04 +00:00
2017-10-31 00:07:04 +00:00
2017-10-31 00:07:04 +00:00
2017-11-26 02:00:33 +00:00
2017-11-26 02:00:33 +00:00
2017-10-31 00:07:04 +00:00
2017-10-31 00:07:04 +00:00
2017-10-31 00:07:04 +00:00
2018-03-15 13:46:28 +00:00
2017-11-26 02:00:33 +00:00
2017-10-31 00:07:04 +00:00
2017-07-11 00:32:48 +00:00
2017-11-26 02:00:33 +00:00
2017-12-27 21:36:37 +00:00
2017-10-08 17:29:43 +00:00
2018-02-26 19:08:27 +00:00
2017-12-25 13:17:29 +00:00
2017-10-31 00:07:04 +00:00
2018-02-10 14:45:29 +00:00
2018-02-02 05:04:43 +00:00
2017-11-26 02:00:33 +00:00
2017-10-31 00:07:04 +00:00
2018-01-23 22:41:13 +00:00
2017-10-31 00:07:04 +00:00
2018-02-14 23:52:39 +00:00
2017-12-21 04:21:59 +00:00
2017-11-26 02:00:33 +00:00
2017-10-31 00:07:04 +00:00
2018-03-14 20:55:28 +00:00
2017-10-31 00:07:04 +00:00
2018-01-29 22:38:23 +00:00
2018-03-02 15:12:18 +00:00
2017-10-31 00:07:04 +00:00
2017-07-05 02:58:46 +00:00
2017-10-31 00:07:04 +00:00
2017-10-31 00:07:04 +00:00
2017-10-31 00:07:04 +00:00
2017-11-30 20:33:45 +00:00
2018-03-14 20:55:28 +00:00
2017-10-31 00:03:36 +00:00
2018-01-31 21:41:42 +00:00
2017-11-26 02:00:33 +00:00
2017-10-31 00:07:04 +00:00
2017-11-26 02:00:33 +00:00
2018-01-21 21:09:08 +00:00
2018-02-23 03:11:43 +00:00
2018-03-11 19:26:34 +00:00
2017-11-26 02:00:33 +00:00
2017-11-26 02:00:33 +00:00
2017-11-26 02:00:33 +00:00
2017-10-31 00:07:04 +00:00
2017-10-31 00:07:04 +00:00
2018-03-09 18:51:24 +00:00
2017-12-13 16:30:39 +00:00
2018-01-12 23:25:05 +00:00
2017-10-31 00:07:04 +00:00
2017-11-26 02:00:33 +00:00
2017-11-03 21:04:22 +00:00
2017-11-26 02:00:33 +00:00
2018-01-16 21:43:21 +00:00
2017-11-08 12:34:47 +00:00
2017-10-31 00:07:04 +00:00
2017-11-26 02:00:33 +00:00
2017-12-28 01:31:28 +00:00
2017-10-31 00:07:04 +00:00
2017-11-26 02:00:33 +00:00
2017-10-31 19:52:30 +00:00
2017-10-31 00:07:04 +00:00
2017-01-20 04:37:03 +00:00
2017-11-26 02:00:33 +00:00
2018-01-17 16:41:22 +00:00
2018-01-16 09:31:01 +00:00
2017-12-06 17:52:01 +00:00
2017-11-26 02:00:33 +00:00
2017-11-26 02:00:33 +00:00
2018-01-29 14:00:33 +00:00
2017-11-26 02:00:33 +00:00
2017-11-18 14:26:50 +00:00
2017-10-31 00:07:04 +00:00
2017-11-26 02:00:33 +00:00
2017-11-26 02:00:33 +00:00
2017-10-31 00:07:04 +00:00
2017-11-26 02:00:33 +00:00
2017-01-20 04:35:36 +00:00
2017-10-31 00:07:04 +00:00
2017-01-20 04:35:18 +00:00
2017-01-20 04:34:34 +00:00
2017-10-31 00:07:04 +00:00
2017-11-26 02:00:33 +00:00
2017-11-26 02:00:33 +00:00
2018-03-12 13:32:51 +00:00
2017-11-26 02:00:33 +00:00
2017-07-31 19:07:45 +00:00
2018-01-27 22:27:55 +00:00
2017-11-26 02:00:33 +00:00
2017-10-31 00:07:04 +00:00
2018-03-02 04:34:53 +00:00
2017-11-26 02:00:33 +00:00
2017-11-26 02:00:33 +00:00
2017-10-31 00:07:04 +00:00
2017-11-26 02:00:33 +00:00
2017-11-26 02:00:33 +00:00
2018-03-04 18:00:32 +00:00
2017-11-26 02:00:33 +00:00
2018-02-26 19:19:05 +00:00
2017-10-31 00:07:04 +00:00
2017-10-31 00:07:04 +00:00
2017-11-20 19:49:47 +00:00
2017-11-26 02:00:33 +00:00
2017-10-31 00:07:04 +00:00
2017-11-26 16:41:30 +00:00
2018-02-14 07:59:30 +00:00
2017-11-20 19:49:47 +00:00
2018-01-22 02:44:41 +00:00