chunk.c (5c34202b8bf942da411b6599668a76b07449bbfd) | chunk.c (4cd57c8078fae0a4b1bf421191e94626d0cba92a) |
---|---|
1/* SCTP kernel reference Implementation 2 * (C) Copyright IBM Corp. 2003, 2004 3 * 4 * This file is part of the SCTP kernel reference Implementation 5 * 6 * This file contains the code relating the chunk abstraction. 7 * 8 * The SCTP reference implementation is free software; --- 180 unchanged lines hidden (view full) --- 189 msecs_to_jiffies(sinfo->sinfo_timetolive); 190 msg->can_abandon = 1; 191 SCTP_DEBUG_PRINTK("%s: msg:%p expires_at: %ld jiffies:%ld\n", 192 __FUNCTION__, msg, msg->expires_at, jiffies); 193 } 194 195 max = asoc->frag_point; 196 | 1/* SCTP kernel reference Implementation 2 * (C) Copyright IBM Corp. 2003, 2004 3 * 4 * This file is part of the SCTP kernel reference Implementation 5 * 6 * This file contains the code relating the chunk abstraction. 7 * 8 * The SCTP reference implementation is free software; --- 180 unchanged lines hidden (view full) --- 189 msecs_to_jiffies(sinfo->sinfo_timetolive); 190 msg->can_abandon = 1; 191 SCTP_DEBUG_PRINTK("%s: msg:%p expires_at: %ld jiffies:%ld\n", 192 __FUNCTION__, msg, msg->expires_at, jiffies); 193 } 194 195 max = asoc->frag_point; 196 |
197 /* If the the peer requested that we authenticate DATA chunks 198 * we need to accound for bundling of the AUTH chunks along with 199 * DATA. 200 */ 201 if (sctp_auth_send_cid(SCTP_CID_DATA, asoc)) { 202 struct sctp_hmac *hmac_desc = sctp_auth_asoc_get_hmac(asoc); 203 204 if (hmac_desc) 205 max -= WORD_ROUND(sizeof(sctp_auth_chunk_t) + 206 hmac_desc->hmac_len); 207 } 208 |
|
197 whole = 0; 198 first_len = max; 199 200 /* Encourage Cookie-ECHO bundling. */ 201 if (asoc->state < SCTP_STATE_COOKIE_ECHOED) { 202 whole = msg_len / (max - SCTP_ARBITRARY_COOKIE_ECHO_LEN); 203 204 /* Account for the DATA to be bundled with the COOKIE-ECHO. */ --- 105 unchanged lines hidden --- | 209 whole = 0; 210 first_len = max; 211 212 /* Encourage Cookie-ECHO bundling. */ 213 if (asoc->state < SCTP_STATE_COOKIE_ECHOED) { 214 whole = msg_len / (max - SCTP_ARBITRARY_COOKIE_ECHO_LEN); 215 216 /* Account for the DATA to be bundled with the COOKIE-ECHO. */ --- 105 unchanged lines hidden --- |