+ error = igmp_joingroup(inm);
+ if (error) {
+ char addrbuf[16];
+
+ /*
+ * We can't free the inm because someone else may already be
+ * using it. Once we put it in to ifma->ifma_protospec, it
+ * must exist as long as the ifma does. Might be nice to flag
+ * the error so we can try igmp_joingroup the next time through.
+ */
+ log(LOG_ERR, "igmp_joingroup error %d joining multicast %s on %s%d\n",
+ error, inet_ntop(AF_INET, &sin.sin_addr, addrbuf, sizeof(addrbuf)),
+ ifp->if_name, ifp->if_unit);
+ }
+