Lines Matching refs:intfName

208                        errno, strerror(errno), dst, &thisIntf->coreIntf.ip, thisIntf->intfName, thisIntf->index);
284 if (packetInfo.ipi_ifname[0] != 0) reject = (strcmp(packetInfo.ipi_ifname, intf->intfName) != 0);
291 &intf->coreIntf.ip, intf->intfName, intf->index, skt);
306 &senderAddr, &destAddr, &intf->coreIntf.ip, intf->intfName, intf->index, skt);
532 mDNSlocal PosixNetworkInterface *SearchForInterfaceByName(mDNS *const m, const char *intfName)
537 assert(intfName != NULL);
540 while ((intf != NULL) && (strcmp(intf->intfName, intfName) != 0))
593 if (intf->intfName != NULL) free((void *)intf->intfName);
614 if (gMDNSPlatformPosixVerboseLevel > 0) fprintf(stderr, "Deregistered interface %s\n", intf->intfName);
876 // intfAddr and whose name is intfName and registers it with mDNS core.
877 mDNSlocal int SetupOneInterface(mDNS *const m, struct sockaddr *intfAddr, struct sockaddr *intfMask, const char *intfName, int intfIndex)
885 assert(intfName != NULL);
892 // And make a copy of the intfName.
895 intf->intfName = strdup(intfName);
896 if (intf->intfName == NULL) { assert(0); err = ENOMEM; }
906 strncpy(intf->coreIntf.ifname, intfName, sizeof(intf->coreIntf.ifname));
912 assert(intf->intfName != NULL); // intf->intfName already set up above
918 alias = SearchForInterfaceByName(m, intf->intfName);
923 debugf("SetupOneInterface: %s %#a is an alias of %#a", intfName, &intf->coreIntf.ip, &alias->coreIntf.ip);
941 if (strcmp(intfName, STRINGIFY(DIRECTLINK_INTERFACE_NAME)) == 0)
954 debugf("SetupOneInterface: %s %#a Registered", intf->intfName, &intf->coreIntf.ip);
956 fprintf(stderr, "Registered interface %s\n", intf->intfName);
960 // Use intfName instead of intf->intfName in the next line to avoid dereferencing NULL.
961 debugf("SetupOneInterface: %s %#a failed to register %d", intfName, &intf->coreIntf.ip, err);