Copy data in msg callback
[govpp.git] / core / control_ping.go
1 package core
2
3 import "git.fd.io/govpp.git/api"
4
5 var (
6         msgControlPing      api.Message = new(ControlPing)
7         msgControlPingReply api.Message = new(ControlPingReply)
8 )
9
10 type ControlPing struct{}
11
12 func (*ControlPing) GetMessageName() string {
13         return "control_ping"
14 }
15 func (*ControlPing) GetCrcString() string {
16         return "51077d14"
17 }
18 func (*ControlPing) GetMessageType() api.MessageType {
19         return api.RequestMessage
20 }
21
22 type ControlPingReply struct {
23         Retval      int32
24         ClientIndex uint32
25         VpePID      uint32
26 }
27
28 func (*ControlPingReply) GetMessageName() string {
29         return "control_ping_reply"
30 }
31 func (*ControlPingReply) GetCrcString() string {
32         return "f6b0b8ca"
33 }
34 func (*ControlPingReply) GetMessageType() api.MessageType {
35         return api.ReplyMessage
36 }