/* $Id: ax25rtctl.c,v 1.7 1997/06/05 18:52:55 oe1kib Exp oe1kib $ * * Copyright (c) 1996 Jörg Reuter (jreuter@poboxes.com) * * 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. * * 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. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * */ #include #include #include #include #include #include #include #include #include #include #include #include "../pathnames.h" static const struct option lopts[] = { {"add", 1, 0, 'a'}, {"del", 1, 0, 'd'}, {"list", 1, 0, 'l'}, {"expire", 1, 0, 'e'}, {"save", 0, 0, 's'}, {"reload", 0, 0, 'r'}, {"shutdown", 0, 0, 'q'}, {"Version", 0, 0, 'V'}, {"help", 0, 0, 'h'}, {"debug", 0, 0, 'x'}, {"version", 0, 0, 'v'}, {NULL, 0, 0, 0 } }; static const char *sopts = "a:d:l:e:srqvVh"; static void usage(void) { fprintf(stderr,"usage:\n"); fprintf(stderr,"ax25rtctl -a|--add ax25