diff options
author | archie <archie@FreeBSD.org> | 1999-11-15 20:17:04 +0000 |
---|---|---|
committer | archie <archie@FreeBSD.org> | 1999-11-15 20:17:04 +0000 |
commit | 2af28d62a11d8d4a48af90ebc4fb1adbdfe93687 (patch) | |
tree | 427ed91e2f3a17ed21fbec0ff0817d7e1f5e3ade /sys/net | |
parent | 4dcdfee42a3ffb9def479161d2e2ab80b5162267 (diff) | |
download | FreeBSD-src-2af28d62a11d8d4a48af90ebc4fb1adbdfe93687.zip FreeBSD-src-2af28d62a11d8d4a48af90ebc4fb1adbdfe93687.tar.gz |
Add some more comments to the sl_compress_tcp() function.
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/slcompress.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/sys/net/slcompress.c b/sys/net/slcompress.c index ca77222..200e9c1 100644 --- a/sys/net/slcompress.c +++ b/sys/net/slcompress.c @@ -148,8 +148,15 @@ sl_compress_init(comp, max_state) } /* - * Attempt to compress a TCP packet. This function assumes that the - * complete IP+TCP headers have been pulled up into the first mbuf. + * Attempt to compress an outgoing TCP packet and return the type of + * the result. The caller must have already verified that the protocol + * is TCP. The first mbuf must contain the complete IP and TCP headers, + * and "ip" must be == mtod(m, struct ip *). "comp" supplies the + * compression state, and "compress_cid" tells us whether it is OK + * to leave out the CID field when feasible. + * + * The caller is responsible for adjusting m->m_pkthdr.len upon return, + * if m is an M_PKTHDR mbuf. */ u_int sl_compress_tcp(m, ip, comp, compress_cid) |