diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-06-05 20:08:11 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-06-05 20:08:11 +0000 |
commit | 5c51a7ca52beb6958fda45f0de480f6ac1769ec6 (patch) | |
tree | 55bc26e011712115ecdfcb01588f9f65f6397462 /include | |
parent | 6c501a71ae50fa8f788bbc46511e8c4071e5f897 (diff) | |
download | busybox-w32-5c51a7ca52beb6958fda45f0de480f6ac1769ec6.tar.gz busybox-w32-5c51a7ca52beb6958fda45f0de480f6ac1769ec6.tar.bz2 busybox-w32-5c51a7ca52beb6958fda45f0de480f6ac1769ec6.zip |
nc: make connecting to IPv4 from IPv6-enabled hosts easier
(was requiring -s <local addr>)
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/include/libbb.h b/include/libbb.h index 013633716..dd0f5c1cc 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -304,9 +304,12 @@ enum { | |||
304 | } | 304 | } |
305 | ) | 305 | ) |
306 | }; | 306 | }; |
307 | /* Create stream socket, and allocated suitable lsa | 307 | /* Create stream socket, and allocate suitable lsa. |
308 | * (lsa of correct size and lsa->sa.sa_family (AF_INET/AF_INET6)) */ | 308 | * (lsa of correct size and lsa->sa.sa_family (AF_INET/AF_INET6)) |
309 | int xsocket_type(len_and_sockaddr **lsap, int sock_type); | 309 | * af == AF_UNSPEC will result in trying to create IPv6, and |
310 | * if kernel doesn't support it, IPv4. | ||
311 | */ | ||
312 | int xsocket_type(len_and_sockaddr **lsap, USE_FEATURE_IPV6(int af,) int sock_type); | ||
310 | int xsocket_stream(len_and_sockaddr **lsap); | 313 | int xsocket_stream(len_and_sockaddr **lsap); |
311 | /* Create server socket bound to bindaddr:port. bindaddr can be NULL, | 314 | /* Create server socket bound to bindaddr:port. bindaddr can be NULL, |
312 | * numeric IP ("N.N.N.N") or numeric IPv6 address, | 315 | * numeric IP ("N.N.N.N") or numeric IPv6 address, |