1 // Package acl represents the VPP binary API of the 'acl' VPP module.
2 // DO NOT EDIT. Generated from 'bin_api/acl.api.json' on Fri, 21 Apr 2017 17:10:06 CEST.
5 import "gerrit.fd.io/r/govpp.git/api"
7 // VlApiVersion contains version of the API.
8 const VlAPIVersion = 0x3cd02d84
10 // ACLRule represents the VPP binary API data type 'acl_rule'.
11 // Generated from 'bin_api/acl.api.json', line 3:
14 // ["u8", "is_permit"],
16 // ["u8", "src_ip_addr", 16],
17 // ["u8", "src_ip_prefix_len"],
18 // ["u8", "dst_ip_addr", 16],
19 // ["u8", "dst_ip_prefix_len"],
21 // ["u16", "srcport_or_icmptype_first"],
22 // ["u16", "srcport_or_icmptype_last"],
23 // ["u16", "dstport_or_icmpcode_first"],
24 // ["u16", "dstport_or_icmpcode_last"],
25 // ["u8", "tcp_flags_mask"],
26 // ["u8", "tcp_flags_value"],
27 // {"crc" : "0x2715e1c0"}
33 SrcIPAddr []byte `struc:"[16]byte"`
35 DstIPAddr []byte `struc:"[16]byte"`
38 SrcportOrIcmptypeFirst uint16
39 SrcportOrIcmptypeLast uint16
40 DstportOrIcmpcodeFirst uint16
41 DstportOrIcmpcodeLast uint16
46 func (*ACLRule) GetTypeName() string {
49 func (*ACLRule) GetCrcString() string {
53 // MacipACLRule represents the VPP binary API data type 'macip_acl_rule'.
54 // Generated from 'bin_api/acl.api.json', line 19:
57 // ["u8", "is_permit"],
59 // ["u8", "src_mac", 6],
60 // ["u8", "src_mac_mask", 6],
61 // ["u8", "src_ip_addr", 16],
62 // ["u8", "src_ip_prefix_len"],
63 // {"crc" : "0x6723f13e"}
66 type MacipACLRule struct {
69 SrcMac []byte `struc:"[6]byte"`
70 SrcMacMask []byte `struc:"[6]byte"`
71 SrcIPAddr []byte `struc:"[16]byte"`
75 func (*MacipACLRule) GetTypeName() string {
76 return "macip_acl_rule"
78 func (*MacipACLRule) GetCrcString() string {
82 // ACLPluginGetVersion represents the VPP binary API message 'acl_plugin_get_version'.
83 // Generated from 'bin_api/acl.api.json', line 30:
85 // ["acl_plugin_get_version",
86 // ["u16", "_vl_msg_id"],
87 // ["u32", "client_index"],
88 // ["u32", "context"],
89 // {"crc" : "0xd7c07748"}
92 type ACLPluginGetVersion struct {
95 func (*ACLPluginGetVersion) GetMessageName() string {
96 return "acl_plugin_get_version"
98 func (*ACLPluginGetVersion) GetMessageType() api.MessageType {
99 return api.RequestMessage
101 func (*ACLPluginGetVersion) GetCrcString() string {
104 func NewACLPluginGetVersion() api.Message {
105 return &ACLPluginGetVersion{}
108 // ACLPluginGetVersionReply represents the VPP binary API message 'acl_plugin_get_version_reply'.
109 // Generated from 'bin_api/acl.api.json', line 36:
111 // ["acl_plugin_get_version_reply",
112 // ["u16", "_vl_msg_id"],
113 // ["u32", "context"],
116 // {"crc" : "0x43eb59a5"}
119 type ACLPluginGetVersionReply struct {
124 func (*ACLPluginGetVersionReply) GetMessageName() string {
125 return "acl_plugin_get_version_reply"
127 func (*ACLPluginGetVersionReply) GetMessageType() api.MessageType {
128 return api.ReplyMessage
130 func (*ACLPluginGetVersionReply) GetCrcString() string {
133 func NewACLPluginGetVersionReply() api.Message {
134 return &ACLPluginGetVersionReply{}
137 // ACLAddReplace represents the VPP binary API message 'acl_add_replace'.
138 // Generated from 'bin_api/acl.api.json', line 43:
140 // ["acl_add_replace",
141 // ["u16", "_vl_msg_id"],
142 // ["u32", "client_index"],
143 // ["u32", "context"],
144 // ["u32", "acl_index"],
145 // ["u8", "tag", 64],
147 // ["vl_api_acl_rule_t", "r", 0, "count"],
148 // {"crc" : "0x3c317936"}
151 type ACLAddReplace struct {
153 Tag []byte `struc:"[64]byte"`
154 Count uint32 `struc:"sizeof=R"`
158 func (*ACLAddReplace) GetMessageName() string {
159 return "acl_add_replace"
161 func (*ACLAddReplace) GetMessageType() api.MessageType {
162 return api.RequestMessage
164 func (*ACLAddReplace) GetCrcString() string {
167 func NewACLAddReplace() api.Message {
168 return &ACLAddReplace{}
171 // ACLAddReplaceReply represents the VPP binary API message 'acl_add_replace_reply'.
172 // Generated from 'bin_api/acl.api.json', line 53:
174 // ["acl_add_replace_reply",
175 // ["u16", "_vl_msg_id"],
176 // ["u32", "context"],
177 // ["u32", "acl_index"],
178 // ["i32", "retval"],
179 // {"crc" : "0xa5e6d0cf"}
182 type ACLAddReplaceReply struct {
187 func (*ACLAddReplaceReply) GetMessageName() string {
188 return "acl_add_replace_reply"
190 func (*ACLAddReplaceReply) GetMessageType() api.MessageType {
191 return api.ReplyMessage
193 func (*ACLAddReplaceReply) GetCrcString() string {
196 func NewACLAddReplaceReply() api.Message {
197 return &ACLAddReplaceReply{}
200 // ACLDel represents the VPP binary API message 'acl_del'.
201 // Generated from 'bin_api/acl.api.json', line 60:
204 // ["u16", "_vl_msg_id"],
205 // ["u32", "client_index"],
206 // ["u32", "context"],
207 // ["u32", "acl_index"],
208 // {"crc" : "0x82cc30ed"}
215 func (*ACLDel) GetMessageName() string {
218 func (*ACLDel) GetMessageType() api.MessageType {
219 return api.RequestMessage
221 func (*ACLDel) GetCrcString() string {
224 func NewACLDel() api.Message {
228 // ACLDelReply represents the VPP binary API message 'acl_del_reply'.
229 // Generated from 'bin_api/acl.api.json', line 67:
232 // ["u16", "_vl_msg_id"],
233 // ["u32", "context"],
234 // ["i32", "retval"],
235 // {"crc" : "0xbbb83d84"}
238 type ACLDelReply struct {
242 func (*ACLDelReply) GetMessageName() string {
243 return "acl_del_reply"
245 func (*ACLDelReply) GetMessageType() api.MessageType {
246 return api.ReplyMessage
248 func (*ACLDelReply) GetCrcString() string {
251 func NewACLDelReply() api.Message {
252 return &ACLDelReply{}
255 // ACLInterfaceAddDel represents the VPP binary API message 'acl_interface_add_del'.
256 // Generated from 'bin_api/acl.api.json', line 73:
258 // ["acl_interface_add_del",
259 // ["u16", "_vl_msg_id"],
260 // ["u32", "client_index"],
261 // ["u32", "context"],
263 // ["u8", "is_input"],
264 // ["u32", "sw_if_index"],
265 // ["u32", "acl_index"],
266 // {"crc" : "0x98b53725"}
269 type ACLInterfaceAddDel struct {
276 func (*ACLInterfaceAddDel) GetMessageName() string {
277 return "acl_interface_add_del"
279 func (*ACLInterfaceAddDel) GetMessageType() api.MessageType {
280 return api.RequestMessage
282 func (*ACLInterfaceAddDel) GetCrcString() string {
285 func NewACLInterfaceAddDel() api.Message {
286 return &ACLInterfaceAddDel{}
289 // ACLInterfaceAddDelReply represents the VPP binary API message 'acl_interface_add_del_reply'.
290 // Generated from 'bin_api/acl.api.json', line 83:
292 // ["acl_interface_add_del_reply",
293 // ["u16", "_vl_msg_id"],
294 // ["u32", "context"],
295 // ["i32", "retval"],
296 // {"crc" : "0xc1b3c077"}
299 type ACLInterfaceAddDelReply struct {
303 func (*ACLInterfaceAddDelReply) GetMessageName() string {
304 return "acl_interface_add_del_reply"
306 func (*ACLInterfaceAddDelReply) GetMessageType() api.MessageType {
307 return api.ReplyMessage
309 func (*ACLInterfaceAddDelReply) GetCrcString() string {
312 func NewACLInterfaceAddDelReply() api.Message {
313 return &ACLInterfaceAddDelReply{}
316 // ACLInterfaceSetACLList represents the VPP binary API message 'acl_interface_set_acl_list'.
317 // Generated from 'bin_api/acl.api.json', line 89:
319 // ["acl_interface_set_acl_list",
320 // ["u16", "_vl_msg_id"],
321 // ["u32", "client_index"],
322 // ["u32", "context"],
323 // ["u32", "sw_if_index"],
325 // ["u8", "n_input"],
326 // ["u32", "acls", 0, "count"],
327 // {"crc" : "0x7562419c"}
330 type ACLInterfaceSetACLList struct {
332 Count uint8 `struc:"sizeof=Acls"`
337 func (*ACLInterfaceSetACLList) GetMessageName() string {
338 return "acl_interface_set_acl_list"
340 func (*ACLInterfaceSetACLList) GetMessageType() api.MessageType {
341 return api.RequestMessage
343 func (*ACLInterfaceSetACLList) GetCrcString() string {
346 func NewACLInterfaceSetACLList() api.Message {
347 return &ACLInterfaceSetACLList{}
350 // ACLInterfaceSetACLListReply represents the VPP binary API message 'acl_interface_set_acl_list_reply'.
351 // Generated from 'bin_api/acl.api.json', line 99:
353 // ["acl_interface_set_acl_list_reply",
354 // ["u16", "_vl_msg_id"],
355 // ["u32", "context"],
356 // ["i32", "retval"],
357 // {"crc" : "0x435ddc2b"}
360 type ACLInterfaceSetACLListReply struct {
364 func (*ACLInterfaceSetACLListReply) GetMessageName() string {
365 return "acl_interface_set_acl_list_reply"
367 func (*ACLInterfaceSetACLListReply) GetMessageType() api.MessageType {
368 return api.ReplyMessage
370 func (*ACLInterfaceSetACLListReply) GetCrcString() string {
373 func NewACLInterfaceSetACLListReply() api.Message {
374 return &ACLInterfaceSetACLListReply{}
377 // ACLDump represents the VPP binary API message 'acl_dump'.
378 // Generated from 'bin_api/acl.api.json', line 105:
381 // ["u16", "_vl_msg_id"],
382 // ["u32", "client_index"],
383 // ["u32", "context"],
384 // ["u32", "acl_index"],
385 // {"crc" : "0xc188156d"}
388 type ACLDump struct {
392 func (*ACLDump) GetMessageName() string {
395 func (*ACLDump) GetMessageType() api.MessageType {
396 return api.RequestMessage
398 func (*ACLDump) GetCrcString() string {
401 func NewACLDump() api.Message {
405 // ACLDetails represents the VPP binary API message 'acl_details'.
406 // Generated from 'bin_api/acl.api.json', line 112:
409 // ["u16", "_vl_msg_id"],
410 // ["u32", "context"],
411 // ["u32", "acl_index"],
412 // ["u8", "tag", 64],
414 // ["vl_api_acl_rule_t", "r", 0, "count"],
415 // {"crc" : "0x1c8916b7"}
418 type ACLDetails struct {
420 Tag []byte `struc:"[64]byte"`
421 Count uint32 `struc:"sizeof=R"`
425 func (*ACLDetails) GetMessageName() string {
428 func (*ACLDetails) GetMessageType() api.MessageType {
429 return api.ReplyMessage
431 func (*ACLDetails) GetCrcString() string {
434 func NewACLDetails() api.Message {
438 // ACLInterfaceListDump represents the VPP binary API message 'acl_interface_list_dump'.
439 // Generated from 'bin_api/acl.api.json', line 121:
441 // ["acl_interface_list_dump",
442 // ["u16", "_vl_msg_id"],
443 // ["u32", "client_index"],
444 // ["u32", "context"],
445 // ["u32", "sw_if_index"],
446 // {"crc" : "0xadfe84b8"}
449 type ACLInterfaceListDump struct {
453 func (*ACLInterfaceListDump) GetMessageName() string {
454 return "acl_interface_list_dump"
456 func (*ACLInterfaceListDump) GetMessageType() api.MessageType {
457 return api.RequestMessage
459 func (*ACLInterfaceListDump) GetCrcString() string {
462 func NewACLInterfaceListDump() api.Message {
463 return &ACLInterfaceListDump{}
466 // ACLInterfaceListDetails represents the VPP binary API message 'acl_interface_list_details'.
467 // Generated from 'bin_api/acl.api.json', line 128:
469 // ["acl_interface_list_details",
470 // ["u16", "_vl_msg_id"],
471 // ["u32", "context"],
472 // ["u32", "sw_if_index"],
474 // ["u8", "n_input"],
475 // ["u32", "acls", 0, "count"],
476 // {"crc" : "0xc8150656"}
479 type ACLInterfaceListDetails struct {
481 Count uint8 `struc:"sizeof=Acls"`
486 func (*ACLInterfaceListDetails) GetMessageName() string {
487 return "acl_interface_list_details"
489 func (*ACLInterfaceListDetails) GetMessageType() api.MessageType {
490 return api.ReplyMessage
492 func (*ACLInterfaceListDetails) GetCrcString() string {
495 func NewACLInterfaceListDetails() api.Message {
496 return &ACLInterfaceListDetails{}
499 // MacipACLAdd represents the VPP binary API message 'macip_acl_add'.
500 // Generated from 'bin_api/acl.api.json', line 137:
503 // ["u16", "_vl_msg_id"],
504 // ["u32", "client_index"],
505 // ["u32", "context"],
506 // ["u8", "tag", 64],
508 // ["vl_api_macip_acl_rule_t", "r", 0, "count"],
509 // {"crc" : "0x33356284"}
512 type MacipACLAdd struct {
513 Tag []byte `struc:"[64]byte"`
514 Count uint32 `struc:"sizeof=R"`
518 func (*MacipACLAdd) GetMessageName() string {
519 return "macip_acl_add"
521 func (*MacipACLAdd) GetMessageType() api.MessageType {
522 return api.RequestMessage
524 func (*MacipACLAdd) GetCrcString() string {
527 func NewMacipACLAdd() api.Message {
528 return &MacipACLAdd{}
531 // MacipACLAddReply represents the VPP binary API message 'macip_acl_add_reply'.
532 // Generated from 'bin_api/acl.api.json', line 146:
534 // ["macip_acl_add_reply",
535 // ["u16", "_vl_msg_id"],
536 // ["u32", "context"],
537 // ["u32", "acl_index"],
538 // ["i32", "retval"],
539 // {"crc" : "0x472edb4c"}
542 type MacipACLAddReply struct {
547 func (*MacipACLAddReply) GetMessageName() string {
548 return "macip_acl_add_reply"
550 func (*MacipACLAddReply) GetMessageType() api.MessageType {
551 return api.ReplyMessage
553 func (*MacipACLAddReply) GetCrcString() string {
556 func NewMacipACLAddReply() api.Message {
557 return &MacipACLAddReply{}
560 // MacipACLDel represents the VPP binary API message 'macip_acl_del'.
561 // Generated from 'bin_api/acl.api.json', line 153:
564 // ["u16", "_vl_msg_id"],
565 // ["u32", "client_index"],
566 // ["u32", "context"],
567 // ["u32", "acl_index"],
568 // {"crc" : "0xdde1141f"}
571 type MacipACLDel struct {
575 func (*MacipACLDel) GetMessageName() string {
576 return "macip_acl_del"
578 func (*MacipACLDel) GetMessageType() api.MessageType {
579 return api.RequestMessage
581 func (*MacipACLDel) GetCrcString() string {
584 func NewMacipACLDel() api.Message {
585 return &MacipACLDel{}
588 // MacipACLDelReply represents the VPP binary API message 'macip_acl_del_reply'.
589 // Generated from 'bin_api/acl.api.json', line 160:
591 // ["macip_acl_del_reply",
592 // ["u16", "_vl_msg_id"],
593 // ["u32", "context"],
594 // ["i32", "retval"],
595 // {"crc" : "0xeeb60e0f"}
598 type MacipACLDelReply struct {
602 func (*MacipACLDelReply) GetMessageName() string {
603 return "macip_acl_del_reply"
605 func (*MacipACLDelReply) GetMessageType() api.MessageType {
606 return api.ReplyMessage
608 func (*MacipACLDelReply) GetCrcString() string {
611 func NewMacipACLDelReply() api.Message {
612 return &MacipACLDelReply{}
615 // MacipACLInterfaceAddDel represents the VPP binary API message 'macip_acl_interface_add_del'.
616 // Generated from 'bin_api/acl.api.json', line 166:
618 // ["macip_acl_interface_add_del",
619 // ["u16", "_vl_msg_id"],
620 // ["u32", "client_index"],
621 // ["u32", "context"],
623 // ["u32", "sw_if_index"],
624 // ["u32", "acl_index"],
625 // {"crc" : "0x03a4fab2"}
628 type MacipACLInterfaceAddDel struct {
634 func (*MacipACLInterfaceAddDel) GetMessageName() string {
635 return "macip_acl_interface_add_del"
637 func (*MacipACLInterfaceAddDel) GetMessageType() api.MessageType {
638 return api.RequestMessage
640 func (*MacipACLInterfaceAddDel) GetCrcString() string {
643 func NewMacipACLInterfaceAddDel() api.Message {
644 return &MacipACLInterfaceAddDel{}
647 // MacipACLInterfaceAddDelReply represents the VPP binary API message 'macip_acl_interface_add_del_reply'.
648 // Generated from 'bin_api/acl.api.json', line 175:
650 // ["macip_acl_interface_add_del_reply",
651 // ["u16", "_vl_msg_id"],
652 // ["u32", "context"],
653 // ["i32", "retval"],
654 // {"crc" : "0x9e9ee485"}
657 type MacipACLInterfaceAddDelReply struct {
661 func (*MacipACLInterfaceAddDelReply) GetMessageName() string {
662 return "macip_acl_interface_add_del_reply"
664 func (*MacipACLInterfaceAddDelReply) GetMessageType() api.MessageType {
665 return api.ReplyMessage
667 func (*MacipACLInterfaceAddDelReply) GetCrcString() string {
670 func NewMacipACLInterfaceAddDelReply() api.Message {
671 return &MacipACLInterfaceAddDelReply{}
674 // MacipACLDump represents the VPP binary API message 'macip_acl_dump'.
675 // Generated from 'bin_api/acl.api.json', line 181:
677 // ["macip_acl_dump",
678 // ["u16", "_vl_msg_id"],
679 // ["u32", "client_index"],
680 // ["u32", "context"],
681 // ["u32", "acl_index"],
682 // {"crc" : "0xd38227cb"}
685 type MacipACLDump struct {
689 func (*MacipACLDump) GetMessageName() string {
690 return "macip_acl_dump"
692 func (*MacipACLDump) GetMessageType() api.MessageType {
693 return api.RequestMessage
695 func (*MacipACLDump) GetCrcString() string {
698 func NewMacipACLDump() api.Message {
699 return &MacipACLDump{}
702 // MacipACLDetails represents the VPP binary API message 'macip_acl_details'.
703 // Generated from 'bin_api/acl.api.json', line 188:
705 // ["macip_acl_details",
706 // ["u16", "_vl_msg_id"],
707 // ["u32", "context"],
708 // ["u32", "acl_index"],
709 // ["u8", "tag", 64],
711 // ["vl_api_macip_acl_rule_t", "r", 0, "count"],
712 // {"crc" : "0xee1c50db"}
715 type MacipACLDetails struct {
717 Tag []byte `struc:"[64]byte"`
718 Count uint32 `struc:"sizeof=R"`
722 func (*MacipACLDetails) GetMessageName() string {
723 return "macip_acl_details"
725 func (*MacipACLDetails) GetMessageType() api.MessageType {
726 return api.ReplyMessage
728 func (*MacipACLDetails) GetCrcString() string {
731 func NewMacipACLDetails() api.Message {
732 return &MacipACLDetails{}
735 // MacipACLInterfaceGet represents the VPP binary API message 'macip_acl_interface_get'.
736 // Generated from 'bin_api/acl.api.json', line 197:
738 // ["macip_acl_interface_get",
739 // ["u16", "_vl_msg_id"],
740 // ["u32", "client_index"],
741 // ["u32", "context"],
742 // {"crc" : "0x317ce31c"}
745 type MacipACLInterfaceGet struct {
748 func (*MacipACLInterfaceGet) GetMessageName() string {
749 return "macip_acl_interface_get"
751 func (*MacipACLInterfaceGet) GetMessageType() api.MessageType {
752 return api.RequestMessage
754 func (*MacipACLInterfaceGet) GetCrcString() string {
757 func NewMacipACLInterfaceGet() api.Message {
758 return &MacipACLInterfaceGet{}
761 // MacipACLInterfaceGetReply represents the VPP binary API message 'macip_acl_interface_get_reply'.
762 // Generated from 'bin_api/acl.api.json', line 203:
764 // ["macip_acl_interface_get_reply",
765 // ["u16", "_vl_msg_id"],
766 // ["u32", "context"],
768 // ["u32", "acls", 0, "count"],
769 // {"crc" : "0x6c86a56c"}
772 type MacipACLInterfaceGetReply struct {
773 Count uint32 `struc:"sizeof=Acls"`
777 func (*MacipACLInterfaceGetReply) GetMessageName() string {
778 return "macip_acl_interface_get_reply"
780 func (*MacipACLInterfaceGetReply) GetMessageType() api.MessageType {
781 return api.ReplyMessage
783 func (*MacipACLInterfaceGetReply) GetCrcString() string {
786 func NewMacipACLInterfaceGetReply() api.Message {
787 return &MacipACLInterfaceGetReply{}