summaryrefslogtreecommitdiff
path: root/usr/src/lib/libdladm/common/libdliptun.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/lib/libdladm/common/libdliptun.c')
-rw-r--r--usr/src/lib/libdladm/common/libdliptun.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr/src/lib/libdladm/common/libdliptun.c b/usr/src/lib/libdladm/common/libdliptun.c
index 8e4855fff5..cf1ab20ba3 100644
--- a/usr/src/lib/libdladm/common/libdliptun.c
+++ b/usr/src/lib/libdladm/common/libdliptun.c
@@ -122,6 +122,8 @@ i_iptun_kparams(dladm_handle_t handle, const iptun_params_t *params,
case IPTUN_TYPE_IPV6:
hints.ai_family = AF_INET6;
break;
+ case IPTUN_TYPE_UNKNOWN:
+ return (DLADM_STATUS_BADIPTUNLADDR);
}
}