Changeset 460786f in code for dns.c


Ignore:
Timestamp:
Mar 6, 2014, 3:30:44 PM (11 years ago)
Author:
Mike Belopuhov <mike@…>
Branches:
master
Children:
be3ad87
Parents:
f3c60e6
git-author:
Mike Belopuhov <mike@…> (03/06/14 15:29:27)
git-committer:
Mike Belopuhov <mike@…> (03/06/14 15:30:44)
Message:

Add command line switch '-n' to disable DNS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • dns.c

    rf3c60e6 r460786f  
    3939void dns_done(int, short, void *);
    4040
    41 int dns_pipe;
    42 
    4341struct icbd_dnsquery {
    4442        uint64_t                        sid;
     
    4846        } u;
    4947};
     48
     49int dns_pipe;
     50
     51extern int dodns;
    5052
    5153int
     
    173175}
    174176
    175 int
     177void
    176178dns_rresolv(struct icb_session *is, struct sockaddr_storage *ss)
    177179{
    178180        struct icbd_dnsquery q;
     181
     182        if (!dodns)
     183                return;
    179184
    180185        if (verbose)
     
    186191        if (write(dns_pipe, &q, sizeof q) != sizeof q) {
    187192                syslog(LOG_ERR, "write: %m");
    188                 exit (EX_OSERR);
     193                exit(EX_OSERR);
    189194        }
    190 
    191         return 0;
    192195}
Note: See TracChangeset for help on using the changeset viewer.