File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / mtr / ui / dns.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Mon Oct 21 14:25:31 2019 UTC (4 years, 9 months ago) by misho
Branches: mtr, MAIN
CVS tags: v0_92, HEAD
mtr ver 0.92

    1: /*
    2:     mtr  --  a network diagnostic tool
    3:     Copyright (C) 1997,1998  Matt Kimball
    4: 
    5:     This program is free software; you can redistribute it and/or modify
    6:     it under the terms of the GNU General Public License version 2 as 
    7:     published by the Free Software Foundation.
    8: 
    9:     This program is distributed in the hope that it will be useful,
   10:     but WITHOUT ANY WARRANTY; without even the implied warranty of
   11:     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   12:     GNU General Public License for more details.
   13: 
   14:     You should have received a copy of the GNU General Public License
   15:     along with this program; if not, write to the Free Software
   16:     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
   17: */
   18: 
   19: #include <config.h>
   20: #include <netinet/in.h>
   21: #include <resolv.h>
   22: 
   23: /*  Prototypes for dns.c  */
   24: 
   25: extern void dns_open(
   26:     struct mtr_ctl *ctl);
   27: extern int dns_waitfd(
   28:     void);
   29: extern void dns_ack(
   30:     struct mtr_ctl *ctl);
   31: #ifdef ENABLE_IPV6
   32: extern int dns_waitfd6(
   33:     void);
   34: extern void dns_ack6(
   35:     void);
   36: #endif
   37: 
   38: extern char *dns_lookup(
   39:     struct mtr_ctl *ctl,
   40:     ip_t * address);
   41: extern char *dns_lookup2(
   42:     struct mtr_ctl *ctl,
   43:     ip_t * address);
   44: extern struct hostent *dns_forward(
   45:     const char *name);
   46: extern char *strlongip(
   47:     struct mtr_ctl *ctl,
   48:     ip_t * ip);
   49: 
   50: extern void addr2ip6arpa(
   51:     ip_t * ip,
   52:     char *buf);
   53: extern struct hostent *addr2host(
   54:     const char *addr,
   55:     int type);

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>