## -*-makefile-*-
##
-## $Id: Makefile.am,v 1.7 2003/11/29 20:36:07 mdw Exp $
+## $Id: Makefile.am,v 1.8 2004/04/08 01:36:25 mdw Exp $
##
## Makefile for fw
##
## along with `fw'; if not, write to the Free Software Foundation,
## Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##----- Revision history ----------------------------------------------------
-##
-## $Log: Makefile.am,v $
-## Revision 1.7 2003/11/29 20:36:07 mdw
-## Privileged outgoing connections.
-##
-## Revision 1.6 2003/11/25 14:08:23 mdw
-## Debianization. Socket target options. Internet binding.
-##
-## Revision 1.5 1999/11/11 19:08:27 mdw
-## Build separately from mLib.
-##
-## Revision 1.4 1999/10/10 16:47:16 mdw
-## Moved some files to mLib.
-##
-## Revision 1.3 1999/07/26 23:30:06 mdw
-## Lots of changes to source files for new design.
-##
-## Revision 1.2 1999/07/03 13:53:27 mdw
-## Install and distribute new manual page.
-##
-## Revision 1.1.1.1 1999/07/01 08:56:23 mdw
-## Initial revision.
-##
-
AUTOMAKE_OPTIONS = foreign
bin_PROGRAMS = fw
/* -*-c-*-
*
- * $Id: acconfig.h,v 1.3 2003/01/24 20:11:14 mdw Exp $
+ * $Id: acconfig.h,v 1.4 2004/04/08 01:36:25 mdw Exp $
*
* Configuration header for fw
*
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: acconfig.h,v $
- * Revision 1.3 2003/01/24 20:11:14 mdw
- * Don't do resource limits on Cygwin.
- *
- * Revision 1.2 1999/07/26 23:29:02 mdw
- * Add DECL_ENVIRON.
- *
- * Revision 1.1.1.1 1999/07/01 08:56:23 mdw
- * Initial revision.
- *
- */
-
#ifndef ACCONFIG_H
#define ACCONFIG_H
/* -*-c-*-
*
- * $Id: acl.c,v 1.4 2003/11/25 14:08:23 mdw Exp $
+ * $Id: acl.c,v 1.5 2004/04/08 01:36:25 mdw Exp $
*
* Access control list handling
*
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: acl.c,v $
- * Revision 1.4 2003/11/25 14:08:23 mdw
- * Debianization. Socket target options. Internet binding.
- *
- * Revision 1.3 1999/07/27 18:30:53 mdw
- * Various minor portability fixes.
- *
- * Revision 1.2 1999/07/26 23:28:15 mdw
- * Minor modifications for new design.
- *
- * Revision 1.1.1.1 1999/07/01 08:56:23 mdw
- * Initial revision.
- *
- */
-
/*----- Header files ------------------------------------------------------*/
#include "config.h"
/* -*-c-*-
*
- * $Id: acl.h,v 1.4 2003/11/25 14:08:23 mdw Exp $
+ * $Id: acl.h,v 1.5 2004/04/08 01:36:25 mdw Exp $
*
* Access control list handling
*
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: acl.h,v $
- * Revision 1.4 2003/11/25 14:08:23 mdw
- * Debianization. Socket target options. Internet binding.
- *
- * Revision 1.3 1999/07/27 18:30:53 mdw
- * Various minor portability fixes.
- *
- * Revision 1.2 1999/07/26 23:28:16 mdw
- * Minor modifications for new design.
- *
- * Revision 1.1.1.1 1999/07/01 08:56:23 mdw
- * Initial revision.
- *
- */
-
#ifndef ACL_H
#define ACL_H
/* -*-c-*-
*
- * $Id: addr.h,v 1.4 2003/11/29 20:36:07 mdw Exp $
+ * $Id: addr.h,v 1.5 2004/04/08 01:36:25 mdw Exp $
*
* Generic interface to network address handlers
*
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: addr.h,v $
- * Revision 1.4 2003/11/29 20:36:07 mdw
- * Privileged outgoing connections.
- *
- * Revision 1.3 2003/11/25 14:08:23 mdw
- * Debianization. Socket target options. Internet binding.
- *
- * Revision 1.2 1999/07/27 18:30:53 mdw
- * Various minor portability fixes.
- *
- * Revision 1.1 1999/07/26 23:34:26 mdw
- * Socket address type management.
- *
- */
-
#ifndef ADDR_H
#define ADDR_H
/* -*-c-*-
*
- * $Id: chan.c,v 1.6 2003/10/31 13:56:14 mdw Exp $
+ * $Id: chan.c,v 1.7 2004/04/08 01:36:25 mdw Exp $
*
* Channel management
*
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: chan.c,v $
- * Revision 1.6 2003/10/31 13:56:14 mdw
- * Fix data corruption in channel\!
- *
- * Revision 1.5 2000/07/19 17:55:43 mdw
- * (writechan): Pointless tweak: when the buffer is empty, reset the start
- * pointer to the beginning. This saves doing slightly trickier
- * @writev(2)@ calls when loading is light.
- *
- * Revision 1.4 1999/08/31 17:42:49 mdw
- * Use `sel_force' to avoid a `select' call between reads and writes.
- *
- * Revision 1.3 1999/07/27 18:30:53 mdw
- * Various minor portability fixes.
- *
- * Revision 1.2 1999/07/26 23:27:52 mdw
- * Minor modifications for new design.
- *
- * Revision 1.1.1.1 1999/07/01 08:56:23 mdw
- * Initial revision.
- *
- */
-
/*----- Header files ------------------------------------------------------*/
#include "config.h"
/* -*-c-*-
*
- * $Id: chan.h,v 1.2 1999/07/26 23:27:42 mdw Exp $
+ * $Id: chan.h,v 1.3 2004/04/08 01:36:25 mdw Exp $
*
* Channel management
*
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: chan.h,v $
- * Revision 1.2 1999/07/26 23:27:42 mdw
- * Change copyright notice.
- *
- * Revision 1.1.1.1 1999/07/01 08:56:23 mdw
- * Initial revision.
- *
- */
-
#ifndef CHAN_H
#define CHAN_H
/* -*-c-*-
*
- * $Id: conf.c,v 1.10 2002/02/22 23:42:56 mdw Exp $
+ * $Id: conf.c,v 1.11 2004/04/08 01:36:25 mdw Exp $
*
* Configuration parsing
*
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: conf.c,v $
- * Revision 1.10 2002/02/22 23:42:56 mdw
- * `fw'-specific configuration code moved out. This file might become part
- * of a library some day.
- *
- * Revision 1.9 2002/01/13 14:48:16 mdw
- * Make delimiters be a property of a scanner. Change the delimiter-
- * changing functions' names.
- *
- * Revision 1.8 2001/02/03 20:33:26 mdw
- * Fix flags to be unsigned.
- *
- * Revision 1.7 2000/08/01 17:58:10 mdw
- * Fix subtleties with <ctype.h> functions.
- *
- * Revision 1.6 2000/02/12 18:13:20 mdw
- * Terminate tables of sources and targets.
- *
- * Revision 1.5 1999/10/22 22:46:44 mdw
- * Improve documentation for conf_enum.
- *
- * Revision 1.4 1999/10/15 21:12:36 mdw
- * Remove redundant debugging code.
- *
- * Revision 1.3 1999/08/19 18:32:48 mdw
- * Improve lexical analysis. In particular, `chmod' patterns don't have to
- * be quoted any more.
- *
- * Revision 1.2 1999/07/26 23:28:39 mdw
- * Major reconstruction work for new design.
- *
- * Revision 1.1.1.1 1999/07/01 08:56:23 mdw
- * Initial revision.
- *
- */
-
/*----- Header files ------------------------------------------------------*/
#include <ctype.h>
/* -*-c-*-
*
- * $Id: conf.h,v 1.8 2003/11/25 14:08:23 mdw Exp $
+ * $Id: conf.h,v 1.9 2004/04/08 01:36:25 mdw Exp $
*
* Configuration parsing
*
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: conf.h,v $
- * Revision 1.8 2003/11/25 14:08:23 mdw
- * Debianization. Socket target options. Internet binding.
- *
- * Revision 1.7 2002/02/22 23:42:56 mdw
- * `fw'-specific configuration code moved out. This file might become part
- * of a library some day.
- *
- * Revision 1.6 2002/01/13 14:48:16 mdw
- * Make delimiters be a property of a scanner. Change the delimiter-
- * changing functions' names.
- *
- * Revision 1.5 1999/10/22 22:46:44 mdw
- * Improve documentation for conf_enum.
- *
- * Revision 1.4 1999/08/19 18:32:48 mdw
- * Improve lexical analysis. In particular, `chmod' patterns don't have to
- * be quoted any more.
- *
- * Revision 1.3 1999/07/27 18:30:14 mdw
- * Improve documentation and layout for @CONF_BEGIN@ and friends. Remove
- * irritating warning about unused label by introducing a spurious `goto'.
- *
- * Revision 1.2 1999/07/26 23:28:39 mdw
- * Major reconstruction work for new design.
- *
- * Revision 1.1.1.1 1999/07/01 08:56:23 mdw
- * Initial revision.
- *
- */
-
#ifndef CONF_H
#define CONF_H
dnl -*-m4-*-
dnl
-dnl $Id: configure.in,v 1.17 2003/11/29 20:45:41 mdw Exp $
+dnl $Id: configure.in,v 1.18 2004/04/08 01:36:25 mdw Exp $
dnl
dnl Configuration script for fw
dnl
dnl along with `fw'; if not, write to the Free Software Foundation,
dnl Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-dnl ----- Revision history --------------------------------------------------
-dnl
-dnl $Log: configure.in,v $
-dnl Revision 1.17 2003/11/29 20:45:41 mdw
-dnl Require mLib 2.0.3 for connection stuff.
-dnl
-dnl Revision 1.16 2003/11/25 14:11:18 mdw
-dnl Preliminary bump to 1.2.7.
-dnl
-dnl Revision 1.15 2003/11/25 14:08:23 mdw
-dnl Debianization. Socket target options. Internet binding.
-dnl
-dnl Revision 1.14 2003/05/17 12:33:55 mdw
-dnl Version bump.
-dnl
-dnl Revision 1.13 2002/01/13 14:48:39 mdw
-dnl Check for @getnetbyname@, since it appears not to be available under
-dnl Cygwin.
-dnl
-dnl Revision 1.12 2001/02/03 20:30:15 mdw
-dnl Version bump.
-dnl
-dnl Revision 1.11 2000/07/01 11:28:52 mdw
-dnl Use new mLib selbuf features.
-dnl
-dnl Revision 1.10 2000/03/23 23:26:29 mdw
-dnl Require later mLib for sel.c bugfixes.
-dnl
-dnl Revision 1.6 1999/11/11 19:08:27 mdw
-dnl Build separately from mLib.
-dnl
-dnl Revision 1.3 1999/07/27 18:30:53 mdw
-dnl Various minor portability fixes.
-dnl
-dnl Revision 1.2 1999/07/26 23:35:09 mdw
-dnl Relatively minor changes to support new functionality.
-dnl
-dnl Revision 1.1.1.1 1999/07/01 08:56:23 mdw
-dnl Initial revision.
-dnl
-
AC_INIT(fw.c)
AM_INIT_AUTOMAKE(fw, 1.2.7)
AM_CONFIG_HEADER(config.h)
/* -*-c-*-
*
- * $Id: endpt.c,v 1.3 2000/08/01 17:58:25 mdw Exp $
+ * $Id: endpt.c,v 1.4 2004/04/08 01:36:25 mdw Exp $
*
* Generic endpoint abstraction
*
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: endpt.c,v $
- * Revision 1.3 2000/08/01 17:58:25 mdw
- * Include missing <mLib/alloc.h> header.
- *
- * Revision 1.2 1999/10/22 22:46:17 mdw
- * When a non-file endpoint is attached to a file, keep the file endpoint
- * open until the nonfile is done. This stops socket sources from
- * resetting their connection limits too early.
- *
- * Revision 1.1 1999/07/26 23:33:01 mdw
- * Infrastructure for the new design.
- *
- */
-
/*----- Header files ------------------------------------------------------*/
#include "config.h"
/* -*-c-*-
*
- * $Id: endpt.h,v 1.2 1999/10/22 22:46:17 mdw Exp $
+ * $Id: endpt.h,v 1.3 2004/04/08 01:36:25 mdw Exp $
*
* Generic endpoint abstraction
*
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: endpt.h,v $
- * Revision 1.2 1999/10/22 22:46:17 mdw
- * When a non-file endpoint is attached to a file, keep the file endpoint
- * open until the nonfile is done. This stops socket sources from
- * resetting their connection limits too early.
- *
- * Revision 1.1 1999/07/26 23:33:01 mdw
- * Infrastructure for the new design.
- *
- */
-
#ifndef ENDPT_H
#define ENDPT_H
/* -*-c-*-
*
- * $Id: exec.c,v 1.8 2003/11/29 20:36:07 mdw Exp $
+ * $Id: exec.c,v 1.9 2004/04/08 01:36:25 mdw Exp $
*
* Source and target for executable programs
*
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: exec.c,v $
- * Revision 1.8 2003/11/29 20:36:07 mdw
- * Privileged outgoing connections.
- *
- * Revision 1.7 2003/01/24 20:12:26 mdw
- * Correctly cast uid and gid sentinel values. Parse full filenames in
- * exec arguments (can't do it for program, unfortunately, since the die is
- * cast).
- *
- * Revision 1.6 2002/02/22 23:43:32 mdw
- * Call @xfree@ rather than @free@.
- *
- * Revision 1.5 2002/01/13 14:49:03 mdw
- * Track @lbuf@ changes in mLib.
- *
- * Revision 1.4 2001/02/03 20:30:03 mdw
- * Support re-reading config files on SIGHUP.
- *
- * Revision 1.3 2000/07/01 11:28:52 mdw
- * Use new mLib selbuf features.
- *
- * Revision 1.2 1999/10/22 22:46:17 mdw
- * When a non-file endpoint is attached to a file, keep the file endpoint
- * open until the nonfile is done. This stops socket sources from
- * resetting their connection limits too early.
- *
- * Revision 1.1 1999/07/26 23:33:32 mdw
- * New sources and targets.
- *
- */
-
/*----- Header files ------------------------------------------------------*/
#include "config.h"
/* -*-c-*-
*
- * $Id: exec.h,v 1.1 1999/07/26 23:33:32 mdw Exp $
+ * $Id: exec.h,v 1.2 2004/04/08 01:36:25 mdw Exp $
*
* Source and target for executable programs
*
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: exec.h,v $
- * Revision 1.1 1999/07/26 23:33:32 mdw
- * New sources and targets.
- *
- */
-
#ifndef EXEC_H
#define EXEC_H
/* -*-c-*-
*
- * $Id: fattr.c,v 1.3 2002/01/13 14:50:22 mdw Exp $
+ * $Id: fattr.c,v 1.4 2004/04/08 01:36:25 mdw Exp $
*
* Handling of file attributes
*
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: fattr.c,v $
- * Revision 1.3 2002/01/13 14:50:22 mdw
- * Delimiter-setting function names change.
- *
- * Revision 1.2 1999/08/19 18:32:48 mdw
- * Improve lexical analysis. In particular, `chmod' patterns don't have to
- * be quoted any more.
- *
- * Revision 1.1 1999/07/26 23:33:56 mdw
- * Support code for new design.
- *
- */
-
/*----- Header files ------------------------------------------------------*/
#include "config.h"
/* -*-c-*-
*
- * $Id: fattr.h,v 1.1 1999/07/26 23:33:56 mdw Exp $
+ * $Id: fattr.h,v 1.2 2004/04/08 01:36:25 mdw Exp $
*
* Handling of file attributes
*
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: fattr.h,v $
- * Revision 1.1 1999/07/26 23:33:56 mdw
- * Support code for new design.
- *
- */
-
#ifndef FATTR_H
#define FATTR_H
/* -*-c-*-
*
- * $Id: file.c,v 1.6 2003/11/29 20:36:07 mdw Exp $
+ * $Id: file.c,v 1.7 2004/04/08 01:36:25 mdw Exp $
*
* File source and target
*
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: file.c,v $
- * Revision 1.6 2003/11/29 20:36:07 mdw
- * Privileged outgoing connections.
- *
- * Revision 1.5 2002/02/22 23:43:32 mdw
- * Call @xfree@ rather than @free@.
- *
- * Revision 1.4 2001/02/03 20:30:03 mdw
- * Support re-reading config files on SIGHUP.
- *
- * Revision 1.3 1999/12/22 15:43:47 mdw
- * Fix log messages.
- *
- * Revision 1.2 1999/10/22 22:47:13 mdw
- * New (empty) endpoint method required.
- *
- * Revision 1.1 1999/07/26 23:33:32 mdw
- * New sources and targets.
- *
- */
-
/*----- Header files ------------------------------------------------------*/
#include "config.h"
/* -*-c-*-
*
- * $Id: file.h,v 1.1 1999/07/26 23:33:32 mdw Exp $
+ * $Id: file.h,v 1.2 2004/04/08 01:36:25 mdw Exp $
*
* File source and target
*
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: file.h,v $
- * Revision 1.1 1999/07/26 23:33:32 mdw
- * New sources and targets.
- *
- */
-
#ifndef FILE_H
#define FILE_H
.\" -*-nroff-*-
.\"
-.\" $Id: fw.1,v 1.18 2003/11/29 23:03:19 mdw Exp $
+.\" $Id: fw.1,v 1.19 2004/04/08 01:36:25 mdw Exp $
.\"
.\" Manual page for fw
.\"
.\" along with `fw'; if not, write to the Free Software Foundation,
.\" Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
.
-.\" ---- Revision history ---------------------------------------------------
-.\"
-.\" $Log: fw.1,v $
-.\" Revision 1.18 2003/11/29 23:03:19 mdw
-.\" Little formatting fixes.
-.\"
-.\" Revision 1.17 2003/11/29 20:36:07 mdw
-.\" Privileged outgoing connections.
-.\"
-.\" Revision 1.16 2003/11/25 14:46:50 mdw
-.\" Update docco for new options.
-.\"
-.\" Revision 1.15 2003/01/24 20:13:04 mdw
-.\" Fix bogus examples. Explain quoting rules for `exec' endpoints.
-.\"
-.\" Revision 1.14 2002/02/23 00:05:12 mdw
-.\" Fix spacing around full stops (at last!).
-.\"
-.\" Revision 1.13 2002/02/22 23:45:01 mdw
-.\" Add option to change the listen(2) parameter.
-.\"
-.\" Revision 1.12 2001/02/23 09:11:29 mdw
-.\" Update manual style.
-.\"
-.\" Revision 1.11 2001/02/05 19:47:11 mdw
-.\" Minor fixings to wording.
-.\"
-.\" Revision 1.10 2001/02/03 20:30:03 mdw
-.\" Support re-reading config files on SIGHUP.
-.\"
-.\" Revision 1.9 2000/03/23 00:37:33 mdw
-.\" Add option to change user and group after initialization. Naughtily
-.\" reassign short equivalents of --grammar and --options.
-.\"
-.\" Revision 1.8 1999/12/22 15:44:43 mdw
-.\" Fix some errors, and document new option.
-.\"
-.\" Revision 1.7 1999/10/22 22:45:15 mdw
-.\" Describe new socket connection options.
-.\"
-.\" Revision 1.6 1999/10/10 16:46:29 mdw
-.\" Include grammar and options references at the end of the manual.
-.\"
-.\" Revision 1.5 1999/09/26 18:18:05 mdw
-.\" Remove a fixed bug from the list. Fix some nasty formatting
-.\" misfeatures.
-.\"
-.\" Revision 1.4 1999/08/19 18:32:48 mdw
-.\" Improve lexical analysis. In particular, `chmod' patterns don't have to
-.\" be quoted any more.
-.\"
-.\" Revision 1.3 1999/07/30 06:49:00 mdw
-.\" Minor tidying and typo correction.
-.\"
-.\" Revision 1.2 1999/07/26 23:31:04 mdw
-.\" Document lots of new features and syntax.
-.\"
-.
.\"----- Various bits of fancy styling --------------------------------------
.
.\" --- Indented paragraphs with right-aligned tags ---
/* -*-c-*-
*
- * $Id: fw.c,v 1.16 2003/11/29 20:36:07 mdw Exp $
+ * $Id: fw.c,v 1.17 2004/04/08 01:36:25 mdw Exp $
*
* Port forwarding thingy
*
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: fw.c,v $
- * Revision 1.16 2003/11/29 20:36:07 mdw
- * Privileged outgoing connections.
- *
- * Revision 1.15 2003/11/25 14:46:50 mdw
- * Update docco for new options.
- *
- * Revision 1.14 2003/01/24 20:12:40 mdw
- * Correctly cast uid and gid sentinel values.
- *
- * Revision 1.13 2002/02/22 23:45:20 mdw
- * Add option to change the listen(2) parameter. Receive `fw'-specific
- * code from `conf.c'.
- *
- * Revision 1.12 2002/01/13 14:49:17 mdw
- * Track @dstr_vputf@ change.
- *
- * Revision 1.11 2001/02/03 20:33:26 mdw
- * Fix flags to be unsigned.
- *
- * Revision 1.10 2001/02/03 20:30:03 mdw
- * Support re-reading config files on SIGHUP.
- *
- * Revision 1.9 2001/01/20 11:55:17 mdw
- * Handle select errors more robustly.
- *
- * Revision 1.8 2000/03/23 23:19:19 mdw
- * Fix changed options in parser table.
- *
- * Revision 1.7 2000/03/23 00:37:33 mdw
- * Add option to change user and group after initialization. Naughtily
- * reassign short equivalents of --grammar and --options.
- *
- * Revision 1.6 1999/12/22 15:44:10 mdw
- * Make syslog a separate option, and do it better.
- *
- * Revision 1.5 1999/10/22 22:47:50 mdw
- * Grammar changes. Also, don't enable SIGINT if it's currently ignored.
- *
- * Revision 1.4 1999/10/10 16:46:12 mdw
- * New resolver to initialize. Also, include options for grammar and
- * options references.
- *
- * Revision 1.3 1999/07/26 23:30:42 mdw
- * Major reconstruction work for new design.
- *
- * Revision 1.2 1999/07/03 13:55:17 mdw
- * Various changes. Add configuration grammar to help text. Change to
- * root directory and open syslog when forking into background.
- *
- * Revision 1.1.1.1 1999/07/01 08:56:23 mdw
- * Initial revision.
- *
- */
-
/*----- Header files ------------------------------------------------------*/
#include "config.h"
/* -*-c-*-
*
- * $Id: fw.h,v 1.3 1999/07/26 23:30:42 mdw Exp $
+ * $Id: fw.h,v 1.4 2004/04/08 01:36:25 mdw Exp $
*
* Main header file for port forwarder
*
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: fw.h,v $
- * Revision 1.3 1999/07/26 23:30:42 mdw
- * Major reconstruction work for new design.
- *
- * Revision 1.2 1999/07/03 13:56:33 mdw
- * Add flag saying whether to log messages to syslog or stderr.
- *
- * Revision 1.1.1.1 1999/07/01 08:56:23 mdw
- * Initial revision.
- *
- */
-
#ifndef FW_H
#define FW_H
/* -*-c-*-
*
- * $Id: identify.c,v 1.10 2003/11/29 22:15:19 mdw Exp $
+ * $Id: identify.c,v 1.11 2004/04/08 01:36:25 mdw Exp $
*
* Identifies and logs the client of a connection
*
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: identify.c,v $
- * Revision 1.10 2003/11/29 22:15:19 mdw
- * And a typo fix.
- *
- * Revision 1.9 2003/11/29 22:13:43 mdw
- * Fix bug in identification timout handling.
- *
- * Revision 1.8 2003/11/29 20:36:07 mdw
- * Privileged outgoing connections.
- *
- * Revision 1.7 2002/02/22 23:43:32 mdw
- * Call @xfree@ rather than @free@.
- *
- * Revision 1.6 2001/06/22 19:36:49 mdw
- * Enlarge the identity buffer.
- *
- * Revision 1.5 1999/10/10 16:45:34 mdw
- * Modified to use new mLib resolver and ident client.
- *
- * Revision 1.4 1999/07/27 18:30:53 mdw
- * Various minor portability fixes.
- *
- * Revision 1.3 1999/07/26 23:26:21 mdw
- * Minor modifications for new design.
- *
- * Revision 1.2 1999/07/03 13:56:59 mdw
- * Log connections to syslog or stderr as appropriate.
- *
- * Revision 1.1.1.1 1999/07/01 08:56:23 mdw
- * Initial revision.
- *
- */
-
/*----- Header files ------------------------------------------------------*/
#include "config.h"
/* -*-c-*-
*
- * $Id: identify.h,v 1.3 1999/07/27 18:30:53 mdw Exp $
+ * $Id: identify.h,v 1.4 2004/04/08 01:36:25 mdw Exp $
*
* Identifies and logs the client of a connection
*
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: identify.h,v $
- * Revision 1.3 1999/07/27 18:30:53 mdw
- * Various minor portability fixes.
- *
- * Revision 1.2 1999/07/26 23:26:21 mdw
- * Minor modifications for new design.
- *
- * Revision 1.1.1.1 1999/07/01 08:56:23 mdw
- * Initial revision.
- *
- */
-
#ifndef IDENTIFY_H
#define IDENTIFY_H
/* -*-c-*-
*
- * $Id: inet.c,v 1.6 2003/11/29 20:36:07 mdw Exp $
+ * $Id: inet.c,v 1.7 2004/04/08 01:36:25 mdw Exp $
*
* Protocol specific definitions for IPv4 sockets
*
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: inet.c,v $
- * Revision 1.6 2003/11/29 20:36:07 mdw
- * Privileged outgoing connections.
- *
- * Revision 1.5 2003/11/25 14:08:23 mdw
- * Debianization. Socket target options. Internet binding.
- *
- * Revision 1.4 2002/01/13 14:49:56 mdw
- * Conditional compilation for @getnetbyname@, since Cygwin doesn't have
- * it.
- *
- * Revision 1.3 2000/08/01 17:59:56 mdw
- * Switch over to using `size_t' for socket address lengths.
- *
- * Revision 1.2 1999/07/27 18:30:53 mdw
- * Various minor portability fixes.
- *
- * Revision 1.1 1999/07/26 23:34:11 mdw
- * New socket address types.
- *
- */
-
/*----- Header files ------------------------------------------------------*/
#include "config.h"
/* -*-c-*-
*
- * $Id: inet.h,v 1.1 1999/07/26 23:34:11 mdw Exp $
+ * $Id: inet.h,v 1.2 2004/04/08 01:36:25 mdw Exp $
*
* Protocol specific definitions for IPv4 sockets
*
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: inet.h,v $
- * Revision 1.1 1999/07/26 23:34:11 mdw
- * New socket address types.
- *
- */
-
#ifndef INET_H
#define INET_H
/* -*-c-*-
*
- * $Id: privconn.c,v 1.2 2003/11/29 20:43:01 mdw Exp $
+ * $Id: privconn.c,v 1.3 2004/04/08 01:36:25 mdw Exp $
*
* Making privileged connections
*
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: privconn.c,v $
- * Revision 1.2 2003/11/29 20:43:01 mdw
- * Don't do priv separation if no priv connections to make.
- *
- * Revision 1.1 2003/11/29 20:36:07 mdw
- * Privileged outgoing connections.
- *
- */
-
/*----- Header files ------------------------------------------------------*/
#include <assert.h>
/* -*-c-*-
*
- * $Id: privconn.h,v 1.1 2003/11/29 20:36:07 mdw Exp $
+ * $Id: privconn.h,v 1.2 2004/04/08 01:36:25 mdw Exp $
*
* Making privileged connections
*
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: privconn.h,v $
- * Revision 1.1 2003/11/29 20:36:07 mdw
- * Privileged outgoing connections.
- *
- */
-
#ifndef PRIVCONN_H
#define PRIVCONN_H
/* -*-c-*-
*
- * $Id: reffd.c,v 1.1 1999/07/26 23:33:01 mdw Exp $
+ * $Id: reffd.c,v 1.2 2004/04/08 01:36:25 mdw Exp $
*
* Reference counted file descriptors
*
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: reffd.c,v $
- * Revision 1.1 1999/07/26 23:33:01 mdw
- * Infrastructure for the new design.
- *
- */
-
/*----- Header files ------------------------------------------------------*/
#include <stdio.h>
/* -*-c-*-
*
- * $Id: reffd.h,v 1.1 1999/07/26 23:33:01 mdw Exp $
+ * $Id: reffd.h,v 1.2 2004/04/08 01:36:25 mdw Exp $
*
* Reference counted file descriptors
*
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: reffd.h,v $
- * Revision 1.1 1999/07/26 23:33:01 mdw
- * Infrastructure for the new design.
- *
- */
-
#ifndef REFFD_H
#define REFFD_H
/* -*-c-*-
*
- * $Id: rlimits.h,v 1.1 1999/07/26 23:33:56 mdw Exp $
+ * $Id: rlimits.h,v 1.2 2004/04/08 01:36:25 mdw Exp $
*
* List of resource limits known to mankind
*
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: rlimits.h,v $
- * Revision 1.1 1999/07/26 23:33:56 mdw
- * Support code for new design.
- *
- */
-
/*----- Magic -------------------------------------------------------------*/
#ifndef R
/* -*-c-*-
*
- * $Id: scan.c,v 1.6 2002/02/22 23:44:16 mdw Exp $
+ * $Id: scan.c,v 1.7 2004/04/08 01:36:25 mdw Exp $
*
* Character scanners
*
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: scan.c,v $
- * Revision 1.6 2002/02/22 23:44:16 mdw
- * Miscellaneous tidying up, to make this code independent of `fw'. It
- * might end up in a library somewhere.
- *
- * Revision 1.5 2002/01/30 09:29:34 mdw
- * Initialize scanner properly.
- *
- * Revision 1.4 2001/02/03 20:30:03 mdw
- * Support re-reading config files on SIGHUP.
- *
- * Revision 1.3 2000/08/01 17:58:10 mdw
- * Fix subtleties with <ctype.h> functions.
- *
- * Revision 1.2 1999/07/26 23:24:33 mdw
- * Complete rewrite. Allow a list of character sources to enable changes
- * during parsing of syntactic constructs.
- *
- * Revision 1.1.1.1 1999/07/01 08:56:23 mdw
- * Initial revision.
- *
- */
-
/*----- Header files ------------------------------------------------------*/
#include <stdio.h>
/* -*-c-*-
*
- * $Id: scan.h,v 1.4 2002/02/22 23:44:16 mdw Exp $
+ * $Id: scan.h,v 1.5 2004/04/08 01:36:25 mdw Exp $
*
* Character scanners
*
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: scan.h,v $
- * Revision 1.4 2002/02/22 23:44:16 mdw
- * Miscellaneous tidying up, to make this code independent of `fw'. It
- * might end up in a library somewhere.
- *
- * Revision 1.3 2002/01/13 14:50:07 mdw
- * Make delimiters be a property of a scanner.
- *
- * Revision 1.2 1999/07/26 23:24:33 mdw
- * Complete rewrite. Allow a list of character sources to enable changes
- * during parsing of syntactic constructs.
- *
- * Revision 1.1.1.1 1999/07/01 08:56:23 mdw
- * Initial revision.
- *
- */
-
#ifndef SCAN_H
#define SCAN_H
/* -*-c-*-
*
- * $Id: socket.c,v 1.11 2003/11/29 20:36:07 mdw Exp $
+ * $Id: socket.c,v 1.12 2004/04/08 01:36:25 mdw Exp $
*
* Socket source and target definitions
*
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: socket.c,v $
- * Revision 1.11 2003/11/29 20:36:07 mdw
- * Privileged outgoing connections.
- *
- * Revision 1.10 2003/11/25 14:08:23 mdw
- * Debianization. Socket target options. Internet binding.
- *
- * Revision 1.9 2002/02/23 00:08:00 mdw
- * Fix stupid bugs from the listen(2) change.
- *
- * Revision 1.8 2002/02/22 23:44:44 mdw
- * Call @xfree@ rather than @free@. Add option to change the listen(2)
- * parameter.
- *
- * Revision 1.7 2001/06/22 19:37:00 mdw
- * New @conn_init@ interface.
- *
- * Revision 1.6 2001/02/03 20:30:03 mdw
- * Support re-reading config files on SIGHUP.
- *
- * Revision 1.5 2000/03/23 23:20:42 mdw
- * Remove listener even if connection option isn't SOCKOPT_LIMITED.
- *
- * Revision 1.4 1999/12/22 15:44:25 mdw
- * Fix log message.
- *
- * Revision 1.3 1999/10/22 22:48:36 mdw
- * New connection options: unlimited concurrent connections, and one-shot
- * listening sockets.
- *
- * Revision 1.2 1999/07/27 18:30:53 mdw
- * Various minor portability fixes.
- *
- * Revision 1.1 1999/07/26 23:33:32 mdw
- * New sources and targets.
- *
- */
-
/*----- Header files ------------------------------------------------------*/
#include "config.h"
/* -*-c-*-
*
- * $Id: socket.h,v 1.2 2003/11/25 14:08:23 mdw Exp $
+ * $Id: socket.h,v 1.3 2004/04/08 01:36:25 mdw Exp $
*
* Socket source and target definitions
*
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: socket.h,v $
- * Revision 1.2 2003/11/25 14:08:23 mdw
- * Debianization. Socket target options. Internet binding.
- *
- * Revision 1.1 1999/07/26 23:33:32 mdw
- * New sources and targets.
- *
- */
-
#ifndef SOCKET_H
#define SOCKET_H
/* -*-c-*-
*
- * $Id: source.c,v 1.1 1999/07/26 23:33:01 mdw Exp $
+ * $Id: source.c,v 1.2 2004/04/08 01:36:25 mdw Exp $
*
* Standard routines for forwarding sources
*
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: source.c,v $
- * Revision 1.1 1999/07/26 23:33:01 mdw
- * Infrastructure for the new design.
- *
- */
-
/*----- Header files ------------------------------------------------------*/
#include <stdio.h>
/* -*-c-*-
*
- * $Id: source.h,v 1.1 1999/07/26 23:33:01 mdw Exp $
+ * $Id: source.h,v 1.2 2004/04/08 01:36:25 mdw Exp $
*
* Description of forwarding sources
*
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: source.h,v $
- * Revision 1.1 1999/07/26 23:33:01 mdw
- * Infrastructure for the new design.
- *
- */
-
#ifndef SOURCE_H
#define SOURCE_H
/* -*-c-*-
*
- * $Id: target.h,v 1.3 2003/11/29 20:36:07 mdw Exp $
+ * $Id: target.h,v 1.4 2004/04/08 01:36:25 mdw Exp $
*
* Description of forwarding targets
*
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: target.h,v $
- * Revision 1.3 2003/11/29 20:36:07 mdw
- * Privileged outgoing connections.
- *
- * Revision 1.2 2003/11/25 14:08:23 mdw
- * Debianization. Socket target options. Internet binding.
- *
- * Revision 1.1 1999/07/26 23:33:01 mdw
- * Infrastructure for the new design.
- *
- */
-
#ifndef TARGET_H
#define TARGET_H
/* -*-c-*-
*
- * $Id: un.c,v 1.8 2003/11/30 00:25:27 mdw Exp $
+ * $Id: un.c,v 1.9 2004/04/08 01:36:25 mdw Exp $
*
* Protocol specific definitions for Unix-domain sockets
*
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: un.c,v $
- * Revision 1.8 2003/11/30 00:25:27 mdw
- * Fix source option prefix.
- *
- * Revision 1.7 2003/11/29 20:36:07 mdw
- * Privileged outgoing connections.
- *
- * Revision 1.6 2003/11/25 14:08:23 mdw
- * Debianization. Socket target options. Internet binding.
- *
- * Revision 1.5 2002/02/22 23:43:32 mdw
- * Call @xfree@ rather than @free@.
- *
- * Revision 1.4 2000/08/01 17:59:56 mdw
- * Switch over to using `size_t' for socket address lengths.
- *
- * Revision 1.3 2000/08/01 17:58:32 mdw
- * Remove unnecessary <ctype.h> header.
- *
- * Revision 1.2 1999/07/27 18:30:53 mdw
- * Various minor portability fixes.
- *
- * Revision 1.1 1999/07/26 23:34:11 mdw
- * New socket address types.
- *
- */
-
/*----- Header files ------------------------------------------------------*/
#include "config.h"
/* -*-c-*-
*
- * $Id: un.h,v 1.1 1999/07/26 23:34:11 mdw Exp $
+ * $Id: un.h,v 1.2 2004/04/08 01:36:25 mdw Exp $
*
* Protocol specific definitions for Unix-domain sockets
*
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: un.h,v $
- * Revision 1.1 1999/07/26 23:34:11 mdw
- * New socket address types.
- *
- */
-
#ifndef UN_H
#define UN_H