mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-01 21:00:19 +00:00
[PFCP] Add more error log (#1012)
This commit is contained in:
parent
ef07ccfb88
commit
80a9497afd
9 changed files with 118 additions and 57 deletions
|
|
@ -180,8 +180,8 @@ int ogs_pfcp_sockaddr_to_f_teid(
|
|||
{
|
||||
const int hdr_len = 5;
|
||||
|
||||
ogs_assert(addr || addr6);
|
||||
ogs_assert(f_teid);
|
||||
ogs_expect_or_return_val(addr || addr6, OGS_ERROR);
|
||||
ogs_expect_or_return_val(f_teid, OGS_ERROR);
|
||||
memset(f_teid, 0, sizeof *f_teid);
|
||||
|
||||
if (addr && addr6) {
|
||||
|
|
@ -201,7 +201,7 @@ int ogs_pfcp_sockaddr_to_f_teid(
|
|||
memcpy(f_teid->addr6, addr6->sin6.sin6_addr.s6_addr, OGS_IPV6_LEN);
|
||||
*len = OGS_IPV6_LEN + hdr_len;
|
||||
} else
|
||||
ogs_assert_if_reached();
|
||||
ogs_expect_or_return_val(0, OGS_ERROR);
|
||||
|
||||
return OGS_OK;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue