diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-11-15 13:13:23 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-11-15 13:13:23 -0600 |
commit | 24a33a43436bcc8430c5c1e6707dedc8c2531171 (patch) | |
tree | bf837b9244093960c729978056c8097c198541a0 /nuttx/fs/nfs | |
parent | cf1c261a3dccb0f1ab7c98f1ad3900417b1d8262 (diff) | |
download | px4-nuttx-24a33a43436bcc8430c5c1e6707dedc8c2531171.tar.gz px4-nuttx-24a33a43436bcc8430c5c1e6707dedc8c2531171.tar.bz2 px4-nuttx-24a33a43436bcc8430c5c1e6707dedc8c2531171.zip |
Network: All logic will now handle varialbe length link layer protocol headers within incoming packets. This permits use of multiple network interfaces with differing data links. For example, ETHERNET + SLIP
Diffstat (limited to 'nuttx/fs/nfs')
-rw-r--r-- | nuttx/fs/nfs/nfs_vfsops.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/nuttx/fs/nfs/nfs_vfsops.c b/nuttx/fs/nfs/nfs_vfsops.c index 362343d01..fe7a77f0d 100644 --- a/nuttx/fs/nfs/nfs_vfsops.c +++ b/nuttx/fs/nfs/nfs_vfsops.c @@ -1713,11 +1713,17 @@ static int nfs_bind(FAR struct inode *blkdriver, FAR const void *data, buflen = tmp; } - /* But don't let the buffer size exceed the MSS of the socket type */ + /* But don't let the buffer size exceed the MSS of the socket type. + * + * In the case where there are multiple network devices with different + * link layer protocols (CONFIG_NET_MULTILINK), each network device + * may support a different UDP MSS value. Here we arbitrarily select + * the minimum MSS for that case. + */ - if (buflen > UDP_MSS) + if (buflen > MIN_UDP_MSS) { - buflen = UDP_MSS; + buflen = MIN_UDP_MSS; } /* Create an instance of the mountpt state structure */ |