]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: standard.c: ipcpy() function to copy an IP address from a struct sockaddr_stor...
authorBaptiste Assmann <bedis9@gmail.com>
Sat, 30 Jan 2016 23:27:17 +0000 (00:27 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 14 Aug 2016 10:16:43 +0000 (12:16 +0200)
commit08396c87d0058d5091ba6d4002b6559f1d41ae5b
treeb665b47205a8ca870b3c6d87c70fd8e5be6b5a40
parent08b24cfdb220744c47ed7bfe5aa3ed8b4c0aa3c6
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.
include/common/standard.h
src/standard.c