Deleted Added
full compact
sdp_main.c (274421) sdp_main.c (275329)
1
2/*-
3 * Copyright (c) 1982, 1986, 1988, 1990, 1993, 1995
4 * The Regents of the University of California. All rights reserved.
5 * Copyright (c) 2004 The FreeBSD Foundation. All rights reserved.
6 * Copyright (c) 2004-2008 Robert N. M. Watson. All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 875 unchanged lines hidden (view full) ---

884 * packet header and then let sbcompress do the hard part.
885 */
886 if (M_WRITABLE(n) && ncnt + cnt < SDP_MAX_SEND_SGES &&
887 n->m_pkthdr.len + mb->m_pkthdr.len - SDP_HEAD_SIZE <
888 ssk->xmit_size_goal) {
889 m_adj(mb, SDP_HEAD_SIZE);
890 n->m_pkthdr.len += mb->m_pkthdr.len;
891 n->m_flags |= mb->m_flags & (M_PUSH | M_URG);
1
2/*-
3 * Copyright (c) 1982, 1986, 1988, 1990, 1993, 1995
4 * The Regents of the University of California. All rights reserved.
5 * Copyright (c) 2004 The FreeBSD Foundation. All rights reserved.
6 * Copyright (c) 2004-2008 Robert N. M. Watson. All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 875 unchanged lines hidden (view full) ---

884 * packet header and then let sbcompress do the hard part.
885 */
886 if (M_WRITABLE(n) && ncnt + cnt < SDP_MAX_SEND_SGES &&
887 n->m_pkthdr.len + mb->m_pkthdr.len - SDP_HEAD_SIZE <
888 ssk->xmit_size_goal) {
889 m_adj(mb, SDP_HEAD_SIZE);
890 n->m_pkthdr.len += mb->m_pkthdr.len;
891 n->m_flags |= mb->m_flags & (M_PUSH | M_URG);
892 m_demote(mb, 1);
892 m_demote(mb, 1, 0);
893 sbcompress(sb, mb, sb->sb_mbtail);
894 return;
895 }
896 /*
897 * Not compressible, just append to the end and adjust counters.
898 */
899 sb->sb_lastrecord->m_flags |= M_PUSH;
900 sb->sb_lastrecord->m_nextpkt = mb;

--- 1063 unchanged lines hidden ---
893 sbcompress(sb, mb, sb->sb_mbtail);
894 return;
895 }
896 /*
897 * Not compressible, just append to the end and adjust counters.
898 */
899 sb->sb_lastrecord->m_flags |= M_PUSH;
900 sb->sb_lastrecord->m_nextpkt = mb;

--- 1063 unchanged lines hidden ---