forked from acouzens/open5gs
add addr/port to pfcp assoc/de-assoc logs (#40)
pfcp association log adds addr/port
This commit is contained in:
parent
fdc84406e0
commit
e704ac108e
|
@ -169,12 +169,16 @@ void sgwc_pfcp_state_associated(ogs_fsm_t *s, sgwc_event_t *e)
|
||||||
|
|
||||||
switch (e->id) {
|
switch (e->id) {
|
||||||
case OGS_FSM_ENTRY_SIG:
|
case OGS_FSM_ENTRY_SIG:
|
||||||
ogs_info("PFCP associated");
|
ogs_info("PFCP associated [%s]:%d",
|
||||||
|
OGS_ADDR(&node->addr, buf),
|
||||||
|
OGS_PORT(&node->addr));
|
||||||
ogs_timer_start(node->t_no_heartbeat,
|
ogs_timer_start(node->t_no_heartbeat,
|
||||||
ogs_app()->time.message.pfcp.no_heartbeat_duration);
|
ogs_app()->time.message.pfcp.no_heartbeat_duration);
|
||||||
break;
|
break;
|
||||||
case OGS_FSM_EXIT_SIG:
|
case OGS_FSM_EXIT_SIG:
|
||||||
ogs_info("PFCP de-associated");
|
ogs_info("PFCP de-associated [%s]:%d",
|
||||||
|
OGS_ADDR(&node->addr, buf),
|
||||||
|
OGS_PORT(&node->addr));
|
||||||
ogs_timer_stop(node->t_no_heartbeat);
|
ogs_timer_stop(node->t_no_heartbeat);
|
||||||
break;
|
break;
|
||||||
case SGWC_EVT_SXA_MESSAGE:
|
case SGWC_EVT_SXA_MESSAGE:
|
||||||
|
@ -206,12 +210,16 @@ void sgwc_pfcp_state_associated(ogs_fsm_t *s, sgwc_event_t *e)
|
||||||
&message->pfcp_heartbeat_response));
|
&message->pfcp_heartbeat_response));
|
||||||
break;
|
break;
|
||||||
case OGS_PFCP_ASSOCIATION_SETUP_REQUEST_TYPE:
|
case OGS_PFCP_ASSOCIATION_SETUP_REQUEST_TYPE:
|
||||||
ogs_warn("PFCP[REQ] has already been associated");
|
ogs_warn("PFCP[REQ] has already been associated [%s]:%d",
|
||||||
|
OGS_ADDR(&node->addr, buf),
|
||||||
|
OGS_PORT(&node->addr));
|
||||||
ogs_pfcp_cp_handle_association_setup_request(node, xact,
|
ogs_pfcp_cp_handle_association_setup_request(node, xact,
|
||||||
&message->pfcp_association_setup_request);
|
&message->pfcp_association_setup_request);
|
||||||
break;
|
break;
|
||||||
case OGS_PFCP_ASSOCIATION_SETUP_RESPONSE_TYPE:
|
case OGS_PFCP_ASSOCIATION_SETUP_RESPONSE_TYPE:
|
||||||
ogs_warn("PFCP[RSP] has already been associated");
|
ogs_warn("PFCP[RSP] has already been associated [%s]:%d",
|
||||||
|
OGS_ADDR(&node->addr, buf),
|
||||||
|
OGS_PORT(&node->addr));
|
||||||
ogs_pfcp_cp_handle_association_setup_response(node, xact,
|
ogs_pfcp_cp_handle_association_setup_response(node, xact,
|
||||||
&message->pfcp_association_setup_response);
|
&message->pfcp_association_setup_response);
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -165,12 +165,16 @@ void sgwu_pfcp_state_associated(ogs_fsm_t *s, sgwu_event_t *e)
|
||||||
|
|
||||||
switch (e->id) {
|
switch (e->id) {
|
||||||
case OGS_FSM_ENTRY_SIG:
|
case OGS_FSM_ENTRY_SIG:
|
||||||
ogs_info("PFCP associated");
|
ogs_info("PFCP associated [%s]:%d",
|
||||||
|
OGS_ADDR(&node->addr, buf),
|
||||||
|
OGS_PORT(&node->addr));
|
||||||
ogs_timer_start(node->t_no_heartbeat,
|
ogs_timer_start(node->t_no_heartbeat,
|
||||||
ogs_app()->time.message.pfcp.no_heartbeat_duration);
|
ogs_app()->time.message.pfcp.no_heartbeat_duration);
|
||||||
break;
|
break;
|
||||||
case OGS_FSM_EXIT_SIG:
|
case OGS_FSM_EXIT_SIG:
|
||||||
ogs_info("PFCP de-associated");
|
ogs_info("PFCP de-associated [%s]:%d",
|
||||||
|
OGS_ADDR(&node->addr, buf),
|
||||||
|
OGS_PORT(&node->addr));
|
||||||
ogs_timer_stop(node->t_no_heartbeat);
|
ogs_timer_stop(node->t_no_heartbeat);
|
||||||
break;
|
break;
|
||||||
case SGWU_EVT_SXA_MESSAGE:
|
case SGWU_EVT_SXA_MESSAGE:
|
||||||
|
@ -194,12 +198,16 @@ void sgwu_pfcp_state_associated(ogs_fsm_t *s, sgwu_event_t *e)
|
||||||
&message->pfcp_heartbeat_response));
|
&message->pfcp_heartbeat_response));
|
||||||
break;
|
break;
|
||||||
case OGS_PFCP_ASSOCIATION_SETUP_REQUEST_TYPE:
|
case OGS_PFCP_ASSOCIATION_SETUP_REQUEST_TYPE:
|
||||||
ogs_warn("PFCP[REQ] has already been associated");
|
ogs_warn("PFCP[REQ] has already been associated [%s]:%d",
|
||||||
|
OGS_ADDR(&node->addr, buf),
|
||||||
|
OGS_PORT(&node->addr));
|
||||||
ogs_pfcp_up_handle_association_setup_request(node, xact,
|
ogs_pfcp_up_handle_association_setup_request(node, xact,
|
||||||
&message->pfcp_association_setup_request);
|
&message->pfcp_association_setup_request);
|
||||||
break;
|
break;
|
||||||
case OGS_PFCP_ASSOCIATION_SETUP_RESPONSE_TYPE:
|
case OGS_PFCP_ASSOCIATION_SETUP_RESPONSE_TYPE:
|
||||||
ogs_warn("PFCP[RSP] has already been associated");
|
ogs_warn("PFCP[RSP] has already been associated [%s]:%d",
|
||||||
|
OGS_ADDR(&node->addr, buf),
|
||||||
|
OGS_PORT(&node->addr));
|
||||||
ogs_pfcp_up_handle_association_setup_response(node, xact,
|
ogs_pfcp_up_handle_association_setup_response(node, xact,
|
||||||
&message->pfcp_association_setup_response);
|
&message->pfcp_association_setup_response);
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -171,12 +171,16 @@ void smf_pfcp_state_associated(ogs_fsm_t *s, smf_event_t *e)
|
||||||
|
|
||||||
switch (e->h.id) {
|
switch (e->h.id) {
|
||||||
case OGS_FSM_ENTRY_SIG:
|
case OGS_FSM_ENTRY_SIG:
|
||||||
ogs_info("PFCP associated");
|
ogs_info("PFCP associated [%s]:%d",
|
||||||
|
OGS_ADDR(&node->addr, buf),
|
||||||
|
OGS_PORT(&node->addr));
|
||||||
ogs_timer_start(node->t_no_heartbeat,
|
ogs_timer_start(node->t_no_heartbeat,
|
||||||
ogs_app()->time.message.pfcp.no_heartbeat_duration);
|
ogs_app()->time.message.pfcp.no_heartbeat_duration);
|
||||||
break;
|
break;
|
||||||
case OGS_FSM_EXIT_SIG:
|
case OGS_FSM_EXIT_SIG:
|
||||||
ogs_info("PFCP de-associated");
|
ogs_info("PFCP de-associated [%s]:%d",
|
||||||
|
OGS_ADDR(&node->addr, buf),
|
||||||
|
OGS_PORT(&node->addr));
|
||||||
ogs_timer_stop(node->t_no_heartbeat);
|
ogs_timer_stop(node->t_no_heartbeat);
|
||||||
break;
|
break;
|
||||||
case SMF_EVT_N4_MESSAGE:
|
case SMF_EVT_N4_MESSAGE:
|
||||||
|
@ -210,12 +214,16 @@ void smf_pfcp_state_associated(ogs_fsm_t *s, smf_event_t *e)
|
||||||
&message->pfcp_heartbeat_response));
|
&message->pfcp_heartbeat_response));
|
||||||
break;
|
break;
|
||||||
case OGS_PFCP_ASSOCIATION_SETUP_REQUEST_TYPE:
|
case OGS_PFCP_ASSOCIATION_SETUP_REQUEST_TYPE:
|
||||||
ogs_warn("PFCP[REQ] has already been associated");
|
ogs_warn("PFCP[REQ] has already been associated [%s]:%d",
|
||||||
|
OGS_ADDR(&node->addr, buf),
|
||||||
|
OGS_PORT(&node->addr));
|
||||||
ogs_pfcp_cp_handle_association_setup_request(node, xact,
|
ogs_pfcp_cp_handle_association_setup_request(node, xact,
|
||||||
&message->pfcp_association_setup_request);
|
&message->pfcp_association_setup_request);
|
||||||
break;
|
break;
|
||||||
case OGS_PFCP_ASSOCIATION_SETUP_RESPONSE_TYPE:
|
case OGS_PFCP_ASSOCIATION_SETUP_RESPONSE_TYPE:
|
||||||
ogs_warn("PFCP[RSP] has already been associated");
|
ogs_warn("PFCP[RSP] has already been associated [%s]:%d",
|
||||||
|
OGS_ADDR(&node->addr, buf),
|
||||||
|
OGS_PORT(&node->addr));
|
||||||
ogs_pfcp_cp_handle_association_setup_response(node, xact,
|
ogs_pfcp_cp_handle_association_setup_response(node, xact,
|
||||||
&message->pfcp_association_setup_response);
|
&message->pfcp_association_setup_response);
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -170,12 +170,16 @@ void upf_pfcp_state_associated(ogs_fsm_t *s, upf_event_t *e)
|
||||||
|
|
||||||
switch (e->id) {
|
switch (e->id) {
|
||||||
case OGS_FSM_ENTRY_SIG:
|
case OGS_FSM_ENTRY_SIG:
|
||||||
ogs_info("PFCP associated");
|
ogs_info("PFCP associated [%s]:%d",
|
||||||
|
OGS_ADDR(&node->addr, buf),
|
||||||
|
OGS_PORT(&node->addr));
|
||||||
ogs_timer_start(node->t_no_heartbeat,
|
ogs_timer_start(node->t_no_heartbeat,
|
||||||
ogs_app()->time.message.pfcp.no_heartbeat_duration);
|
ogs_app()->time.message.pfcp.no_heartbeat_duration);
|
||||||
break;
|
break;
|
||||||
case OGS_FSM_EXIT_SIG:
|
case OGS_FSM_EXIT_SIG:
|
||||||
ogs_info("PFCP de-associated");
|
ogs_info("PFCP de-associated [%s]:%d",
|
||||||
|
OGS_ADDR(&node->addr, buf),
|
||||||
|
OGS_PORT(&node->addr));
|
||||||
ogs_timer_stop(node->t_no_heartbeat);
|
ogs_timer_stop(node->t_no_heartbeat);
|
||||||
break;
|
break;
|
||||||
case UPF_EVT_N4_MESSAGE:
|
case UPF_EVT_N4_MESSAGE:
|
||||||
|
@ -199,12 +203,16 @@ void upf_pfcp_state_associated(ogs_fsm_t *s, upf_event_t *e)
|
||||||
&message->pfcp_heartbeat_response));
|
&message->pfcp_heartbeat_response));
|
||||||
break;
|
break;
|
||||||
case OGS_PFCP_ASSOCIATION_SETUP_REQUEST_TYPE:
|
case OGS_PFCP_ASSOCIATION_SETUP_REQUEST_TYPE:
|
||||||
ogs_warn("PFCP[REQ] has already been associated");
|
ogs_warn("PFCP[REQ] has already been associated [%s]:%d",
|
||||||
|
OGS_ADDR(&node->addr, buf),
|
||||||
|
OGS_PORT(&node->addr));
|
||||||
ogs_pfcp_up_handle_association_setup_request(node, xact,
|
ogs_pfcp_up_handle_association_setup_request(node, xact,
|
||||||
&message->pfcp_association_setup_request);
|
&message->pfcp_association_setup_request);
|
||||||
break;
|
break;
|
||||||
case OGS_PFCP_ASSOCIATION_SETUP_RESPONSE_TYPE:
|
case OGS_PFCP_ASSOCIATION_SETUP_RESPONSE_TYPE:
|
||||||
ogs_warn("PFCP[RSP] has already been associated");
|
ogs_warn("PFCP[RSP] has already been associated [%s]:%d",
|
||||||
|
OGS_ADDR(&node->addr, buf),
|
||||||
|
OGS_PORT(&node->addr));
|
||||||
ogs_pfcp_up_handle_association_setup_response(node, xact,
|
ogs_pfcp_up_handle_association_setup_response(node, xact,
|
||||||
&message->pfcp_association_setup_response);
|
&message->pfcp_association_setup_response);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue