~ubuntu-branches/ubuntu/wily/tcpreen/wily

« back to all changes in this revision

Viewing changes to src/tcpreen.h

  • Committer: Bazaar Package Importer
  • Author(s): Oliver Kurth
  • Date: 2003-03-04 23:19:35 UTC
  • Revision ID: james.westby@ubuntu.com-20030304231935-rlvnd0mv4be1n8rn
Tags: upstream-1.2.2
Import upstream version 1.2.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * tcpreen.h - header for tcpreen.c
 
3
 * $Id: tcpreen.h,v 1.6 2003/01/26 09:09:08 rdenisc Exp $
 
4
 */
 
5
 
 
6
/***********************************************************************
 
7
 *  Copyright (C) 2002-2003 R�mi Denis-Courmont.                       *
 
8
 *  This program is free software; you can redistribute and/or modify  *
 
9
 *  it under the terms of the GNU General Public License as published  *
 
10
 *  by the Free Software Foundation; version 2 of the license.         *
 
11
 *                                                                     *
 
12
 *  This program is distributed in the hope that it will be useful,    *
 
13
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of     *
 
14
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.               *
 
15
 *  See the GNU General Public License for more details.               *
 
16
 *                                                                     *
 
17
 *  You should have received a copy of the GNU General Pulic License   *
 
18
 *  along with this program; if not, you can get it from:              *
 
19
 *  http://www.gnu.org/copyleft/gpl.html                               *
 
20
 ***********************************************************************/
 
21
 
 
22
#ifndef __TCPREEN_TCPREEN_H
 
23
 
 
24
# define _TCPREEN_TCPREEN_H
 
25
# ifdef HAVE_SYS_TYPES_H
 
26
#  include <sys/types.h> /* uid_t */
 
27
# endif
 
28
 
 
29
# include "log.h"
 
30
# include "socketinfo.h"
 
31
 
 
32
enum
 
33
{
 
34
        tcpreen_normal=0x00,
 
35
        tcpreen_listen_both=0x01,
 
36
        tcpreen_connect_both=0x02,
 
37
        tcpreen_reversed=0x03, /* warning */
 
38
        tcpreen_numeric=0x04,
 
39
        tcpreen_daemon=0x08,
 
40
        tcpreen_syslog=0x10,
 
41
        tcpreen_verbose=0x20,
 
42
        tcpreen_speak=0x30
 
43
};
 
44
 
 
45
struct bridgeconf
 
46
{
 
47
        struct sockhostinfo server, bridge;
 
48
        DataLogListMaker *logmaker;
 
49
        int mode, maxclients;
 
50
        long bytelimit, totalclients;
 
51
        uid_t priv, unpriv;
 
52
};
 
53
 
 
54
int bridge_main (const struct bridgeconf *conf);
 
55
#endif
 
56