1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
2 .. c:namespace:: DTV.net
13 NET_REMOVE_IF - Removes a network interface.
18 .. c:macro:: NET_REMOVE_IF
20 ``int ioctl(int fd, NET_REMOVE_IF, int ifnum)``
26 File descriptor returned by :c:func:`open()`.
29 number of the interface to be removed
34 The NET_REMOVE_IF ioctl deletes an interface previously created via
35 :ref:`NET_ADD_IF <net>`.
40 On success 0 is returned, and :c:type:`ca_slot_info` is filled.
42 On error -1 is returned, and the ``errno`` variable is set
45 The generic error codes are described at the
46 :ref:`Generic Error Codes <gen-errors>` chapter.