rpc.tatd: refactor check to see if call is from loopback address
authorChuck Lever <chuck.lever@oracle.com>
Fri, 26 Sep 2008 16:39:13 +0000 (12:39 -0400)
committerSteve Dickson <steved@redhat.com>
Fri, 26 Sep 2008 16:39:13 +0000 (12:39 -0400)
commit4ac04d76dc0fffe48313d6a16b4ca9b44c135818
tree8b8d5e3e7f96b8c132eddbab597d5b5da0c194e8
parent92e4d5c342f15940362fc2b2df19df0893f0dd13
rpc.tatd: refactor check to see if call is from loopback address

Refactor common logic to check if SM_FOO request is from loopback
address.

We'll have to do something about this for IPv6.  On IPv6-capable
systems, there will be only one AF_INET6 listener.  The loopback caller
will get either an IPv6 loopback address, or a mapped IPv4 loopback --
either way this will be an AF_INET6 address.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Acked-by: Neil Brown <neilb@suse.de>
Signed-off-by: Steve Dickson <steved@redhat.com>
utils/statd/monitor.c