~ubuntu-branches/debian/squeeze/ntp/squeeze-201010051545

« back to all changes in this revision

Viewing changes to ntpq/ntpq.h

  • Committer: Bazaar Package Importer
  • Author(s): Matt Zimmerman
  • Date: 2004-10-11 16:10:27 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20041011161027-icyjbji8ujym633o
Tags: 1:4.2.0a-10ubuntu2
Use ntp.ubuntulinux.org instead of pool.ntp.org

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
#define UINT    0x2             /* unsigned integer */
23
23
#define INT     0x3             /* signed integer */
24
24
#define ADD     0x4             /* IP network address */
 
25
#define IP_VERSION 0x5          /* IP address family */
25
26
 
26
27
/*
27
28
 * Arguments are returned in a union
30
31
        char *string;
31
32
        long ival;
32
33
        u_long uval;
33
 
        u_int32 netnum;
 
34
        struct sockaddr_storage netnum;
34
35
} arg_v;
35
36
 
36
37
/*
76
77
};
77
78
 
78
79
extern  void    asciize         P((int, char *, FILE *));
79
 
extern  int     getnetnum       P((const char *, u_int32 *, char *));
 
80
extern  int     getnetnum       P((const char *, struct sockaddr_storage *, char *, int));
80
81
extern  void    sortassoc       P((void));
81
82
extern  int     doquery         P((int, int, int, int, char *, u_short *, int *, char **));
82
 
extern  char *  nntohost        P((u_int32));
 
83
extern  char *  nntohost        P((struct sockaddr_storage *));
83
84
extern  int     decodets        P((char *, l_fp *));
84
85
extern  int     decodeuint      P((char *, u_long *));
85
86
extern  int     nextvar         P((int *, char **, char **, char **));