count);
}
- M(SNAT_ADD_ADDRESS_RANGE, snat_add_address_range);
+ M(SNAT_ADD_ADDRESS_RANGE, mp);
memcpy (mp->first_ip_address, &start_addr, 4);
memcpy (mp->last_ip_address, &end_addr, 4);
return -99;
}
- M(SNAT_INTERFACE_ADD_DEL_FEATURE, snat_interface_add_del_feature);
+ M(SNAT_INTERFACE_ADD_DEL_FEATURE, mp);
mp->sw_if_index = ntohl(sw_if_index);
mp->is_add = is_add;
mp->is_inside = is_inside;
return -99;
}
- M(SNAT_ADD_STATIC_MAPPING, snat_add_static_mapping);
+ M(SNAT_ADD_STATIC_MAPPING, mp);
mp->is_add = is_add;
mp->is_ip4 = 1;
mp->addr_only = addr_only;
fformat (vam->ofp, "%15s%6s%15s%6s%11s\n", "address", "port", "address",
"port", "vrf");
- M(SNAT_STATIC_MAPPING_DUMP, snat_static_mapping_dump);
+ M(SNAT_STATIC_MAPPING_DUMP, mp);
S;
/* Use a control ping for synchronization */
{
vl_api_snat_control_ping_t *mp;
- M (SNAT_CONTROL_PING, snat_control_ping);
+ M(SNAT_CONTROL_PING, mp);
S;
}
W;
return -99;
}
- M(SNAT_SHOW_CONFIG, snat_show_config);
+ M(SNAT_SHOW_CONFIG, mp);
S; W;
/* NOTREACHED */
return 0;
return -99;
}
- M(SNAT_ADDRESS_DUMP, snat_address_dump);
+ M(SNAT_ADDRESS_DUMP, mp);
S;
/* Use a control ping for synchronization */
{
vl_api_snat_control_ping_t *mp;
- M (SNAT_CONTROL_PING, snat_control_ping);
+ M(SNAT_CONTROL_PING, mp);
S;
}
W;
return -99;
}
- M(SNAT_INTERFACE_DUMP, snat_interface_dump);
+ M(SNAT_INTERFACE_DUMP, mp);
S;
/* Use a control ping for synchronization */
{
vl_api_snat_control_ping_t *mp;
- M (SNAT_CONTROL_PING, snat_control_ping);
+ M(SNAT_CONTROL_PING, mp);
S;
}
W;
}
}
- M(SNAT_SET_WORKERS, snat_set_workers);
+ M(SNAT_SET_WORKERS, mp);
mp->worker_mask = clib_host_to_net_u64 (bitmap[0]);
S; W;
return -99;
}
- M(SNAT_WORKER_DUMP, snat_worker_dump);
+ M(SNAT_WORKER_DUMP, mp);
S;
/* Use a control ping for synchronization */
{
vl_api_snat_control_ping_t *mp;
- M (SNAT_CONTROL_PING, snat_control_ping);
+ M(SNAT_CONTROL_PING, mp);
S;
}
W;
return -99;
}
- M(SNAT_ADD_DEL_INTERFACE_ADDR, snat_add_del_interface_addr);
+ M(SNAT_ADD_DEL_INTERFACE_ADDR, mp);
mp->sw_if_index = ntohl(sw_if_index);
mp->is_add = is_add;
return -99;
}
- M(SNAT_INTERFACE_ADDR_DUMP, snat_interface_addr_dump);
+ M(SNAT_INTERFACE_ADDR_DUMP, mp);
S;
/* Use a control ping for synchronization */
{
vl_api_snat_control_ping_t *mp;
- M (SNAT_CONTROL_PING, snat_control_ping);
+ M(SNAT_CONTROL_PING, mp);
S;
}
W;
}
}
- M(SNAT_IPFIX_ENABLE_DISABLE, snat_ipfix_enable_disable);
+ M(SNAT_IPFIX_ENABLE_DISABLE, mp);
mp->domain_id = htonl(domain_id);
mp->src_port = htons((u16) src_port);
mp->enable = enable;