4
Part of the kernel which has in charge the Ghost operations can
5
return several error code when an error occurs.
7
Ghostify or Unghostify a network interface (card) is done through a
8
ioctl(2) request, on error ioctl request use errno to provide the
11
The differents error code which can be returned are :
12
-----------------------------------------------------
14
During Ghostify operation :
15
---------------------------
17
EINVAL - This error is returned when the name of the specified
18
network card is too long (greater than IFNAMSIZ) or when
19
the name has a null length. This error is also returned by
20
a incorrect ioctl() request. With ghost2 this reflects the
21
fact that the kernel doesn't supports the Ghost operations
22
(because the other cases are handled by the program).
24
EEXIST - This error occurs when the network card is already ghostified.
26
ENODEV - This error is returned when the specified network card
27
doesn't exist (really doesn't exist ;).
29
ENOMEM - This error is returned when the max number of ghostified
30
network cards has been reached.
32
During Unghostify operation :
33
-----------------------------
35
ENODEV - This error is returned when the specified network card
36
doesn't exist (really doesn't exist ;).
38
ESRCH - The network card is not ghositified.