if_eql.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /*
  2. * Equalizer Load-balancer for serial network interfaces.
  3. *
  4. * (c) Copyright 1995 Simon "Guru Aleph-Null" Janes
  5. * NCM: Network and Communications Management, Inc.
  6. *
  7. *
  8. * This software may be used and distributed according to the terms
  9. * of the GNU General Public License, incorporated herein by reference.
  10. *
  11. * The author may be reached as simon@ncm.com, or C/O
  12. * NCM
  13. * Attn: Simon Janes
  14. * 6803 Whittier Ave
  15. * McLean VA 22101
  16. * Phone: 1-703-847-0040 ext 103
  17. */
  18. #ifndef _LINUX_IF_EQL_H
  19. #define _LINUX_IF_EQL_H
  20. #define EQL_DEFAULT_SLAVE_PRIORITY 28800
  21. #define EQL_DEFAULT_MAX_SLAVES 4
  22. #define EQL_DEFAULT_MTU 576
  23. #define EQL_DEFAULT_RESCHED_IVAL HZ
  24. #define EQL_ENSLAVE (SIOCDEVPRIVATE)
  25. #define EQL_EMANCIPATE (SIOCDEVPRIVATE + 1)
  26. #define EQL_GETSLAVECFG (SIOCDEVPRIVATE + 2)
  27. #define EQL_SETSLAVECFG (SIOCDEVPRIVATE + 3)
  28. #define EQL_GETMASTRCFG (SIOCDEVPRIVATE + 4)
  29. #define EQL_SETMASTRCFG (SIOCDEVPRIVATE + 5)
  30. typedef struct master_config {
  31. char master_name[16];
  32. int max_slaves;
  33. int min_slaves;
  34. } master_config_t;
  35. typedef struct slave_config {
  36. char slave_name[16];
  37. long priority;
  38. } slave_config_t;
  39. typedef struct slaving_request {
  40. char slave_name[16];
  41. long priority;
  42. } slaving_request_t;
  43. #endif /* _LINUX_IF_EQL_H */