Non-functional changes, cleanups.
MFC after: 3 days
This commit is contained in:
parent
ba97bfb0de
commit
da8c34c382
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=361145
@ -2212,7 +2212,6 @@ sctp_asconf_iterator_stcb(struct sctp_inpcb *inp, struct sctp_tcb *stcb,
|
||||
struct sctp_nets *net;
|
||||
|
||||
TAILQ_FOREACH(net, &stcb->asoc.nets, sctp_next) {
|
||||
|
||||
/* delete this address if cached */
|
||||
if (net->ro._s_addr == ifa) {
|
||||
sctp_free_ifa(net->ro._s_addr);
|
||||
|
@ -309,8 +309,6 @@ typedef struct callout sctp_os_timer_t;
|
||||
#define SCTP_GATHER_MTU_FROM_IFN_INFO(ifn, ifn_index, af) ((struct ifnet *)ifn)->if_mtu
|
||||
#define SCTP_GATHER_MTU_FROM_ROUTE(sctp_ifa, sa, nh) ((uint32_t)((nh != NULL) ? nh->nh_mtu : 0))
|
||||
#define SCTP_GATHER_MTU_FROM_INTFC(sctp_ifn) ((sctp_ifn->ifn_p != NULL) ? ((struct ifnet *)(sctp_ifn->ifn_p))->if_mtu : 0)
|
||||
/* XXX: Setting MTU from the protocol in this way is simply incorrect */
|
||||
#define SCTP_SET_MTU_OF_ROUTE(sa, rt, mtu)
|
||||
|
||||
/* (de-)register interface event notifications */
|
||||
#define SCTP_REGISTER_INTERFACE(ifhandle, af)
|
||||
|
@ -6202,10 +6202,10 @@ sctp_prune_prsctp(struct sctp_tcb *stcb,
|
||||
if (chk->rec.data.timetodrop.tv_sec > (long)srcv->sinfo_timetolive) {
|
||||
/*
|
||||
* Lower numbers equates to higher
|
||||
* priority so if the one we are
|
||||
* looking at has a larger
|
||||
* priority we want to drop the data
|
||||
* and NOT retransmit it.
|
||||
* priority. So if the one we are
|
||||
* looking at has a larger priority,
|
||||
* we want to drop the data and NOT
|
||||
* retransmit it.
|
||||
*/
|
||||
if (chk->data) {
|
||||
/*
|
||||
|
@ -5451,8 +5451,6 @@ sctp_del_local_addr_ep(struct sctp_inpcb *inp, struct sctp_ifa *ifa)
|
||||
TAILQ_FOREACH(net, &stcb->asoc.nets, sctp_next) {
|
||||
if (net->ro._s_addr == laddr->ifa) {
|
||||
/* Yep, purge src address selected */
|
||||
|
||||
/* delete this address if cached */
|
||||
RO_NHFREE(&net->ro);
|
||||
sctp_free_ifa(net->ro._s_addr);
|
||||
net->ro._s_addr = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user