Message ID | 1395985810-23822-14-git-send-email-sean.hefty@intel.com (mailing list archive) |
---|---|
State | Not Applicable, archived |
Headers | show |
diff --git a/src/acm_util.c b/src/acm_util.c index c3c5b69..da6d058 100644 --- a/src/acm_util.c +++ b/src/acm_util.c @@ -134,6 +134,7 @@ int acm_if_iter_sys(acm_if_iter_cb cb, void *ctx) uint8_t addr_type; uint8_t addr[ACM_MAX_ADDRESS]; size_t addr_len; + char *alias_sep; s = socket(AF_INET6, SOCK_DGRAM, 0); if (!s) @@ -177,6 +178,12 @@ int acm_if_iter_sys(acm_if_iter_cb cb, void *ctx) continue; } + acm_log(2, "%s\n", ifr[i].ifr_name); + + alias_sep = strchr(ifr[i].ifr_name, ':'); + if (alias_sep) + *alias_sep = '\0'; + if (!acm_if_is_ib(ifr[i].ifr_name)) continue;