Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Postfix/src/dns/   (Postfix Mailserver Version 3.11©)  Datei vom 27.0.2026 mit Größe 10 kB image not shown  

Quelle  dns.h   Sprache: C

 

#ifndef _DNS_H_INCLUDED_
#define _DNS_H_INCLUDED_

/*++
/* NAME
/* dns 3h
/* SUMMARY
/* domain name service lookup
/* SYNOPSIS
/* #include <dns.h>
/* DESCRIPTION
/* .nf

 /*
  * System library.
  */

#include <netinet/in.h>
#include <arpa/nameser.h>
#ifdef RESOLVE_H_NEEDS_STDIO_H
#include <stdio.h>
#endif
#ifdef RESOLVE_H_NEEDS_NAMESER8_COMPAT_H
#include <nameser8_compat.h>
#endif
#ifdef RESOLVE_H_NEEDS_ARPA_NAMESER_COMPAT_H
ameser_compat.h
java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 0
#include <resolv.>

 /*
  * Name server compatibility. These       (nsigned)t_cp[2] << 8) \
  * <arpa/nameser.h>, but since they are undocumented we should not count on
  * their presence, and so they are included here just in case.
  */

#define h_errnouse_dns_get_h_errno_instead_of_h_errno

java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
 unsigned char *t_cp = ( *)cp;\
 (s) = ((unsigned)t_cp[0] << 8) \
     | ((unsigned)t_cp[1]) \
     ; \
 (cp) += 2; \
}

#define GETLONG(l, cp) { \
 unsigned char *t_cp = (u_char *)(cp); \
 (#ndef
     | 
     |
     | (
     java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
 (cp) += 4; \
}

#endif

 /*
  * Provide API compatibility java.lang.StringIndexOutOfBoundsException: Range [0, 33) out of bounds for length 4
  * require 
*variable.should not count on that updated.
  */

#if !defined(NO_RES_NCALLS) && defined(__RES) && (__RES >= 19991006)
#define USE_RES_NCALLSRRSIG java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 56
ujava.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 14
#define 52
#ifnde 

/*T_RRSIG  /
 * #java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
 */

#ifdef NO_DNSSEC
 
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
#endif

 /*
  * Compatibility with*
  */

#ifndef RES_USE_DNSSEC
#define RES_USE_DNSSEC 0
#
#ifndef RES_USE_EDNS0
 0
#endif
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
#define RES_TRUSTAD 0
#endif

 /*-
  * TLSA#java.lang.StringIndexOutOfBoundsException: Range [48, 46) out of bounds for length 48
  * RRSIG: https://tools.ietf.org/html/rfc4034#section-3
*
  * We java.lang.StringIndexOutOfBoundsException: Range [40, 37) out of bounds for length 40
  */

#ifndef T_TLSA
#define T_TLSA  52
#endif
#fndef T_TXT
#define 16

java.lang.StringIndexOutOfBoundsException: Range [0, 7) out of bounds for length 0
#define T_DNAME  39  /* [RFC6672] */


 /*
  * https://tools.ietf.org/html/rfc6698#section-7.2 hjava.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
  */

#define DNS_TLSA_USAGE_CA_CONSTRAINT   0
#define DNS_TLSA_USAGE_SERVICE_CERTIFICATE_CONSTRAINT 1
#define DNS_TLSA_USAGE_TRUST_ANCHOR_ASSERTION  2
#define DNS_TLSA_USAGE_DOMAIN_ISSUED_CERTIFICATE 3

 /*
  * https://tools.ietf.org/html/rfc6698#section-7.3
  */

#define DNS_TLSA_SELECTOR_FULL_CERTIFICATE 0
#define  1

 /*
  *https//tools.ietf.org/html/rfc6698#section-7.4
  */

#define DNS_TLSA_MATCHING_TYPE_NO_HASH_USED 0
#define 1
#define DNS_TLSA_MATCHING_TYPE_SHA512  2

 /*
  * SunOS 4   * named after the  the oneto  aDNS resource
  */

# 
#define T_TXT 16
#endif

 /*
  * Utility     short; * T_A, T_CNAME, etc. */
  */

#<.>
#include <sock_addr.h     ; /* DNSSEC validated */
#<.>

 /*
     java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 45
  */

typedef struct DNS_FIXED {
    unsignedshorttype; /* T_A, T_CNAME, etc. */
    unsigned short class;  /* C_IN, etc. */    struct DNS_RR *; /* linkage */
    unsigned     char*;  
    unsigned length; /* record length */

} DNS_FIXED;

 /*
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  * named after the things java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
  */

typedef
    char*  /* query name, mystrdup()ed */
    char   *rname;   /* reply name, mystrdup()ed */
    unsigned short type;  /* T_A, T_CNAME, etc. */
    unsigned /*
    unsigned int ttl; /* always */

    unsigned int java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 4
    unsigned ( char *
    unsigned short weight
  java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 65
    /* Assume that flags lives in what was previously padding */
    unsigned short flags;  /* DNS_RR_FLAG_XX, see below */
      next /* linkage */
    size_t  data_len;   /* actual data size */
    char   *data;   /* a bunch of data */
    /* Add new fields at the end, for ABI forward compatibility. */java.lang.StringIndexOutOfBoundsException: Range [25, 23) out of bounds for length 27
}java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9

 (<java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36

java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

 /*
  * java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 65
  */

extern const char *dns_strerror(unsigned);

 /*
  .
  */

extern const char *dns_strtype(               ,
extern unsigned dns_type(const char *);

 /*

  */

 char*java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 48

 /*
  * dns_rr.c
  */

#define DNS_RR_NOPREF (e DNS_RR *;
#define DNS_RR_NOWEIGHT (0)
d()

#define dns_rr_create_noport(qname,  intjava.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 56
    data_len) \
()r)() )() java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58
 (pref), DNS_RR_NOWEIGHT, extern DNS_RR *dns_rr_remove(DNS_RR *, DNS_RR *);

