aboutsummaryrefslogtreecommitdiffstats
path: root/docs/reference/cmdreference/vhost
diff options
context:
space:
mode:
authorBenoît Ganne <bganne@cisco.com>2019-09-30 16:43:25 +0200
committerDave Barach <openvpp@barachs.net>2019-10-01 11:43:20 +0000
commit7ff07354c3a6969e306f75bf28502a46697abcda (patch)
treeb27eb399e06fdcc636d00f1b767181b1f354d756 /docs/reference/cmdreference/vhost
parent640edcd9016f2381ea1efeaab78e834068c0e862 (diff)
rdma: fix non-NULL terminated C-string overflow
Type: fix Change-Id: I584777825636347c116bd084e348858bcb1b7d75 Signed-off-by: Benoît Ganne <bganne@cisco.com>
Diffstat (limited to 'docs/reference/cmdreference/vhost')
0 files changed, 0 insertions, 0 deletions
-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
/*
 * Copyright (c) 2016 Cisco and/or its affiliates.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at:
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package io.fd.vpp.jvpp.dto;

import java.util.Objects;

/**
 * Represents reply DTO for control_ping message.
 */
public final class ControlPingReply implements JVppReply<ControlPing> {

    public int context;
    public int clientIndex;
    public int vpePid;

    @Override
    public boolean equals(final Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        final ControlPingReply that = (ControlPingReply) o;
        return context == that.context &&
                clientIndex == that.clientIndex &&
                vpePid == that.vpePid;
    }

    @Override
    public int hashCode() {
        return Objects.hash(context, clientIndex, vpePid);
    }

    @Override
    public String toString() {
        return "ControlPingReply{" +
                "context=" + context +
                ", clientIndex=" + clientIndex +
                ", vpePid=" + vpePid +
                '}';
    }
}