diff --git a/socket/socket_accept4.3 b/socket/socket_accept4.3 index 5ce4132..f114bd8 100644 --- a/socket/socket_accept4.3 +++ b/socket/socket_accept4.3 @@ -25,7 +25,7 @@ appropriately, without creating a new socket. char \fIip\fR[4]; uint16 \fIp\fR; - \fIs\fR = socket_tcp(); + \fIs\fR = socket_tcp4(); socket_bind4(s,ip,p); socket_connect4(s,ip,p); diff --git a/socket/socket_bind4.3 b/socket/socket_bind4.3 index 66f2195..7f350ec 100644 --- a/socket/socket_bind4.3 +++ b/socket/socket_bind4.3 @@ -22,7 +22,7 @@ returns -1, setting errno appropriately. char \fIip\fR[4]; uint16 \fIp\fR; - \fIs\fR = socket_tcp(); + \fIs\fR = socket_tcp4(); socket_bind4(s,ip,p); socket_connect4(s,ip,p); diff --git a/socket/socket_bind4_reuse.3 b/socket/socket_bind4_reuse.3 index 8f3b25f..8eadd77 100644 --- a/socket/socket_bind4_reuse.3 +++ b/socket/socket_bind4_reuse.3 @@ -25,7 +25,7 @@ before this IP and port can be bound again. char \fIip\fR[4]; uint16 \fIp\fR; - \fIs\fR = socket_tcp(); + \fIs\fR = socket_tcp4(); socket_bind4_reuse(s,ip,p); socket_connect4(s,ip,p); diff --git a/socket/socket_bind6_reuse.3 b/socket/socket_bind6_reuse.3 index c7cbb13..f4ac4de 100644 --- a/socket/socket_bind6_reuse.3 +++ b/socket/socket_bind6_reuse.3 @@ -31,7 +31,7 @@ before this IP and port can be bound again. char \fIip\fR[16]; uint16 \fIp\fR; - \fIs\fR = socket_tcp(); + \fIs\fR = socket_tcp4(); socket_bind6_reuse(s,ip,p); socket_connect4(s,ip,p); diff --git a/socket/socket_connect4.3 b/socket/socket_connect4.3 index 35d8a5c..2d6a60b 100644 --- a/socket/socket_connect4.3 +++ b/socket/socket_connect4.3 @@ -40,7 +40,7 @@ effect as first calling socket_bind4 with IP address 0.0.0.0 and port 0. char \fIip\fR[4]; uint16 \fIp\fR; - \fIs\fR = socket_tcp(); + \fIs\fR = socket_tcp4(); socket_bind4(s,ip,p); socket_connect4(s,ip,p); diff --git a/socket/socket_recv4.3 b/socket/socket_recv4.3 index da0764f..1d3d204 100644 --- a/socket/socket_recv4.3 +++ b/socket/socket_recv4.3 @@ -23,7 +23,7 @@ received. If not, it returns -1 and sets errno appropriately. char buf[1000]; int len; - \fIs\fR = socket_tcp(); + \fIs\fR = socket_tcp4(); socket_bind4(s,ip,p); len = socket_recv4(s,buf,sizeof(buf),ip,&p); diff --git a/socket/socket_recv6.3 b/socket/socket_recv6.3 index f8e3e54..5d3c5ac 100644 --- a/socket/socket_recv6.3 +++ b/socket/socket_recv6.3 @@ -28,7 +28,7 @@ received. If not, it returns -1 and sets errno appropriately. int len; uint32 scope_id; - \fIs\fR = socket_tcp(); + \fIs\fR = socket_tcp4(); socket_bind6(s,ip,p); len = socket_recv6(s,buf,sizeof(buf),ip,&p,&scope_id); diff --git a/socket/socket_send4.3 b/socket/socket_send4.3 index b4c2f08..5f20a9f 100644 --- a/socket/socket_send4.3 +++ b/socket/socket_send4.3 @@ -23,7 +23,7 @@ it returns -1 and sets errno appropriately. char \fIip\fR[4]; uint16 \fIp\fR; - \fIs\fR = socket_tcp(); + \fIs\fR = socket_tcp4(); socket_bind4(s,ip,p); socket_send4(s,"hello, world",12,ip,p); diff --git a/socket/socket_send6.3 b/socket/socket_send6.3 index 7f5da77..1daa343 100644 --- a/socket/socket_send6.3 +++ b/socket/socket_send6.3 @@ -29,7 +29,7 @@ it returns -1 and sets errno appropriately. uint16 \fIp\fR; uint32 \fIscope_id\fR; - \fIs\fR = socket_tcp(); + \fIs\fR = socket_tcp4(); socket_bind6(s,ip,p); socket_send6(s,"hello, world",12,ip,p,scope_id); diff --git a/socket/socket_sendfile.3 b/socket/socket_sendfile.3 index 199074c..7413a04 100644 --- a/socket/socket_sendfile.3 +++ b/socket/socket_sendfile.3 @@ -27,7 +27,7 @@ it returns -1 and sets errno appropriately. uint16 \fIp\fR; int \fIfd\fR = open_read("/etc/passwd"); - \fIs\fR = socket_tcp(); + \fIs\fR = socket_tcp4(); socket_connect4(s,ip,p); socket_sendfile(s,fd,0,23); diff --git a/socket/socket_tcp6.c b/socket/socket_tcp6.c index 845cb5e..0f51775 100644 --- a/socket/socket_tcp6.c +++ b/socket/socket_tcp6.c @@ -27,7 +27,7 @@ compat: } return s; #else - return socket_tcp(); + return socket_tcp4(); #endif }