blob: b2687fb8efb898f7db42b89bb54c7de769079918 [file] [log] [blame]
Ed Warnickecb9cada2015-12-08 15:45:58 -07001/*
2 * Copyright (c) 2015 Cisco and/or its affiliates.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at:
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16package org.openvpp.vppjapi;
17
Robert Varga67ba3be2016-01-31 12:20:47 +010018public final class vppInterfaceCounters {
Ed Warnickecb9cada2015-12-08 15:45:58 -070019
Robert Varga004da762016-01-31 12:25:45 +010020 public final long rxOctets;
21 public final long rxIp4;
22 public final long rxIp6;
23 public final long rxUnicast;
24 public final long rxMulticast;
25 public final long rxBroadcast;
26 public final long rxDiscard;
27 public final long rxFifoFull;
28 public final long rxError;
29 public final long rxUnknownProto;
30 public final long rxMiss;
Ed Warnickecb9cada2015-12-08 15:45:58 -070031
Robert Varga004da762016-01-31 12:25:45 +010032 public final long txOctets;
33 public final long txIp4;
34 public final long txIp6;
35 public final long txUnicast;
36 public final long txMulticast;
37 public final long txBroadcast;
38 public final long txDiscard;
39 public final long txFifoFull;
40 public final long txError;
41 public final long txUnknownProto;
42 public final long txMiss;
Ed Warnickecb9cada2015-12-08 15:45:58 -070043
44 public vppInterfaceCounters(
45 long rxOctets, long rxIp4, long rxIp6, long rxUni, long rxMulti,
46 long rxBcast, long rxDiscard, long rxFifoFull, long rxError,
47 long rxUnknownProto, long rxMiss,
48 long txOctets, long txIp4, long txIp6, long txUni, long txMulti,
49 long txBcast, long txDiscard, long txFifoFull, long txError,
50 long txUnknownProto, long txMiss)
51 {
52 this.rxOctets = rxOctets;
53 this.rxIp4 = rxIp4;
54 this.rxIp6 = rxIp6;
55 this.rxUnicast = rxUni;
56 this.rxMulticast = rxMulti;
57 this.rxBroadcast = rxBcast;
58 this.rxDiscard = rxDiscard;
59 this.rxFifoFull = rxFifoFull;
60 this.rxError = rxError;
61 this.rxUnknownProto = rxUnknownProto;
62 this.rxMiss = rxMiss;
63
64 this.txOctets = txOctets;
65 this.txIp4 = txIp4;
66 this.txIp6 = txIp6;
67 this.txUnicast = txUni;
68 this.txMulticast = txMulti;
69 this.txBroadcast = txBcast;
70 this.txDiscard = txDiscard;
71 this.txFifoFull = txFifoFull;
72 this.txError = txError;
73 this.txUnknownProto = txUnknownProto;
74 this.txMiss = txMiss;
75 }
76}
77