net-remove-if.rst 814 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. .. -*- coding: utf-8; mode: rst -*-
  2. .. _NET_REMOVE_IF:
  3. *******************
  4. ioctl NET_REMOVE_IF
  5. *******************
  6. Name
  7. ====
  8. NET_REMOVE_IF - Removes a network interface.
  9. Synopsis
  10. ========
  11. .. c:function:: int ioctl( int fd, NET_REMOVE_IF, int ifnum )
  12. :name: NET_REMOVE_IF
  13. Arguments
  14. =========
  15. ``fd``
  16. File descriptor returned by :ref:`open() <frontend_f_open>`.
  17. ``net_if``
  18. number of the interface to be removed
  19. Description
  20. ===========
  21. The NET_REMOVE_IF ioctl deletes an interface previously created via
  22. :ref:`NET_ADD_IF <net>`.
  23. Return Value
  24. ============
  25. On success 0 is returned, and :c:type:`ca_slot_info` is filled.
  26. On error -1 is returned, and the ``errno`` variable is set
  27. appropriately.
  28. The generic error codes are described at the
  29. :ref:`Generic Error Codes <gen-errors>` chapter.