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