|
|
|
|
@ -628,19 +628,18 @@ static void send_ack_req_cb(struct ll_queue* q, void* arg) {// etcp->ack_q data
|
|
|
|
|
|
|
|
|
|
void etcp_on_link_down(struct ETCP_CONN* etcp) { |
|
|
|
|
DEBUG_TRACE(DEBUG_CATEGORY_ETCP, ""); |
|
|
|
|
// scan all links ->
|
|
|
|
|
int up=0; |
|
|
|
|
struct ETCP_LINK* link = etcp->links; |
|
|
|
|
while (link) { |
|
|
|
|
if (link->link_status) up=1; |
|
|
|
|
link = link->next; |
|
|
|
|
} |
|
|
|
|
etcp->links_up=up; |
|
|
|
|
if (up==0 && etcp->links_up!=0) { |
|
|
|
|
etcp->links_up=0; |
|
|
|
|
int was_up = etcp->links_up; |
|
|
|
|
etcp->links_up = up; |
|
|
|
|
if (up == 0 && was_up != 0) { |
|
|
|
|
etcp_on_down(etcp); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
static void etcp_link_ready_callback(struct ETCP_CONN* etcp) { |
|
|
|
|
DEBUG_TRACE(DEBUG_CATEGORY_ETCP, ""); |
|
|
|
|
|