aboutsummaryrefslogtreecommitdiffstats
path: root/core/control_ping.go
diff options
context:
space:
mode:
Diffstat (limited to 'core/control_ping.go')
-rw-r--r--core/control_ping.go36
1 files changed, 36 insertions, 0 deletions
diff --git a/core/control_ping.go b/core/control_ping.go
new file mode 100644
index 0000000..904068a
--- /dev/null
+++ b/core/control_ping.go
@@ -0,0 +1,36 @@
+package core
+
+import "git.fd.io/govpp.git/api"
+
+var (
+ msgControlPing api.Message = new(ControlPing)
+ msgControlPingReply api.Message = new(ControlPingReply)
+)
+
+type ControlPing struct{}
+
+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
+ ClientIndex uint32
+ VpePID uint32
+}
+
+func (*ControlPingReply) GetMessageName() string {
+ return "control_ping_reply"
+}
+func (*ControlPingReply) GetCrcString() string {
+ return "f6b0b8ca"
+}
+func (*ControlPingReply) GetMessageType() api.MessageType {
+ return api.ReplyMessage
+}