[tcp] Enable AF_INET6 transport for tcp connections
[gpxe.git] / src / net / tcp.c
index d2b2885..ecdf51c 100644 (file)
@@ -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;