Back to index

courier  0.68.2
Classes | Defines | Functions
rfc1035mxlist.h File Reference
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/inet.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  rfc1035_mxlist

Defines

#define RFC1035_MX_OK   0 /* Ok, records follow */
#define RFC1035_MX_SOFTERR   1 /* Soft DNS error */
#define RFC1035_MX_HARDERR   2 /* Hard DNS error */
#define RFC1035_MX_INTERNAL   3 /* Internal library error */
#define RFC1035_MX_BADDNS   4 /* Bad DNS records */
#define RFC1035_MX_AFALLBACK   1
#define RFC1035_MX_IGNORESOFTERR   2

Functions

int rfc1035_mxlist_create (struct rfc1035_res *, const char *, struct rfc1035_mxlist **)
void rfc1035_mxlist_free (struct rfc1035_mxlist *)
int rfc1035_mxlist_create_x (struct rfc1035_res *, const char *, int, struct rfc1035_mxlist **)

Class Documentation

struct rfc1035_mxlist

Definition at line 28 of file rfc1035mxlist.h.

Collaboration diagram for rfc1035_mxlist:
Class Members
int ad
char * hostname
struct rfc1035_mxlist * next
int priority
int protocol

Define Documentation

#define RFC1035_MX_AFALLBACK   1

Definition at line 50 of file rfc1035mxlist.h.

#define RFC1035_MX_BADDNS   4 /* Bad DNS records */

Definition at line 26 of file rfc1035mxlist.h.

#define RFC1035_MX_HARDERR   2 /* Hard DNS error */

Definition at line 24 of file rfc1035mxlist.h.

#define RFC1035_MX_IGNORESOFTERR   2

Definition at line 51 of file rfc1035mxlist.h.

#define RFC1035_MX_INTERNAL   3 /* Internal library error */

Definition at line 25 of file rfc1035mxlist.h.

#define RFC1035_MX_OK   0 /* Ok, records follow */

Definition at line 22 of file rfc1035mxlist.h.

#define RFC1035_MX_SOFTERR   1 /* Soft DNS error */

Definition at line 23 of file rfc1035mxlist.h.


Function Documentation

int rfc1035_mxlist_create ( struct rfc1035_res ,
const char *  ,
struct rfc1035_mxlist **   
)

Definition at line 440 of file rfc1035mxlist.c.

Here is the call graph for this function:

int rfc1035_mxlist_create_x ( struct rfc1035_res ,
const char *  ,
int  ,
struct rfc1035_mxlist **   
)

Definition at line 425 of file rfc1035mxlist.c.

{
int    rc=domxlistcreate3(res, q_name, opts, list);

       if (rc != RFC1035_MX_OK)
       {
              rfc1035_mxlist_free(*list);
              *list=0;
       }
       return (rc);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void rfc1035_mxlist_free ( struct rfc1035_mxlist )

Definition at line 13 of file rfc1035mxlist.c.

{
struct rfc1035_mxlist *q;

       while (p)
       {
              q=p->next;
              if (p->hostname)     free(p->hostname);
              free(p);
              p=q;
       }
}

Here is the caller graph for this function: