1 // Package memif represents the VPP binary API of the 'memif' VPP module.
2 // DO NOT EDIT. Generated from 'bin_api/memif.api.json' on Thu, 04 May 2017 13:11:57 CEST.
5 import "gerrit.fd.io/r/govpp.git/api"
7 // VlApiVersion contains version of the API.
8 const VlAPIVersion = 0xadb63e82
10 // MemifCreate represents the VPP binary API message 'memif_create'.
11 // Generated from 'bin_api/memif.api.json', line 6:
14 // ["u16", "_vl_msg_id"],
15 // ["u32", "client_index"],
16 // ["u32", "context"],
19 // ["u8", "socket_filename", 128],
20 // ["u32", "ring_size"],
21 // ["u16", "buffer_size"],
22 // ["u8", "hw_addr", 6],
23 // {"crc" : "0x23fe3309"}
26 type MemifCreate struct {
29 SocketFilename []byte `struc:"[128]byte"`
32 HwAddr []byte `struc:"[6]byte"`
35 func (*MemifCreate) GetMessageName() string {
38 func (*MemifCreate) GetMessageType() api.MessageType {
39 return api.RequestMessage
41 func (*MemifCreate) GetCrcString() string {
44 func NewMemifCreate() api.Message {
48 // MemifCreateReply represents the VPP binary API message 'memif_create_reply'.
49 // Generated from 'bin_api/memif.api.json', line 18:
51 // ["memif_create_reply",
52 // ["u16", "_vl_msg_id"],
53 // ["u32", "context"],
55 // ["u32", "sw_if_index"],
56 // {"crc" : "0x93d7498b"}
59 type MemifCreateReply struct {
64 func (*MemifCreateReply) GetMessageName() string {
65 return "memif_create_reply"
67 func (*MemifCreateReply) GetMessageType() api.MessageType {
68 return api.ReplyMessage
70 func (*MemifCreateReply) GetCrcString() string {
73 func NewMemifCreateReply() api.Message {
74 return &MemifCreateReply{}
77 // MemifDelete represents the VPP binary API message 'memif_delete'.
78 // Generated from 'bin_api/memif.api.json', line 25:
81 // ["u16", "_vl_msg_id"],
82 // ["u32", "client_index"],
83 // ["u32", "context"],
84 // ["u32", "sw_if_index"],
85 // {"crc" : "0x12814e3d"}
88 type MemifDelete struct {
92 func (*MemifDelete) GetMessageName() string {
95 func (*MemifDelete) GetMessageType() api.MessageType {
96 return api.RequestMessage
98 func (*MemifDelete) GetCrcString() string {
101 func NewMemifDelete() api.Message {
102 return &MemifDelete{}
105 // MemifDeleteReply represents the VPP binary API message 'memif_delete_reply'.
106 // Generated from 'bin_api/memif.api.json', line 32:
108 // ["memif_delete_reply",
109 // ["u16", "_vl_msg_id"],
110 // ["u32", "context"],
111 // ["i32", "retval"],
112 // {"crc" : "0x72c9fa3c"}
115 type MemifDeleteReply struct {
119 func (*MemifDeleteReply) GetMessageName() string {
120 return "memif_delete_reply"
122 func (*MemifDeleteReply) GetMessageType() api.MessageType {
123 return api.ReplyMessage
125 func (*MemifDeleteReply) GetCrcString() string {
128 func NewMemifDeleteReply() api.Message {
129 return &MemifDeleteReply{}
132 // MemifDetails represents the VPP binary API message 'memif_details'.
133 // Generated from 'bin_api/memif.api.json', line 38:
136 // ["u16", "_vl_msg_id"],
137 // ["u32", "context"],
138 // ["u32", "sw_if_index"],
139 // ["u8", "if_name", 64],
140 // ["u8", "hw_addr", 6],
143 // ["u8", "socket_filename", 128],
144 // ["u32", "ring_size"],
145 // ["u16", "buffer_size"],
146 // ["u8", "admin_up_down"],
147 // ["u8", "link_up_down"],
148 // {"crc" : "0xcf105583"}
151 type MemifDetails struct {
153 IfName []byte `struc:"[64]byte"`
154 HwAddr []byte `struc:"[6]byte"`
157 SocketFilename []byte `struc:"[128]byte"`
164 func (*MemifDetails) GetMessageName() string {
165 return "memif_details"
167 func (*MemifDetails) GetMessageType() api.MessageType {
168 return api.ReplyMessage
170 func (*MemifDetails) GetCrcString() string {
173 func NewMemifDetails() api.Message {
174 return &MemifDetails{}
177 // MemifDump represents the VPP binary API message 'memif_dump'.
178 // Generated from 'bin_api/memif.api.json', line 53:
181 // ["u16", "_vl_msg_id"],
182 // ["u32", "client_index"],
183 // ["u32", "context"],
184 // {"crc" : "0x68d39e95"}
187 type MemifDump struct {
190 func (*MemifDump) GetMessageName() string {
193 func (*MemifDump) GetMessageType() api.MessageType {
194 return api.RequestMessage
196 func (*MemifDump) GetCrcString() string {
199 func NewMemifDump() api.Message {