diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-02-19 23:01:41 -0800 |
---|---|---|
committer | Paul Jakma <paul@quagga.net> | 2009-06-18 20:18:27 +0100 |
commit | e5862a2df2b5f65b0c050987c5f145836e0b75b3 (patch) | |
tree | 20a10d219e87f9ac98d858cad263e9d1760d1ebb /lib/sockopt.c | |
parent | 66a11e76d4a8ee18c4e79c06d25814b9aa94e45d (diff) |
[lib] sockopt_tcp_signature: sin6 requires HAVE_IPV6
An external user was building on system without IPv6 and
it wouldn't work.
Diffstat (limited to 'lib/sockopt.c')
-rw-r--r-- | lib/sockopt.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/sockopt.c b/lib/sockopt.c index d25d371b..96324ffe 100644 --- a/lib/sockopt.c +++ b/lib/sockopt.c @@ -553,6 +553,7 @@ sockopt_tcp_signature (int sock, union sockunion *su, const char *password) return -1; }; +#ifdef HAVE_IPV6 /* If this does not work, then all users of this sockopt will need to * differentiate between IPv4 and IPv6, and keep seperate sockets for * each. @@ -569,6 +570,7 @@ sockopt_tcp_signature (int sock, union sockunion *su, const char *password) su2->sin6.sin6_addr.s6_addr32[2] = htonl(0xffff); memcpy (&su2->sin6.sin6_addr.s6_addr32[3], &su->sin.sin_addr, 4); } +#endif } memset (&md5sig, 0, sizeof (md5sig)); |