16 #include <acl/acl.api.h> 21 #define _uword_fmt "%lld" 22 #define _uword_cast (long long) 24 #define _uword_fmt "%ld" 25 #define _uword_cast long 31 vl_print (handle,
"vl_api_acl_rule_t:\n");
36 for (_i = 0; _i < 16; _i++)
41 vl_print (handle,
"src_ip_prefix_len: %u\n",
45 for (_i = 0; _i < 16; _i++)
50 vl_print (handle,
"dst_ip_prefix_len: %u\n",
53 vl_print (handle,
"srcport_or_icmptype_first: %u\n",
55 vl_print (handle,
"srcport_or_icmptype_last: %u\n",
57 vl_print (handle,
"dstport_or_icmpcode_first: %u\n",
59 vl_print (handle,
"dstport_or_icmpcode_last: %u\n",
70 vl_print (handle,
"vl_api_acl_add_replace_t:\n");
71 vl_print (handle,
"_vl_msg_id: %u\n", (
unsigned) a->_vl_msg_id);
77 for (i = 0; i < a->
count; i++)
80 vl_api_acl_rule_t_print (&a->
r[i], handle);
89 vl_print(handle,
"vl_api_acl_details_t:\n");
90 vl_print(handle,
"_vl_msg_id: %u\n", (
unsigned) a->_vl_msg_id);
95 for (_i = 0; _i < 64; _i++) {
109 vl_print (handle,
"vl_api_macip_acl_rule_t:\n");
114 for (_i = 0; _i < 6; _i++)
121 for (_i = 0; _i < 6; _i++)
128 for (_i = 0; _i < 16; _i++)
133 vl_print (handle,
"src_ip_prefix_len: %u\n",
142 vl_print (handle,
"vl_api_macip_acl_add_t:\n");
143 vl_print (handle,
"_vl_msg_id: %u\n", (
unsigned) a->_vl_msg_id);
148 for (i = 0; i < a->
count; i++)
151 vl_api_macip_acl_rule_t_print (&a->
r[i], handle);
153 vl_print (handle,
"r ----- END \n");
160 vl_print(handle,
"vl_api_macip_acl_details_t:\n");
161 vl_print(handle,
"_vl_msg_id: %u\n", (
unsigned) a->_vl_msg_id);
166 for (_i = 0; _i < 64; _i++) {
172 for (i = 0; i < a->
count; i++)
175 vl_api_macip_acl_rule_t_print (&a->
r[i], handle);
186 #undef clib_net_to_host_uword 188 #define clib_net_to_host_uword clib_net_to_host_u64 190 #define clib_net_to_host_uword clib_net_to_host_u32 225 a->_vl_msg_id = clib_net_to_host_u16 (a->_vl_msg_id);
230 for (i = 0; i < a->
count; i++)
232 vl_api_acl_rule_t_endian (&a->
r[i]);
239 a->_vl_msg_id = clib_net_to_host_u16(a->_vl_msg_id);
244 for (i = 0; i < a->
count; i++)
246 vl_api_acl_rule_t_endian (&a->
r[i]);
253 a->_vl_msg_id = clib_net_to_host_u16(a->_vl_msg_id);
258 for(i=0; i<a->
count; i++) {
259 a->
acls[
i] = clib_net_to_host_u32(a->
acls[i]);
266 a->_vl_msg_id = clib_net_to_host_u16(a->_vl_msg_id);
272 for(i=0; i<a->
count; i++) {
273 a->
acls[
i] = clib_net_to_host_u32(a->
acls[i]);
292 a->_vl_msg_id = clib_net_to_host_u16 (a->_vl_msg_id);
296 for (i = 0; i < a->
count; i++)
298 vl_api_macip_acl_rule_t_endian (&a->
r[i]);
305 a->_vl_msg_id = clib_net_to_host_u16(a->_vl_msg_id);
310 for (i = 0; i < a->
count; i++)
312 vl_api_macip_acl_rule_t_endian (&a->
r[i]);
sll srl srl sll sra u16x4 i
Set the vector of input/output ACLs checked for an interface.
vl_api_macip_acl_rule_t r[count]
u16 dstport_or_icmpcode_last
Details about one MACIP ACL.
u16 dstport_or_icmpcode_first
Replace an existing ACL in-place or create a new ACL.
Details about a single ACL contents.
vl_api_acl_rule_t r[count]
vl_api_acl_rule_t r[count]
u16 srcport_or_icmptype_first
u16 srcport_or_icmptype_last
MACIP Access List Rule entry.
vl_api_macip_acl_rule_t r[count]
Details about a single ACL contents.
#define vl_print(handle,...)