16 #ifndef included_manual_fns_h 17 #define included_manual_fns_h 25 vl_print (handle, (char *)s); \ 32 for(i=0; i<count; i++) {
33 vl_api_acl_rule_t_endian (&rules[i]);
41 for(i=0; i<count; i++) {
42 vl_api_macip_acl_rule_t_endian (&rules[i]);
49 a->_vl_msg_id = clib_net_to_host_u16 (a->_vl_msg_id);
60 a->_vl_msg_id = clib_net_to_host_u16 (a->_vl_msg_id);
72 a->_vl_msg_id = clib_net_to_host_u16 (a->_vl_msg_id);
84 a->_vl_msg_id = clib_net_to_host_u16 (a->_vl_msg_id);
103 s =
format (s,
"permit+reflect");
106 s =
format (s,
"action %d", action);
121 s =
format (s,
" src %U/%d dst %U/%d \\\n",
125 s =
format (s,
" src %U/%d dst %U/%d \\\n",
129 s =
format (s,
" sport %d-%d dport %d-%d \\\n",
135 s =
format (s,
" tcpflags %u mask %u, \\",
151 s =
format (s,
" src mac %U mask %U \\\n",
156 s =
format (s,
" src ip %U/%d, \\",
159 s =
format (s,
" src ip %U/%d, \\",
172 u32 count = clib_net_to_host_u32 (a->
count);
173 if (count > 0x100000)
175 s =
format (s,
"WARN: acl_add_replace count endianness wrong? Fixup to avoid long loop.\n");
179 s =
format (s,
"SCRIPT: acl_add_replace %d count %d ",
188 for (i = 0; i < count; i++)
201 s =
format (0,
"SCRIPT: acl_del %d ",
215 u32 count = clib_net_to_host_u32 (a->
count);
216 if (count > 0x100000)
218 s =
format (s,
"WARN: acl_defails count endianness wrong? Fixup to avoid long loop.\n");
222 s =
format (s,
"acl_details index %d count %d ",
231 for (i = 0; i < count; i++)
244 u32 count = clib_net_to_host_u32 (a->
count);
245 if (count > 0x100000)
247 s =
format (s,
"WARN: macip_acl_defails count endianness wrong? Fixup to avoid long loop.\n");
251 s =
format (s,
"macip_acl_details index %d count %d ",
260 for (i = 0; i < count; i++)
271 u32 count = clib_net_to_host_u32 (a->
count);
272 if (count > 0x100000)
274 s =
format (s,
"WARN: macip_acl_add count endianness wrong? Fixup to avoid long loop.\n");
278 s =
format (s,
"SCRIPT: macip_acl_add ");
282 s =
format (s,
"count %d \\\n", count);
286 for (i = 0; i < count; i++)
304 (0,
"SCRIPT: acl_interface_set_acl_list sw_if_index %d count %d\n",
307 s =
format (s,
" input ");
309 for (i = 0; i < a->
count; i++)
312 s =
format (s,
"output ");
313 s =
format (s,
"%d ", clib_net_to_host_u32 (a->
acls[i]));
326 s =
format (0,
"SCRIPT: acl_interface_add_del sw_if_index %d acl %d ",
343 "SCRIPT: macip_acl_interface_add_del sw_if_index %d acl_index %d ",
358 s =
format (0,
"SCRIPT: macip_acl_del %d ",
static void * vl_api_macip_acl_interface_add_del_t_print(vl_api_macip_acl_interface_add_del_t *a, void *handle)
Use acl_interface_set_acl_list instead Append/remove an ACL index to/from the list of ACLs checked fo...
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]
static void * vl_api_acl_details_t_print(vl_api_acl_details_t *a, void *handle)
u16 dstport_or_icmpcode_last
Details about one MACIP ACL.
u8 * format_ethernet_address(u8 *s, va_list *args)
u16 dstport_or_icmpcode_first
static void * vl_api_acl_interface_set_acl_list_t_print(vl_api_acl_interface_set_acl_list_t *a, void *handle)
Add or delete a MACIP ACL to/from interface.
static u8 * format_acl_action(u8 *s, u8 action)
static void vl_api_macip_acl_rule_t_array_endian(vl_api_macip_acl_rule_t *rules, u32 count)
static void * vl_api_acl_interface_add_del_t_print(vl_api_acl_interface_add_del_t *a, void *handle)
static void * vl_api_macip_acl_rule_t_print(vl_api_macip_acl_rule_t *a, void *handle)
Replace an existing ACL in-place or create a new ACL.
vl_api_acl_rule_t r[count]
static void vl_api_acl_add_replace_t_endian(vl_api_acl_add_replace_t *a)
static void * vl_api_macip_acl_add_t_print(vl_api_macip_acl_add_t *a, void *handle)
vl_api_acl_rule_t r[count]
u16 srcport_or_icmptype_first
static void * vl_api_acl_rule_t_print(vl_api_acl_rule_t *a, void *handle)
static void * vl_api_acl_add_replace_t_print(vl_api_acl_add_replace_t *a, void *handle)
u16 srcport_or_icmptype_last
static void vl_api_macip_acl_details_t_endian(vl_api_macip_acl_details_t *a)
static void vl_api_macip_acl_add_t_endian(vl_api_macip_acl_add_t *a)
MACIP Access List Rule entry.
vl_api_macip_acl_rule_t r[count]
Details about a single ACL contents.
static void * vl_api_macip_acl_details_t_print(vl_api_macip_acl_details_t *a, void *handle)
static void * vl_api_acl_del_t_print(vl_api_macip_acl_del_t *a, void *handle)
static void vl_api_acl_rule_t_array_endian(vl_api_acl_rule_t *rules, u32 count)
static void * vl_api_macip_acl_del_t_print(vl_api_macip_acl_del_t *a, void *handle)
static void vl_api_acl_details_t_endian(vl_api_acl_details_t *a)