77 lines
2.7 KiB
C
77 lines
2.7 KiB
C
/*
|
|
* Copyright (C) 2019 by Sukchan Lee <acetcom@gmail.com>
|
|
*
|
|
* This file is part of Open5GS.
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU Affero General Public License as published by
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#include "ogs-pfcp.h"
|
|
|
|
int __ogs_pfcp_domain;
|
|
|
|
const char *ogs_pfcp_cause_get_name(uint8_t cause)
|
|
{
|
|
switch(cause) {
|
|
case OGS_PFCP_CAUSE_SUCCESS:
|
|
return "OGS_PFCP_CAUSE_SUCCESS";
|
|
break;
|
|
case OGS_PFCP_CAUSE_REQUEST_REJECTED:
|
|
return "OGS_PFCP_CAUSE_REQUEST_REJECTED";
|
|
break;
|
|
case OGS_PFCP_CAUSE_SESSION_CONTEXT_NOT_FOUND:
|
|
return "OGS_PFCP_CAUSE_SESSION_CONTEXT_NOT_FOUND";
|
|
break;
|
|
case OGS_PFCP_CAUSE_MANDATORY_IE_MISSING:
|
|
return "OGS_PFCP_CAUSE_MANDATORY_IE_MISSING";
|
|
break;
|
|
case OGS_PFCP_CAUSE_CONDITIONAL_IE_MISSING:
|
|
return "OGS_PFCP_CAUSE_CONDITIONAL_IE_MISSING";
|
|
break;
|
|
case OGS_PFCP_CAUSE_INVALID_LENGTH:
|
|
return "OGS_PFCP_CAUSE_INVALID_LENGTH";
|
|
break;
|
|
case OGS_PFCP_CAUSE_MANDATORY_IE_INCORRECT:
|
|
return "OGS_PFCP_CAUSE_MANDATORY_IE_INCORRECT";
|
|
break;
|
|
case OGS_PFCP_CAUSE_INVALID_FORWARDING_POLICY:
|
|
return "OGS_PFCP_CAUSE_INVALID_FORWARDING_POLICY";
|
|
break;
|
|
case OGS_PFCP_CAUSE_INVALID_F_TEID_ALLOCATION_OPTION:
|
|
return "OGS_PFCP_CAUSE_INVALID_F_TEID_ALLOCATION_OPTION";
|
|
break;
|
|
case OGS_PFCP_CAUSE_NO_ESTABLISHED_PFCP_ASSOCIATION:
|
|
return "OGS_PFCP_CAUSE_NO_ESTABLISHED_PFCP_ASSOCIATION";
|
|
break;
|
|
case OGS_PFCP_CAUSE_RULE_CREATION_MODIFICATION_FAILURE:
|
|
return "OGS_PFCP_CAUSE_RULE_CREATION_MODIFICATION_FAILURE";
|
|
break;
|
|
case OGS_PFCP_CAUSE_PFCP_ENTITY_IN_CONGESTION:
|
|
return "OGS_PFCP_CAUSE_PFCP_ENTITY_IN_CONGESTION";
|
|
break;
|
|
case OGS_PFCP_CAUSE_NO_RESOURCES_AVAILABLE:
|
|
return "OGS_PFCP_CAUSE_NO_RESOURCES_AVAILABLE";
|
|
break;
|
|
case OGS_PFCP_CAUSE_SERVICE_NOT_SUPPORTED:
|
|
return "OGS_PFCP_CAUSE_SERVICE_NOT_SUPPORTED";
|
|
break;
|
|
case OGS_PFCP_CAUSE_SYSTEM_FAILURE:
|
|
return "OGS_PFCP_CAUSE_SYSTEM_FAILURE";
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
return "OGS_PFCP_CAUSE_UNKNOWN";
|
|
}
|