~ubuntu-branches/ubuntu/lucid/openssh/lucid

« back to all changes in this revision

Viewing changes to readconf.h

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2005-10-10 20:10:01 UTC
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20051010201001-rno2f5bno6e6wo6t
Tags: upstream-4.1p1
ImportĀ upstreamĀ versionĀ 4.1p1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*      $OpenBSD: readconf.h,v 1.64 2004/07/11 17:48:47 deraadt Exp $   */
 
1
/*      $OpenBSD: readconf.h,v 1.66 2005/03/01 10:40:27 djm Exp $       */
2
2
 
3
3
/*
4
4
 * Author: Tatu Ylonen <ylo@cs.hut.fi>
21
21
/* Data structure for representing a forwarding request. */
22
22
 
23
23
typedef struct {
24
 
        u_short   port;         /* Port to forward. */
25
 
        char     *host;         /* Host to connect. */
26
 
        u_short   host_port;    /* Port to connect on host. */
 
24
        char     *listen_host;          /* Host (address) to listen on. */
 
25
        u_short   listen_port;          /* Port to forward. */
 
26
        char     *connect_host;         /* Host to connect. */
 
27
        u_short   connect_port;         /* Port to connect on connect_host. */
27
28
}       Forward;
28
29
/* Data structure for representing option data. */
29
30
 
111
112
 
112
113
        char    *control_path;
113
114
        int     control_master;
 
115
 
 
116
        int     hash_known_hosts;
114
117
}       Options;
115
118
 
116
119
 
117
120
void     initialize_options(Options *);
118
121
void     fill_default_options(Options *);
119
122
int      read_config_file(const char *, const char *, Options *, int);
 
123
int      parse_forward(Forward *, const char *);
120
124
 
121
125
int
122
126
process_config_line(Options *, const char *, char *, const char *, int, int *);
123
127
 
124
 
void     add_local_forward(Options *, u_short, const char *, u_short);
125
 
void     add_remote_forward(Options *, u_short, const char *, u_short);
 
128
void     add_local_forward(Options *, const Forward *);
 
129
void     add_remote_forward(Options *, const Forward *);
126
130
 
127
131
#endif                          /* READCONF_H */