patch-lib_sockopt_c 741 B

1234567891011121314151617181920212223
  1. --- quagga-0.99.22.4.orig/lib/sockopt.c 2013-04-14 14:46:07.000000000 +0200
  2. +++ quagga-0.99.22.4/lib/sockopt.c 2013-12-30 19:56:54.000000000 +0100
  3. @@ -24,6 +24,20 @@
  4. #include "sockopt.h"
  5. #include "sockunion.h"
  6. +#if !defined(__GLIBC__)
  7. +/* For TCP_MD5SIG socket option. */
  8. +#define TCP_MD5SIG_MAXKEYLEN 80
  9. +
  10. +struct tcp_md5sig
  11. +{
  12. + struct sockaddr_storage tcpm_addr; /* Address associated. */
  13. + u_int16_t __tcpm_pad1; /* Zero. */
  14. + u_int16_t tcpm_keylen; /* Key length. */
  15. + u_int32_t __tcpm_pad2; /* Zero. */
  16. + u_int8_t tcpm_key[TCP_MD5SIG_MAXKEYLEN]; /* Key (binary). */
  17. +};
  18. +#endif
  19. +
  20. int
  21. setsockopt_so_recvbuf (int sock, int size)
  22. {