X-Git-Url: https://git.distorted.org.uk/~mdw/fwd/blobdiff_plain/7481fc9c5a603e35a6972c0be07d18d507e5dd50..755e6619263d316dc46fa504e0c333c963ec8eaa:/acl.c diff --git a/acl.c b/acl.c index 164a1c3..2207d3b 100644 --- a/acl.c +++ b/acl.c @@ -1,51 +1,30 @@ /* -*-c-*- * - * $Id: acl.c,v 1.5 2004/04/08 01:36:25 mdw Exp $ - * * Access control list handling * * (c) 1999 Straylight/Edgeware */ -/*----- Licensing notice --------------------------------------------------* +/*----- Licensing notice --------------------------------------------------* * - * This file is part of the `fw' port forwarder. + * This file is part of the `fwd' port forwarder. * - * `fw' is free software; you can redistribute it and/or modify + * `fwd' is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. - * - * `fw' is distributed in the hope that it will be useful, + * + * `fwd' is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License - * along with `fw'; if not, write to the Free Software Foundation, + * along with `fwd'; if not, write to the Free Software Foundation, * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/*----- Header files ------------------------------------------------------*/ - -#include "config.h" - -#include -#include -#include -#include - -#include -#include - -#include -#include -#include -#include - -#include - -#include "acl.h" +#include "fwd.h" /*----- Main code ---------------------------------------------------------*/ @@ -70,7 +49,7 @@ static int acl_checkhost(void *aa, struct in_addr addr, unsigned port) static void acl_dumphost(void *aa, FILE *fp) { acl_host *a = aa; - + fputs("from ", fp); fputs(inet_ntoa(a->addr), fp); fputc('/', fp);