Bug 223729 - rpcinfo (and probably rpcbind) do not seem to support IPv6 addresses
Summary: rpcinfo (and probably rpcbind) do not seem to support IPv6 addresses
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 11.1-RELEASE
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-bugs mailing list
URL:
Keywords: ipv6
Depends on:
Blocks:
 
Reported: 2017-11-18 09:40 UTC by Jim Pirzyk
Modified: 2018-01-30 07:10 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jim Pirzyk freebsd_committer 2017-11-18 09:40:11 UTC
rpcinfo (and probably rpcbind) do not seem to support IPv6 addresses:

pirzyk@amigo:~/svn/puppet
25>rpcinfo -p ::1
rpcinfo: ::1: hostname nor servname provided, or not known
pirzyk@amigo:~/svn/puppet
26>rpcinfo -p 127.0.0.1
   program vers proto   port  service
    100000    4   tcp    111  rpcbind
    100000    3   tcp    111  rpcbind
    100000    2   tcp    111  rpcbind
    100000    4   udp    111  rpcbind
    100000    3   udp    111  rpcbind
    100000    2   udp    111  rpcbind
    100000    4 local    111  rpcbind
    100000    3 local    111  rpcbind
    100000    2 local    111  rpcbind
...

This also fails for non localhost IPv6 addresses.  Seems that inet_addr(3) does not understand IPv6 formatted address.
Comment 1 Conrad Meyer freebsd_committer 2018-01-30 07:10:07 UTC
I think this is a wider issue than one or two programs.  Some of the libc rpc APIs (including those used by rpcinfo) consume ipv4 sockaddr_in addresses only.