"Fossies" - the Fresh Open Source Software Archive 
Member "portfwd-0.29/src/solve.h" (6 May 2002, 760 Bytes) of package /linux/privat/old/portfwd-0.29.tar.gz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style:
standard) with prefixed line numbers and
code folding option.
Alternatively you can here
view or
download the uninterpreted source code file.
1 /*
2 solve.h
3
4 $Id: solve.h,v 1.2 2002/05/06 03:02:40 evertonm Exp $
5 */
6
7 #ifndef SOLVE_H
8 #define SOLVE_H
9
10 #include <pwd.h>
11 #include <grp.h>
12 #include <sys/types.h>
13 #include "addr.h"
14
15 enum proto_t { P_TCP, P_UDP };
16
17 extern const int FIRST_PORT;
18 extern const int LAST_PORT;
19
20 const char *get_protoname(proto_t proto);
21 void solve_protonumbers();
22 int get_protonumber(proto_t proto);
23 int solve_portnumber(const char *portname, const char *protoname);
24 int solve_port(const char *portname, const char *protoname);
25 int solve_hostname_addr(char *buf, size_t *buf_len, const char *hostname);
26 struct ip_addr solve_hostname(const char *hostname);
27 uid_t solve_user(const char *username);
28 gid_t solve_group(const char *groupname);
29
30 #endif /* SOLVE_H */
31
32 /* Eof: solve.h */
33