diff options
author | Alessandro Rubini <rubini-list@gnudd.com> | 2009-08-07 13:58:56 +0200 |
---|---|---|
committer | Ben Warren <biggerbadderben@gmail.com> | 2009-08-25 13:35:54 -0700 |
commit | 5cfaa4e54d0eb8232fa1cf092d955fdaed5b673d (patch) | |
tree | ca7ad9207d11c9b410f340640c95214ba7aecd12 /common/cmd_ubifs.c | |
parent | 307ecb6db04eebdc06b8c87d48bf48d3cbd5e9d7 (diff) | |
download | u-boot-imx-5cfaa4e54d0eb8232fa1cf092d955fdaed5b673d.zip u-boot-imx-5cfaa4e54d0eb8232fa1cf092d955fdaed5b673d.tar.gz u-boot-imx-5cfaa4e54d0eb8232fa1cf092d955fdaed5b673d.tar.bz2 |
net: defragment IP packets
The defragmenting code is enabled by CONFIG_IP_DEFRAG; the code is
useful for TFTP and NFS transfers. The user can specify the maximum
defragmented payload as CONFIG_NET_MAXDEFRAG (default 16k).
Since NFS has a bigger per-packet overhead than TFTP, the static
reassembly buffer can hold CONFIG_NET_MAXDEFRAG + the NFS overhead.
The packet buffer is used as an array of "hole" structures, acting as
a double-linked list. Each new fragment can split a hole in two,
reduce a hole or fill a hole. No support is there for a fragment
overlapping two diffrent holes (i.e., thre new fragment is across an
already-received fragment).
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
Diffstat (limited to 'common/cmd_ubifs.c')
0 files changed, 0 insertions, 0 deletions