/* * IPSEC interface configuration * Copyright (C) 1996 John Ioannidis. * Copyright (C) 1998, 1999, 2000, 2001 Richard Guy Briggs. * * This program 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. See . * * This program 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. */ char tncfg_c_version[] = "RCSID $Id: tncfg.c,v 1.1 2004/03/15 20:35:31 as Exp $"; #include #include #include /* system(), strtoul() */ #include /* getuid() */ #include #include /* ioctl() */ #include #ifdef NET_21 /* from freeswan.h */ #include #include #endif /* NET_21 */ /* from freeswan.h */ #if 0 #include #else #include #endif #include #include #include #include "freeswan/ipsec_tunnel.h" static void usage(char *name) { fprintf(stdout,"%s --attach --virtual --physical \n", name); fprintf(stdout,"%s --detach --virtual \n", name); fprintf(stdout,"%s --clear\n", name); fprintf(stdout,"%s --help\n", name); fprintf(stdout,"%s --version\n", name); fprintf(stdout,"%s\n", name); fprintf(stdout, " [ --debug ] is optional to any %s command.\n", name); fprintf(stdout, " [ --label