Lines Matching defs:intfName

220                        errno, strerror(errno), dst, &thisIntf->coreIntf.ip, thisIntf->intfName, thisIntf->index);
296 if (packetInfo.ipi_ifname[0] != 0) reject = (strcmp(packetInfo.ipi_ifname, intf->intfName) != 0);
303 &intf->coreIntf.ip, intf->intfName, intf->index, skt);
318 &senderAddr, &destAddr, &intf->coreIntf.ip, intf->intfName, intf->index, skt);
540 mDNSlocal PosixNetworkInterface *SearchForInterfaceByName(mDNS *const m, const char *intfName)
545 assert(intfName != NULL);
548 while ((intf != NULL) && (strcmp(intf->intfName, intfName) != 0))
601 if (intf->intfName != NULL) free((void *)intf->intfName);
622 if (gMDNSPlatformPosixVerboseLevel > 0) fprintf(stderr, "Deregistered interface %s\n", intf->intfName);
872 // intfAddr and whose name is intfName and registers it with mDNS core.
873 mDNSlocal int SetupOneInterface(mDNS *const m, struct sockaddr *intfAddr, struct sockaddr *intfMask, const char *intfName, int intfIndex)
881 assert(intfName != NULL);
888 // And make a copy of the intfName.
891 intf->intfName = strdup(intfName);
892 if (intf->intfName == NULL) { assert(0); err = ENOMEM; }
902 strncpy(intf->coreIntf.ifname, intfName, sizeof(intf->coreIntf.ifname));
908 assert(intf->intfName != NULL); // intf->intfName already set up above
914 alias = SearchForInterfaceByName(m, intf->intfName);
919 debugf("SetupOneInterface: %s %#a is an alias of %#a", intfName, &intf->coreIntf.ip, &alias->coreIntf.ip);
937 if (strcmp(intfName, STRINGIFY(DIRECTLINK_INTERFACE_NAME)) == 0)
949 debugf("SetupOneInterface: %s %#a Registered", intf->intfName, &intf->coreIntf.ip);
951 fprintf(stderr, "Registered interface %s\n", intf->intfName);
955 // Use intfName instead of intf->intfName in the next line to avoid dereferencing NULL.
956 debugf("SetupOneInterface: %s %#a failed to register %d", intfName, &intf->coreIntf.ip, err);