diff options
author | Toomas Soome <tsoome@me.com> | 2022-11-19 16:59:15 +0200 |
---|---|---|
committer | Toomas Soome <tsoome@me.com> | 2022-12-05 19:43:34 +0200 |
commit | 0b49aa923f72d28badbed5f4d3ed43a816f07a39 (patch) | |
tree | 70ac58589fb9fcf956f0463eedd96409cdb108c1 /usr/src/lib/libdladm/common/libdliptun.c | |
parent | c8ed50c6d60fbb337f556eadef95cef18c28afa5 (diff) | |
download | illumos-gate-0b49aa923f72d28badbed5f4d3ed43a816f07a39.tar.gz |
15197 libdladm: enumeration values not handled in switch
Reviewed by: Marco van Wieringen <mvw@planets.elm.net>
Approved by: Gordon Ross <gordon.w.ross@gmail.com>
Diffstat (limited to 'usr/src/lib/libdladm/common/libdliptun.c')
-rw-r--r-- | usr/src/lib/libdladm/common/libdliptun.c | 2 |
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); } } |