aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/vnet/ip-neighbor/ip6_neighbor.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/vnet/ip-neighbor/ip6_neighbor.h b/src/vnet/ip-neighbor/ip6_neighbor.h
index 934a2885ee1..7f76efd2c86 100644
--- a/src/vnet/ip-neighbor/ip6_neighbor.h
+++ b/src/vnet/ip-neighbor/ip6_neighbor.h
@@ -54,6 +54,12 @@ ip6_neighbor_probe (vlib_main_t * vm,
if (!h0)
return NULL;;
+ /* if the interface has been disabled for ip6, later steps to retrieve
+ * an adjacency will result in a segv.
+ */
+ if (!ip6_link_is_enabled (adj->rewrite_header.sw_if_index))
+ return NULL;
+
b0 = vlib_get_buffer (vm, bi0);
hw_if0 = vnet_get_sup_hw_interface (vnm, adj->rewrite_header.sw_if_index);