From: David Ahern Date: Sun, 21 Jan 2018 18:11:07 +0000 (-0800) Subject: Merge branch 'inet_get_addr' into net-next X-Git-Tag: v4.16.0~83 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=40cf5b095965f5bda81d517020c4107fa74023e6;p=thirdparty%2Fiproute2.git Merge branch 'inet_get_addr' into net-next Serhey Popovych says: ==================== It looks confusing to have multiple independent routines to get internet address from it's string representation: get_addr() and inet_get_addr(). Most complicated users of inet_get_addr() is iplink_geneve.c and iplink_vxlan.c because they required to handle both AF_INET and AF_INET6 for their local/remote endpoints. On the other hand get_addr() does not provide additional information like address type: need to address this. to get rid of current and possible future code duplications. Note that this functionality is first step to make proto independent handling of local/remote endpoints in ip/tunnel code (there will be additional series based on this one). Also fix get_addr_1() and get_prefix() to make sure it always provide correct ->family and ->bitlen. As always comments, suggestions and criticism are welcome. ==================== Signed-off-by: David Ahern --- 40cf5b095965f5bda81d517020c4107fa74023e6