svn commit: r199459 - head/sys/netinet
Michael Tuexen
tuexen at FreeBSD.org
Tue Nov 17 23:03:39 UTC 2009
Author: tuexen
Date: Tue Nov 17 23:03:38 2009
New Revision: 199459
URL: http://svn.freebsd.org/changeset/base/199459
Log:
Get rid of unused fields addr_over which is never really used,
only copied around.
Approved by: rrs (mentor)
Modified:
head/sys/netinet/sctp_output.c
head/sys/netinet/sctp_structs.h
head/sys/netinet/sctputil.c
Modified: head/sys/netinet/sctp_output.c
==============================================================================
--- head/sys/netinet/sctp_output.c Tue Nov 17 22:47:20 2009 (r199458)
+++ head/sys/netinet/sctp_output.c Tue Nov 17 23:03:38 2009 (r199459)
@@ -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 @@ dont_do_it:
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 @@ skip_copy:
} 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);
Modified: head/sys/netinet/sctp_structs.h
==============================================================================
--- head/sys/netinet/sctp_structs.h Tue Nov 17 22:47:20 2009 (r199458)
+++ head/sys/netinet/sctp_structs.h Tue Nov 17 23:03:38 2009 (r199459)
@@ -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 at 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;
Modified: head/sys/netinet/sctputil.c
==============================================================================
--- head/sys/netinet/sctputil.c Tue Nov 17 22:47:20 2009 (r199458)
+++ head/sys/netinet/sctputil.c Tue Nov 17 23:03:38 2009 (r199459)
@@ -4791,7 +4791,6 @@ next_on_sent:
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);
More information about the svn-src-all
mailing list