1 .. -*- coding: utf-8; mode: rst -*-
12 NET_REMOVE_IF - Removes a network interface.
18 .. c:function:: int ioctl( int fd, NET_REMOVE_IF, int ifnum )
26 File descriptor returned by :ref:`open() <frontend_f_open>`.
29 number of the interface to be removed
35 The NET_REMOVE_IF ioctl deletes an interface previously created via
36 :ref:`NET_ADD_IF <net>`.
42 On success 0 is returned, on error -1 and the ``errno`` variable is set
43 appropriately. The generic error codes are described at the
44 :ref:`Generic Error Codes <gen-errors>` chapter.