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);
95 a->_vl_msg_id = clib_net_to_host_u16 (a->_vl_msg_id);
115 s =
format (s,
"permit+reflect");
118 s =
format (s,
"action %d", action);
133 s =
format (s,
" src %U/%d dst %U/%d \\\n",
137 s =
format (s,
" src %U/%d dst %U/%d \\\n",
141 s =
format (s,
" sport %d-%d dport %d-%d \\\n",
147 s =
format (s,
" tcpflags %u mask %u, \\",
163 s =
format (s,
" src mac %U mask %U \\\n",
168 s =
format (s,
" src ip %U/%d, \\",
171 s =
format (s,
" src ip %U/%d, \\",
185 if (count > 0x100000)
187 s =
format (s,
"WARN: acl_add_replace count endianness wrong? Fixup to avoid long loop.\n");
191 s =
format (s,
"SCRIPT: acl_add_replace %d count %d ",
200 for (i = 0; i <
count; i++)
213 s =
format (0,
"SCRIPT: acl_del %d ",
228 if (count > 0x100000)
230 s =
format (s,
"WARN: acl_defails count endianness wrong? Fixup to avoid long loop.\n");
234 s =
format (s,
"acl_details index %d count %d ",
243 for (i = 0; i <
count; i++)
257 if (count > 0x100000)
259 s =
format (s,
"WARN: macip_acl_defails count endianness wrong? Fixup to avoid long loop.\n");
263 s =
format (s,
"macip_acl_details index %d count %d ",
272 for (i = 0; i <
count; i++)
284 if (count > 0x100000)
286 s =
format (s,
"WARN: macip_acl_add count endianness wrong? Fixup to avoid long loop.\n");
290 s =
format (s,
"SCRIPT: macip_acl_add ");
294 s =
format (s,
"count %d \\\n", count);
298 for (i = 0; i <
count; i++)
314 if (count > 0x100000)
316 s =
format (s,
"WARN: macip_acl_add_replace count endianness wrong? Fixup to avoid long loop.\n");
320 s =
format (s,
"SCRIPT: macip_acl_add_replace %d count %d ",
325 s =
format (s,
"count %d \\\n", count);
329 for (i = 0; i <
count; i++)
346 (0,
"SCRIPT: acl_interface_set_acl_list sw_if_index %d count %d\n",
349 s =
format (s,
" input ");
351 for (i = 0; i < a->
count; i++)
354 s =
format (s,
"output ");
355 s =
format (s,
"%d ", clib_net_to_host_u32 (a->
acls[i]));
370 (0,
"SCRIPT: acl_interface_set_etype_whitelist sw_if_index %d count %d\n",
373 s =
format (s,
" input ");
375 for (i = 0; i < a->
count; i++)
378 s =
format (s,
"output ");
392 s =
format (0,
"SCRIPT: acl_interface_add_del sw_if_index %d acl %d ",
409 "SCRIPT: macip_acl_interface_add_del sw_if_index %d acl_index %d ",
424 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...
Set the vector of input/output ACLs checked for an interface.
Set the ethertype whitelists on 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
static void vl_api_macip_acl_add_replace_t_endian(vl_api_macip_acl_add_replace_t *a)
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)
static void * vl_api_macip_acl_add_replace_t_print(vl_api_macip_acl_add_replace_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
vl_api_macip_acl_rule_t r[count]
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]
static void * vl_api_acl_interface_set_etype_whitelist_t_print(vl_api_acl_interface_set_etype_whitelist_t *a, void *handle)
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)