aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet
diff options
context:
space:
mode:
authorNeale Ranns <nranns@cisco.com>2017-04-11 08:56:53 -0700
committerFlorin Coras <florin.coras@gmail.com>2017-04-11 20:35:42 +0000
commit9f171f5e20d4f30316626987a3dc66c9730e6d73 (patch)
tree93f80b2447f90f7f94289bf14e0568a8fca550e8 /src/vnet
parentf060930e7f71bde107dc8f07c8693e2b3df99c46 (diff)
MPLS Mcast coverity fixes
Change-Id: Ic07ec5d4c2560a414d5f4f7eb37e10faf591664a Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'src/vnet')
-rw-r--r--src/vnet/fib/fib_path.c2
-rw-r--r--src/vnet/ip/ip6_forward.c2
-rw-r--r--src/vnet/mpls/mpls_tunnel.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/vnet/fib/fib_path.c b/src/vnet/fib/fib_path.c
index 6c1bd6bd..cd7d9278 100644
--- a/src/vnet/fib/fib_path.c
+++ b/src/vnet/fib/fib_path.c
@@ -778,7 +778,7 @@ fib_path_to_chain_type (const fib_path_t *path)
}
else
{
- return (FIB_FORW_CHAIN_TYPE_MPLS_EOS);
+ return (FIB_FORW_CHAIN_TYPE_MPLS_NON_EOS);
}
}
return (FIB_FORW_CHAIN_TYPE_UNICAST_IP4);
diff --git a/src/vnet/ip/ip6_forward.c b/src/vnet/ip/ip6_forward.c
index 90a88b1c..98bfd4d1 100644
--- a/src/vnet/ip/ip6_forward.c
+++ b/src/vnet/ip/ip6_forward.c
@@ -2253,7 +2253,7 @@ ip6_mcast_midchain (vlib_main_t * vm,
if (adj_are_counters_enabled ())
return ip6_rewrite_inline (vm, node, frame, 1, 1, 1);
else
- return ip6_rewrite_inline (vm, node, frame, 1, 1, 1);
+ return ip6_rewrite_inline (vm, node, frame, 0, 1, 1);
}
/* *INDENT-OFF* */
diff --git a/src/vnet/mpls/mpls_tunnel.h b/src/vnet/mpls/mpls_tunnel.h
index 0b55d0db..ec0729a0 100644
--- a/src/vnet/mpls/mpls_tunnel.h
+++ b/src/vnet/mpls/mpls_tunnel.h
@@ -34,7 +34,7 @@ typedef enum mpls_tunnel_attribute_t_
}
#define FOR_EACH_MPLS_TUNNEL_ATTRIBUTE(_item) \
for (_item = MPLS_TUNNEL_ATTRIBUTE_FIRST; \
- _item < MPLS_TUNNEL_ATTRIBUTE_LAST; \
+ _item <= MPLS_TUNNEL_ATTRIBUTE_LAST; \
_item++)
typedef enum mpls_tunnel_flag_t_ {