Update generated binapi to v22.02 & makefile changes
[govpp.git] / internal / testbinapi / binapi2001 / af_packet / af_packet.ba.go
1 // Code generated by GoVPP's binapi-generator. DO NOT EDIT.
2 // versions:
3 //  binapi-generator: v0.5.0-dev
4 //  VPP:              20.01
5 // source: .vppapi/core/af_packet.api.json
6
7 // Package af_packet contains generated bindings for API file af_packet.api.
8 //
9 // Contents:
10 //   2 aliases
11 //   6 enums
12 //   8 messages
13 //
14 package af_packet
15
16 import (
17         "net"
18         "strconv"
19
20         api "git.fd.io/govpp.git/api"
21         codec "git.fd.io/govpp.git/codec"
22 )
23
24 // This is a compile-time assertion to ensure that this generated file
25 // is compatible with the GoVPP api package it is being compiled against.
26 // A compilation error at this line likely means your copy of the
27 // GoVPP api package needs to be updated.
28 const _ = api.GoVppAPIPackageIsVersion2
29
30 const (
31         APIFile    = "af_packet"
32         APIVersion = "2.0.0"
33         VersionCrc = 0xba745e20
34 )
35
36 // IfStatusFlags defines enum 'if_status_flags'.
37 type IfStatusFlags uint32
38
39 const (
40         IF_STATUS_API_FLAG_ADMIN_UP IfStatusFlags = 1
41         IF_STATUS_API_FLAG_LINK_UP  IfStatusFlags = 2
42 )
43
44 var (
45         IfStatusFlags_name = map[uint32]string{
46                 1: "IF_STATUS_API_FLAG_ADMIN_UP",
47                 2: "IF_STATUS_API_FLAG_LINK_UP",
48         }
49         IfStatusFlags_value = map[string]uint32{
50                 "IF_STATUS_API_FLAG_ADMIN_UP": 1,
51                 "IF_STATUS_API_FLAG_LINK_UP":  2,
52         }
53 )
54
55 func (x IfStatusFlags) String() string {
56         s, ok := IfStatusFlags_name[uint32(x)]
57         if ok {
58                 return s
59         }
60         str := func(n uint32) string {
61                 s, ok := IfStatusFlags_name[uint32(n)]
62                 if ok {
63                         return s
64                 }
65                 return "IfStatusFlags(" + strconv.Itoa(int(n)) + ")"
66         }
67         for i := uint32(0); i <= 32; i++ {
68                 val := uint32(x)
69                 if val&(1<<i) != 0 {
70                         if s != "" {
71                                 s += "|"
72                         }
73                         s += str(1 << i)
74                 }
75         }
76         if s == "" {
77                 return str(uint32(x))
78         }
79         return s
80 }
81
82 // IfType defines enum 'if_type'.
83 type IfType uint32
84
85 const (
86         IF_API_TYPE_HARDWARE IfType = 1
87         IF_API_TYPE_SUB      IfType = 2
88         IF_API_TYPE_P2P      IfType = 3
89         IF_API_TYPE_PIPE     IfType = 4
90 )
91
92 var (
93         IfType_name = map[uint32]string{
94                 1: "IF_API_TYPE_HARDWARE",
95                 2: "IF_API_TYPE_SUB",
96                 3: "IF_API_TYPE_P2P",
97                 4: "IF_API_TYPE_PIPE",
98         }
99         IfType_value = map[string]uint32{
100                 "IF_API_TYPE_HARDWARE": 1,
101                 "IF_API_TYPE_SUB":      2,
102                 "IF_API_TYPE_P2P":      3,
103                 "IF_API_TYPE_PIPE":     4,
104         }
105 )
106
107 func (x IfType) String() string {
108         s, ok := IfType_name[uint32(x)]
109         if ok {
110                 return s
111         }
112         return "IfType(" + strconv.Itoa(int(x)) + ")"
113 }
114
115 // LinkDuplex defines enum 'link_duplex'.
116 type LinkDuplex uint32
117
118 const (
119         LINK_DUPLEX_API_UNKNOWN LinkDuplex = 0
120         LINK_DUPLEX_API_HALF    LinkDuplex = 1
121         LINK_DUPLEX_API_FULL    LinkDuplex = 2
122 )
123
124 var (
125         LinkDuplex_name = map[uint32]string{
126                 0: "LINK_DUPLEX_API_UNKNOWN",
127                 1: "LINK_DUPLEX_API_HALF",
128                 2: "LINK_DUPLEX_API_FULL",
129         }
130         LinkDuplex_value = map[string]uint32{
131                 "LINK_DUPLEX_API_UNKNOWN": 0,
132                 "LINK_DUPLEX_API_HALF":    1,
133                 "LINK_DUPLEX_API_FULL":    2,
134         }
135 )
136
137 func (x LinkDuplex) String() string {
138         s, ok := LinkDuplex_name[uint32(x)]
139         if ok {
140                 return s
141         }
142         return "LinkDuplex(" + strconv.Itoa(int(x)) + ")"
143 }
144
145 // MtuProto defines enum 'mtu_proto'.
146 type MtuProto uint32
147
148 const (
149         MTU_PROTO_API_L3   MtuProto = 1
150         MTU_PROTO_API_IP4  MtuProto = 2
151         MTU_PROTO_API_IP6  MtuProto = 3
152         MTU_PROTO_API_MPLS MtuProto = 4
153         MTU_PROTO_API_N    MtuProto = 5
154 )
155
156 var (
157         MtuProto_name = map[uint32]string{
158                 1: "MTU_PROTO_API_L3",
159                 2: "MTU_PROTO_API_IP4",
160                 3: "MTU_PROTO_API_IP6",
161                 4: "MTU_PROTO_API_MPLS",
162                 5: "MTU_PROTO_API_N",
163         }
164         MtuProto_value = map[string]uint32{
165                 "MTU_PROTO_API_L3":   1,
166                 "MTU_PROTO_API_IP4":  2,
167                 "MTU_PROTO_API_IP6":  3,
168                 "MTU_PROTO_API_MPLS": 4,
169                 "MTU_PROTO_API_N":    5,
170         }
171 )
172
173 func (x MtuProto) String() string {
174         s, ok := MtuProto_name[uint32(x)]
175         if ok {
176                 return s
177         }
178         return "MtuProto(" + strconv.Itoa(int(x)) + ")"
179 }
180
181 // RxMode defines enum 'rx_mode'.
182 type RxMode uint32
183
184 const (
185         RX_MODE_API_UNKNOWN   RxMode = 0
186         RX_MODE_API_POLLING   RxMode = 1
187         RX_MODE_API_INTERRUPT RxMode = 2
188         RX_MODE_API_ADAPTIVE  RxMode = 3
189         RX_MODE_API_DEFAULT   RxMode = 4
190 )
191
192 var (
193         RxMode_name = map[uint32]string{
194                 0: "RX_MODE_API_UNKNOWN",
195                 1: "RX_MODE_API_POLLING",
196                 2: "RX_MODE_API_INTERRUPT",
197                 3: "RX_MODE_API_ADAPTIVE",
198                 4: "RX_MODE_API_DEFAULT",
199         }
200         RxMode_value = map[string]uint32{
201                 "RX_MODE_API_UNKNOWN":   0,
202                 "RX_MODE_API_POLLING":   1,
203                 "RX_MODE_API_INTERRUPT": 2,
204                 "RX_MODE_API_ADAPTIVE":  3,
205                 "RX_MODE_API_DEFAULT":   4,
206         }
207 )
208
209 func (x RxMode) String() string {
210         s, ok := RxMode_name[uint32(x)]
211         if ok {
212                 return s
213         }
214         return "RxMode(" + strconv.Itoa(int(x)) + ")"
215 }
216
217 // SubIfFlags defines enum 'sub_if_flags'.
218 type SubIfFlags uint32
219
220 const (
221         SUB_IF_API_FLAG_NO_TAGS           SubIfFlags = 1
222         SUB_IF_API_FLAG_ONE_TAG           SubIfFlags = 2
223         SUB_IF_API_FLAG_TWO_TAGS          SubIfFlags = 4
224         SUB_IF_API_FLAG_DOT1AD            SubIfFlags = 8
225         SUB_IF_API_FLAG_EXACT_MATCH       SubIfFlags = 16
226         SUB_IF_API_FLAG_DEFAULT           SubIfFlags = 32
227         SUB_IF_API_FLAG_OUTER_VLAN_ID_ANY SubIfFlags = 64
228         SUB_IF_API_FLAG_INNER_VLAN_ID_ANY SubIfFlags = 128
229         SUB_IF_API_FLAG_MASK_VNET         SubIfFlags = 254
230         SUB_IF_API_FLAG_DOT1AH            SubIfFlags = 256
231 )
232
233 var (
234         SubIfFlags_name = map[uint32]string{
235                 1:   "SUB_IF_API_FLAG_NO_TAGS",
236                 2:   "SUB_IF_API_FLAG_ONE_TAG",
237                 4:   "SUB_IF_API_FLAG_TWO_TAGS",
238                 8:   "SUB_IF_API_FLAG_DOT1AD",
239                 16:  "SUB_IF_API_FLAG_EXACT_MATCH",
240                 32:  "SUB_IF_API_FLAG_DEFAULT",
241                 64:  "SUB_IF_API_FLAG_OUTER_VLAN_ID_ANY",
242                 128: "SUB_IF_API_FLAG_INNER_VLAN_ID_ANY",
243                 254: "SUB_IF_API_FLAG_MASK_VNET",
244                 256: "SUB_IF_API_FLAG_DOT1AH",
245         }
246         SubIfFlags_value = map[string]uint32{
247                 "SUB_IF_API_FLAG_NO_TAGS":           1,
248                 "SUB_IF_API_FLAG_ONE_TAG":           2,
249                 "SUB_IF_API_FLAG_TWO_TAGS":          4,
250                 "SUB_IF_API_FLAG_DOT1AD":            8,
251                 "SUB_IF_API_FLAG_EXACT_MATCH":       16,
252                 "SUB_IF_API_FLAG_DEFAULT":           32,
253                 "SUB_IF_API_FLAG_OUTER_VLAN_ID_ANY": 64,
254                 "SUB_IF_API_FLAG_INNER_VLAN_ID_ANY": 128,
255                 "SUB_IF_API_FLAG_MASK_VNET":         254,
256                 "SUB_IF_API_FLAG_DOT1AH":            256,
257         }
258 )
259
260 func (x SubIfFlags) String() string {
261         s, ok := SubIfFlags_name[uint32(x)]
262         if ok {
263                 return s
264         }
265         str := func(n uint32) string {
266                 s, ok := SubIfFlags_name[uint32(n)]
267                 if ok {
268                         return s
269                 }
270                 return "SubIfFlags(" + strconv.Itoa(int(n)) + ")"
271         }
272         for i := uint32(0); i <= 32; i++ {
273                 val := uint32(x)
274                 if val&(1<<i) != 0 {
275                         if s != "" {
276                                 s += "|"
277                         }
278                         s += str(1 << i)
279                 }
280         }
281         if s == "" {
282                 return str(uint32(x))
283         }
284         return s
285 }
286
287 // InterfaceIndex defines alias 'interface_index'.
288 type InterfaceIndex uint32
289
290 // MacAddress defines alias 'mac_address'.
291 type MacAddress [6]uint8
292
293 func ParseMacAddress(s string) (MacAddress, error) {
294         var macaddr MacAddress
295         mac, err := net.ParseMAC(s)
296         if err != nil {
297                 return macaddr, err
298         }
299         copy(macaddr[:], mac[:])
300         return macaddr, nil
301 }
302
303 func (x MacAddress) ToMAC() net.HardwareAddr {
304         return net.HardwareAddr(x[:])
305 }
306
307 func (x MacAddress) String() string {
308         return x.ToMAC().String()
309 }
310
311 func (x *MacAddress) MarshalText() ([]byte, error) {
312         return []byte(x.String()), nil
313 }
314
315 func (x *MacAddress) UnmarshalText(text []byte) error {
316         mac, err := ParseMacAddress(string(text))
317         if err != nil {
318                 return err
319         }
320         *x = mac
321         return nil
322 }
323
324 // AfPacketCreate defines message 'af_packet_create'.
325 type AfPacketCreate struct {
326         HwAddr          MacAddress `binapi:"mac_address,name=hw_addr" json:"hw_addr,omitempty"`
327         UseRandomHwAddr bool       `binapi:"bool,name=use_random_hw_addr" json:"use_random_hw_addr,omitempty"`
328         HostIfName      string     `binapi:"string[64],name=host_if_name" json:"host_if_name,omitempty"`
329 }
330
331 func (m *AfPacketCreate) Reset()               { *m = AfPacketCreate{} }
332 func (*AfPacketCreate) GetMessageName() string { return "af_packet_create" }
333 func (*AfPacketCreate) GetCrcString() string   { return "a190415f" }
334 func (*AfPacketCreate) GetMessageType() api.MessageType {
335         return api.RequestMessage
336 }
337
338 func (m *AfPacketCreate) Size() (size int) {
339         if m == nil {
340                 return 0
341         }
342         size += 1 * 6 // m.HwAddr
343         size += 1     // m.UseRandomHwAddr
344         size += 64    // m.HostIfName
345         return size
346 }
347 func (m *AfPacketCreate) Marshal(b []byte) ([]byte, error) {
348         if b == nil {
349                 b = make([]byte, m.Size())
350         }
351         buf := codec.NewBuffer(b)
352         buf.EncodeBytes(m.HwAddr[:], 6)
353         buf.EncodeBool(m.UseRandomHwAddr)
354         buf.EncodeString(m.HostIfName, 64)
355         return buf.Bytes(), nil
356 }
357 func (m *AfPacketCreate) Unmarshal(b []byte) error {
358         buf := codec.NewBuffer(b)
359         copy(m.HwAddr[:], buf.DecodeBytes(6))
360         m.UseRandomHwAddr = buf.DecodeBool()
361         m.HostIfName = buf.DecodeString(64)
362         return nil
363 }
364
365 // AfPacketCreateReply defines message 'af_packet_create_reply'.
366 type AfPacketCreateReply struct {
367         Retval    int32          `binapi:"i32,name=retval" json:"retval,omitempty"`
368         SwIfIndex InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
369 }
370
371 func (m *AfPacketCreateReply) Reset()               { *m = AfPacketCreateReply{} }
372 func (*AfPacketCreateReply) GetMessageName() string { return "af_packet_create_reply" }
373 func (*AfPacketCreateReply) GetCrcString() string   { return "5383d31f" }
374 func (*AfPacketCreateReply) GetMessageType() api.MessageType {
375         return api.ReplyMessage
376 }
377
378 func (m *AfPacketCreateReply) Size() (size int) {
379         if m == nil {
380                 return 0
381         }
382         size += 4 // m.Retval
383         size += 4 // m.SwIfIndex
384         return size
385 }
386 func (m *AfPacketCreateReply) Marshal(b []byte) ([]byte, error) {
387         if b == nil {
388                 b = make([]byte, m.Size())
389         }
390         buf := codec.NewBuffer(b)
391         buf.EncodeInt32(m.Retval)
392         buf.EncodeUint32(uint32(m.SwIfIndex))
393         return buf.Bytes(), nil
394 }
395 func (m *AfPacketCreateReply) Unmarshal(b []byte) error {
396         buf := codec.NewBuffer(b)
397         m.Retval = buf.DecodeInt32()
398         m.SwIfIndex = InterfaceIndex(buf.DecodeUint32())
399         return nil
400 }
401
402 // AfPacketDelete defines message 'af_packet_delete'.
403 type AfPacketDelete struct {
404         HostIfName string `binapi:"string[64],name=host_if_name" json:"host_if_name,omitempty"`
405 }
406
407 func (m *AfPacketDelete) Reset()               { *m = AfPacketDelete{} }
408 func (*AfPacketDelete) GetMessageName() string { return "af_packet_delete" }
409 func (*AfPacketDelete) GetCrcString() string   { return "863fa648" }
410 func (*AfPacketDelete) GetMessageType() api.MessageType {
411         return api.RequestMessage
412 }
413
414 func (m *AfPacketDelete) Size() (size int) {
415         if m == nil {
416                 return 0
417         }
418         size += 64 // m.HostIfName
419         return size
420 }
421 func (m *AfPacketDelete) Marshal(b []byte) ([]byte, error) {
422         if b == nil {
423                 b = make([]byte, m.Size())
424         }
425         buf := codec.NewBuffer(b)
426         buf.EncodeString(m.HostIfName, 64)
427         return buf.Bytes(), nil
428 }
429 func (m *AfPacketDelete) Unmarshal(b []byte) error {
430         buf := codec.NewBuffer(b)
431         m.HostIfName = buf.DecodeString(64)
432         return nil
433 }
434
435 // AfPacketDeleteReply defines message 'af_packet_delete_reply'.
436 type AfPacketDeleteReply struct {
437         Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
438 }
439
440 func (m *AfPacketDeleteReply) Reset()               { *m = AfPacketDeleteReply{} }
441 func (*AfPacketDeleteReply) GetMessageName() string { return "af_packet_delete_reply" }
442 func (*AfPacketDeleteReply) GetCrcString() string   { return "e8d4e804" }
443 func (*AfPacketDeleteReply) GetMessageType() api.MessageType {
444         return api.ReplyMessage
445 }
446
447 func (m *AfPacketDeleteReply) Size() (size int) {
448         if m == nil {
449                 return 0
450         }
451         size += 4 // m.Retval
452         return size
453 }
454 func (m *AfPacketDeleteReply) Marshal(b []byte) ([]byte, error) {
455         if b == nil {
456                 b = make([]byte, m.Size())
457         }
458         buf := codec.NewBuffer(b)
459         buf.EncodeInt32(m.Retval)
460         return buf.Bytes(), nil
461 }
462 func (m *AfPacketDeleteReply) Unmarshal(b []byte) error {
463         buf := codec.NewBuffer(b)
464         m.Retval = buf.DecodeInt32()
465         return nil
466 }
467
468 // AfPacketDetails defines message 'af_packet_details'.
469 type AfPacketDetails struct {
470         SwIfIndex  InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
471         HostIfName string         `binapi:"string[64],name=host_if_name" json:"host_if_name,omitempty"`
472 }
473
474 func (m *AfPacketDetails) Reset()               { *m = AfPacketDetails{} }
475 func (*AfPacketDetails) GetMessageName() string { return "af_packet_details" }
476 func (*AfPacketDetails) GetCrcString() string   { return "58c7c042" }
477 func (*AfPacketDetails) GetMessageType() api.MessageType {
478         return api.ReplyMessage
479 }
480
481 func (m *AfPacketDetails) Size() (size int) {
482         if m == nil {
483                 return 0
484         }
485         size += 4  // m.SwIfIndex
486         size += 64 // m.HostIfName
487         return size
488 }
489 func (m *AfPacketDetails) Marshal(b []byte) ([]byte, error) {
490         if b == nil {
491                 b = make([]byte, m.Size())
492         }
493         buf := codec.NewBuffer(b)
494         buf.EncodeUint32(uint32(m.SwIfIndex))
495         buf.EncodeString(m.HostIfName, 64)
496         return buf.Bytes(), nil
497 }
498 func (m *AfPacketDetails) Unmarshal(b []byte) error {
499         buf := codec.NewBuffer(b)
500         m.SwIfIndex = InterfaceIndex(buf.DecodeUint32())
501         m.HostIfName = buf.DecodeString(64)
502         return nil
503 }
504
505 // AfPacketDump defines message 'af_packet_dump'.
506 type AfPacketDump struct{}
507
508 func (m *AfPacketDump) Reset()               { *m = AfPacketDump{} }
509 func (*AfPacketDump) GetMessageName() string { return "af_packet_dump" }
510 func (*AfPacketDump) GetCrcString() string   { return "51077d14" }
511 func (*AfPacketDump) GetMessageType() api.MessageType {
512         return api.RequestMessage
513 }
514
515 func (m *AfPacketDump) Size() (size int) {
516         if m == nil {
517                 return 0
518         }
519         return size
520 }
521 func (m *AfPacketDump) Marshal(b []byte) ([]byte, error) {
522         if b == nil {
523                 b = make([]byte, m.Size())
524         }
525         buf := codec.NewBuffer(b)
526         return buf.Bytes(), nil
527 }
528 func (m *AfPacketDump) Unmarshal(b []byte) error {
529         return nil
530 }
531
532 // AfPacketSetL4CksumOffload defines message 'af_packet_set_l4_cksum_offload'.
533 type AfPacketSetL4CksumOffload struct {
534         SwIfIndex InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
535         Set       bool           `binapi:"bool,name=set" json:"set,omitempty"`
536 }
537
538 func (m *AfPacketSetL4CksumOffload) Reset()               { *m = AfPacketSetL4CksumOffload{} }
539 func (*AfPacketSetL4CksumOffload) GetMessageName() string { return "af_packet_set_l4_cksum_offload" }
540 func (*AfPacketSetL4CksumOffload) GetCrcString() string   { return "319cd5c8" }
541 func (*AfPacketSetL4CksumOffload) GetMessageType() api.MessageType {
542         return api.RequestMessage
543 }
544
545 func (m *AfPacketSetL4CksumOffload) Size() (size int) {
546         if m == nil {
547                 return 0
548         }
549         size += 4 // m.SwIfIndex
550         size += 1 // m.Set
551         return size
552 }
553 func (m *AfPacketSetL4CksumOffload) Marshal(b []byte) ([]byte, error) {
554         if b == nil {
555                 b = make([]byte, m.Size())
556         }
557         buf := codec.NewBuffer(b)
558         buf.EncodeUint32(uint32(m.SwIfIndex))
559         buf.EncodeBool(m.Set)
560         return buf.Bytes(), nil
561 }
562 func (m *AfPacketSetL4CksumOffload) Unmarshal(b []byte) error {
563         buf := codec.NewBuffer(b)
564         m.SwIfIndex = InterfaceIndex(buf.DecodeUint32())
565         m.Set = buf.DecodeBool()
566         return nil
567 }
568
569 // AfPacketSetL4CksumOffloadReply defines message 'af_packet_set_l4_cksum_offload_reply'.
570 type AfPacketSetL4CksumOffloadReply struct {
571         Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
572 }
573
574 func (m *AfPacketSetL4CksumOffloadReply) Reset() { *m = AfPacketSetL4CksumOffloadReply{} }
575 func (*AfPacketSetL4CksumOffloadReply) GetMessageName() string {
576         return "af_packet_set_l4_cksum_offload_reply"
577 }
578 func (*AfPacketSetL4CksumOffloadReply) GetCrcString() string { return "e8d4e804" }
579 func (*AfPacketSetL4CksumOffloadReply) GetMessageType() api.MessageType {
580         return api.ReplyMessage
581 }
582
583 func (m *AfPacketSetL4CksumOffloadReply) Size() (size int) {
584         if m == nil {
585                 return 0
586         }
587         size += 4 // m.Retval
588         return size
589 }
590 func (m *AfPacketSetL4CksumOffloadReply) Marshal(b []byte) ([]byte, error) {
591         if b == nil {
592                 b = make([]byte, m.Size())
593         }
594         buf := codec.NewBuffer(b)
595         buf.EncodeInt32(m.Retval)
596         return buf.Bytes(), nil
597 }
598 func (m *AfPacketSetL4CksumOffloadReply) Unmarshal(b []byte) error {
599         buf := codec.NewBuffer(b)
600         m.Retval = buf.DecodeInt32()
601         return nil
602 }
603
604 func init() { file_af_packet_binapi_init() }
605 func file_af_packet_binapi_init() {
606         api.RegisterMessage((*AfPacketCreate)(nil), "af_packet_create_a190415f")
607         api.RegisterMessage((*AfPacketCreateReply)(nil), "af_packet_create_reply_5383d31f")
608         api.RegisterMessage((*AfPacketDelete)(nil), "af_packet_delete_863fa648")
609         api.RegisterMessage((*AfPacketDeleteReply)(nil), "af_packet_delete_reply_e8d4e804")
610         api.RegisterMessage((*AfPacketDetails)(nil), "af_packet_details_58c7c042")
611         api.RegisterMessage((*AfPacketDump)(nil), "af_packet_dump_51077d14")
612         api.RegisterMessage((*AfPacketSetL4CksumOffload)(nil), "af_packet_set_l4_cksum_offload_319cd5c8")
613         api.RegisterMessage((*AfPacketSetL4CksumOffloadReply)(nil), "af_packet_set_l4_cksum_offload_reply_e8d4e804")
614 }
615
616 // Messages returns list of all messages in this module.
617 func AllMessages() []api.Message {
618         return []api.Message{
619                 (*AfPacketCreate)(nil),
620                 (*AfPacketCreateReply)(nil),
621                 (*AfPacketDelete)(nil),
622                 (*AfPacketDeleteReply)(nil),
623                 (*AfPacketDetails)(nil),
624                 (*AfPacketDump)(nil),
625                 (*AfPacketSetL4CksumOffload)(nil),
626                 (*AfPacketSetL4CksumOffloadReply)(nil),
627         }
628 }