commit | 08396c87d0058d5091ba6d4002b6559f1d41ae5b | [log] [tgz] |
---|---|---|
author | Baptiste Assmann <bedis9@gmail.com> | Sun Jan 31 00:27:17 2016 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Sun Aug 14 12:16:43 2016 +0200 |
tree | b665b47205a8ca870b3c6d87c70fd8e5be6b5a40 | |
parent | 08b24cfdb220744c47ed7bfe5aa3ed8b4c0aa3c6 [diff] |
MINOR: standard.c: ipcpy() function to copy an IP address from a struct sockaddr_storage into an other one The function ipcpy() simply duplicates the IP address found in one struct sockaddr_storage into an other struct sockaddr_storage. It also update the family on the destination structure. Memory of destination structure must be allocated and cleared by the caller.