From: Dominik Paulus Date: Fri, 13 Sep 2013 09:55:51 +0000 (+0200) Subject: staging: usbip: Fix IPv6 support in usbipd X-Git-Tag: omap-for-v3.13/fixes-for-merge-window-take2~62^2~626 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f49ad35cd1241a278f073b6674e38eef7dd78c11;p=pandora-kernel.git staging: usbip: Fix IPv6 support in usbipd getaddrinfo() leaves the order of the returned addrinfo structs unspecified. On systems with bindv6only disabled (this is the default), PF_INET6 sockets bind to IPv4, too. Thus, IPv6 support in usbipd was broken when getaddrinfo returned first IPv4 and then IPv6 addrinfos, as the IPv6 bind failed with EADDRINUSE. This patch uses seperate sockets for IPv4 and IPv6 and sets IPV6_V6ONLY on all IPv6 sockets. Two command line arguments, -4 and -6 were added to manually select the socket family. Signed-off-by: Tobias Polzer Signed-off-by: Dominik Paulus Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed