16 #ifndef included_manual_fns_h 17 #define included_manual_fns_h 25 vl_print (handle, (char *)s); \ 31 a->_vl_msg_id = clib_net_to_host_u16 (a->_vl_msg_id);
36 vl_api_acl_rule_t_endian (a->
r);
42 a->_vl_msg_id = clib_net_to_host_u16 (a->_vl_msg_id);
47 vl_api_macip_acl_rule_t_endian (a->
r);
54 a->_vl_msg_id = clib_net_to_host_u16 (a->_vl_msg_id);
60 vl_api_acl_rule_t_endian (a->
r);
66 a->_vl_msg_id = clib_net_to_host_u16 (a->_vl_msg_id);
71 vl_api_macip_acl_rule_t_endian (a->
r);
85 s =
format (s,
"permit+reflect");
88 s =
format (s,
"action %d", action);
103 s =
format (s,
" src %U/%d dst %U/%d \\\n",
107 s =
format (s,
" src %U/%d dst %U/%d \\\n",
111 s =
format (s,
" sport %d-%d dport %d-%d \\\n",
117 s =
format (s,
" tcpflags %u mask %u, \\",
133 s =
format (s,
" src mac %U mask %U \\\n",
138 s =
format (s,
" src ip %U/%d, \\",
141 s =
format (s,
" src ip %U/%d, \\",
154 u32 count = clib_net_to_host_u32 (a->
count);
155 if (count > 0x100000)
157 s =
format (s,
"WARN: acl_add_replace count endianness wrong? Fixup to avoid long loop.\n");
161 s =
format (s,
"SCRIPT: acl_add_replace %d count %d ",
170 for (i = 0; i < count; i++)
183 s =
format (0,
"SCRIPT: acl_del %d ",
197 u32 count = clib_net_to_host_u32 (a->
count);
198 if (count > 0x100000)
200 s =
format (s,
"WARN: acl_defails count endianness wrong? Fixup to avoid long loop.\n");
204 s =
format (s,
"acl_details index %d count %d ",
213 for (i = 0; i < count; i++)
226 u32 count = clib_net_to_host_u32 (a->
count);
227 if (count > 0x100000)
229 s =
format (s,
"WARN: macip_acl_defails count endianness wrong? Fixup to avoid long loop.\n");
233 s =
format (s,
"macip_acl_details index %d count %d ",
242 for (i = 0; i < count; i++)
253 u32 count = clib_net_to_host_u32 (a->
count);
254 if (count > 0x100000)
256 s =
format (s,
"WARN: macip_acl_add count endianness wrong? Fixup to avoid long loop.\n");
260 s =
format (0,
"SCRIPT: macip_acl_add ");
264 s =
format (s,
"count %d \\\n", count);
268 for (i = 0; i < count; i++)
286 (0,
"SCRIPT: acl_interface_set_acl_list sw_if_index %d count %d\n",
289 s =
format (s,
" input ");
291 for (i = 0; i < a->
count; i++)
294 s =
format (s,
"output ");
295 s =
format (s,
"%d ", clib_net_to_host_u32 (a->
acls[i]));
308 s =
format (0,
"SCRIPT: acl_interface_add_del sw_if_index %d acl %d ",
325 "SCRIPT: macip_acl_interface_add_del sw_if_index %d acl_index %d ",
340 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_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_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)