dns_naptr.h File Reference

DNS NAPTR Record Parsing API. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

const char * ast_dns_naptr_get_flags (const struct ast_dns_record *record)
 Get the flags from a NAPTR record.
unsigned short ast_dns_naptr_get_order (const struct ast_dns_record *record)
 Get the order from a NAPTR record.
unsigned short ast_dns_naptr_get_preference (const struct ast_dns_record *record)
 Get the preference from a NAPTR record.
const char * ast_dns_naptr_get_regexp (const struct ast_dns_record *record)
 Get the regular expression from a NAPTR record.
const char * ast_dns_naptr_get_replacement (const struct ast_dns_record *record)
 Get the replacement value from a NAPTR record.
const char * ast_dns_naptr_get_service (const struct ast_dns_record *record)
 Get the service from a NAPTR record.


Detailed Description

DNS NAPTR Record Parsing API.

Author:
Joshua Colp <jcolp@digium.com>

Definition in file dns_naptr.h.


Function Documentation

const char* ast_dns_naptr_get_flags ( const struct ast_dns_record record  ) 

Get the flags from a NAPTR record.

Parameters:
record The DNS record
Returns:
the flags

Definition at line 591 of file dns_naptr.c.

References ast_assert, ast_dns_record_get_rr_type(), and ast_dns_naptr_record::flags.

Referenced by AST_TEST_DEFINE().

00592 {
00593    struct ast_dns_naptr_record *naptr = (struct ast_dns_naptr_record *) record;
00594 
00595    ast_assert(ast_dns_record_get_rr_type(record) == ns_t_naptr);
00596    return naptr->flags;
00597 }

unsigned short ast_dns_naptr_get_order ( const struct ast_dns_record record  ) 

Get the order from a NAPTR record.

Parameters:
record The DNS record
Returns:
the order

Definition at line 623 of file dns_naptr.c.

References ast_assert, ast_dns_record_get_rr_type(), and ast_dns_naptr_record::order.

Referenced by AST_TEST_DEFINE().

00624 {
00625    struct ast_dns_naptr_record *naptr = (struct ast_dns_naptr_record *) record;
00626 
00627    ast_assert(ast_dns_record_get_rr_type(record) == ns_t_naptr);
00628    return naptr->order;
00629 }

unsigned short ast_dns_naptr_get_preference ( const struct ast_dns_record record  ) 

Get the preference from a NAPTR record.

Parameters:
record The DNS record
Returns:
the preference

Definition at line 631 of file dns_naptr.c.

References ast_assert, ast_dns_record_get_rr_type(), and ast_dns_naptr_record::preference.

Referenced by AST_TEST_DEFINE().

00632 {
00633    struct ast_dns_naptr_record *naptr = (struct ast_dns_naptr_record *) record;
00634 
00635    ast_assert(ast_dns_record_get_rr_type(record) == ns_t_naptr);
00636    return naptr->preference;
00637 }

const char* ast_dns_naptr_get_regexp ( const struct ast_dns_record record  ) 

Get the regular expression from a NAPTR record.

Parameters:
record The DNS record
Returns:
the regular expression

Definition at line 607 of file dns_naptr.c.

References ast_assert, ast_dns_record_get_rr_type(), and ast_dns_naptr_record::regexp.

Referenced by AST_TEST_DEFINE().

00608 {
00609    struct ast_dns_naptr_record *naptr = (struct ast_dns_naptr_record *) record;
00610 
00611    ast_assert(ast_dns_record_get_rr_type(record) == ns_t_naptr);
00612    return naptr->regexp;
00613 }

const char* ast_dns_naptr_get_replacement ( const struct ast_dns_record record  ) 

Get the replacement value from a NAPTR record.

Parameters:
record The DNS record
Returns:
the replacement value

Definition at line 615 of file dns_naptr.c.

References ast_assert, ast_dns_record_get_rr_type(), and ast_dns_naptr_record::replacement.

Referenced by AST_TEST_DEFINE().

00616 {
00617    struct ast_dns_naptr_record *naptr = (struct ast_dns_naptr_record *) record;
00618 
00619    ast_assert(ast_dns_record_get_rr_type(record) == ns_t_naptr);
00620    return naptr->replacement;
00621 }

const char* ast_dns_naptr_get_service ( const struct ast_dns_record record  ) 

Get the service from a NAPTR record.

Parameters:
record The DNS record
Returns:
the service

Definition at line 599 of file dns_naptr.c.

References ast_assert, ast_dns_record_get_rr_type(), and ast_dns_naptr_record::service.

Referenced by AST_TEST_DEFINE().

00600 {
00601    struct ast_dns_naptr_record *naptr = (struct ast_dns_naptr_record *) record;
00602 
00603    ast_assert(ast_dns_record_get_rr_type(record) == ns_t_naptr);
00604    return naptr->service;
00605 }


Generated on Thu Apr 16 06:30:42 2015 for Asterisk - The Open Source Telephony Project by  doxygen 1.5.6