|
|
|
|
@ -149,12 +149,12 @@ struct ETCP_CONN* etcp_connection_create(struct UTUN_INSTANCE* instance, char* n
|
|
|
|
|
|
|
|
|
|
static void etcp_on_up(struct ETCP_CONN* etcp) { |
|
|
|
|
// if (!etcp->initialized) return;
|
|
|
|
|
DEBUG_DEBUG(DEBUG_CATEGORY_ETCP, "[%s] initialized=%d", etcp->log_name, etcp->initialized); |
|
|
|
|
DEBUG_WARN(DEBUG_CATEGORY_BGP, "[%s] initialized=%d", etcp->log_name, etcp->initialized); |
|
|
|
|
if (etcp->up_cbk) etcp->up_cbk(etcp, etcp->up_arg); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
static void etcp_on_down(struct ETCP_CONN* etcp) { |
|
|
|
|
DEBUG_DEBUG(DEBUG_CATEGORY_ETCP, "[%s]", etcp->log_name); |
|
|
|
|
DEBUG_WARN(DEBUG_CATEGORY_BGP, "[%s]", etcp->log_name); |
|
|
|
|
if (etcp->down_cbk) etcp->down_cbk(etcp, etcp->down_arg); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|