[gPXE-devel] [PATCH 07/31] [tcp] enable AF_INET6 transport for tcp connections now that IPv6 is somewhat usable
matthew at theiselins.net
matthew at theiselins.net
Fri Jul 8 10:28:16 EDT 2011
From: Matthew Iselin <matthew at theiselins.net>
Signed-off-by: Matthew Iselin <matthew at theiselins.net>
---
src/net/tcp.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/src/net/tcp.c b/src/net/tcp.c
index d2b2885..ecdf51c 100644
--- a/src/net/tcp.c
+++ b/src/net/tcp.c
@@ -1303,13 +1303,19 @@ static struct xfer_interface_operations tcp_xfer_operations = {
***************************************************************************
*/
-/** TCP socket opener */
+/** TCP socket openers */
struct socket_opener tcp_socket_opener __socket_opener = {
.semantics = TCP_SOCK_STREAM,
.family = AF_INET,
.open = tcp_open,
};
+struct socket_opener tcp_socket_opener_v6 __socket_opener = {
+ .semantics = TCP_SOCK_STREAM,
+ .family = AF_INET6,
+ .open = tcp_open,
+};
+
/** Linkage hack */
int tcp_sock_stream = TCP_SOCK_STREAM;
--
1.7.2.5
More information about the gPXE-devel
mailing list