Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/sctp_var.h
Show First 20 Lines • Show All 181 Lines • ▼ Show 20 Lines | #define sctp_alloc_a_chunk(_stcb, _chk) { \ | ||||
} \ | } \ | ||||
} | } | ||||
#define sctp_free_remote_addr(__net) { \ | #define sctp_free_remote_addr(__net) { \ | ||||
if ((__net)) { \ | if ((__net)) { \ | ||||
if (SCTP_DECREMENT_AND_CHECK_REFCOUNT(&(__net)->ref_count)) { \ | if (SCTP_DECREMENT_AND_CHECK_REFCOUNT(&(__net)->ref_count)) { \ | ||||
(void)SCTP_OS_TIMER_STOP(&(__net)->rxt_timer.timer); \ | (void)SCTP_OS_TIMER_STOP(&(__net)->rxt_timer.timer); \ | ||||
if ((__net)->ro.ro_rt) { \ | RO_NHFREE(&(__net)->ro); \ | ||||
RTFREE((__net)->ro.ro_rt); \ | |||||
(__net)->ro.ro_rt = NULL; \ | |||||
} \ | |||||
if ((__net)->src_addr_selected) { \ | if ((__net)->src_addr_selected) { \ | ||||
sctp_free_ifa((__net)->ro._s_addr); \ | sctp_free_ifa((__net)->ro._s_addr); \ | ||||
(__net)->ro._s_addr = NULL; \ | (__net)->ro._s_addr = NULL; \ | ||||
} \ | } \ | ||||
(__net)->src_addr_selected = 0; \ | (__net)->src_addr_selected = 0; \ | ||||
(__net)->dest_state &= ~SCTP_ADDR_REACHABLE; \ | (__net)->dest_state &= ~SCTP_ADDR_REACHABLE; \ | ||||
SCTP_ZONE_FREE(SCTP_BASE_INFO(ipi_zone_net), (__net)); \ | SCTP_ZONE_FREE(SCTP_BASE_INFO(ipi_zone_net), (__net)); \ | ||||
SCTP_DECR_RADDR_COUNT(); \ | SCTP_DECR_RADDR_COUNT(); \ | ||||
▲ Show 20 Lines • Show All 159 Lines • Show Last 20 Lines |