linux_ioctl.h 835 B

12345678910111213141516171819202122
  1. /*
  2. * Linux ioctl helper functions for driver wrappers
  3. * Copyright (c) 2002-2010, Jouni Malinen <j@w1.fi>
  4. *
  5. * This software may be distributed under the terms of the BSD license.
  6. * See README for more details.
  7. */
  8. #ifndef LINUX_IOCTL_H
  9. #define LINUX_IOCTL_H
  10. int linux_set_iface_flags(int sock, const char *ifname, int dev_up);
  11. int linux_iface_up(int sock, const char *ifname);
  12. int linux_get_ifhwaddr(int sock, const char *ifname, u8 *addr);
  13. int linux_set_ifhwaddr(int sock, const char *ifname, const u8 *addr);
  14. int linux_br_add(int sock, const char *brname);
  15. int linux_br_del(int sock, const char *brname);
  16. int linux_br_add_if(int sock, const char *brname, const char *ifname);
  17. int linux_br_del_if(int sock, const char *brname, const char *ifname);
  18. int linux_br_get(char *brname, const char *ifname);
  19. #endif /* LINUX_IOCTL_H */