Lines Matching defs:ip

70 	u_int32_t addr;		/* ip address */
1329 "%s: %s/%s:%d bad \"a\" record ip addr \"%s\"\n",
1353 "%s: %s/%s:%d bad \"ptr\" record (%s) ip addr \"%s\"\n",
1384 "%s: %s/%s:%d bad \"wks\" record ip addr \"%s\"\n",
1388 /* Step over ip address */
1406 /* XXX check to see if ip address records exists? */
1613 "%s: %s/%s:%d bad \"allowdupa\" record ip addr \"%s\"\n",
1644 checkdups(register struct item *ip, register int records)
1648 records &= (ip->records & MASK_TEST_DUP);
1655 prog, dp->name, ip->host);
1670 register struct item *ip;
1677 ip = &items[i & (ITEMSIZE - 1)];
1678 while (n < ITEMSIZE && ip->host) {
1679 if ((addr == 0 || addr == ip->addr || ip->addr == 0) &&
1680 *host == *ip->host && strcmp(host, ip->host) == 0) {
1682 if (ip->addr == 0)
1683 ip->addr = addr;
1685 checkdups(ip, records);
1686 ip->records |= records;
1688 if (ip->ttl == 0)
1689 ip->ttl = ttl;
1690 else if (ttl != 0 && ip->ttl != ttl) {
1693 prog, ip->host, ttl, ip->ttl);
1696 ip->flags |= flags;
1702 ++ip;
1703 if (ip >= &items[ITEMSIZE])
1704 ip = items;
1719 if (ip->host) {
1723 ip->addr = addr;
1724 ip->host = savestr(host);
1726 checkdups(ip, records);
1727 ip->records |= records;
1729 ip->ttl = ttl;
1730 ip->flags |= flags;
1785 register struct item *ip, *lastaip, **ipp, **itemlist;
1795 for (n = 0, ip = items; n < ITEMSIZE; ++n, ++ip) {
1796 if (ip->host == NULL)
1800 if (ip->addr != 0)
1801 *ipp++ = ip;
1807 ip->host, intoa(ip->addr), ip->records, ip->flags);
1811 if (rfc1034host(ip->host, ip->records))
1815 records = ip->records & MASK_CHECK_REC;
1816 if ((ip->records & MASK_TEST_REC) != 0)
1831 " \"cname\" or \"mx\": %s\n", prog, ip->host);
1842 if (ip->addr != 0) {
1846 prog, ip->host, intoa(ip->addr));
1854 prog, ip->host);
1863 prog, ip->host, intoa(ip->addr));
1872 prog, ip->host, intoa(ip->addr));
1891 prog, ip->host);
1896 if ((ip->records & ~(REC_NS | REC_TXT)) == 0)
1904 prog, records, ip->host, ip->records);
1909 flags = ip->flags & MASK_TEST_SMTP;
1911 if ((flags & FLG_SELFMX) != 0 && (ip->records & REC_A) == 0) {
1915 prog, ip->host);
1926 if ((ip->records & REC_WKS) != 0) {
1930 prog, ip->host);
1938 prog, ip->host);
1945 prog, flags, ip->host);
1949 if ((ip->flags & (FLG_SELFMX | FLG_MXREF)) == FLG_MXREF &&
1950 (ip->records & REC_MX) != 0) {
1953 " \"mx\" record: %s\n", prog, ip->host);
1961 ip = NULL;
1966 (ip->flags & FLG_ALLOWDUPA) == 0) {
1969 prog, intoa(addr), (*ipp)->host, ip->host);
1972 ip = *ipp;
1982 ip = *ipp;
1983 if ((ip->records & REC_A) == 0 ||
1984 (ip->flags & FLG_ALLOWDUPA) != 0)
1987 strcasecmp(ip->host, lastaip->host) == 0) {
1988 mask = findmask(ip->addr);
1993 prog, ip->host, intoa(ip->addr));
1995 (ip->addr & mask) ) {
1999 prog, ip->host,
2000 intoa(ip->addr & mask));
2004 intoa(ip->addr));
2007 lastaip = ip;