Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emulab-devel
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
143
Issues
143
List
Boards
Labels
Service Desk
Milestones
Merge Requests
6
Merge Requests
6
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
emulab
emulab-devel
Commits
00a3925f
Commit
00a3925f
authored
Apr 09, 2003
by
Mike Hibler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor cleanup
parent
f5ea8480
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
8 deletions
+14
-8
os/frisbee.redux/decls.h
os/frisbee.redux/decls.h
+12
-6
os/frisbee.redux/server.c
os/frisbee.redux/server.c
+2
-2
No files found.
os/frisbee.redux/decls.h
View file @
00a3925f
...
...
@@ -12,22 +12,28 @@
#include "log.h"
/*
* We operate in terms of this blocksize (in bytes).
* Ethernet MTU (1514) - eth header (14) - min UDP/IP (28) - BLOCK msg
* header (24).
*/
#define
BLOCKSIZE 1024
#define
MAXBLOCKSIZE 1448
/*
* Each chunk is this many blocks.
* Images are broken into chunks which are the standalone unit of decompression
* Chunks are broken into blocks which are the unit of transmission
*/
#define CHUNKSIZE 1024
#define BLOCKSIZE 1024
/*
*
See if
we can represent a bitmap of blocks in a single packet.
*
If so, then allow partial request messages
.
*
Make sure
we can represent a bitmap of blocks in a single packet.
*
Make sure we can fit a block in a single ethernet MTU
.
*/
#if (CHUNKSIZE%CHAR_BIT) != 0 || (CHUNKSIZE/CHAR_BIT) >
1450
#if (CHUNKSIZE%CHAR_BIT) != 0 || (CHUNKSIZE/CHAR_BIT) >
MAXBLOCKSIZE
#error "Invalid chunk size"
#endif
#if BLOCKSIZE > MAXBLOCKSIZE
#error "Invalid block size"
#endif
/*
* Chunk buffers and output write buffers constitute most of the memory
...
...
os/frisbee.redux/server.c
View file @
00a3925f
...
...
@@ -1079,8 +1079,8 @@ calcburst(void)
bursts
=
0
;
}
#define LINK_OVERHEAD (14
+ 20)
/* ethernet (hdr + preamble +
gap) */
#define IP_OVERHEAD (20
+ 8)
/* UDP + I
P hdrs */
#define LINK_OVERHEAD (14
+4+8+12)
/* ethernet (hdr+CRC+preamble+
gap) */
#define IP_OVERHEAD (20
+8)
/* IP + UD
P hdrs */
/*
* Compute the approximate send rate. Due to typically coarse grained
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment