Lines Matching refs:intfName
305 errno, strerror(errno), dst, &thisIntf->coreIntf.ip, thisIntf->intfName, thisIntf->index);
395 mDNSlocal PosixNetworkInterface *SearchForInterfaceByName(mDNS *const m, const char *const intfName)
400 assert(intfName != NULL);
403 while ((intf != NULL) && (strcmp(intf->intfName, intfName) != 0))
485 if (packetInfo.ipi_ifname[0] != 0) reject = (strcmp(packetInfo.ipi_ifname, intf->intfName) != 0);
506 intf->intfName, intf->index, realIntf->intfName, realIntf->index);
515 &intf->coreIntf.ip, intf->intfName, intf->index, skt);
530 &senderAddr, &destAddr, &intf->coreIntf.ip, intf->intfName, intf->index, skt);
716 SOL_SOCKET, SO_BINDTODEVICE, iface->intfName, strlen(iface->intfName));
719 LogMsg("mDNSPlatformTCPConnect: SO_BINDTODEVICE failed on %s: %s", iface->intfName, strerror(errno));
730 iface->intfName, iface->index, strerror(errno));
744 iface->intfName, iface->index, strerror(errno));
1064 if (intf->intfName != NULL) mdns_free(intf->intfName);
1093 if (gMDNSPlatformPosixVerboseLevel > 0) fprintf(stderr, "Deregistered interface %s\n", intf->intfName);
1370 // intfAddr and whose name is intfName and registers it with mDNS core.
1372 const mDNSu8 *intfHaddr, mDNSu16 intfHlen, const char *intfName, int intfIndex)
1380 assert(intfName != NULL);
1388 // And make a copy of the intfName.
1394 s = strchr(intfName, ':');
1397 len = (s - intfName) + 1;
1401 len = strlen(intfName) + 1;
1403 intf->intfName = malloc(len);
1404 if (intf->intfName == NULL) { assert(0); err = ENOMEM; }
1405 memcpy(intf->intfName, intfName, len - 1);
1406 intfName[len - 1] = 0;
1408 intf->intfName = mdns_strdup(intfName);
1409 if (intf->intfName == NULL) { assert(0); err = ENOMEM; }
1430 mDNSPlatformStrLCopy(intf->coreIntf.ifname, intfName, sizeof(intf->coreIntf.ifname));
1437 assert(intf->intfName != NULL); // intf->intfName already set up above
1443 alias = SearchForInterfaceByName(m, intf->intfName);
1448 debugf("SetupOneInterface: %s %#a is an alias of %#a", intfName, &intf->coreIntf.ip, &alias->coreIntf.ip);
1466 if (strcmp(intfName, STRINGIFY(DIRECTLINK_INTERFACE_NAME)) == 0)
1479 debugf("SetupOneInterface: %s %#a Registered", intf->intfName, &intf->coreIntf.ip);
1481 fprintf(stderr, "Registered interface %s\n", intf->intfName);
1485 // Use intfName instead of intf->intfName in the next line to avoid dereferencing NULL.
1486 debugf("SetupOneInterface: %s %#a failed to register %d", intfName, &intf->coreIntf.ip, err);