ns-allinone-2.35/ns-2.35/dccp/dccp_ackv.cc
bool DCCPAckVector::addPacket(u_int32_t seqnum, dccp_ecn_codepoint ecn, bool addNonce){
	dccp_packet_state state = DCCP_PACKET_RECV;
	if (ecn == ECN_CE)
		state = DCCP_PACKET_ECN;

	bool result = addPacket(seqnum, state);
	if (result && addNonce && (ecn == ECN_ECT0 || ecn == ECN_ECT1))
		ene_ = ene_ ^ ecn;
	
	return result;
}
/* Add a packet to the ack vector (using ackv_cons_ when needed)
 * Will fill with NOT_RECV packets when packets are missing
 * arg: seqnum   - sequence number of packet
 *      ecn      - packets ecn code point
 *      addNonce - if true, add packet nonce to ecn echo sum
 * ret: true if successful
 *      false if more space is needed and doubleMaxSize() fails
 *            or if packet is older than the oldest in the vector
 */
Add a packet to the ack vector (using ackv_cons_ when needed)
Will fill with NOT_RECV packets when packets are missing
arg: seqnum   - sequence number of packet
ecn      - packets ecn code point
addNonce - if true, add packet nonce to ecn echo sum
ret: true if successful
false if more space is needed and doubleMaxSize() fails
or if packet is older than the oldest in the vector
Add a packet to the ack vector ( using ackv_cons_ when needed ) Will fill with NOT_RECV packets when packets are missing arg : seqnum - sequence number of packet ecn - packets ecn code point addNonce - if true add packet nonce to ecn echo sum ret : true if successful false if more space is needed and doubleMaxSize () fails or if packet is older than the oldest in the vector
bool DCCPAckVector::addPacket(u_int32_t seqnum, dccp_ecn_codepoint ecn, bool addNonce){
	dccp_packet_state state = DCCP_PACKET_RECV;
	if (ecn == ECN_CE)
		state = DCCP_PACKET_ECN;
	bool result = addPacket(seqnum, state);
	if (result && addNonce && (ecn == ECN_ECT0 || ecn == ECN_ECT1))
		ene_ = ene_ ^ ecn;
	return result;
}
bool DCCPAckVector :: addPacket ( u_int32_t seqnum , dccp_ecn_codepoint ecn , bool addNonce ) { dccp_packet_state state = DCCP_PACKET_RECV ; if ( ecn == ECN_CE ) state = DCCP_PACKET_ECN ; bool result = addPacket ( seqnum , state ) ; if ( result && addNonce && ( ecn == ECN_ECT0 || ecn == ECN_ECT1 ) ) ene_ = ene_ ^ ecn ; return result ; }
Add a packet to the ack vector (using ackv_cons_ when needed)
 Will fill with NOT_RECV packets when packets are missing
 arg: seqnum   - sequence number of packet
      ecn      - packets ecn code point
      addNonce - if true, add packet nonce to ecn echo sum
 ret: true if successful
      false if more space is needed and doubleMaxSize() fails
            or if packet is older than the oldest in the vector
Add a packet to the ack vector ( using ackv_cons_ when needed ) Will fill with NOT_RECV packets when packets are missing arg : seqnum - sequence number of packet ecn - packets ecn code point addNonce - if true add packet nonce to ecn echo sum ret : true if successful false if more space is needed and doubleMaxSize () fails or if packet is older than the oldest in the vector