Commit | Line | Data |
---|---|---|
47d23e36 MCC |
1 | .. -*- coding: utf-8; mode: rst -*- |
2 | ||
3 | .. _NET_REMOVE_IF: | |
4 | ||
5 | ******************* | |
6 | ioctl NET_REMOVE_IF | |
7 | ******************* | |
8 | ||
586027ce MCC |
9 | NAME |
10 | ==== | |
47d23e36 | 11 | |
586027ce | 12 | NET_REMOVE_IF - Removes a network interface. |
47d23e36 | 13 | |
586027ce | 14 | SYNOPSIS |
47d23e36 MCC |
15 | ======== |
16 | ||
17 | .. cpp:function:: int ioctl( int fd, int request, int ifnum ) | |
18 | ||
586027ce MCC |
19 | |
20 | ARGUMENTS | |
47d23e36 MCC |
21 | ========= |
22 | ||
23 | ``fd`` | |
24 | File descriptor returned by :ref:`open() <frontend_f_open>`. | |
25 | ||
26 | ``request`` | |
27 | FE_SET_TONE | |
28 | ||
29 | ``net_if`` | |
30 | number of the interface to be removed | |
31 | ||
32 | ||
586027ce | 33 | DESCRIPTION |
47d23e36 MCC |
34 | =========== |
35 | ||
36 | The NET_REMOVE_IF ioctl deletes an interface previously created via | |
37 | :ref:`NET_ADD_IF <net>`. | |
38 | ||
586027ce | 39 | |
47d23e36 | 40 | RETURN VALUE |
586027ce | 41 | ============ |
47d23e36 MCC |
42 | |
43 | On success 0 is returned, on error -1 and the ``errno`` variable is set | |
44 | appropriately. The generic error codes are described at the | |
45 | :ref:`Generic Error Codes <gen-errors>` chapter. |