linux-kernel-test/drivers/staging/usbip
Dominik Paulus f49ad35cd1 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 <tobias.polzer@fau.de>
Signed-off-by: Dominik Paulus <dominik.paulus@fau.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-09-25 16:35:56 -07:00
..
userspace staging: usbip: Fix IPv6 support in usbipd 2013-09-25 16:35:56 -07:00
Kconfig
Makefile
README
stub_dev.c Staging: usbip: stub_dev: Fixed checkpatch warnings 2013-09-25 16:30:46 -07:00
stub_main.c staging: usbip: stub_main: correctly handle return value 2013-09-25 16:30:45 -07:00
stub_rx.c staging: usbip: removed enumeration of comments 2013-04-05 14:22:50 -07:00
stub_tx.c staging: Remove unnecessary OOM messages 2013-02-11 10:10:33 -08:00
stub.h
usbip_common.c staging: usbip: use DEVICE_ATTR_RO/RW for sysfs attributes 2013-08-26 12:02:54 -07:00
usbip_common.h
usbip_event.c staging: usbip: Renaming pr_warning function 2013-05-13 13:39:31 -07:00
usbip_protocol.txt
vhci_hcd.c staging: usbip: vhci_hcd: remove check for dma 2013-09-25 16:30:46 -07:00
vhci_rx.c staging: usbip: removed enumeration of comments 2013-04-05 14:22:50 -07:00
vhci_sysfs.c staging: usbip: use DEVICE_ATTR_RO/RW for sysfs attributes 2013-08-26 12:02:54 -07:00
vhci_tx.c
vhci.h staging: usbip: remove unnused, broken macro 2013-04-05 14:22:50 -07:00

TODO:
	- more discussion about the protocol
	- testing
	- review of the userspace interface
	- document the protocol

Please send patches for this code to Greg Kroah-Hartman <greg@kroah.com>