This commit is contained in:
Sukchan Lee 2018-06-20 17:57:17 +09:00
commit 71c7508047
2 changed files with 9 additions and 3 deletions

View File

@ -500,9 +500,9 @@ static int s1ap_usrsctp_recv_handler(struct socket *sock,
case SCTP_SEND_FAILED :
{
d_error("SCTP_SEND_FAILED:[T:%d, F:0x%x, S:%d]\n",
not->sn_send_failed.ssf_type,
not->sn_send_failed.ssf_flags,
not->sn_send_failed.ssf_error);
not->sn_send_failed_event.ssfe_type,
not->sn_send_failed_event.ssfe_flags,
not->sn_send_failed_event.ssfe_error);
break;
}
default :

View File

@ -924,6 +924,8 @@ pgw_sess_t *pgw_sess_add(
c_uint8_t *imsi, int imsi_len, c_int8_t *apn,
c_uint8_t pdn_type, c_uint8_t ebi)
{
char buf1[CORE_ADDRSTRLEN];
char buf2[CORE_ADDRSTRLEN];
pgw_sess_t *sess = NULL;
pgw_bearer_t *bearer = NULL;
pgw_subnet_t *subnet6 = NULL;
@ -993,6 +995,10 @@ pgw_sess_t *pgw_sess_add(
else
d_assert(0, return NULL, "Unsupported PDN Type(%d)", pdn_type);
d_trace(1, "UE IPv4:[%s] IPv6:[%s]\n",
sess->ipv4 ? INET_NTOP(&sess->ipv4->addr, buf1) : "",
sess->ipv6 ? INET6_NTOP(&sess->ipv6->addr, buf2) : "");
/* Generate Hash Key : IMSI + APN */
sess_hash_keygen(sess->hash_keybuf, &sess->hash_keylen,
imsi, imsi_len, apn);