Documentation ¶
Overview ¶
Package af_packet contains generated bindings for API file af_packet.api.
Contents: - 2 enums - 12 messages
Index ¶
- Constants
- Variables
- func AllMessages() []api.Message
- type AfPacketCreate
- func (*AfPacketCreate) GetCrcString() string
- func (*AfPacketCreate) GetMessageName() string
- func (*AfPacketCreate) GetMessageType() api.MessageType
- func (m *AfPacketCreate) Marshal(b []byte) ([]byte, error)
- func (m *AfPacketCreate) Reset()
- func (m *AfPacketCreate) Size() (size int)
- func (m *AfPacketCreate) Unmarshal(b []byte) error
- type AfPacketCreateReply
- func (*AfPacketCreateReply) GetCrcString() string
- func (*AfPacketCreateReply) GetMessageName() string
- func (*AfPacketCreateReply) GetMessageType() api.MessageType
- func (m *AfPacketCreateReply) Marshal(b []byte) ([]byte, error)
- func (m *AfPacketCreateReply) Reset()
- func (m *AfPacketCreateReply) Size() (size int)
- func (m *AfPacketCreateReply) Unmarshal(b []byte) error
- type AfPacketCreateV2
- func (*AfPacketCreateV2) GetCrcString() string
- func (*AfPacketCreateV2) GetMessageName() string
- func (*AfPacketCreateV2) GetMessageType() api.MessageType
- func (m *AfPacketCreateV2) Marshal(b []byte) ([]byte, error)
- func (m *AfPacketCreateV2) Reset()
- func (m *AfPacketCreateV2) Size() (size int)
- func (m *AfPacketCreateV2) Unmarshal(b []byte) error
- type AfPacketCreateV2Reply
- func (*AfPacketCreateV2Reply) GetCrcString() string
- func (*AfPacketCreateV2Reply) GetMessageName() string
- func (*AfPacketCreateV2Reply) GetMessageType() api.MessageType
- func (m *AfPacketCreateV2Reply) Marshal(b []byte) ([]byte, error)
- func (m *AfPacketCreateV2Reply) Reset()
- func (m *AfPacketCreateV2Reply) Size() (size int)
- func (m *AfPacketCreateV2Reply) Unmarshal(b []byte) error
- type AfPacketCreateV3
- func (*AfPacketCreateV3) GetCrcString() string
- func (*AfPacketCreateV3) GetMessageName() string
- func (*AfPacketCreateV3) GetMessageType() api.MessageType
- func (m *AfPacketCreateV3) Marshal(b []byte) ([]byte, error)
- func (m *AfPacketCreateV3) Reset()
- func (m *AfPacketCreateV3) Size() (size int)
- func (m *AfPacketCreateV3) Unmarshal(b []byte) error
- type AfPacketCreateV3Reply
- func (*AfPacketCreateV3Reply) GetCrcString() string
- func (*AfPacketCreateV3Reply) GetMessageName() string
- func (*AfPacketCreateV3Reply) GetMessageType() api.MessageType
- func (m *AfPacketCreateV3Reply) Marshal(b []byte) ([]byte, error)
- func (m *AfPacketCreateV3Reply) Reset()
- func (m *AfPacketCreateV3Reply) Size() (size int)
- func (m *AfPacketCreateV3Reply) Unmarshal(b []byte) error
- type AfPacketDelete
- func (*AfPacketDelete) GetCrcString() string
- func (*AfPacketDelete) GetMessageName() string
- func (*AfPacketDelete) GetMessageType() api.MessageType
- func (m *AfPacketDelete) Marshal(b []byte) ([]byte, error)
- func (m *AfPacketDelete) Reset()
- func (m *AfPacketDelete) Size() (size int)
- func (m *AfPacketDelete) Unmarshal(b []byte) error
- type AfPacketDeleteReply
- func (*AfPacketDeleteReply) GetCrcString() string
- func (*AfPacketDeleteReply) GetMessageName() string
- func (*AfPacketDeleteReply) GetMessageType() api.MessageType
- func (m *AfPacketDeleteReply) Marshal(b []byte) ([]byte, error)
- func (m *AfPacketDeleteReply) Reset()
- func (m *AfPacketDeleteReply) Size() (size int)
- func (m *AfPacketDeleteReply) Unmarshal(b []byte) error
- type AfPacketDetails
- func (*AfPacketDetails) GetCrcString() string
- func (*AfPacketDetails) GetMessageName() string
- func (*AfPacketDetails) GetMessageType() api.MessageType
- func (m *AfPacketDetails) Marshal(b []byte) ([]byte, error)
- func (m *AfPacketDetails) Reset()
- func (m *AfPacketDetails) Size() (size int)
- func (m *AfPacketDetails) Unmarshal(b []byte) error
- type AfPacketDump
- func (*AfPacketDump) GetCrcString() string
- func (*AfPacketDump) GetMessageName() string
- func (*AfPacketDump) GetMessageType() api.MessageType
- func (m *AfPacketDump) Marshal(b []byte) ([]byte, error)
- func (m *AfPacketDump) Reset()
- func (m *AfPacketDump) Size() (size int)
- func (m *AfPacketDump) Unmarshal(b []byte) error
- type AfPacketFlags
- type AfPacketMode
- type AfPacketSetL4CksumOffload
- func (*AfPacketSetL4CksumOffload) GetCrcString() string
- func (*AfPacketSetL4CksumOffload) GetMessageName() string
- func (*AfPacketSetL4CksumOffload) GetMessageType() api.MessageType
- func (m *AfPacketSetL4CksumOffload) Marshal(b []byte) ([]byte, error)
- func (m *AfPacketSetL4CksumOffload) Reset()
- func (m *AfPacketSetL4CksumOffload) Size() (size int)
- func (m *AfPacketSetL4CksumOffload) Unmarshal(b []byte) error
- type AfPacketSetL4CksumOffloadReply
- func (*AfPacketSetL4CksumOffloadReply) GetCrcString() string
- func (*AfPacketSetL4CksumOffloadReply) GetMessageName() string
- func (*AfPacketSetL4CksumOffloadReply) GetMessageType() api.MessageType
- func (m *AfPacketSetL4CksumOffloadReply) Marshal(b []byte) ([]byte, error)
- func (m *AfPacketSetL4CksumOffloadReply) Reset()
- func (m *AfPacketSetL4CksumOffloadReply) Size() (size int)
- func (m *AfPacketSetL4CksumOffloadReply) Unmarshal(b []byte) error
- type RPCService
- type RPCService_AfPacketDumpClient
Constants ¶
const ( APIFile = "af_packet" APIVersion = "2.0.0" VersionCrc = 0x5b12de21 )
Variables ¶
var ( AfPacketFlags_name = map[uint32]string{ 1: "AF_PACKET_API_FLAG_QDISC_BYPASS", 2: "AF_PACKET_API_FLAG_CKSUM_GSO", 8: "AF_PACKET_API_FLAG_VERSION_2", } AfPacketFlags_value = map[string]uint32{ "AF_PACKET_API_FLAG_QDISC_BYPASS": 1, "AF_PACKET_API_FLAG_CKSUM_GSO": 2, "AF_PACKET_API_FLAG_VERSION_2": 8, } )
var ( AfPacketMode_name = map[uint32]string{ 1: "AF_PACKET_API_MODE_ETHERNET", 2: "AF_PACKET_API_MODE_IP", } AfPacketMode_value = map[string]uint32{ "AF_PACKET_API_MODE_ETHERNET": 1, "AF_PACKET_API_MODE_IP": 2, } )
Functions ¶
func AllMessages ¶
Messages returns list of all messages in this module.
Types ¶
type AfPacketCreate ¶
type AfPacketCreate struct { HwAddr ethernet_types.MacAddress `binapi:"mac_address,name=hw_addr" json:"hw_addr,omitempty"` UseRandomHwAddr bool `binapi:"bool,name=use_random_hw_addr" json:"use_random_hw_addr,omitempty"` HostIfName string `binapi:"string[64],name=host_if_name" json:"host_if_name,omitempty"` }
Create host-interface
- hw_addr - interface MAC
- use_random_hw_addr - use random generated MAC
- host_if_name - interface name
AfPacketCreate defines message 'af_packet_create'. Deprecated: the message will be removed in the future versions
func (*AfPacketCreate) GetCrcString ¶
func (*AfPacketCreate) GetCrcString() string
func (*AfPacketCreate) GetMessageName ¶
func (*AfPacketCreate) GetMessageName() string
func (*AfPacketCreate) GetMessageType ¶
func (*AfPacketCreate) GetMessageType() api.MessageType
func (*AfPacketCreate) Reset ¶
func (m *AfPacketCreate) Reset()
func (*AfPacketCreate) Size ¶
func (m *AfPacketCreate) Size() (size int)
func (*AfPacketCreate) Unmarshal ¶
func (m *AfPacketCreate) Unmarshal(b []byte) error
type AfPacketCreateReply ¶
type AfPacketCreateReply struct { Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` }
Create host-interface response
- retval - return value for request
AfPacketCreateReply defines message 'af_packet_create_reply'. Deprecated: the message will be removed in the future versions
func (*AfPacketCreateReply) GetCrcString ¶
func (*AfPacketCreateReply) GetCrcString() string
func (*AfPacketCreateReply) GetMessageName ¶
func (*AfPacketCreateReply) GetMessageName() string
func (*AfPacketCreateReply) GetMessageType ¶
func (*AfPacketCreateReply) GetMessageType() api.MessageType
func (*AfPacketCreateReply) Marshal ¶
func (m *AfPacketCreateReply) Marshal(b []byte) ([]byte, error)
func (*AfPacketCreateReply) Reset ¶
func (m *AfPacketCreateReply) Reset()
func (*AfPacketCreateReply) Size ¶
func (m *AfPacketCreateReply) Size() (size int)
func (*AfPacketCreateReply) Unmarshal ¶
func (m *AfPacketCreateReply) Unmarshal(b []byte) error
type AfPacketCreateV2 ¶
type AfPacketCreateV2 struct { HwAddr ethernet_types.MacAddress `binapi:"mac_address,name=hw_addr" json:"hw_addr,omitempty"` UseRandomHwAddr bool `binapi:"bool,name=use_random_hw_addr" json:"use_random_hw_addr,omitempty"` HostIfName string `binapi:"string[64],name=host_if_name" json:"host_if_name,omitempty"` RxFrameSize uint32 `binapi:"u32,name=rx_frame_size" json:"rx_frame_size,omitempty"` TxFrameSize uint32 `binapi:"u32,name=tx_frame_size" json:"tx_frame_size,omitempty"` RxFramesPerBlock uint32 `binapi:"u32,name=rx_frames_per_block" json:"rx_frames_per_block,omitempty"` TxFramesPerBlock uint32 `binapi:"u32,name=tx_frames_per_block" json:"tx_frames_per_block,omitempty"` Flags uint32 `binapi:"u32,name=flags" json:"flags,omitempty"` NumRxQueues uint16 `binapi:"u16,name=num_rx_queues,default=1" json:"num_rx_queues,omitempty"` }
Create host-interface
- hw_addr - interface MAC
- use_random_hw_addr - use random generated MAC
- host_if_name - interface name
- rx_frame_size - frame size for RX
- tx_frame_size - frame size for TX
- rx_frames_per_block - frames per block for RX
- tx_frames_per_block - frames per block for TX
- flags - flags for the af_packet interface creation
- num_rx_queues - number of rx queues
AfPacketCreateV2 defines message 'af_packet_create_v2'. Deprecated: the message will be removed in the future versions
func (*AfPacketCreateV2) GetCrcString ¶
func (*AfPacketCreateV2) GetCrcString() string
func (*AfPacketCreateV2) GetMessageName ¶
func (*AfPacketCreateV2) GetMessageName() string
func (*AfPacketCreateV2) GetMessageType ¶
func (*AfPacketCreateV2) GetMessageType() api.MessageType
func (*AfPacketCreateV2) Reset ¶
func (m *AfPacketCreateV2) Reset()
func (*AfPacketCreateV2) Size ¶
func (m *AfPacketCreateV2) Size() (size int)
func (*AfPacketCreateV2) Unmarshal ¶
func (m *AfPacketCreateV2) Unmarshal(b []byte) error
type AfPacketCreateV2Reply ¶
type AfPacketCreateV2Reply struct { Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` }
Create host-interface response
- retval - return value for request
AfPacketCreateV2Reply defines message 'af_packet_create_v2_reply'. Deprecated: the message will be removed in the future versions
func (*AfPacketCreateV2Reply) GetCrcString ¶
func (*AfPacketCreateV2Reply) GetCrcString() string
func (*AfPacketCreateV2Reply) GetMessageName ¶
func (*AfPacketCreateV2Reply) GetMessageName() string
func (*AfPacketCreateV2Reply) GetMessageType ¶
func (*AfPacketCreateV2Reply) GetMessageType() api.MessageType
func (*AfPacketCreateV2Reply) Marshal ¶
func (m *AfPacketCreateV2Reply) Marshal(b []byte) ([]byte, error)
func (*AfPacketCreateV2Reply) Reset ¶
func (m *AfPacketCreateV2Reply) Reset()
func (*AfPacketCreateV2Reply) Size ¶
func (m *AfPacketCreateV2Reply) Size() (size int)
func (*AfPacketCreateV2Reply) Unmarshal ¶
func (m *AfPacketCreateV2Reply) Unmarshal(b []byte) error
type AfPacketCreateV3 ¶
type AfPacketCreateV3 struct { Mode AfPacketMode `binapi:"af_packet_mode,name=mode" json:"mode,omitempty"` HwAddr ethernet_types.MacAddress `binapi:"mac_address,name=hw_addr" json:"hw_addr,omitempty"` UseRandomHwAddr bool `binapi:"bool,name=use_random_hw_addr" json:"use_random_hw_addr,omitempty"` HostIfName string `binapi:"string[64],name=host_if_name" json:"host_if_name,omitempty"` RxFrameSize uint32 `binapi:"u32,name=rx_frame_size" json:"rx_frame_size,omitempty"` TxFrameSize uint32 `binapi:"u32,name=tx_frame_size" json:"tx_frame_size,omitempty"` RxFramesPerBlock uint32 `binapi:"u32,name=rx_frames_per_block" json:"rx_frames_per_block,omitempty"` TxFramesPerBlock uint32 `binapi:"u32,name=tx_frames_per_block" json:"tx_frames_per_block,omitempty"` Flags AfPacketFlags `binapi:"af_packet_flags,name=flags" json:"flags,omitempty"` NumRxQueues uint16 `binapi:"u16,name=num_rx_queues,default=1" json:"num_rx_queues,omitempty"` NumTxQueues uint16 `binapi:"u16,name=num_tx_queues,default=1" json:"num_tx_queues,omitempty"` }
Create host-interface
- mode - 1 - Ethernet, 2 - IP
- hw_addr - interface MAC
- use_random_hw_addr - use random generated MAC
- host_if_name - interface name
- rx_frame_size - frame size for RX
- tx_frame_size - frame size for TX
- rx_frames_per_block - frames per block for RX
- tx_frames_per_block - frames per block for TX
- flags - flags for the af_packet interface creation
- num_rx_queues - number of rx queues
- num_tx_queues - number of tx queues
AfPacketCreateV3 defines message 'af_packet_create_v3'.
func (*AfPacketCreateV3) GetCrcString ¶
func (*AfPacketCreateV3) GetCrcString() string
func (*AfPacketCreateV3) GetMessageName ¶
func (*AfPacketCreateV3) GetMessageName() string
func (*AfPacketCreateV3) GetMessageType ¶
func (*AfPacketCreateV3) GetMessageType() api.MessageType
func (*AfPacketCreateV3) Reset ¶
func (m *AfPacketCreateV3) Reset()
func (*AfPacketCreateV3) Size ¶
func (m *AfPacketCreateV3) Size() (size int)
func (*AfPacketCreateV3) Unmarshal ¶
func (m *AfPacketCreateV3) Unmarshal(b []byte) error
type AfPacketCreateV3Reply ¶
type AfPacketCreateV3Reply struct { Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` }
Create host-interface response
- retval - return value for request
AfPacketCreateV3Reply defines message 'af_packet_create_v3_reply'.
func (*AfPacketCreateV3Reply) GetCrcString ¶
func (*AfPacketCreateV3Reply) GetCrcString() string
func (*AfPacketCreateV3Reply) GetMessageName ¶
func (*AfPacketCreateV3Reply) GetMessageName() string
func (*AfPacketCreateV3Reply) GetMessageType ¶
func (*AfPacketCreateV3Reply) GetMessageType() api.MessageType
func (*AfPacketCreateV3Reply) Marshal ¶
func (m *AfPacketCreateV3Reply) Marshal(b []byte) ([]byte, error)
func (*AfPacketCreateV3Reply) Reset ¶
func (m *AfPacketCreateV3Reply) Reset()
func (*AfPacketCreateV3Reply) Size ¶
func (m *AfPacketCreateV3Reply) Size() (size int)
func (*AfPacketCreateV3Reply) Unmarshal ¶
func (m *AfPacketCreateV3Reply) Unmarshal(b []byte) error
type AfPacketDelete ¶
type AfPacketDelete struct {
HostIfName string `binapi:"string[64],name=host_if_name" json:"host_if_name,omitempty"`
}
Delete host-interface
- host_if_name - interface name
AfPacketDelete defines message 'af_packet_delete'.
func (*AfPacketDelete) GetCrcString ¶
func (*AfPacketDelete) GetCrcString() string
func (*AfPacketDelete) GetMessageName ¶
func (*AfPacketDelete) GetMessageName() string
func (*AfPacketDelete) GetMessageType ¶
func (*AfPacketDelete) GetMessageType() api.MessageType
func (*AfPacketDelete) Reset ¶
func (m *AfPacketDelete) Reset()
func (*AfPacketDelete) Size ¶
func (m *AfPacketDelete) Size() (size int)
func (*AfPacketDelete) Unmarshal ¶
func (m *AfPacketDelete) Unmarshal(b []byte) error
type AfPacketDeleteReply ¶
type AfPacketDeleteReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
AfPacketDeleteReply defines message 'af_packet_delete_reply'.
func (*AfPacketDeleteReply) GetCrcString ¶
func (*AfPacketDeleteReply) GetCrcString() string
func (*AfPacketDeleteReply) GetMessageName ¶
func (*AfPacketDeleteReply) GetMessageName() string
func (*AfPacketDeleteReply) GetMessageType ¶
func (*AfPacketDeleteReply) GetMessageType() api.MessageType
func (*AfPacketDeleteReply) Marshal ¶
func (m *AfPacketDeleteReply) Marshal(b []byte) ([]byte, error)
func (*AfPacketDeleteReply) Reset ¶
func (m *AfPacketDeleteReply) Reset()
func (*AfPacketDeleteReply) Size ¶
func (m *AfPacketDeleteReply) Size() (size int)
func (*AfPacketDeleteReply) Unmarshal ¶
func (m *AfPacketDeleteReply) Unmarshal(b []byte) error
type AfPacketDetails ¶
type AfPacketDetails struct { SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` HostIfName string `binapi:"string[64],name=host_if_name" json:"host_if_name,omitempty"` }
Reply for af_packet dump request
- sw_if_index - software index of af_packet interface
- host_if_name - interface name
AfPacketDetails defines message 'af_packet_details'.
func (*AfPacketDetails) GetCrcString ¶
func (*AfPacketDetails) GetCrcString() string
func (*AfPacketDetails) GetMessageName ¶
func (*AfPacketDetails) GetMessageName() string
func (*AfPacketDetails) GetMessageType ¶
func (*AfPacketDetails) GetMessageType() api.MessageType
func (*AfPacketDetails) Reset ¶
func (m *AfPacketDetails) Reset()
func (*AfPacketDetails) Size ¶
func (m *AfPacketDetails) Size() (size int)
func (*AfPacketDetails) Unmarshal ¶
func (m *AfPacketDetails) Unmarshal(b []byte) error
type AfPacketDump ¶
type AfPacketDump struct{}
Dump af_packet interfaces request AfPacketDump defines message 'af_packet_dump'.
func (*AfPacketDump) GetCrcString ¶
func (*AfPacketDump) GetCrcString() string
func (*AfPacketDump) GetMessageName ¶
func (*AfPacketDump) GetMessageName() string
func (*AfPacketDump) GetMessageType ¶
func (*AfPacketDump) GetMessageType() api.MessageType
func (*AfPacketDump) Reset ¶
func (m *AfPacketDump) Reset()
func (*AfPacketDump) Size ¶
func (m *AfPacketDump) Size() (size int)
func (*AfPacketDump) Unmarshal ¶
func (m *AfPacketDump) Unmarshal(b []byte) error
type AfPacketFlags ¶
type AfPacketFlags uint32
AfPacketFlags defines enum 'af_packet_flags'.
const ( AF_PACKET_API_FLAG_QDISC_BYPASS AfPacketFlags = 1 AF_PACKET_API_FLAG_CKSUM_GSO AfPacketFlags = 2 AF_PACKET_API_FLAG_VERSION_2 AfPacketFlags = 8 )
func (AfPacketFlags) String ¶
func (x AfPacketFlags) String() string
type AfPacketMode ¶
type AfPacketMode uint32
AfPacketMode defines enum 'af_packet_mode'.
const ( AF_PACKET_API_MODE_ETHERNET AfPacketMode = 1 AF_PACKET_API_MODE_IP AfPacketMode = 2 )
func (AfPacketMode) String ¶
func (x AfPacketMode) String() string
type AfPacketSetL4CksumOffload ¶
type AfPacketSetL4CksumOffload struct { SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` Set bool `binapi:"bool,name=set" json:"set,omitempty"` }
Set l4 offload checksum calculation AfPacketSetL4CksumOffload defines message 'af_packet_set_l4_cksum_offload'.
func (*AfPacketSetL4CksumOffload) GetCrcString ¶
func (*AfPacketSetL4CksumOffload) GetCrcString() string
func (*AfPacketSetL4CksumOffload) GetMessageName ¶
func (*AfPacketSetL4CksumOffload) GetMessageName() string
func (*AfPacketSetL4CksumOffload) GetMessageType ¶
func (*AfPacketSetL4CksumOffload) GetMessageType() api.MessageType
func (*AfPacketSetL4CksumOffload) Marshal ¶
func (m *AfPacketSetL4CksumOffload) Marshal(b []byte) ([]byte, error)
func (*AfPacketSetL4CksumOffload) Reset ¶
func (m *AfPacketSetL4CksumOffload) Reset()
func (*AfPacketSetL4CksumOffload) Size ¶
func (m *AfPacketSetL4CksumOffload) Size() (size int)
func (*AfPacketSetL4CksumOffload) Unmarshal ¶
func (m *AfPacketSetL4CksumOffload) Unmarshal(b []byte) error
type AfPacketSetL4CksumOffloadReply ¶
type AfPacketSetL4CksumOffloadReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
AfPacketSetL4CksumOffloadReply defines message 'af_packet_set_l4_cksum_offload_reply'.
func (*AfPacketSetL4CksumOffloadReply) GetCrcString ¶
func (*AfPacketSetL4CksumOffloadReply) GetCrcString() string
func (*AfPacketSetL4CksumOffloadReply) GetMessageName ¶
func (*AfPacketSetL4CksumOffloadReply) GetMessageName() string
func (*AfPacketSetL4CksumOffloadReply) GetMessageType ¶
func (*AfPacketSetL4CksumOffloadReply) GetMessageType() api.MessageType
func (*AfPacketSetL4CksumOffloadReply) Marshal ¶
func (m *AfPacketSetL4CksumOffloadReply) Marshal(b []byte) ([]byte, error)
func (*AfPacketSetL4CksumOffloadReply) Reset ¶
func (m *AfPacketSetL4CksumOffloadReply) Reset()
func (*AfPacketSetL4CksumOffloadReply) Size ¶
func (m *AfPacketSetL4CksumOffloadReply) Size() (size int)
func (*AfPacketSetL4CksumOffloadReply) Unmarshal ¶
func (m *AfPacketSetL4CksumOffloadReply) Unmarshal(b []byte) error
type RPCService ¶
type RPCService interface { AfPacketCreate(ctx context.Context, in *AfPacketCreate) (*AfPacketCreateReply, error) AfPacketCreateV2(ctx context.Context, in *AfPacketCreateV2) (*AfPacketCreateV2Reply, error) AfPacketCreateV3(ctx context.Context, in *AfPacketCreateV3) (*AfPacketCreateV3Reply, error) AfPacketDelete(ctx context.Context, in *AfPacketDelete) (*AfPacketDeleteReply, error) AfPacketDump(ctx context.Context, in *AfPacketDump) (RPCService_AfPacketDumpClient, error) AfPacketSetL4CksumOffload(ctx context.Context, in *AfPacketSetL4CksumOffload) (*AfPacketSetL4CksumOffloadReply, error) }
RPCService defines RPC service af_packet.
func NewServiceClient ¶
func NewServiceClient(conn api.Connection) RPCService
type RPCService_AfPacketDumpClient ¶
type RPCService_AfPacketDumpClient interface { Recv() (*AfPacketDetails, error) api.Stream }