Ilayda Ozdemir | 0872abd | 2020-06-03 20:20:20 +0300 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2018-present Open Networking Foundation |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | package org.opencord.igmpproxy; |
| 17 | |
| 18 | /** |
| 19 | * Types of igmp-statistics. |
| 20 | */ |
| 21 | public enum IgmpStatisticType { |
| 22 | /** |
| 23 | * Join request. |
| 24 | */ |
| 25 | IGMP_JOIN_REQ, |
| 26 | /** |
| 27 | * Success re-join. |
| 28 | */ |
| 29 | IGMP_SUCCESS_JOIN_RE_JOIN_REQ, |
| 30 | /** |
| 31 | * Fail join request. |
| 32 | */ |
| 33 | IGMP_FAIL_JOIN_REQ, |
| 34 | /** |
| 35 | * Leave request. |
| 36 | */ |
| 37 | IGMP_LEAVE_REQ, |
| 38 | /** |
| 39 | * Igmp disconnect. |
| 40 | */ |
| 41 | IGMP_DISCONNECT, |
| 42 | /** |
| 43 | * Igmp v3 membership query. |
| 44 | */ |
| 45 | IGMP_V3_MEMBERSHIP_QUERY, |
| 46 | /** |
| 47 | * Igmp v1 membership report. |
| 48 | */ |
| 49 | IGMP_V1_MEMBERSHIP_REPORT, |
| 50 | /** |
| 51 | * Igmp v2 membeship report. |
| 52 | */ |
| 53 | IGMP_V2_MEMBERSHIP_REPORT, |
| 54 | /** |
| 55 | * Igmp v3 membeship report. |
| 56 | */ |
| 57 | IGMP_V3_MEMBERSHIP_REPORT, |
| 58 | /** |
| 59 | * Igmp v2 leave group. |
| 60 | */ |
| 61 | IGMP_V2_LEAVE_GROUP, |
| 62 | /** |
| 63 | * Received total message. |
| 64 | */ |
| 65 | TOTAL_MSG_RECEIVED, |
| 66 | /** |
| 67 | * Received igmp-message. |
| 68 | */ |
| 69 | IGMP_MSG_RECEIVED, |
| 70 | /** |
| 71 | * Received invalid igmp-message. |
| 72 | */ |
| 73 | INVALID_IGMP_MSG_RECEIVED, |
| 74 | /** |
| 75 | * Unknown igmp rx packets counter. |
| 76 | */ |
| 77 | UNKNOWN_IGMP_TYPE_PACKETS_RX_COUNTER, |
| 78 | /** |
| 79 | * Wrong mode rx counter reports. |
| 80 | */ |
| 81 | REPORTS_RX_WITH_WRONG_MODE_COUNTER, |
| 82 | /** |
| 83 | * Insuff permission access counter of fail join request. |
| 84 | */ |
| 85 | FAIL_JOIN_REQ_INSUFF_PERMISSION_ACCESS_COUNTER, |
| 86 | /** |
| 87 | * Unknown mcast ip counter of fail join. |
| 88 | */ |
| 89 | FAIL_JOIN_REQ_UNKNOWN_MULTICAST_IP_COUNTER, |
| 90 | /** |
| 91 | * Unconfigured group counter. |
| 92 | */ |
| 93 | UNCONFIGURED_GROUP_COUNTER, |
| 94 | /** |
| 95 | * Valid igmp packet counter. |
| 96 | */ |
| 97 | VALID_IGMP_PACKET_COUNTER, |
| 98 | /** |
| 99 | * Igmp channel join counter. |
| 100 | */ |
| 101 | IGMP_CHANNEL_JOIN_COUNTER, |
| 102 | /** |
| 103 | * Current grp number counter. |
| 104 | */ |
| 105 | CURRENT_GRP_NUMBER_COUNTER, |
| 106 | /** |
| 107 | * Igmp valid checksum counter. |
| 108 | */ |
| 109 | IGMP_VALID_CHECKSUM_COUNTER, |
| 110 | /** |
| 111 | * Invalid igmp length. |
| 112 | */ |
| 113 | INVALID_IGMP_LENGTH, |
| 114 | /** |
| 115 | * Igmp general membership query. |
| 116 | */ |
| 117 | IGMP_GENERAL_MEMBERSHIP_QUERY, |
| 118 | /** |
| 119 | * Igmp grp specific membership query. |
| 120 | */ |
| 121 | IGMP_GRP_SPECIFIC_MEMBERSHIP_QUERY, |
| 122 | /** |
| 123 | * Igmp grp and src spesific membership query. |
| 124 | */ |
| 125 | IGMP_GRP_AND_SRC_SPESIFIC_MEMBERSHIP_QUERY; |
| 126 | } |