Documentation ¶
Overview ¶
Package af_packet represents the VPP binary API of the 'af_packet' VPP module. DO NOT EDIT. Generated from '/usr/share/vpp/api/af_packet.api.json'
Code generated by github.com/ungerik/pkgreflect DO NOT EDIT.
Index ¶
Constants ¶
const VlAPIVersion = 0xd4ce9f85
VlApiVersion contains version of the API.
Variables ¶
var Consts = map[string]reflect.Value{ "VlAPIVersion": reflect.ValueOf(VlAPIVersion), }
var Functions = map[string]reflect.Value{ "NewAfPacketCreate": reflect.ValueOf(NewAfPacketCreate), "NewAfPacketCreateReply": reflect.ValueOf(NewAfPacketCreateReply), "NewAfPacketDelete": reflect.ValueOf(NewAfPacketDelete), "NewAfPacketDeleteReply": reflect.ValueOf(NewAfPacketDeleteReply), }
var Types = map[string]reflect.Type{ "AfPacketCreate": reflect.TypeOf((*AfPacketCreate)(nil)).Elem(), "AfPacketCreateReply": reflect.TypeOf((*AfPacketCreateReply)(nil)).Elem(), "AfPacketDelete": reflect.TypeOf((*AfPacketDelete)(nil)).Elem(), "AfPacketDeleteReply": reflect.TypeOf((*AfPacketDeleteReply)(nil)).Elem(), }
var Variables = map[string]reflect.Value{}
Functions ¶
func NewAfPacketCreate ¶
func NewAfPacketCreateReply ¶
func NewAfPacketDelete ¶
func NewAfPacketDeleteReply ¶
Types ¶
type AfPacketCreate ¶
type AfPacketCreate struct { HostIfName []byte `struc:"[64]byte"` HwAddr []byte `struc:"[6]byte"` UseRandomHwAddr uint8 }
AfPacketCreate represents the VPP binary API message 'af_packet_create'. Generated from '/usr/share/vpp/api/af_packet.api.json', line 6:
["af_packet_create", ["u16", "_vl_msg_id"], ["u32", "client_index"], ["u32", "context"], ["u8", "host_if_name", 64], ["u8", "hw_addr", 6], ["u8", "use_random_hw_addr"], {"crc" : "0x92768640"} ],
func (*AfPacketCreate) GetCrcString ¶
func (*AfPacketCreate) GetCrcString() string
func (*AfPacketCreate) GetMessageName ¶
func (*AfPacketCreate) GetMessageName() string
func (*AfPacketCreate) GetMessageType ¶
func (*AfPacketCreate) GetMessageType() api.MessageType
type AfPacketCreateReply ¶
AfPacketCreateReply represents the VPP binary API message 'af_packet_create_reply'. Generated from '/usr/share/vpp/api/af_packet.api.json', line 15:
["af_packet_create_reply", ["u16", "_vl_msg_id"], ["u32", "context"], ["i32", "retval"], ["u32", "sw_if_index"], {"crc" : "0x718bac92"} ],
func (*AfPacketCreateReply) GetCrcString ¶
func (*AfPacketCreateReply) GetCrcString() string
func (*AfPacketCreateReply) GetMessageName ¶
func (*AfPacketCreateReply) GetMessageName() string
func (*AfPacketCreateReply) GetMessageType ¶
func (*AfPacketCreateReply) GetMessageType() api.MessageType
type AfPacketDelete ¶
type AfPacketDelete struct {
HostIfName []byte `struc:"[64]byte"`
}
AfPacketDelete represents the VPP binary API message 'af_packet_delete'. Generated from '/usr/share/vpp/api/af_packet.api.json', line 22:
["af_packet_delete", ["u16", "_vl_msg_id"], ["u32", "client_index"], ["u32", "context"], ["u8", "host_if_name", 64], {"crc" : "0xc063ce85"} ],
func (*AfPacketDelete) GetCrcString ¶
func (*AfPacketDelete) GetCrcString() string
func (*AfPacketDelete) GetMessageName ¶
func (*AfPacketDelete) GetMessageName() string
func (*AfPacketDelete) GetMessageType ¶
func (*AfPacketDelete) GetMessageType() api.MessageType
type AfPacketDeleteReply ¶
type AfPacketDeleteReply struct {
Retval int32
}
AfPacketDeleteReply represents the VPP binary API message 'af_packet_delete_reply'. Generated from '/usr/share/vpp/api/af_packet.api.json', line 29:
["af_packet_delete_reply", ["u16", "_vl_msg_id"], ["u32", "context"], ["i32", "retval"], {"crc" : "0x1a80431a"} ]
func (*AfPacketDeleteReply) GetCrcString ¶
func (*AfPacketDeleteReply) GetCrcString() string
func (*AfPacketDeleteReply) GetMessageName ¶
func (*AfPacketDeleteReply) GetMessageName() string
func (*AfPacketDeleteReply) GetMessageType ¶
func (*AfPacketDeleteReply) GetMessageType() api.MessageType