Alan Somers
a85f12322c
"source routing" in rpcbind
...
Fix a bug in rpcbind for multihomed hosts. If the server had interfaces on
two separate subnets, and a client on the first subnet contacted rpcbind at
the address on the second subnet, rpcbind would advertise addresses on the
first subnet. This is a bug, because it should prefer to advertise the
address where it was contacted. The requested service might be firewalled
off from the address on the first subnet, for example.
usr.sbin/rpcbind/check_bound.c
If the address on which a request was received is known, pass that
to addrmerge as the clnt_uaddr parameter. That is what addrmerge's
comment indicates the parameter is supposed to mean. The previous
behavior is that clnt_uaddr would contain the address from which the
client sent the request.
usr.sbin/rpcbind/util.c
Modify addrmerge to prefer to use an IP that is equal to clnt_uaddr,
if one is found. Refactor the relevant portion of the function for
clarity, and to reduce the number of ifdefs.
etc/mtree/BSD.tests.dist
usr.sbin/rpcbind/tests/Makefile
usr.sbin/rpcbind/tests/addrmerge_test.c
Add unit tests for usr.sbin/rpcbind/util.c:addrmerge.
usr.sbin/rpcbind/check_bound.c
usr.sbin/rpcbind/rpcbind.h
usr.sbin/rpcbind/util.c
Constify some function arguments
Reviewed by: imp
MFC after: 4 weeks
Sponsored by: Spectra Logic Corp
Differential Revision: https://reviews.freebsd.org/D4690
2016-01-06 00:00:11 +00:00
..
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2015-11-25 19:44:43 +00:00
2015-06-13 19:20:56 +00:00
2015-11-25 18:37:42 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2015-09-25 19:44:01 +00:00
2015-09-27 04:54:29 +00:00
2015-12-01 05:18:48 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2015-12-01 05:23:19 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2015-12-01 05:23:19 +00:00
2015-12-31 10:55:50 +00:00
2015-12-01 05:23:19 +00:00
2015-12-01 05:23:19 +00:00
2015-12-01 05:23:19 +00:00
2015-11-21 21:14:16 +00:00
2015-12-18 17:52:08 +00:00
2015-09-25 19:44:01 +00:00
2015-11-10 11:19:36 +00:00
2015-12-01 05:23:19 +00:00
2016-01-05 21:05:17 +00:00
2015-12-01 05:23:19 +00:00
2015-06-13 19:20:56 +00:00
2015-12-31 01:57:55 +00:00
2015-06-13 19:20:56 +00:00
2015-08-01 10:40:17 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2015-10-21 05:37:09 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2016-01-05 16:21:20 +00:00
2015-12-11 13:55:31 +00:00
2015-09-27 13:47:28 +00:00
2015-12-01 05:23:19 +00:00
2015-12-14 15:44:34 +00:00
2015-06-13 19:20:56 +00:00
2015-12-01 05:18:48 +00:00
2015-12-01 05:23:19 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2015-11-25 19:44:43 +00:00
2015-06-13 19:20:56 +00:00
2015-09-25 19:44:01 +00:00
2015-10-12 08:16:03 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2015-12-04 03:17:17 +00:00
2015-06-13 19:20:56 +00:00
2015-11-09 23:19:36 +00:00
2015-10-15 01:48:52 +00:00
2015-12-28 08:53:31 +00:00
2015-12-01 05:23:19 +00:00
2015-10-21 05:37:09 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2016-01-01 17:06:16 +00:00
2015-12-01 05:18:48 +00:00
2015-12-01 05:23:19 +00:00
2015-09-15 11:21:16 +00:00
2015-06-13 19:20:56 +00:00
2015-09-19 23:48:06 +00:00
2015-12-09 18:07:26 +00:00
2015-12-01 05:23:19 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2015-12-01 05:23:19 +00:00
2015-12-01 05:18:48 +00:00
2015-07-12 17:03:50 +00:00
2015-12-22 00:58:35 +00:00
2016-01-02 18:35:11 +00:00
2015-11-27 21:27:39 +00:00
2015-06-13 19:20:56 +00:00
2015-12-01 05:18:48 +00:00
2015-09-25 19:44:01 +00:00
2015-12-11 05:27:55 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2015-11-26 01:14:40 +00:00
2015-06-13 19:20:56 +00:00
2015-11-25 19:44:43 +00:00
2015-06-13 19:20:56 +00:00
2015-12-29 20:17:40 +00:00
2015-11-25 19:44:43 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2015-09-29 17:54:01 +00:00
2015-10-21 05:37:09 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2015-12-01 05:23:19 +00:00
2015-12-29 11:24:41 +00:00
2015-06-13 19:20:56 +00:00
2015-12-29 11:24:41 +00:00
2015-10-22 21:13:35 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2015-12-02 05:31:01 +00:00
2015-12-02 05:31:01 +00:00
2015-10-27 23:35:08 +00:00
2015-12-19 09:18:01 +00:00
2015-10-31 09:45:11 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2015-11-30 22:16:30 +00:00
2015-09-22 01:31:01 +00:00
2015-06-13 19:20:56 +00:00
2015-10-12 08:16:03 +00:00
2015-06-16 23:37:19 +00:00
2015-06-13 19:20:56 +00:00
2015-12-01 05:23:19 +00:00
2014-06-20 09:57:27 +00:00
2015-12-07 23:53:01 +00:00
2015-09-26 14:13:51 +00:00
2015-11-23 23:48:07 +00:00
2015-06-13 19:20:56 +00:00
2015-09-08 22:24:20 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2015-11-18 15:12:24 +00:00
2015-12-10 01:52:29 +00:00
2015-09-25 19:44:01 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2015-10-21 05:37:09 +00:00
2015-06-13 19:20:56 +00:00
2015-11-25 19:44:43 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2015-12-01 05:18:48 +00:00
2015-12-29 00:08:32 +00:00
2015-12-28 05:48:22 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2015-12-29 11:24:41 +00:00
2015-12-29 11:24:41 +00:00
2015-06-13 19:20:56 +00:00
2015-11-26 01:14:40 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2016-01-06 00:00:11 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2015-10-30 00:33:03 +00:00
2015-06-13 19:20:56 +00:00
2015-12-29 11:24:41 +00:00
2015-06-13 19:20:56 +00:00
2015-10-12 08:16:03 +00:00
2015-11-26 01:14:40 +00:00
2015-09-08 22:50:17 +00:00
2015-06-13 19:20:56 +00:00
2015-12-15 13:01:14 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2015-11-25 20:01:11 +00:00
2015-12-01 05:23:19 +00:00
2015-11-26 01:14:40 +00:00
2015-11-26 01:14:40 +00:00
2015-06-13 19:20:56 +00:00
2015-07-08 16:19:32 +00:00
2015-10-12 08:16:03 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2015-09-01 06:32:02 +00:00
2015-10-27 01:26:50 +00:00
2015-11-21 16:37:11 +00:00
2015-12-01 05:23:19 +00:00
2015-06-13 19:20:56 +00:00
2015-12-22 05:57:23 +00:00
2015-12-01 05:23:19 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2015-12-01 05:23:19 +00:00
2015-06-13 19:20:56 +00:00
2015-08-12 10:34:05 +00:00
2015-10-06 22:49:25 +00:00
2015-08-19 21:46:12 +00:00
2015-08-17 09:18:54 +00:00
2015-09-25 19:44:01 +00:00
2015-10-18 21:38:25 +00:00
2015-07-28 02:32:40 +00:00
2015-11-16 03:18:40 +00:00
2015-12-15 15:46:14 +00:00
2015-09-17 05:06:34 +00:00
2015-07-28 02:32:40 +00:00
2015-12-18 17:30:22 +00:00
2015-09-03 07:18:52 +00:00
2015-10-27 23:35:02 +00:00
2015-06-13 19:20:56 +00:00
2015-12-21 17:41:08 +00:00
2015-12-21 17:41:08 +00:00
2015-12-21 17:41:08 +00:00
2015-11-08 20:56:04 +00:00
2015-12-21 17:41:08 +00:00
2015-11-21 16:37:11 +00:00
2015-12-21 17:41:08 +00:00
2015-12-21 17:41:08 +00:00