X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/d52fe63fc81f7e44faaae711812a211a78434976..9bccf70c0258c7cac2dcb80011b2a964d884c552:/bsd/net/slcompress.c?ds=sidebyside diff --git a/bsd/net/slcompress.c b/bsd/net/slcompress.c index 7875c4e9d..47108b410 100644 --- a/bsd/net/slcompress.c +++ b/bsd/net/slcompress.c @@ -52,6 +52,7 @@ * SUCH DAMAGE. * * @(#)slcompress.c 8.2 (Berkeley) 4/16/94 + * $FreeBSD: src/sys/net/slcompress.c,v 1.16 1999/12/29 04:38:37 peter Exp $ */ /* @@ -167,6 +168,17 @@ sl_compress_init(comp, max_state) } \ } +/* + * 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) struct mbuf *m;