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, and :c:type:`ca_slot_info` is filled.
44 On error -1 is returned, and the ``errno`` variable is set
47 The generic error codes are described at the
48 :ref:`Generic Error Codes <gen-errors>` chapter.