Add configuration for testing NxWM
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4708 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
4eae928050
commit
05a59b4751
@ -1339,12 +1339,13 @@ int cmd_nfsmount(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
|
||||
|
||||
/* Place all of the NFS arguements into the nfs_args structure */
|
||||
|
||||
memset(&data, 0, sizeof(data));
|
||||
|
||||
sin = (FAR struct sockaddr_in *)&data.addr;
|
||||
sin->sin_family = AF_INET;
|
||||
sin->sin_port = htons(NFS_PORT);
|
||||
sin->sin_addr = inaddr;
|
||||
|
||||
memset(&data, 0, sizeof(data));
|
||||
data.version = NFS_ARGSVERSION;
|
||||
data.proto = (tcp) ? IPPROTO_TCP : IPPROTO_UDP;
|
||||
data.sotype = (tcp) ? SOCK_STREAM : SOCK_DGRAM;
|
||||
|
Loading…
Reference in New Issue
Block a user