3 import "git.fd.io/govpp.git/api"
6 msgControlPing api.Message = new(ControlPing)
7 msgControlPingReply api.Message = new(ControlPingReply)
10 // SetControlPing sets the control ping message used by core.
11 func SetControlPing(m api.Message) {
15 // SetControlPingReply sets the control ping reply message used by core.
16 func SetControlPingReply(m api.Message) {
17 msgControlPingReply = m
20 type ControlPing struct{}
22 func (*ControlPing) GetMessageName() string {
25 func (*ControlPing) GetCrcString() string {
28 func (*ControlPing) GetMessageType() api.MessageType {
29 return api.RequestMessage
32 type ControlPingReply struct {
38 func (*ControlPingReply) GetMessageName() string {
39 return "control_ping_reply"
41 func (*ControlPingReply) GetCrcString() string {
44 func (*ControlPingReply) GetMessageType() api.MessageType {
45 return api.ReplyMessage
49 api.RegisterMessage((*ControlPing)(nil), "ControlPing")
50 api.RegisterMessage((*ControlPingReply)(nil), "ControlPingReply")