00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #include <include.h>
00025
00026 const char *ErrorsMsg[] = {
00027 [NO_ERROR] = "No error",
00028
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
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
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
00068 [CISCO_PROC_FILE_ERROR] = "Unable to open cisco control file",
00069
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
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
00084 [ERROR_UNKNOWN] = "I don't know why this error arrive ..."
00085 };