aboutsummaryrefslogtreecommitdiffstats
path: root/sockets.h
diff options
context:
space:
mode:
authorDavid 'Digit' Turner <digit@android.com>2010-08-25 09:03:09 -0700
committerDavid 'Digit' Turner <digit@android.com>2010-08-25 09:03:09 -0700
commitb6f4df8626f2ba311566466c01cc8c18ccf40392 (patch)
treec79cd25ab40076d12e9b9077c6ef4a4f073e0412 /sockets.h
parentb2438402d16ee4a0bb4b077d0ad0ef1d82b2a08c (diff)
downloadexternal_qemu-b6f4df8626f2ba311566466c01cc8c18ccf40392.zip
external_qemu-b6f4df8626f2ba311566466c01cc8c18ccf40392.tar.gz
external_qemu-b6f4df8626f2ba311566466c01cc8c18ccf40392.tar.bz2
Fix stack-smashing when using IPv6 sockets in the networking code.
struct sockaddr is not enough, and struct sockaddr_storage is not portable, so redefine our own union to deal with the problem correctly. Change-Id: Ib250da3e7bafef2d05c060ea61272720576994cb
Diffstat (limited to 'sockets.h')
-rw-r--r--sockets.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/sockets.h b/sockets.h
index 2c250cc..f04458e 100644
--- a/sockets.h
+++ b/sockets.h
@@ -210,11 +210,6 @@ void sock_address_done( SockAddress* a );
int sock_address_equal( const SockAddress* a, const SockAddress* b );
-/* THIS SHOULD DISAPPEAR SOON - TRANSITIONAL HELPER */
-int sock_address_to_bsd( const SockAddress* a, void* sa, size_t* salen );
-int sock_address_from_bsd( SockAddress* a, const void* sa, size_t salen );
-int sock_address_to_inet( SockAddress* a, int *paddr_ip, int *paddr_port );
-
/* return a static string describing the address */
const char* sock_address_to_string( const SockAddress* a );