diff options
Diffstat (limited to 'usr/src/lib/libdladm/common')
-rw-r--r-- | usr/src/lib/libdladm/common/libdliptun.c | 2 | ||||
-rw-r--r-- | usr/src/lib/libdladm/common/libdlvnic.c | 2 |
2 files changed, 4 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); } } diff --git a/usr/src/lib/libdladm/common/libdlvnic.c b/usr/src/lib/libdladm/common/libdlvnic.c index d76fcf0b08..30e9f1b986 100644 --- a/usr/src/lib/libdladm/common/libdlvnic.c +++ b/usr/src/lib/libdladm/common/libdlvnic.c @@ -148,6 +148,8 @@ i_dladm_vnic_create_sys(dladm_handle_t handle, dladm_vnic_attr_t *attr) bcopy(ioc.vc_mac_addr, attr->va_mac_addr, MAXMACADDRLEN); attr->va_mac_len = ioc.vc_mac_len; break; + default: + break; } return (status); } |