Get rid of unused fields addr_over which is never really used,

only copied around.

Approved by: rrs (mentor)
This commit is contained in:
Michael Tuexen 2009-11-17 23:03:38 +00:00
parent 0e5e416780
commit 0e891bcdc1
3 changed files with 0 additions and 10 deletions

View File

@ -5875,10 +5875,8 @@ sctp_msg_append(struct sctp_tcb *stcb,
sp->strseq = 0;
if (sp->sinfo_flags & SCTP_ADDR_OVER) {
sp->net = net;
sp->addr_over = 1;
} else {
sp->net = stcb->asoc.primary_destination;
sp->addr_over = 0;
}
atomic_add_int(&sp->net->ref_count, 1);
(void)SCTP_GETTIME_TIMEVAL(&sp->ts);
@ -7052,7 +7050,6 @@ sctp_move_to_outqueue(struct sctp_tcb *stcb, struct sctp_nets *net,
chk->rec.data.timetodrop = sp->ts;
chk->flags = sp->act_flags;
chk->addr_over = sp->addr_over;
chk->whoTo = net;
atomic_add_int(&chk->whoTo->ref_count, 1);
@ -12252,10 +12249,8 @@ sctp_copy_it_in(struct sctp_tcb *stcb,
} else {
if (sp->sinfo_flags & SCTP_ADDR_OVER) {
sp->net = net;
sp->addr_over = 1;
} else {
sp->net = asoc->primary_destination;
sp->addr_over = 0;
}
atomic_add_int(&sp->net->ref_count, 1);
sctp_set_prsctp_policy(sp);

View File

@ -364,9 +364,6 @@ struct sctp_tmit_chunk {
uint8_t pad_inplace;
uint8_t do_rtt;
uint8_t book_size_scale;
uint8_t addr_over; /* flag which is set if the dest address for
* this chunk is overridden by user. Used for
* CMT (iyengar@cis.udel.edu, 2005/06/21) */
uint8_t no_fr_allowed;
uint8_t pr_sctp_on;
uint8_t copy_by_ref;
@ -444,7 +441,6 @@ struct sctp_stream_queue_pending {
uint8_t holds_key_ref;
uint8_t msg_is_complete;
uint8_t some_taken;
uint8_t addr_over;
uint8_t pr_sctp_on;
uint8_t sender_all_done;
uint8_t put_last_out;

View File

@ -4791,7 +4791,6 @@ sctp_release_pr_sctp_chunk(struct sctp_tcb *stcb, struct sctp_tmit_chunk *tp1,
chk->rec.data.payloadtype = sp->ppid;
chk->rec.data.context = sp->context;
chk->flags = sp->act_flags;
chk->addr_over = sp->addr_over;
chk->whoTo = sp->net;
atomic_add_int(&chk->whoTo->ref_count, 1);
chk->rec.data.TSN_seq = atomic_fetchadd_int(&stcb->asoc.sending_seq, 1);