On Sep 26, 2008, at Sep 26, 2008, 5:20 PM, J. Bruce Fields wrote:
On Mon, Sep 15, 2008 at 04:27:30PM -0500, Chuck Lever wrote:
Clean up: When doing an RPCB_SET, make the kernel's rpcb client use
the
shorthand "::" for the universal form of the IPv6 ANY address.
Without this patch, rpcbind will advertise:
0000:0000:0000:0000:0000:0000:0000:0000.x.y
This is cosmetic only. It cleans up the display of information from
/sbin/rpcinfo.
Also applied.
+ if (ipv6_addr_any(&address_to_register->sin6_addr))
Nit: I fixed up some initial whitespace. Checkpatch or git apply
should
warn about this.
Checkpatch is my usual weapon of choice, but it's not an automated
part of my workflow. I guess this one got past me.
--b.
+ snprintf(buf, sizeof(buf), "::.%u.%u",
+ port >> 8, port & 0xff);
+ else
+ snprintf(buf, sizeof(buf), NIP6_FMT".%u.%u",
+ NIP6(address_to_register->sin6_addr),
+ port >> 8, port & 0xff);
map->r_addr = buf;
dprintk("RPC: %sregistering [%u, %u, %s, '%s'] with "
--
Chuck Lever
chuck[dot]lever[at]oracle[dot]com
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html