errmsg.c

Go to the documentation of this file.
00001 /*
00002  * File : errmsg.c
00003  * Project : WifiScanner (c) 2002 Hervé Schauer Consultants
00004  * Usage : This utility is written for use with IEEE 802.11 adapters based
00005  * on Intersil's PRISM II chipset (PCMCIA).
00006  * 
00007  * This program is free software; you can redistribute it and/or
00008  * modify it under the terms of the GNU General Public License
00009  * as published by the Free Software Foundation; either version 2
00010  * of the License, or (at your option) any later version.
00011  * 
00012  * This program is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  * GNU General Public License for more details.
00016  * 
00017  * You should have received a copy of the GNU General Public License
00018  * along with this program; if not, write to the Free Software
00019  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00020  *
00021  * $Id: $
00022  */
00023 
00024 #include <include.h>
00025 
00026 const char *ErrorsMsg[] = {
00027   [NO_ERROR] = "No error",
00028   // Standard ERROR
00029   [ERROR_CANT_CREATE_SOCKET] = "Can not create socket",
00030   [ERROR_COULDNT_FIND_A_FREE_IFACE] = "No interface was available or free",
00031   [ERROR_CANT_OPEN_PCAP] = "The PCAP can not be opened",
00032   [ERROR_UNKNOWN_INTERFACE] = "Interface was not knowned",
00033   [ERROR_CANT_SET_CHANNEL] = "Channel can not be set",
00034   [ERROR_CANT_SET_MODE] = "Mode can not be set to the interface",
00035   [ERROR_CANT_SET_SSID] = "SSID can not be changed",
00036   [ERROR_CHANNEL_OUT_OF_BOUND] = "Channel number is out of bound",
00037   [ERROR_HOP_OUT_OF_BOUND] = "Hop timer is out of bound",
00038   [ERROR_DONT_TRY_TO_SLEEP_ON_THE_KEYBOARD] =
00039       "Wake UP !! Wake UP !! Your keyboard is not a pillow !",
00040   [ERROR_UNKNOWN_INTERFACE_TYPE] = "Interface type is not knowed",
00041   [ERROR_BAD_PARAMETER] = "Bad parameter (generic error :)",
00042   [ERROR_MISSING_PCAP_FILE] = "PCAP file is missing",
00043   [ERROR_NOT_ROOT] = "You are not ROOT, get out !",
00044   [ERROR_PCAP_CANT_OPEN] = "Can't open pcap device",
00045   [ERROR_PQT_TYPE_IS_UNKNOWN] = "Paquet type is not knowed or not yet analyzed",
00046   [ERROR_CANT_OPEN_FILE] = "Can't open file",
00047   [ERROR_SIG_HANDLER] = "SigHandler can't be initialized",
00048   [ERROR_THREAD_CANT_INIT] = "Thread can't be initialized",
00049   [ERROR_IF_CANT_INIT] = "Interface can't be initialized",
00050   [ALL_CHANNEL_ARE_LOCKED] = "ALL Channel are locked, bad bad bad think, try an another card",
00051   // Standard Exit
00052   [EXIT_BY_CTRLC] = "Exit by pressing CTRL-C",
00053   [EXIT_PB_WITH_CHANNEL_HOP] = "The channel hopping thread exit anormaly",
00054   [EXIT_PB_WITH_CHANNEL_INIT] =
00055       "Initialisation of the first channel, cant be done",
00056   [EXIT_CANT_SAVE_DATA] = "Can't save data in the PCAP file",
00057   [EXIT_MAX_PACKET_REACHED] = "Maximum of predefined packets is reached",
00058   [EXIT_WITH_Q] = "Exit with Q key",
00059   // Madwifi driver ERROR
00060   [MADWIFING_ERROR_NO_DEVICE_PRESENT] = "No device is present",
00061   [MADWIFING_ERROR_CANT_CREATE_SOCKET] = "Can't create socket",
00062   [MADWIFING_ERROR_CANT_DESTROY_VAP] = "Can not destroy the VAP",
00063   [MADWIFING_ERROR_NO_VAP_CREATED] = "No VAP was created",
00064   [MADWIFING_ERROR_CANT_SET_IFFLAGS] =
00065       "Can not set the Flags of an interface",
00066   [MADWIFING_ERROR_NO_INTERFACE_AVAILABLE] = "Interface is not available",
00067   // CISCO card
00068   [CISCO_PROC_FILE_ERROR] = "Unable to open cisco control file",
00069   // IWPRIV
00070   [IWPRIV_FAILED_TO_RETREIVE_IOCTL_LIST] = "Failed to retrieve list of private ioctls",
00071   [IWPRIV_FAILED_TO_FIND_IOCTL] = "Unable to find private ioctl",
00072   [IWPRIV_FAILED_TO_FIND_SUBIOCTL] = "Unable to find subioctl",
00073   [IWPRIV_FAILED_TO_SET_VALUE] = "Unable to set values for private ioctl",
00074   [IWPRIV_DOES_NOT_ACCEPT_INTEGER] = "IOCTL does not accept integer parameters",
00075   [IWPRIV_NEED_MORE_THAN_2_ARG] = "Private ioctl expects more than 2 arguments",
00076   [IWPRIV_FAILED_TO_SET_IOCTL] = "Failed to set private ioctl",
00077   // GPSD
00078   [GPSD_UNKNOWN_HOST] = "GPSD : Unknown host",
00079   [GPSD_CANT_OPEN_SOCKET] = "GPSD : Can't open GPSD socket",
00080   [GPSD_CANT_BIND_PORT] = "GPSD : Can't bind port",
00081   [GPSD_CANT_CONNECT] = "GPSD : Can't connect",
00082   [GPSD_WRITE_ERROR] = "GPSD : write error",
00083   // Wilcard ... :-)
00084   [ERROR_UNKNOWN] = "I don't know why this error arrive ..."
00085 };

Generated on Fri Jul 25 17:10:33 2008 for WifiScanner by  doxygen 1.5.5