mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-16 12:16:46 +00:00
[lib] sockopt_tcp_signature: sin6 requires HAVE_IPV6
An external user was building on system without IPv6 and it wouldn't work.
This commit is contained in:
parent
66a11e76d4
commit
e5862a2df2
@ -553,6 +553,7 @@ sockopt_tcp_signature (int sock, union sockunion *su, const char *password)
|
|||||||
return -1;
|
return -1;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#ifdef HAVE_IPV6
|
||||||
/* If this does not work, then all users of this sockopt will need to
|
/* If this does not work, then all users of this sockopt will need to
|
||||||
* differentiate between IPv4 and IPv6, and keep seperate sockets for
|
* differentiate between IPv4 and IPv6, and keep seperate sockets for
|
||||||
* each.
|
* 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);
|
su2->sin6.sin6_addr.s6_addr32[2] = htonl(0xffff);
|
||||||
memcpy (&su2->sin6.sin6_addr.s6_addr32[3], &su->sin.sin_addr, 4);
|
memcpy (&su2->sin6.sin6_addr.s6_addr32[3], &su->sin.sin_addr, 4);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
memset (&md5sig, 0, sizeof (md5sig));
|
memset (&md5sig, 0, sizeof (md5sig));
|
||||||
|
Loading…
Reference in New Issue
Block a user