This repository has been archived by the owner on Aug 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
message_type.go
67 lines (60 loc) · 3.15 KB
/
message_type.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
// SPDX-FileCopyrightText: 2021 Open Networking Foundation <[email protected]>
// Copyright 2019 free5GC.org
//
// SPDX-License-Identifier: Apache-2.0
//
package pfcp
type MessageType uint8
const (
PFCP_HEARTBEAT_REQUEST MessageType = 1
PFCP_HEARTBEAT_RESPONSE MessageType = 2
PFCP_PFD_MANAGEMENT_REQUEST MessageType = 3
PFCP_PFD_MANAGEMENT_RESPONSE MessageType = 4
PFCP_ASSOCIATION_SETUP_REQUEST MessageType = 5
PFCP_ASSOCIATION_SETUP_RESPONSE MessageType = 6
PFCP_ASSOCIATION_UPDATE_REQUEST MessageType = 7
PFCP_ASSOCIATION_UPDATE_RESPONSE MessageType = 8
PFCP_ASSOCIATION_RELEASE_REQUEST MessageType = 9
PFCP_ASSOCIATION_RELEASE_RESPONSE MessageType = 10
PFCP_VERSION_NOT_SUPPORTED_RESPONSE MessageType = 11
PFCP_NODE_REPORT_REQUEST MessageType = 12
PFCP_NODE_REPORT_RESPONSE MessageType = 13
PFCP_SESSION_SET_DELETION_REQUEST MessageType = 14
PFCP_SESSION_SET_DELETION_RESPONSE MessageType = 15
PFCP_SESSION_ESTABLISHMENT_REQUEST MessageType = 50
PFCP_SESSION_ESTABLISHMENT_RESPONSE MessageType = 51
PFCP_SESSION_MODIFICATION_REQUEST MessageType = 52
PFCP_SESSION_MODIFICATION_RESPONSE MessageType = 53
PFCP_SESSION_DELETION_REQUEST MessageType = 54
PFCP_SESSION_DELETION_RESPONSE MessageType = 55
PFCP_SESSION_REPORT_REQUEST MessageType = 56
PFCP_SESSION_REPORT_RESPONSE MessageType = 57
)
var msgTypeText = map[MessageType]string{
PFCP_HEARTBEAT_REQUEST: "PFCP_HEARTBEAT_REQUEST",
PFCP_HEARTBEAT_RESPONSE: "PFCP_HEARTBEAT_RESPONSE",
PFCP_PFD_MANAGEMENT_REQUEST: "PFCP_PFD_MANAGEMENT_REQUEST",
PFCP_PFD_MANAGEMENT_RESPONSE: "PFCP_PFD_MANAGEMENT_RESPONSE",
PFCP_ASSOCIATION_SETUP_REQUEST: "PFCP_ASSOCIATION_SETUP_REQUEST",
PFCP_ASSOCIATION_SETUP_RESPONSE: "PFCP_ASSOCIATION_SETUP_RESPONSE",
PFCP_ASSOCIATION_UPDATE_REQUEST: "PFCP_ASSOCIATION_UPDATE_REQUEST",
PFCP_ASSOCIATION_UPDATE_RESPONSE: "PFCP_ASSOCIATION_UPDATE_RESPONSE",
PFCP_ASSOCIATION_RELEASE_REQUEST: "PFCP_ASSOCIATION_RELEASE_REQUEST",
PFCP_ASSOCIATION_RELEASE_RESPONSE: "PFCP_ASSOCIATION_RELEASE_RESPONSE",
PFCP_VERSION_NOT_SUPPORTED_RESPONSE: "PFCP_VERSION_NOT_SUPPORTED_RESPONSE",
PFCP_NODE_REPORT_REQUEST: "PFCP_NODE_REPORT_REQUEST",
PFCP_NODE_REPORT_RESPONSE: "PFCP_NODE_REPORT_RESPONSE",
PFCP_SESSION_SET_DELETION_REQUEST: "PFCP_SESSION_SET_DELETION_REQUEST",
PFCP_SESSION_SET_DELETION_RESPONSE: "PFCP_SESSION_SET_DELETION_RESPONSE",
PFCP_SESSION_ESTABLISHMENT_REQUEST: "PFCP_SESSION_ESTABLISHMENT_REQUEST",
PFCP_SESSION_ESTABLISHMENT_RESPONSE: "PFCP_SESSION_ESTABLISHMENT_RESPONSE",
PFCP_SESSION_MODIFICATION_REQUEST: "PFCP_SESSION_MODIFICATION_REQUEST",
PFCP_SESSION_MODIFICATION_RESPONSE: "PFCP_SESSION_MODIFICATION_RESPONSE",
PFCP_SESSION_DELETION_REQUEST: "PFCP_SESSION_DELETION_REQUEST",
PFCP_SESSION_DELETION_RESPONSE: "PFCP_SESSION_DELETION_RESPONSE",
PFCP_SESSION_REPORT_REQUEST: "PFCP_SESSION_REPORT_REQUEST",
PFCP_SESSION_REPORT_RESPONSE: "PFCP_SESSION_REPORT_RESPONSE",
}
func PfcpMsgTypeText(code MessageType) string {
return msgTypeText[code]
}