On Jan 21, 2009, at Jan 21, 2009, 5:25 PM, Ben Greear wrote:
I'm working on adding support to bind to local addresses, and
I noticed this code in nfs/getport.c
I believe the sizeof should probably be sizeof(*lb_addr) ?
Yes. Can you submit a patch to Steve and copy the list?
unsigned short nfs_getlocalport(const rpcprot_t program,
const rpcvers_t version,
const unsigned short protocol)
{
struct sockaddr_storage address;
struct sockaddr *lb_addr = (struct sockaddr *)&address;
socklen_t lb_len = sizeof(lb_addr);
unsigned short port = 0;
Thanks,
Ben
--
Ben Greear <greearb@xxxxxxxxxxxxxxx>
Candela Technologies Inc http://www.candelatech.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
--
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