memif

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 23, 2017 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package memif represents the VPP binary API of the 'memif' VPP module. DO NOT EDIT. Generated from '/usr/share/vpp/api/memif.api.json'

Code generated by github.com/ungerik/pkgreflect DO NOT EDIT.

Index

Constants

View Source
const VlAPIVersion = 0xed3def5d

VlApiVersion contains version of the API.

Variables

View Source
var Consts = map[string]reflect.Value{
	"VlAPIVersion": reflect.ValueOf(VlAPIVersion),
}
View Source
var Functions = map[string]reflect.Value{
	"NewMemifCreate":      reflect.ValueOf(NewMemifCreate),
	"NewMemifCreateReply": reflect.ValueOf(NewMemifCreateReply),
	"NewMemifDelete":      reflect.ValueOf(NewMemifDelete),
	"NewMemifDeleteReply": reflect.ValueOf(NewMemifDeleteReply),
	"NewMemifDetails":     reflect.ValueOf(NewMemifDetails),
	"NewMemifDump":        reflect.ValueOf(NewMemifDump),
}
View Source
var Types = map[string]reflect.Type{
	"MemifCreate":      reflect.TypeOf((*MemifCreate)(nil)).Elem(),
	"MemifCreateReply": reflect.TypeOf((*MemifCreateReply)(nil)).Elem(),
	"MemifDelete":      reflect.TypeOf((*MemifDelete)(nil)).Elem(),
	"MemifDeleteReply": reflect.TypeOf((*MemifDeleteReply)(nil)).Elem(),
	"MemifDetails":     reflect.TypeOf((*MemifDetails)(nil)).Elem(),
	"MemifDump":        reflect.TypeOf((*MemifDump)(nil)).Elem(),
}
View Source
var Variables = map[string]reflect.Value{}

Functions

func NewMemifCreate

func NewMemifCreate() api.Message

func NewMemifCreateReply

func NewMemifCreateReply() api.Message

func NewMemifDelete

func NewMemifDelete() api.Message

func NewMemifDeleteReply

func NewMemifDeleteReply() api.Message

func NewMemifDetails

func NewMemifDetails() api.Message

func NewMemifDump

func NewMemifDump() api.Message

Types

type MemifCreate

type MemifCreate struct {
	Role           uint8
	Mode           uint8
	RxQueues       uint8
	TxQueues       uint8
	ID             uint32
	SocketFilename []byte `struc:"[128]byte"`
	Secret         []byte `struc:"[24]byte"`
	RingSize       uint32
	BufferSize     uint16
	HwAddr         []byte `struc:"[6]byte"`
}

MemifCreate represents the VPP binary API message 'memif_create'. Generated from '/usr/share/vpp/api/memif.api.json', line 6:

["memif_create",
    ["u16", "_vl_msg_id"],
    ["u32", "client_index"],
    ["u32", "context"],
    ["u8", "role"],
    ["u8", "mode"],
    ["u8", "rx_queues"],
    ["u8", "tx_queues"],
    ["u32", "id"],
    ["u8", "socket_filename", 128],
    ["u8", "secret", 24],
    ["u32", "ring_size"],
    ["u16", "buffer_size"],
    ["u8", "hw_addr", 6],
    {"crc" : "0xc809c235"}
],

func (*MemifCreate) GetCrcString

func (*MemifCreate) GetCrcString() string

func (*MemifCreate) GetMessageName

func (*MemifCreate) GetMessageName() string

func (*MemifCreate) GetMessageType

func (*MemifCreate) GetMessageType() api.MessageType

type MemifCreateReply

type MemifCreateReply struct {
	Retval    int32
	SwIfIndex uint32
}

MemifCreateReply represents the VPP binary API message 'memif_create_reply'. Generated from '/usr/share/vpp/api/memif.api.json', line 22:

["memif_create_reply",
    ["u16", "_vl_msg_id"],
    ["u32", "context"],
    ["i32", "retval"],
    ["u32", "sw_if_index"],
    {"crc" : "0x93d7498b"}
],

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 the VPP binary API message 'memif_delete'. Generated from '/usr/share/vpp/api/memif.api.json', line 29:

["memif_delete",
    ["u16", "_vl_msg_id"],
    ["u32", "client_index"],
    ["u32", "context"],
    ["u32", "sw_if_index"],
    {"crc" : "0x12814e3d"}
],

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 the VPP binary API message 'memif_delete_reply'. Generated from '/usr/share/vpp/api/memif.api.json', line 36:

["memif_delete_reply",
    ["u16", "_vl_msg_id"],
    ["u32", "context"],
    ["i32", "retval"],
    {"crc" : "0x72c9fa3c"}
],

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
	SocketFilename []byte `struc:"[128]byte"`
	RingSize       uint32
	BufferSize     uint16
	AdminUpDown    uint8
	LinkUpDown     uint8
}

MemifDetails represents the VPP binary API message 'memif_details'. Generated from '/usr/share/vpp/api/memif.api.json', line 42:

["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"],
    ["u8", "socket_filename", 128],
    ["u32", "ring_size"],
    ["u16", "buffer_size"],
    ["u8", "admin_up_down"],
    ["u8", "link_up_down"],
    {"crc" : "0x4d74fd96"}
],

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 the VPP binary API message 'memif_dump'. Generated from '/usr/share/vpp/api/memif.api.json', line 58:

["memif_dump",
    ["u16", "_vl_msg_id"],
    ["u32", "client_index"],
    ["u32", "context"],
    {"crc" : "0x68d39e95"}
]

func (*MemifDump) GetCrcString

func (*MemifDump) GetCrcString() string

func (*MemifDump) GetMessageName

func (*MemifDump) GetMessageName() string

func (*MemifDump) GetMessageType

func (*MemifDump) GetMessageType() api.MessageType

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL