1 // Package memif represents the VPP binary API of the 'memif' VPP module.
2 // DO NOT EDIT. Generated from 'bin_api/memif.api.json'
5 import "git.fd.io/govpp.git/api"
7 // VlApiVersion contains version of the API.
8 const VlAPIVersion = 0xed3def5d
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", "rx_queues"],
20 // ["u8", "tx_queues"],
22 // ["u8", "socket_filename", 128],
23 // ["u8", "secret", 24],
24 // ["u32", "ring_size"],
25 // ["u16", "buffer_size"],
26 // ["u8", "hw_addr", 6],
27 // {"crc" : "0xc809c235"}
30 type MemifCreate struct {
36 SocketFilename []byte `struc:"[128]byte"`
37 Secret []byte `struc:"[24]byte"`
40 HwAddr []byte `struc:"[6]byte"`
43 func (*MemifCreate) GetMessageName() string {
46 func (*MemifCreate) GetMessageType() api.MessageType {
47 return api.RequestMessage
49 func (*MemifCreate) GetCrcString() string {
52 func NewMemifCreate() api.Message {
56 // MemifCreateReply represents the VPP binary API message 'memif_create_reply'.
57 // Generated from 'bin_api/memif.api.json', line 22:
59 // ["memif_create_reply",
60 // ["u16", "_vl_msg_id"],
61 // ["u32", "context"],
63 // ["u32", "sw_if_index"],
64 // {"crc" : "0x93d7498b"}
67 type MemifCreateReply struct {
72 func (*MemifCreateReply) GetMessageName() string {
73 return "memif_create_reply"
75 func (*MemifCreateReply) GetMessageType() api.MessageType {
76 return api.ReplyMessage
78 func (*MemifCreateReply) GetCrcString() string {
81 func NewMemifCreateReply() api.Message {
82 return &MemifCreateReply{}
85 // MemifDelete represents the VPP binary API message 'memif_delete'.
86 // Generated from 'bin_api/memif.api.json', line 29:
89 // ["u16", "_vl_msg_id"],
90 // ["u32", "client_index"],
91 // ["u32", "context"],
92 // ["u32", "sw_if_index"],
93 // {"crc" : "0x12814e3d"}
96 type MemifDelete struct {
100 func (*MemifDelete) GetMessageName() string {
101 return "memif_delete"
103 func (*MemifDelete) GetMessageType() api.MessageType {
104 return api.RequestMessage
106 func (*MemifDelete) GetCrcString() string {
109 func NewMemifDelete() api.Message {
110 return &MemifDelete{}
113 // MemifDeleteReply represents the VPP binary API message 'memif_delete_reply'.
114 // Generated from 'bin_api/memif.api.json', line 36:
116 // ["memif_delete_reply",
117 // ["u16", "_vl_msg_id"],
118 // ["u32", "context"],
119 // ["i32", "retval"],
120 // {"crc" : "0x72c9fa3c"}
123 type MemifDeleteReply struct {
127 func (*MemifDeleteReply) GetMessageName() string {
128 return "memif_delete_reply"
130 func (*MemifDeleteReply) GetMessageType() api.MessageType {
131 return api.ReplyMessage
133 func (*MemifDeleteReply) GetCrcString() string {
136 func NewMemifDeleteReply() api.Message {
137 return &MemifDeleteReply{}
140 // MemifDetails represents the VPP binary API message 'memif_details'.
141 // Generated from 'bin_api/memif.api.json', line 42:
144 // ["u16", "_vl_msg_id"],
145 // ["u32", "context"],
146 // ["u32", "sw_if_index"],
147 // ["u8", "if_name", 64],
148 // ["u8", "hw_addr", 6],
152 // ["u8", "socket_filename", 128],
153 // ["u32", "ring_size"],
154 // ["u16", "buffer_size"],
155 // ["u8", "admin_up_down"],
156 // ["u8", "link_up_down"],
157 // {"crc" : "0x4d74fd96"}
160 type MemifDetails struct {
162 IfName []byte `struc:"[64]byte"`
163 HwAddr []byte `struc:"[6]byte"`
167 SocketFilename []byte `struc:"[128]byte"`
174 func (*MemifDetails) GetMessageName() string {
175 return "memif_details"
177 func (*MemifDetails) GetMessageType() api.MessageType {
178 return api.ReplyMessage
180 func (*MemifDetails) GetCrcString() string {
183 func NewMemifDetails() api.Message {
184 return &MemifDetails{}
187 // MemifDump represents the VPP binary API message 'memif_dump'.
188 // Generated from 'bin_api/memif.api.json', line 58:
191 // ["u16", "_vl_msg_id"],
192 // ["u32", "client_index"],
193 // ["u32", "context"],
194 // {"crc" : "0x68d39e95"}
197 type MemifDump struct {
200 func (*MemifDump) GetMessageName() string {
203 func (*MemifDump) GetMessageType() api.MessageType {
204 return api.RequestMessage
206 func (*MemifDump) GetCrcString() string {
209 func NewMemifDump() api.Message {