diff options
author | Ondrej Fabry <ofabry@cisco.com> | 2020-06-25 11:55:58 +0200 |
---|---|---|
committer | Ondrej Fabry <ofabry@cisco.com> | 2020-06-25 11:55:58 +0200 |
commit | df67791c6ffc96331f75aec7d3addfe2efca7739 (patch) | |
tree | 8da8dbda17146df62064737a86f5b46aec049a4d /core/control_ping.go | |
parent | ceed73403bdb61387d04be8b47183e9c4a970749 (diff) |
Introduce Stream - experimental API for low-level access to VPP API
Change-Id: I2698e11b76ff55d9730b47d4fee990be93349516
Signed-off-by: Ondrej Fabry <ofabry@cisco.com>
Diffstat (limited to 'core/control_ping.go')
-rw-r--r-- | core/control_ping.go | 24 |
1 files changed, 6 insertions, 18 deletions
diff --git a/core/control_ping.go b/core/control_ping.go index b39fd3f..ed8d274 100644 --- a/core/control_ping.go +++ b/core/control_ping.go @@ -21,15 +21,9 @@ func SetControlPingReply(m api.Message) { type ControlPing struct{} -func (*ControlPing) GetMessageName() string { - return "control_ping" -} -func (*ControlPing) GetCrcString() string { - return "51077d14" -} -func (*ControlPing) GetMessageType() api.MessageType { - return api.RequestMessage -} +func (*ControlPing) GetMessageName() string { return "control_ping" } +func (*ControlPing) GetCrcString() string { return "51077d14" } +func (*ControlPing) GetMessageType() api.MessageType { return api.RequestMessage } type ControlPingReply struct { Retval int32 @@ -37,15 +31,9 @@ type ControlPingReply struct { VpePID uint32 } -func (*ControlPingReply) GetMessageName() string { - return "control_ping_reply" -} -func (*ControlPingReply) GetCrcString() string { - return "f6b0b8ca" -} -func (*ControlPingReply) GetMessageType() api.MessageType { - return api.ReplyMessage -} +func (*ControlPingReply) GetMessageName() string { return "control_ping_reply" } +func (*ControlPingReply) GetCrcString() string { return "f6b0b8ca" } +func (*ControlPingReply) GetMessageType() api.MessageType { return api.ReplyMessage } func init() { api.RegisterMessage((*ControlPing)(nil), "ControlPing") |