Documentation ¶
Overview ¶
Package memif is a generated from VPP binary API module 'memif'. It contains following objects: 10 messages 5 services
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MemifCreate ¶
type MemifCreate struct { Role uint8 Mode uint8 RxQueues uint8 TxQueues uint8 ID uint32 SocketID uint32 Secret []byte `struc:"[24]byte"` RingSize uint32 BufferSize uint16 HwAddr []byte `struc:"[6]byte"` }
MemifCreate represents VPP binary API message 'memif_create':
"memif_create", [ "u16", "_vl_msg_id" ], [ "u32", "client_index" ], [ "u32", "context" ], [ "u8", "role" ], [ "u8", "mode" ], [ "u8", "rx_queues" ], [ "u8", "tx_queues" ], [ "u32", "id" ], [ "u32", "socket_id" ], [ "u8", "secret", 24 ], [ "u32", "ring_size" ], [ "u16", "buffer_size" ], [ "u8", "hw_addr", 6 ], { "crc": "0x6597cdb2" }
func (*MemifCreate) GetCrcString ¶
func (*MemifCreate) GetCrcString() string
func (*MemifCreate) GetMessageName ¶
func (*MemifCreate) GetMessageName() string
func (*MemifCreate) GetMessageType ¶
func (*MemifCreate) GetMessageType() api.MessageType
type MemifCreateReply ¶
MemifCreateReply represents VPP binary API message 'memif_create_reply':
"memif_create_reply", [ "u16", "_vl_msg_id" ], [ "u32", "context" ], [ "i32", "retval" ], [ "u32", "sw_if_index" ], { "crc": "0xfda5941f" }
func (*MemifCreateReply) GetCrcString ¶
func (*MemifCreateReply) GetCrcString() string
func (*MemifCreateReply) GetMessageName ¶
func (*MemifCreateReply) GetMessageName() string
func (*MemifCreateReply) GetMessageType ¶
func (*MemifCreateReply) GetMessageType() api.MessageType
type MemifDelete ¶
type MemifDelete struct {
SwIfIndex uint32
}
MemifDelete represents VPP binary API message 'memif_delete':
"memif_delete", [ "u16", "_vl_msg_id" ], [ "u32", "client_index" ], [ "u32", "context" ], [ "u32", "sw_if_index" ], { "crc": "0x529cb13f" }
func (*MemifDelete) GetCrcString ¶
func (*MemifDelete) GetCrcString() string
func (*MemifDelete) GetMessageName ¶
func (*MemifDelete) GetMessageName() string
func (*MemifDelete) GetMessageType ¶
func (*MemifDelete) GetMessageType() api.MessageType
type MemifDeleteReply ¶
type MemifDeleteReply struct {
Retval int32
}
MemifDeleteReply represents VPP binary API message 'memif_delete_reply':
"memif_delete_reply", [ "u16", "_vl_msg_id" ], [ "u32", "context" ], [ "i32", "retval" ], { "crc": "0xe8d4e804" }
func (*MemifDeleteReply) GetCrcString ¶
func (*MemifDeleteReply) GetCrcString() string
func (*MemifDeleteReply) GetMessageName ¶
func (*MemifDeleteReply) GetMessageName() string
func (*MemifDeleteReply) GetMessageType ¶
func (*MemifDeleteReply) GetMessageType() api.MessageType
type MemifDetails ¶
type MemifDetails struct { SwIfIndex uint32 IfName []byte `struc:"[64]byte"` HwAddr []byte `struc:"[6]byte"` ID uint32 Role uint8 Mode uint8 SocketID uint32 RingSize uint32 BufferSize uint16 AdminUpDown uint8 LinkUpDown uint8 }
MemifDetails represents VPP binary API message 'memif_details':
"memif_details", [ "u16", "_vl_msg_id" ], [ "u32", "context" ], [ "u32", "sw_if_index" ], [ "u8", "if_name", 64 ], [ "u8", "hw_addr", 6 ], [ "u32", "id" ], [ "u8", "role" ], [ "u8", "mode" ], [ "u32", "socket_id" ], [ "u32", "ring_size" ], [ "u16", "buffer_size" ], [ "u8", "admin_up_down" ], [ "u8", "link_up_down" ], { "crc": "0x4f5a3397" }
func (*MemifDetails) GetCrcString ¶
func (*MemifDetails) GetCrcString() string
func (*MemifDetails) GetMessageName ¶
func (*MemifDetails) GetMessageName() string
func (*MemifDetails) GetMessageType ¶
func (*MemifDetails) GetMessageType() api.MessageType
type MemifDump ¶
type MemifDump struct{}
MemifDump represents VPP binary API message 'memif_dump':
"memif_dump", [ "u16", "_vl_msg_id" ], [ "u32", "client_index" ], [ "u32", "context" ], { "crc": "0x51077d14" }
func (*MemifDump) GetCrcString ¶
func (*MemifDump) GetMessageName ¶
func (*MemifDump) GetMessageType ¶
func (*MemifDump) GetMessageType() api.MessageType
type MemifSocketFilenameAddDel ¶
type MemifSocketFilenameAddDel struct { IsAdd uint8 SocketID uint32 SocketFilename []byte `struc:"[128]byte"` }
MemifSocketFilenameAddDel represents VPP binary API message 'memif_socket_filename_add_del':
"memif_socket_filename_add_del", [ "u16", "_vl_msg_id" ], [ "u32", "client_index" ], [ "u32", "context" ], [ "u8", "is_add" ], [ "u32", "socket_id" ], [ "u8", "socket_filename", 128 ], { "crc": "0x30e3929d" }
func (*MemifSocketFilenameAddDel) GetCrcString ¶
func (*MemifSocketFilenameAddDel) GetCrcString() string
func (*MemifSocketFilenameAddDel) GetMessageName ¶
func (*MemifSocketFilenameAddDel) GetMessageName() string
func (*MemifSocketFilenameAddDel) GetMessageType ¶
func (*MemifSocketFilenameAddDel) GetMessageType() api.MessageType
type MemifSocketFilenameAddDelReply ¶
type MemifSocketFilenameAddDelReply struct {
Retval int32
}
MemifSocketFilenameAddDelReply represents VPP binary API message 'memif_socket_filename_add_del_reply':
"memif_socket_filename_add_del_reply", [ "u16", "_vl_msg_id" ], [ "u32", "context" ], [ "i32", "retval" ], { "crc": "0xe8d4e804" }
func (*MemifSocketFilenameAddDelReply) GetCrcString ¶
func (*MemifSocketFilenameAddDelReply) GetCrcString() string
func (*MemifSocketFilenameAddDelReply) GetMessageName ¶
func (*MemifSocketFilenameAddDelReply) GetMessageName() string
func (*MemifSocketFilenameAddDelReply) GetMessageType ¶
func (*MemifSocketFilenameAddDelReply) GetMessageType() api.MessageType
type MemifSocketFilenameDetails ¶
type MemifSocketFilenameDetails struct { SocketID uint32 SocketFilename []byte `struc:"[128]byte"` }
MemifSocketFilenameDetails represents VPP binary API message 'memif_socket_filename_details':
"memif_socket_filename_details", [ "u16", "_vl_msg_id" ], [ "u32", "context" ], [ "u32", "socket_id" ], [ "u8", "socket_filename", 128 ], { "crc": "0xe347e32f" }
func (*MemifSocketFilenameDetails) GetCrcString ¶
func (*MemifSocketFilenameDetails) GetCrcString() string
func (*MemifSocketFilenameDetails) GetMessageName ¶
func (*MemifSocketFilenameDetails) GetMessageName() string
func (*MemifSocketFilenameDetails) GetMessageType ¶
func (*MemifSocketFilenameDetails) GetMessageType() api.MessageType
type MemifSocketFilenameDump ¶
type MemifSocketFilenameDump struct{}
MemifSocketFilenameDump represents VPP binary API message 'memif_socket_filename_dump':
"memif_socket_filename_dump", [ "u16", "_vl_msg_id" ], [ "u32", "client_index" ], [ "u32", "context" ], { "crc": "0x51077d14" }
func (*MemifSocketFilenameDump) GetCrcString ¶
func (*MemifSocketFilenameDump) GetCrcString() string
func (*MemifSocketFilenameDump) GetMessageName ¶
func (*MemifSocketFilenameDump) GetMessageName() string
func (*MemifSocketFilenameDump) GetMessageType ¶
func (*MemifSocketFilenameDump) GetMessageType() api.MessageType
type Services ¶ added in v1.8.1
type Services interface { DumpMemif(*MemifDump) ([]*MemifDetails, error) DumpMemifSocketFilename(*MemifSocketFilenameDump) ([]*MemifSocketFilenameDetails, error) MemifCreate(*MemifCreate) (*MemifCreateReply, error) MemifDelete(*MemifDelete) (*MemifDeleteReply, error) MemifSocketFilenameAddDel(*MemifSocketFilenameAddDel) (*MemifSocketFilenameAddDelReply, error) }
Services represents VPP binary API services:
"services": { "memif_delete": { "reply": "memif_delete_reply" }, "memif_socket_filename_add_del": { "reply": "memif_socket_filename_add_del_reply" }, "memif_create": { "reply": "memif_create_reply" }, "memif_socket_filename_dump": { "reply": "memif_socket_filename_details", "stream": true }, "memif_dump": { "reply": "memif_details", "stream": true } },