if_eql.h 1.3 KB

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