M: Klement Sekera <ksekera@cisco.com>
F: src/plugins/nat/
+Plugin - PNAT Static match and rewrite engine
+I: pnat
+M: Ole Troan <ot@cisco.com>
+F: src/plugins/nat/pnat/
+
Plugin - AVF Device driver
I: avf
M: Damjan Marion <damarion@cisco.com>
return 0;
if (interface->enabled[attachment] && attachment == PNAT_IP4_INPUT) {
- ip4_sv_reass_enable_disable_with_refcnt(sw_if_index, 0);
+ if (ip4_sv_reass_enable_disable_with_refcnt(sw_if_index, 0) != 0)
+ return -1;
if (vnet_feature_enable_disable("ip4-unicast", "pnat-input",
sw_if_index, 0, 0, 0) != 0)
return -1;
}
if (interface->enabled[attachment] && attachment == PNAT_IP4_OUTPUT) {
- ip4_sv_reass_output_enable_disable_with_refcnt(sw_if_index, 0);
+ if (ip4_sv_reass_output_enable_disable_with_refcnt(sw_if_index, 0) != 0)
+ return -1;
if (vnet_feature_enable_disable("ip4-output", "pnat-output",
sw_if_index, 0, 0, 0) != 0)
return -1;
rmp->sw_if_index = i->sw_if_index;
clib_memcpy(rmp->enabled, i->enabled, PNAT_ATTACHMENT_POINT_MAX);
clib_memcpy(rmp->lookup_mask, i->lookup_mask,
- sizeof(i->lookup_mask) * PNAT_ATTACHMENT_POINT_MAX);
+ sizeof(vl_api_pnat_mask_t) * PNAT_ATTACHMENT_POINT_MAX);
/* Endian hack until apigen registers _details
* endian functions */