Ignore:
Timestamp:
Jun 20, 2016 10:10:42 AM (3 years ago)
Author:
nanang
Message:

Close #1927: IPv6 support in DNS SRV:

  • support DNS A and AAAA resolution for each target in DNS SRV record
  • support fallback to DNS A and DNS AAAA resolution when DNS SRV record is not available
  • support IPv6 nameservers.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib-util/include/pjlib-util/srv_resolver.h

    r3553 r5349  
    8585     * resolution when the SRV resolution fails. This option may 
    8686     * be specified together with PJ_DNS_SRV_FALLBACK_AAAA to 
    87      * make the resolver fallback to AAAA if SRV resolution fails, 
    88      * and then to DNS A resolution if the AAAA resolution fails. 
     87     * make the resolver fallback to both DNS A and DNS AAAA 
     88     * resolutions if SRV resolution fails. 
    8989     */ 
    9090    PJ_DNS_SRV_FALLBACK_A       = 1, 
     
    9393     * Specify if the resolver should fallback with DNS AAAA 
    9494     * resolution when the SRV resolution fails. This option may 
    95      * be specified together with PJ_DNS_SRV_FALLBACK_A to 
    96      * make the resolver fallback to AAAA if SRV resolution fails, 
    97      * and then to DNS A resolution if the AAAA resolution fails. 
     95     * be specified together with PJ_DNS_SRV_FALLBACK_AAAA to 
     96     * make the resolver fallback to both DNS A and DNS AAAA 
     97     * resolutions if SRV resolution fails. 
    9898     */ 
    9999    PJ_DNS_SRV_FALLBACK_AAAA    = 2, 
     
    101101    /** 
    102102     * Specify if the resolver should try to resolve with DNS AAAA 
    103      * resolution first of each targets in the DNS SRV record. If 
    104      * this option is not specified, the SRV resolver will query 
    105      * the DNS A record for the target instead. 
    106      */ 
    107     PJ_DNS_SRV_RESOLVE_AAAA     = 4 
     103     * resolution of each targets in the DNS SRV record. If this 
     104     * option is not specified, the SRV resolver will query the 
     105     * DNS A record for the target instead. 
     106     */ 
     107    PJ_DNS_SRV_RESOLVE_AAAA     = 4, 
     108 
     109    /** 
     110     * Specify if the resolver should try to resolve with DNS AAAA 
     111     * resolution only (i.e: without DNS A resolution) for each targets 
     112     * in the DNS SRV record. 
     113     */ 
     114    PJ_DNS_SRV_RESOLVE_AAAA_ONLY = 8 
    108115 
    109116} pj_dns_srv_option; 
     
    132139 
    133140        /** The host address. */ 
    134         pj_dns_a_record         server; 
     141        pj_dns_addr_record      server; 
    135142 
    136143    } entry[PJ_DNS_SRV_MAX_ADDR]; 
Note: See TracChangeset for help on using the changeset viewer.