1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
|
// 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),
}
|