]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[tcp] Add AF_INET6 socket opener
authorMichael Brown <mcb30@ipxe.org>
Mon, 21 Oct 2013 13:17:03 +0000 (14:17 +0100)
committerMichael Brown <mcb30@ipxe.org>
Mon, 21 Oct 2013 13:34:02 +0000 (14:34 +0100)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/net/tcp.c

index 1e1968a0ae04f29267e5ed28792d73f090cf4129..7087203aa123b299b94449163f24f2ffe29f7cab 100644 (file)
@@ -1396,13 +1396,20 @@ static struct interface_descriptor tcp_xfer_desc =
  ***************************************************************************
  */
 
-/** TCP socket opener */
-struct socket_opener tcp_socket_opener __socket_opener = {
+/** TCP IPv4 socket opener */
+struct socket_opener tcp_ipv4_socket_opener __socket_opener = {
        .semantics      = TCP_SOCK_STREAM,
        .family         = AF_INET,
        .open           = tcp_open,
 };
 
+/** TCP IPv6 socket opener */
+struct socket_opener tcp_ipv6_socket_opener __socket_opener = {
+       .semantics      = TCP_SOCK_STREAM,
+       .family         = AF_INET6,
+       .open           = tcp_open,
+};
+
 /** Linkage hack */
 int tcp_sock_stream = TCP_SOCK_STREAM;