Add configuration for testing NxWM

git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4708 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
patacongo
2012-05-07 12:03:33 +00:00
parent 6aadb593e2
commit 424579fcba
7 changed files with 2306 additions and 1 deletions
+2 -1
View File
@@ -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;