ip: Use .api declared error counters
[vpp.git] / src / plugins / nat / dslite / dslite_ce_decap.c
index 3d6ca99..f36a87f 100644 (file)
@@ -13,7 +13,6 @@
  * limitations under the License.
  */
 #include <nat/dslite/dslite.h>
-#include <nat/nat_inlines.h>
 
 typedef enum
 {
@@ -80,9 +79,9 @@ VLIB_NODE_FN (dslite_ce_decap_node) (vlib_main_t * vm,
            }
 
          ip40 = vlib_buffer_get_current (b0) + sizeof (ip6_header_t);
-         proto0 = ip_proto_to_snat_proto (ip40->protocol);
+         proto0 = ip_proto_to_nat_proto (ip40->protocol);
 
-         if (PREDICT_FALSE (proto0 == ~0))
+         if (PREDICT_FALSE (proto0 == NAT_PROTOCOL_OTHER))
            {
              error0 = DSLITE_ERROR_UNSUPPORTED_PROTOCOL;
              next0 = DSLITE_CE_DECAP_NEXT_DROP;