summaryrefslogtreecommitdiffstats
path: root/src/vnet/ip/ip6_neighbor.c
diff options
context:
space:
mode:
authorPavel Kotucek <pkotucek@cisco.com>2017-08-15 13:52:22 +0200
committerNeale Ranns <nranns@cisco.com>2017-08-15 13:57:41 +0000
commit8dc802062bfe7f71cbff02306e50400a374e4659 (patch)
tree09ecc09595bd0b1deada537a74acfee2d1076475 /src/vnet/ip/ip6_neighbor.c
parente9bac6953d03440f2f7437f4e3f0a4e3bf7f8a60 (diff)
IPv6 local-address for P2P ethernet interfaces
Change-Id: I87d3cb5754843f38593e92f60a39af2e5241d1cf Signed-off-by: Pavel Kotucek <pkotucek@cisco.com>
Diffstat (limited to 'src/vnet/ip/ip6_neighbor.c')
-rw-r--r--src/vnet/ip/ip6_neighbor.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vnet/ip/ip6_neighbor.c b/src/vnet/ip/ip6_neighbor.c
index 6a9139ab2d2..62cf23ac3f5 100644
--- a/src/vnet/ip/ip6_neighbor.c
+++ b/src/vnet/ip/ip6_neighbor.c
@@ -3413,7 +3413,8 @@ enable_ip6_interface (vlib_main_t * vm, u32 sw_if_index)
(&link_local_address, eth_if0->address);
sw_if0 = vnet_get_sw_interface (vnm, sw_if_index);
- if (sw_if0->type == VNET_SW_INTERFACE_TYPE_SUB)
+ if (sw_if0->type == VNET_SW_INTERFACE_TYPE_SUB ||
+ sw_if0->type == VNET_SW_INTERFACE_TYPE_P2P)
{
/* make up an interface id */
md5_context_t m;