diff options
Diffstat (limited to 'examples/bin_api/af_packet/af_packet.ba.go')
-rw-r--r-- | examples/bin_api/af_packet/af_packet.ba.go | 175 |
1 files changed, 0 insertions, 175 deletions
diff --git a/examples/bin_api/af_packet/af_packet.ba.go b/examples/bin_api/af_packet/af_packet.ba.go deleted file mode 100644 index 5197a5b..0000000 --- a/examples/bin_api/af_packet/af_packet.ba.go +++ /dev/null @@ -1,175 +0,0 @@ -// Code generated by GoVPP binapi-generator. DO NOT EDIT. -// source: af_packet.api.json - -/* - Package af_packet is a generated from VPP binary API module 'af_packet'. - - It contains following objects: - 4 services - 8 messages -*/ -package af_packet - -import api "git.fd.io/govpp.git/api" -import struc "github.com/lunixbochs/struc" -import bytes "bytes" - -// Reference imports to suppress errors if they are not otherwise used. -var _ = api.RegisterMessage -var _ = struc.Pack -var _ = bytes.NewBuffer - -// Services represents VPP binary API services: -type Services interface { - DumpAfPacket(*AfPacketDump) ([]*AfPacketDetails, error) - AfPacketCreate(*AfPacketCreate) (*AfPacketCreateReply, error) - AfPacketDelete(*AfPacketDelete) (*AfPacketDeleteReply, error) - AfPacketSetL4CksumOffload(*AfPacketSetL4CksumOffload) (*AfPacketSetL4CksumOffloadReply, error) -} - -/* Messages */ - -// AfPacketCreate represents VPP binary API message 'af_packet_create': -type AfPacketCreate struct { - HostIfName []byte `struc:"[64]byte"` - HwAddr []byte `struc:"[6]byte"` - UseRandomHwAddr uint8 -} - -func (*AfPacketCreate) GetMessageName() string { - return "af_packet_create" -} -func (*AfPacketCreate) GetCrcString() string { - return "6d5d30d6" -} -func (*AfPacketCreate) GetMessageType() api.MessageType { - return api.RequestMessage -} - -// AfPacketCreateReply represents VPP binary API message 'af_packet_create_reply': -type AfPacketCreateReply struct { - Retval int32 - SwIfIndex uint32 -} - -func (*AfPacketCreateReply) GetMessageName() string { - return "af_packet_create_reply" -} -func (*AfPacketCreateReply) GetCrcString() string { - return "fda5941f" -} -func (*AfPacketCreateReply) GetMessageType() api.MessageType { - return api.ReplyMessage -} - -// AfPacketDelete represents VPP binary API message 'af_packet_delete': -type AfPacketDelete struct { - HostIfName []byte `struc:"[64]byte"` -} - -func (*AfPacketDelete) GetMessageName() string { - return "af_packet_delete" -} -func (*AfPacketDelete) GetCrcString() string { - return "3efceda3" -} -func (*AfPacketDelete) GetMessageType() api.MessageType { - return api.RequestMessage -} - -// AfPacketDeleteReply represents VPP binary API message 'af_packet_delete_reply': -type AfPacketDeleteReply struct { - Retval int32 -} - -func (*AfPacketDeleteReply) GetMessageName() string { - return "af_packet_delete_reply" -} -func (*AfPacketDeleteReply) GetCrcString() string { - return "e8d4e804" -} -func (*AfPacketDeleteReply) GetMessageType() api.MessageType { - return api.ReplyMessage -} - -// AfPacketDetails represents VPP binary API message 'af_packet_details': -type AfPacketDetails struct { - SwIfIndex uint32 - HostIfName []byte `struc:"[64]byte"` -} - -func (*AfPacketDetails) GetMessageName() string { - return "af_packet_details" -} -func (*AfPacketDetails) GetCrcString() string { - return "057205fa" -} -func (*AfPacketDetails) GetMessageType() api.MessageType { - return api.ReplyMessage -} - -// AfPacketDump represents VPP binary API message 'af_packet_dump': -type AfPacketDump struct{} - -func (*AfPacketDump) GetMessageName() string { - return "af_packet_dump" -} -func (*AfPacketDump) GetCrcString() string { - return "51077d14" -} -func (*AfPacketDump) GetMessageType() api.MessageType { - return api.RequestMessage -} - -// AfPacketSetL4CksumOffload represents VPP binary API message 'af_packet_set_l4_cksum_offload': -type AfPacketSetL4CksumOffload struct { - SwIfIndex uint8 - Set uint8 -} - -func (*AfPacketSetL4CksumOffload) GetMessageName() string { - return "af_packet_set_l4_cksum_offload" -} -func (*AfPacketSetL4CksumOffload) GetCrcString() string { - return "86538585" -} -func (*AfPacketSetL4CksumOffload) GetMessageType() api.MessageType { - return api.RequestMessage -} - -// AfPacketSetL4CksumOffloadReply represents VPP binary API message 'af_packet_set_l4_cksum_offload_reply': -type AfPacketSetL4CksumOffloadReply struct { - Retval int32 -} - -func (*AfPacketSetL4CksumOffloadReply) GetMessageName() string { - return "af_packet_set_l4_cksum_offload_reply" -} -func (*AfPacketSetL4CksumOffloadReply) GetCrcString() string { - return "e8d4e804" -} -func (*AfPacketSetL4CksumOffloadReply) GetMessageType() api.MessageType { - return api.ReplyMessage -} - -func init() { - api.RegisterMessage((*AfPacketCreate)(nil), "af_packet.AfPacketCreate") - api.RegisterMessage((*AfPacketCreateReply)(nil), "af_packet.AfPacketCreateReply") - api.RegisterMessage((*AfPacketDelete)(nil), "af_packet.AfPacketDelete") - api.RegisterMessage((*AfPacketDeleteReply)(nil), "af_packet.AfPacketDeleteReply") - api.RegisterMessage((*AfPacketDetails)(nil), "af_packet.AfPacketDetails") - api.RegisterMessage((*AfPacketDump)(nil), "af_packet.AfPacketDump") - api.RegisterMessage((*AfPacketSetL4CksumOffload)(nil), "af_packet.AfPacketSetL4CksumOffload") - api.RegisterMessage((*AfPacketSetL4CksumOffloadReply)(nil), "af_packet.AfPacketSetL4CksumOffloadReply") -} - -var Messages = []api.Message{ - (*AfPacketCreate)(nil), - (*AfPacketCreateReply)(nil), - (*AfPacketDelete)(nil), - (*AfPacketDeleteReply)(nil), - (*AfPacketDetails)(nil), - (*AfPacketDump)(nil), - (*AfPacketSetL4CksumOffload)(nil), - (*AfPacketSetL4CksumOffloadReply)(nil), -} |