1 // Package acl represents the VPP binary API of the 'acl' VPP module.
2 // DO NOT EDIT. Generated from 'bin_api/acl.api.json'
5 import "git.fd.io/govpp.git/api"
7 // VlApiVersion contains version of the API.
8 const VlAPIVersion = 0x1fd77287
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 // ACLPluginControlPing represents the VPP binary API message 'acl_plugin_control_ping'.
138 // Generated from 'bin_api/acl.api.json', line 43:
140 // ["acl_plugin_control_ping",
141 // ["u16", "_vl_msg_id"],
142 // ["u32", "client_index"],
143 // ["u32", "context"],
144 // {"crc" : "0xfc22c86e"}
147 type ACLPluginControlPing struct {
150 func (*ACLPluginControlPing) GetMessageName() string {
151 return "acl_plugin_control_ping"
153 func (*ACLPluginControlPing) GetMessageType() api.MessageType {
154 return api.RequestMessage
156 func (*ACLPluginControlPing) GetCrcString() string {
159 func NewACLPluginControlPing() api.Message {
160 return &ACLPluginControlPing{}
163 // ACLPluginControlPingReply represents the VPP binary API message 'acl_plugin_control_ping_reply'.
164 // Generated from 'bin_api/acl.api.json', line 49:
166 // ["acl_plugin_control_ping_reply",
167 // ["u16", "_vl_msg_id"],
168 // ["u32", "context"],
169 // ["i32", "retval"],
170 // ["u32", "client_index"],
171 // ["u32", "vpe_pid"],
172 // {"crc" : "0xe07e9231"}
175 type ACLPluginControlPingReply struct {
181 func (*ACLPluginControlPingReply) GetMessageName() string {
182 return "acl_plugin_control_ping_reply"
184 func (*ACLPluginControlPingReply) GetMessageType() api.MessageType {
185 return api.ReplyMessage
187 func (*ACLPluginControlPingReply) GetCrcString() string {
190 func NewACLPluginControlPingReply() api.Message {
191 return &ACLPluginControlPingReply{}
194 // ACLAddReplace represents the VPP binary API message 'acl_add_replace'.
195 // Generated from 'bin_api/acl.api.json', line 57:
197 // ["acl_add_replace",
198 // ["u16", "_vl_msg_id"],
199 // ["u32", "client_index"],
200 // ["u32", "context"],
201 // ["u32", "acl_index"],
202 // ["u8", "tag", 64],
204 // ["vl_api_acl_rule_t", "r", 0, "count"],
205 // {"crc" : "0x3c317936"}
208 type ACLAddReplace struct {
210 Tag []byte `struc:"[64]byte"`
211 Count uint32 `struc:"sizeof=R"`
215 func (*ACLAddReplace) GetMessageName() string {
216 return "acl_add_replace"
218 func (*ACLAddReplace) GetMessageType() api.MessageType {
219 return api.RequestMessage
221 func (*ACLAddReplace) GetCrcString() string {
224 func NewACLAddReplace() api.Message {
225 return &ACLAddReplace{}
228 // ACLAddReplaceReply represents the VPP binary API message 'acl_add_replace_reply'.
229 // Generated from 'bin_api/acl.api.json', line 67:
231 // ["acl_add_replace_reply",
232 // ["u16", "_vl_msg_id"],
233 // ["u32", "context"],
234 // ["u32", "acl_index"],
235 // ["i32", "retval"],
236 // {"crc" : "0xa5e6d0cf"}
239 type ACLAddReplaceReply struct {
244 func (*ACLAddReplaceReply) GetMessageName() string {
245 return "acl_add_replace_reply"
247 func (*ACLAddReplaceReply) GetMessageType() api.MessageType {
248 return api.ReplyMessage
250 func (*ACLAddReplaceReply) GetCrcString() string {
253 func NewACLAddReplaceReply() api.Message {
254 return &ACLAddReplaceReply{}
257 // ACLDel represents the VPP binary API message 'acl_del'.
258 // Generated from 'bin_api/acl.api.json', line 74:
261 // ["u16", "_vl_msg_id"],
262 // ["u32", "client_index"],
263 // ["u32", "context"],
264 // ["u32", "acl_index"],
265 // {"crc" : "0x82cc30ed"}
272 func (*ACLDel) GetMessageName() string {
275 func (*ACLDel) GetMessageType() api.MessageType {
276 return api.RequestMessage
278 func (*ACLDel) GetCrcString() string {
281 func NewACLDel() api.Message {
285 // ACLDelReply represents the VPP binary API message 'acl_del_reply'.
286 // Generated from 'bin_api/acl.api.json', line 81:
289 // ["u16", "_vl_msg_id"],
290 // ["u32", "context"],
291 // ["i32", "retval"],
292 // {"crc" : "0xbbb83d84"}
295 type ACLDelReply struct {
299 func (*ACLDelReply) GetMessageName() string {
300 return "acl_del_reply"
302 func (*ACLDelReply) GetMessageType() api.MessageType {
303 return api.ReplyMessage
305 func (*ACLDelReply) GetCrcString() string {
308 func NewACLDelReply() api.Message {
309 return &ACLDelReply{}
312 // ACLInterfaceAddDel represents the VPP binary API message 'acl_interface_add_del'.
313 // Generated from 'bin_api/acl.api.json', line 87:
315 // ["acl_interface_add_del",
316 // ["u16", "_vl_msg_id"],
317 // ["u32", "client_index"],
318 // ["u32", "context"],
320 // ["u8", "is_input"],
321 // ["u32", "sw_if_index"],
322 // ["u32", "acl_index"],
323 // {"crc" : "0x98b53725"}
326 type ACLInterfaceAddDel struct {
333 func (*ACLInterfaceAddDel) GetMessageName() string {
334 return "acl_interface_add_del"
336 func (*ACLInterfaceAddDel) GetMessageType() api.MessageType {
337 return api.RequestMessage
339 func (*ACLInterfaceAddDel) GetCrcString() string {
342 func NewACLInterfaceAddDel() api.Message {
343 return &ACLInterfaceAddDel{}
346 // ACLInterfaceAddDelReply represents the VPP binary API message 'acl_interface_add_del_reply'.
347 // Generated from 'bin_api/acl.api.json', line 97:
349 // ["acl_interface_add_del_reply",
350 // ["u16", "_vl_msg_id"],
351 // ["u32", "context"],
352 // ["i32", "retval"],
353 // {"crc" : "0xc1b3c077"}
356 type ACLInterfaceAddDelReply struct {
360 func (*ACLInterfaceAddDelReply) GetMessageName() string {
361 return "acl_interface_add_del_reply"
363 func (*ACLInterfaceAddDelReply) GetMessageType() api.MessageType {
364 return api.ReplyMessage
366 func (*ACLInterfaceAddDelReply) GetCrcString() string {
369 func NewACLInterfaceAddDelReply() api.Message {
370 return &ACLInterfaceAddDelReply{}
373 // ACLInterfaceSetACLList represents the VPP binary API message 'acl_interface_set_acl_list'.
374 // Generated from 'bin_api/acl.api.json', line 103:
376 // ["acl_interface_set_acl_list",
377 // ["u16", "_vl_msg_id"],
378 // ["u32", "client_index"],
379 // ["u32", "context"],
380 // ["u32", "sw_if_index"],
382 // ["u8", "n_input"],
383 // ["u32", "acls", 0, "count"],
384 // {"crc" : "0x7562419c"}
387 type ACLInterfaceSetACLList struct {
389 Count uint8 `struc:"sizeof=Acls"`
394 func (*ACLInterfaceSetACLList) GetMessageName() string {
395 return "acl_interface_set_acl_list"
397 func (*ACLInterfaceSetACLList) GetMessageType() api.MessageType {
398 return api.RequestMessage
400 func (*ACLInterfaceSetACLList) GetCrcString() string {
403 func NewACLInterfaceSetACLList() api.Message {
404 return &ACLInterfaceSetACLList{}
407 // ACLInterfaceSetACLListReply represents the VPP binary API message 'acl_interface_set_acl_list_reply'.
408 // Generated from 'bin_api/acl.api.json', line 113:
410 // ["acl_interface_set_acl_list_reply",
411 // ["u16", "_vl_msg_id"],
412 // ["u32", "context"],
413 // ["i32", "retval"],
414 // {"crc" : "0x435ddc2b"}
417 type ACLInterfaceSetACLListReply struct {
421 func (*ACLInterfaceSetACLListReply) GetMessageName() string {
422 return "acl_interface_set_acl_list_reply"
424 func (*ACLInterfaceSetACLListReply) GetMessageType() api.MessageType {
425 return api.ReplyMessage
427 func (*ACLInterfaceSetACLListReply) GetCrcString() string {
430 func NewACLInterfaceSetACLListReply() api.Message {
431 return &ACLInterfaceSetACLListReply{}
434 // ACLDump represents the VPP binary API message 'acl_dump'.
435 // Generated from 'bin_api/acl.api.json', line 119:
438 // ["u16", "_vl_msg_id"],
439 // ["u32", "client_index"],
440 // ["u32", "context"],
441 // ["u32", "acl_index"],
442 // {"crc" : "0xc188156d"}
445 type ACLDump struct {
449 func (*ACLDump) GetMessageName() string {
452 func (*ACLDump) GetMessageType() api.MessageType {
453 return api.RequestMessage
455 func (*ACLDump) GetCrcString() string {
458 func NewACLDump() api.Message {
462 // ACLDetails represents the VPP binary API message 'acl_details'.
463 // Generated from 'bin_api/acl.api.json', line 126:
466 // ["u16", "_vl_msg_id"],
467 // ["u32", "context"],
468 // ["u32", "acl_index"],
469 // ["u8", "tag", 64],
471 // ["vl_api_acl_rule_t", "r", 0, "count"],
472 // {"crc" : "0x1c8916b7"}
475 type ACLDetails struct {
477 Tag []byte `struc:"[64]byte"`
478 Count uint32 `struc:"sizeof=R"`
482 func (*ACLDetails) GetMessageName() string {
485 func (*ACLDetails) GetMessageType() api.MessageType {
486 return api.ReplyMessage
488 func (*ACLDetails) GetCrcString() string {
491 func NewACLDetails() api.Message {
495 // ACLInterfaceListDump represents the VPP binary API message 'acl_interface_list_dump'.
496 // Generated from 'bin_api/acl.api.json', line 135:
498 // ["acl_interface_list_dump",
499 // ["u16", "_vl_msg_id"],
500 // ["u32", "client_index"],
501 // ["u32", "context"],
502 // ["u32", "sw_if_index"],
503 // {"crc" : "0xadfe84b8"}
506 type ACLInterfaceListDump struct {
510 func (*ACLInterfaceListDump) GetMessageName() string {
511 return "acl_interface_list_dump"
513 func (*ACLInterfaceListDump) GetMessageType() api.MessageType {
514 return api.RequestMessage
516 func (*ACLInterfaceListDump) GetCrcString() string {
519 func NewACLInterfaceListDump() api.Message {
520 return &ACLInterfaceListDump{}
523 // ACLInterfaceListDetails represents the VPP binary API message 'acl_interface_list_details'.
524 // Generated from 'bin_api/acl.api.json', line 142:
526 // ["acl_interface_list_details",
527 // ["u16", "_vl_msg_id"],
528 // ["u32", "context"],
529 // ["u32", "sw_if_index"],
531 // ["u8", "n_input"],
532 // ["u32", "acls", 0, "count"],
533 // {"crc" : "0xc8150656"}
536 type ACLInterfaceListDetails struct {
538 Count uint8 `struc:"sizeof=Acls"`
543 func (*ACLInterfaceListDetails) GetMessageName() string {
544 return "acl_interface_list_details"
546 func (*ACLInterfaceListDetails) GetMessageType() api.MessageType {
547 return api.ReplyMessage
549 func (*ACLInterfaceListDetails) GetCrcString() string {
552 func NewACLInterfaceListDetails() api.Message {
553 return &ACLInterfaceListDetails{}
556 // MacipACLAdd represents the VPP binary API message 'macip_acl_add'.
557 // Generated from 'bin_api/acl.api.json', line 151:
560 // ["u16", "_vl_msg_id"],
561 // ["u32", "client_index"],
562 // ["u32", "context"],
563 // ["u8", "tag", 64],
565 // ["vl_api_macip_acl_rule_t", "r", 0, "count"],
566 // {"crc" : "0x33356284"}
569 type MacipACLAdd struct {
570 Tag []byte `struc:"[64]byte"`
571 Count uint32 `struc:"sizeof=R"`
575 func (*MacipACLAdd) GetMessageName() string {
576 return "macip_acl_add"
578 func (*MacipACLAdd) GetMessageType() api.MessageType {
579 return api.RequestMessage
581 func (*MacipACLAdd) GetCrcString() string {
584 func NewMacipACLAdd() api.Message {
585 return &MacipACLAdd{}
588 // MacipACLAddReply represents the VPP binary API message 'macip_acl_add_reply'.
589 // Generated from 'bin_api/acl.api.json', line 160:
591 // ["macip_acl_add_reply",
592 // ["u16", "_vl_msg_id"],
593 // ["u32", "context"],
594 // ["u32", "acl_index"],
595 // ["i32", "retval"],
596 // {"crc" : "0x472edb4c"}
599 type MacipACLAddReply struct {
604 func (*MacipACLAddReply) GetMessageName() string {
605 return "macip_acl_add_reply"
607 func (*MacipACLAddReply) GetMessageType() api.MessageType {
608 return api.ReplyMessage
610 func (*MacipACLAddReply) GetCrcString() string {
613 func NewMacipACLAddReply() api.Message {
614 return &MacipACLAddReply{}
617 // MacipACLDel represents the VPP binary API message 'macip_acl_del'.
618 // Generated from 'bin_api/acl.api.json', line 167:
621 // ["u16", "_vl_msg_id"],
622 // ["u32", "client_index"],
623 // ["u32", "context"],
624 // ["u32", "acl_index"],
625 // {"crc" : "0xdde1141f"}
628 type MacipACLDel struct {
632 func (*MacipACLDel) GetMessageName() string {
633 return "macip_acl_del"
635 func (*MacipACLDel) GetMessageType() api.MessageType {
636 return api.RequestMessage
638 func (*MacipACLDel) GetCrcString() string {
641 func NewMacipACLDel() api.Message {
642 return &MacipACLDel{}
645 // MacipACLDelReply represents the VPP binary API message 'macip_acl_del_reply'.
646 // Generated from 'bin_api/acl.api.json', line 174:
648 // ["macip_acl_del_reply",
649 // ["u16", "_vl_msg_id"],
650 // ["u32", "context"],
651 // ["i32", "retval"],
652 // {"crc" : "0xeeb60e0f"}
655 type MacipACLDelReply struct {
659 func (*MacipACLDelReply) GetMessageName() string {
660 return "macip_acl_del_reply"
662 func (*MacipACLDelReply) GetMessageType() api.MessageType {
663 return api.ReplyMessage
665 func (*MacipACLDelReply) GetCrcString() string {
668 func NewMacipACLDelReply() api.Message {
669 return &MacipACLDelReply{}
672 // MacipACLInterfaceAddDel represents the VPP binary API message 'macip_acl_interface_add_del'.
673 // Generated from 'bin_api/acl.api.json', line 180:
675 // ["macip_acl_interface_add_del",
676 // ["u16", "_vl_msg_id"],
677 // ["u32", "client_index"],
678 // ["u32", "context"],
680 // ["u32", "sw_if_index"],
681 // ["u32", "acl_index"],
682 // {"crc" : "0x03a4fab2"}
685 type MacipACLInterfaceAddDel struct {
691 func (*MacipACLInterfaceAddDel) GetMessageName() string {
692 return "macip_acl_interface_add_del"
694 func (*MacipACLInterfaceAddDel) GetMessageType() api.MessageType {
695 return api.RequestMessage
697 func (*MacipACLInterfaceAddDel) GetCrcString() string {
700 func NewMacipACLInterfaceAddDel() api.Message {
701 return &MacipACLInterfaceAddDel{}
704 // MacipACLInterfaceAddDelReply represents the VPP binary API message 'macip_acl_interface_add_del_reply'.
705 // Generated from 'bin_api/acl.api.json', line 189:
707 // ["macip_acl_interface_add_del_reply",
708 // ["u16", "_vl_msg_id"],
709 // ["u32", "context"],
710 // ["i32", "retval"],
711 // {"crc" : "0x9e9ee485"}
714 type MacipACLInterfaceAddDelReply struct {
718 func (*MacipACLInterfaceAddDelReply) GetMessageName() string {
719 return "macip_acl_interface_add_del_reply"
721 func (*MacipACLInterfaceAddDelReply) GetMessageType() api.MessageType {
722 return api.ReplyMessage
724 func (*MacipACLInterfaceAddDelReply) GetCrcString() string {
727 func NewMacipACLInterfaceAddDelReply() api.Message {
728 return &MacipACLInterfaceAddDelReply{}
731 // MacipACLDump represents the VPP binary API message 'macip_acl_dump'.
732 // Generated from 'bin_api/acl.api.json', line 195:
734 // ["macip_acl_dump",
735 // ["u16", "_vl_msg_id"],
736 // ["u32", "client_index"],
737 // ["u32", "context"],
738 // ["u32", "acl_index"],
739 // {"crc" : "0xd38227cb"}
742 type MacipACLDump struct {
746 func (*MacipACLDump) GetMessageName() string {
747 return "macip_acl_dump"
749 func (*MacipACLDump) GetMessageType() api.MessageType {
750 return api.RequestMessage
752 func (*MacipACLDump) GetCrcString() string {
755 func NewMacipACLDump() api.Message {
756 return &MacipACLDump{}
759 // MacipACLDetails represents the VPP binary API message 'macip_acl_details'.
760 // Generated from 'bin_api/acl.api.json', line 202:
762 // ["macip_acl_details",
763 // ["u16", "_vl_msg_id"],
764 // ["u32", "context"],
765 // ["u32", "acl_index"],
766 // ["u8", "tag", 64],
768 // ["vl_api_macip_acl_rule_t", "r", 0, "count"],
769 // {"crc" : "0xee1c50db"}
772 type MacipACLDetails struct {
774 Tag []byte `struc:"[64]byte"`
775 Count uint32 `struc:"sizeof=R"`
779 func (*MacipACLDetails) GetMessageName() string {
780 return "macip_acl_details"
782 func (*MacipACLDetails) GetMessageType() api.MessageType {
783 return api.ReplyMessage
785 func (*MacipACLDetails) GetCrcString() string {
788 func NewMacipACLDetails() api.Message {
789 return &MacipACLDetails{}
792 // MacipACLInterfaceGet represents the VPP binary API message 'macip_acl_interface_get'.
793 // Generated from 'bin_api/acl.api.json', line 211:
795 // ["macip_acl_interface_get",
796 // ["u16", "_vl_msg_id"],
797 // ["u32", "client_index"],
798 // ["u32", "context"],
799 // {"crc" : "0x317ce31c"}
802 type MacipACLInterfaceGet struct {
805 func (*MacipACLInterfaceGet) GetMessageName() string {
806 return "macip_acl_interface_get"
808 func (*MacipACLInterfaceGet) GetMessageType() api.MessageType {
809 return api.RequestMessage
811 func (*MacipACLInterfaceGet) GetCrcString() string {
814 func NewMacipACLInterfaceGet() api.Message {
815 return &MacipACLInterfaceGet{}
818 // MacipACLInterfaceGetReply represents the VPP binary API message 'macip_acl_interface_get_reply'.
819 // Generated from 'bin_api/acl.api.json', line 217:
821 // ["macip_acl_interface_get_reply",
822 // ["u16", "_vl_msg_id"],
823 // ["u32", "context"],
825 // ["u32", "acls", 0, "count"],
826 // {"crc" : "0x6c86a56c"}
829 type MacipACLInterfaceGetReply struct {
830 Count uint32 `struc:"sizeof=Acls"`
834 func (*MacipACLInterfaceGetReply) GetMessageName() string {
835 return "macip_acl_interface_get_reply"
837 func (*MacipACLInterfaceGetReply) GetMessageType() api.MessageType {
838 return api.ReplyMessage
840 func (*MacipACLInterfaceGetReply) GetCrcString() string {
843 func NewMacipACLInterfaceGetReply() api.Message {
844 return &MacipACLInterfaceGetReply{}