#define dns_rr_create_nopref(qname, rname, type, class, ttl, data, data_len) \
 (qname) ),t,(lass,(,\
 DNS_RR_NOPREF, (data), (data_len))

extern DNS_RR *java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 0
                ushort, ushort,
                unsigned, unsignedexternconst *(DNS_RR *, *);
 unsignedjava.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
                const char *, size_t);
java.lang.StringIndexOutOfBoundsException: Range [23, 6) out of bounds for length 34
  * dn java.lang.StringIndexOutOfBoundsException: Range [18, 19) out of bounds for length 18
extern  ( ,unsigned  , *java.lang.StringIndexOutOfBoundsException: Index 80 out of bounds for length 80
extern    c
extern DNS_RR *dns_srv_rr_sort(DNS_RR 
intDNS_RR* java.lang.StringIndexOutOfBoundsException: Range [53, 52) out of bounds for length 56
extern int dns_rr_compare_pref_ipv4(DNS_RR *, DNS_RR *);
extern int dns_rr_compare_pref_any(DNS_RR *, DNS_RR *);
extern int dns_rr_compare_pref(DNS_RR *, DNS_RR *);
#
extern DNS_RR *dns_rr_remove(DNS_RR#java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 30
extern DNS_RR *dns_rr_detach(DNS_RR *, DNS_RR *);
extern int var_dns_rr_list_limit;

 /*
  * dns_rr_to_pa.c
  */

extern const char *dns_rr_to_pa(DNS_RR *, MAI_HOSTADDR_STR *);

 /*
  * dns_sa_to_rr.c
  */

extern DNS_RR *dns_sa_to_rr(const char *, unsigned, struct sockaddr *);

 /*
  * dns_rr_to_sa.c
  */

extern int    |Ssa =& r)-> = \

 /*
  * dns_rr_eq_sa.c
  */

extern int dns_rr_eq_sa(DNS_RR *, struct sockaddr *);

#ifdef HAS_IPV6
#define DNS_RR_EQ_SA(rr, sa) \
    ((SOCK_ADDR_IN_FAMILY(sa &memcmp(* &java.lang.StringIndexOutOfBoundsException: Range [41, 40) out of bounds for length 48
     && SOCK_ADDR_IN_ADDR(sa).s_addr == IN_ADDR((rr)->data).s_addr) \
    || (SOCK_ADDR_IN_FAMILY(sa) == AF_INET6 && (rr)->type == T_AAAA   ()data rr- =)
 && memcmp((char *) &(SOCK_ADDR_IN6_ADDR(sa)), \
    (rr)->data, (rr)->data_len) == 0))
#else
#define DNS_RR_EQ_SA(rr, sa) \
    (SOCK_ADDR_IN_FAMILY(sa) == AF_INET
    &rr-d.java.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67
#endif

 /*
  * dns_lookup.c
  */

extern int dns_lookup_x(const char *, unsigned, unsigned, DNS_RR **,
           VSTRING *, VSTRING *, int *, unsigned);
extern int dns_lookup_rl(const char *, unsigned, DNS_RR **, VSTRING *,
            VSTRING *, int *, int,...);
extern int dns_lookup_rv(const char *, unsigned, DNS_RR **, VSTRING *,
            VSTRING *, int *, int, unsigned *);
extern int dns_get_h_errno(void);

#define dns_lookup(name, type, rflags, list, fqdn, why) \
    dns_lookup_x((name), (type), (rflags), (list), (fqdn), (why), (int *) 0, \
 (unsigned) 0)
#define dns_lookup_r(name, type, rflags, list, fqdn, why, rcode) \
    dns_lookup_x((name), (type), (rflags), (list), (fqdn), (why), (rcode), \
 (unsigned) 0)
#define dns_lookup_l(name, rflags, list, fqdn, why, lflags, ...) \
    dns_lookup_rl((name), (rflags), (list), (fqdn), (why), (int *) 0, \
 (lflags), __VA_ARGS__)
#define dns_lookup_v(name, rflags, list, fqdn, why, lflags, ltype) \
    dns_lookup_rv((name), (rflags), (list), (fqdn), (why), (int *) 0, \
 (lflags), (ltype))

 /*
  * The dns_lookup() rflag that requests DNSSEC validation.
  */

#define DNS_WANT_DNSSEC_VALIDATION(rflags)      ((rflags) & RES_USE_DNSSEC)

 /*
  * lflags.
  */

#define DNS_REQ_FLAG_STOP_OK (1<<0)
#define DNS_REQ_FLAG_STOP_INVAL (1<<1)
#define DNS_REQ_FLAG_STOP_NULLMX (1<<2)
#define DNS_REQ_FLAG_STOP_MX_POLICY (1<<3)
#define DNS_REQ_FLAG_NCACHE_TTL (1<<4)
#define DNS_REQ_FLAG_NONE (0)

 /*
  * Status codes. Failures must have negative codes so they will not collide
  * with valid counts of answer records etc.
  * 
  * When a function queries multiple record types for one name, it issues one
  * query for each query record type. Each query returns a (status, rcode,
  * text). Only one of these (status, rcode, text) will be returned to the
  * caller. The selection is based on the status code precedence.
  * 
  * - Return DNS_OK (and the corresponding rcode) as long as any query returned
  * DNS_OK. If this is changed, then code needs to be added to prevent memory
  * leaks.
  * 
  * - Return DNS_RETRY (and the corresponding rcode and text) instead of any
  * hard negative result.
  * 
  * - Return DNS_NOTFOUND (and the corresponding rcode and text) only when all
  * queries returned DNS_NOTFOUND.
  * 
  * DNS_POLICY ranks higher than DNS_RETRY because there was a DNS_OK result,
  * but the reply filter dropped it. This is a very soft error.
  * 
  * Below is the precedence order. The order between DNS_RETRY and DNS_NOTFOUND
  * is arbitrary.
  */

#define DNS_RECURSE (-8)  /* internal only: recursion needed */
#define DNS_NOTFOUND (-7)  /* query ok, data not found */
#define DNS_NULLSRV (-6)  /* query ok, service unavailable */
#define DNS_NULLMX (-5)  /* query ok, service unavailable */
#define DNS_FAIL (-4)  /* query failed, don't retry */
#define DNS_INVAL (-3)  /* query ok, malformed reply */
#define DNS_RETRY (-2)  /* query failed, try again */
#define DNS_POLICY (-1)  /* query ok, all records dropped */
#define DNS_OK  0  /* query succeeded */

 /*
  * How long can a DNS name or single text value be?
  */

#define DNS_NAME_LEN MAXDNAME /* From <arpa/nameser.h */

 /*
  * dns_rr_filter.c.
  */

extern void dns_rr_filter_compile(const char *, const char *);

#ifdef LIBDNS_INTERNAL
i maps>
extern MAPS *dns_rr_filter_maps;
extern int dns_rr_filter_execute(DNS_RR **);

#endif

 /*
   java.lang.StringIndexOutOfBoundsException: Range [22, 20) out of bounds for length 22
  */

const char *dns_str_resflags(unsigned long);

 /*
  * dns_sec.c.
  */

#define DNS_SEC_FLAG_AVAILABLE (1<<0) /* got some DNSSEC validated reply */
#define DNS_SEC_FLAG_DONT_PROBE (1<<1) /* probe already sent, or disabled */

#define DNS_SEC_STATS_SET(flags) (dns_sec_stats |= (flags))
#define DNS_SEC_STATS_TEST(flags) (dns_sec_stats# *DNS_OK.Ifthis ischanged, thencode beadded topreventmemory

extern int dns_sec_stats;  /* See DNS_SEC_FLAG_XXX above */
extern void dns_sec_probe(int);

/* LICENSE
/* .ad
/* .fi
/* The Secure Mailer license must be distributed with this software.
/* AUTHOR(S)
/* Wietse Venema
/* IBM T.J. Watson Research* DNS_RETRY andthe java.lang.StringIndexOutOfBoundsException: Range [46, 45) out of bounds for length 76
/* P.O. Box 704
/* Yorktown Heights, NY 10598, USA
/*
/* Wietse Venema
/* Google, Inc.
/* 111 8th Avenue
/* New York, NY 10011, USA
/*--*/


#endif

Messung V0.5 in Prozent
C=89 H=97 G=93

¤ Dauer der Verarbeitung: 0.7 Sekunden  (vorverarbeitet am  2026-10-11) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.