- Timestamp:
- Mar 2, 2007 2:51:03 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/pjproject-0.5-stable/pjlib-util/include/pjlib-util/dns.h
r974 r1033 26 26 */ 27 27 #include <pjlib-util/types.h> 28 28 #include <pj/sock.h> 29 29 30 30 PJ_BEGIN_DECL … … 259 259 /** A Resource Data (PJ_DNS_TYPE_A, 1) */ 260 260 struct a { 261 pj_ str_tip_addr;/**< IP host address string. */261 pj_in_addr ip_addr;/**< IP host address string. */ 262 262 } a; 263 263 … … 280 280 pj_dns_parsed_rr *arr; /**< Array of additional RR answer. */ 281 281 } pj_dns_parsed_packet; 282 283 284 /** 285 * Option flags to be specified when calling #pj_dns_packet_dup() function. 286 * These flags can be combined with bitwise OR operation. 287 */ 288 enum pj_dns_dup_options 289 { 290 PJ_DNS_NO_QD = 1, /**< Do not duplicate the query section. */ 291 PJ_DNS_NO_ANS = 2, /**< Do not duplicate the answer section. */ 292 PJ_DNS_NO_NS = 4, /**< Do not duplicate the NS section. */ 293 PJ_DNS_NO_AR = 8 /**< Do not duplicate the additional rec section */ 294 }; 282 295 283 296 … … 332 345 * @param pool The pool to allocate memory for the duplicated packet. 333 346 * @param p The DNS packet to be cloned. 347 * @param options Option flags, from pj_dns_dup_options. 334 348 * @param p_dst Pointer to store the cloned DNS packet. 335 349 */ 336 350 PJ_DECL(void) pj_dns_packet_dup(pj_pool_t *pool, 337 351 const pj_dns_parsed_packet*p, 352 unsigned options, 338 353 pj_dns_parsed_packet **p_dst); 339 354
Note: See TracChangeset
for help on using the changeset viewer.