From: Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
To: ori@eigenstate.org
Cc: 9front@9front.org
Subject: Re: [9front] ape/bsd: Enable setting the local address with bind
Date: Fri, 10 Jun 2022 17:16:09 +0200 [thread overview]
Message-ID: <875yl81rd2.fsf@turtle-trading.net> (raw)
In-Reply-To: <87bkv01rfd.fsf@turtle-trading.net> (Benjamin Riefenstahl's message of "Fri, 10 Jun 2022 17:14:46 +0200")
[-- Attachment #1: Type: text/plain, Size: 24 bytes --]
The promise log files.
[-- Attachment #2: linux.log --]
[-- Type: application/octet-stream, Size: 4241 bytes --]
==== Tests for 127.0.0.1 ...
Connect to a given port (127.0.0.1 1234) ...
Connect to a given port (127.0.0.1 1234) ... success
Connect to an auto-selected port (127.0.0.1 0) ...
Connect to an auto-selected port (127.0.0.1 0) ... success
Try a different port (should fail) (127.0.0.1 0 127.0.0.1 123) ...
Try a different port (should fail) (127.0.0.1 0 127.0.0.1 123) ... success
Try a different IP (should fail) (127.0.0.1 1234 arrian 1234) ...
Try a different IP (should fail) (127.0.0.1 1234 arrian 1234) ... success
Listen to any address (0.0.0.0 1234 127.0.0.1 1234) ...
Listen to any address (0.0.0.0 1234 127.0.0.1 1234) ... success
==== Tests for ::1 ...
Connect to a given port (::1 1234) ...
Connect to a given port (::1 1234) ... success
Connect to an auto-selected port (::1 0) ...
Connect to an auto-selected port (::1 0) ... success
Try a different port (should fail) (::1 0 ::1 123) ...
Try a different port (should fail) (::1 0 ::1 123) ... success
Try a different IP (should fail) (::1 1234 arrian 1234) ...
Try a different IP (should fail) (::1 1234 arrian 1234) ... success
Listen to any address (::0 1234 ::1 1234) ...
Listen to any address (::0 1234 ::1 1234) ... success
==== Tests for 192.168.9.78 ...
Connect to a given port (192.168.9.78 1234) ...
Connect to a given port (192.168.9.78 1234) ... success
Connect to an auto-selected port (192.168.9.78 0) ...
Connect to an auto-selected port (192.168.9.78 0) ... success
Try a different port (should fail) (192.168.9.78 0 192.168.9.78 123) ...
Try a different port (should fail) (192.168.9.78 0 192.168.9.78 123) ... success
Try a different IP (should fail) (192.168.9.78 1234 127.0.0.1 1234) ...
Try a different IP (should fail) (192.168.9.78 1234 127.0.0.1 1234) ... success
Listen to any address (0.0.0.0 1234 192.168.9.78 1234) ...
Listen to any address (0.0.0.0 1234 192.168.9.78 1234) ... success
==== Tests for 2a06:8781:16:42:6bd8:4934:bb39:d972 ...
Connect to a given port (2a06:8781:16:42:6bd8:4934:bb39:d972 1234) ...
Connect to a given port (2a06:8781:16:42:6bd8:4934:bb39:d972 1234) ... success
Connect to an auto-selected port (2a06:8781:16:42:6bd8:4934:bb39:d972 0) ...
Connect to an auto-selected port (2a06:8781:16:42:6bd8:4934:bb39:d972 0) ... success
Try a different port (should fail) (2a06:8781:16:42:6bd8:4934:bb39:d972 0 2a06:8781:16:42:6bd8:4934:bb39:d972 123) ...
Try a different port (should fail) (2a06:8781:16:42:6bd8:4934:bb39:d972 0 2a06:8781:16:42:6bd8:4934:bb39:d972 123) ... success
Try a different IP (should fail) (2a06:8781:16:42:6bd8:4934:bb39:d972 1234 127.0.0.1 1234) ...
Try a different IP (should fail) (2a06:8781:16:42:6bd8:4934:bb39:d972 1234 127.0.0.1 1234) ... success
Listen to any address (::0 1234 2a06:8781:16:42:6bd8:4934:bb39:d972 1234) ...
Listen to any address (::0 1234 2a06:8781:16:42:6bd8:4934:bb39:d972 1234) ... success
==== Tests for 172.17.0.1 ...
Connect to a given port (172.17.0.1 1234) ...
Connect to a given port (172.17.0.1 1234) ... success
Connect to an auto-selected port (172.17.0.1 0) ...
Connect to an auto-selected port (172.17.0.1 0) ... success
Try a different port (should fail) (172.17.0.1 0 172.17.0.1 123) ...
Try a different port (should fail) (172.17.0.1 0 172.17.0.1 123) ... success
Try a different IP (should fail) (172.17.0.1 1234 127.0.0.1 1234) ...
Try a different IP (should fail) (172.17.0.1 1234 127.0.0.1 1234) ... success
Listen to any address (0.0.0.0 1234 172.17.0.1 1234) ...
Listen to any address (0.0.0.0 1234 172.17.0.1 1234) ... success
==== Tests for 192.168.122.1 ...
Connect to a given port (192.168.122.1 1234) ...
Connect to a given port (192.168.122.1 1234) ... success
Connect to an auto-selected port (192.168.122.1 0) ...
Connect to an auto-selected port (192.168.122.1 0) ... success
Try a different port (should fail) (192.168.122.1 0 192.168.122.1 123) ...
Try a different port (should fail) (192.168.122.1 0 192.168.122.1 123) ... success
Try a different IP (should fail) (192.168.122.1 1234 127.0.0.1 1234) ...
Try a different IP (should fail) (192.168.122.1 1234 127.0.0.1 1234) ... success
Listen to any address (0.0.0.0 1234 192.168.122.1 1234) ...
Listen to any address (0.0.0.0 1234 192.168.122.1 1234) ... success
==== Summary
Errors: 0 of 30
[-- Attachment #3: 9front-front.log --]
[-- Type: application/octet-stream, Size: 3162 bytes --]
==== Tests for ::1 ...
Connect to a given port (::1 1234) ...
Connect to a given port (::1 1234) ... success
Connect to an auto-selected port (::1 0) ...
Error: Server socket bind: OP not supported
Connect to an auto-selected port (::1 0) ... error
Try a different port (should fail) (::1 0 ::1 123) ...
Error: Server socket bind: OP not supported
Try a different port (should fail) (::1 0 ::1 123) ... success
Try a different IP (should fail) (::1 1234 9front 1234) ...
Try a different IP (should fail) (::1 1234 9front 1234) ... error
Listen to any address (::0 1234 ::1 1234) ...
Listen to any address (::0 1234 ::1 1234) ... success
==== Tests for 127.0.0.1 ...
Connect to a given port (127.0.0.1 1234) ...
Connect to a given port (127.0.0.1 1234) ... success
Connect to an auto-selected port (127.0.0.1 0) ...
Error: Server socket bind: OP not supported
Connect to an auto-selected port (127.0.0.1 0) ... error
Try a different port (should fail) (127.0.0.1 0 127.0.0.1 123) ...
Error: Server socket bind: OP not supported
Try a different port (should fail) (127.0.0.1 0 127.0.0.1 123) ... success
Try a different IP (should fail) (127.0.0.1 1234 9front 1234) ...
Try a different IP (should fail) (127.0.0.1 1234 9front 1234) ... error
Listen to any address (0.0.0.0 1234 127.0.0.1 1234) ...
Listen to any address (0.0.0.0 1234 127.0.0.1 1234) ... success
==== Tests for 192.168.122.202 ...
Connect to a given port (192.168.122.202 1234) ...
Connect to a given port (192.168.122.202 1234) ... success
Connect to an auto-selected port (192.168.122.202 0) ...
Error: Server socket bind: OP not supported
Connect to an auto-selected port (192.168.122.202 0) ... error
Try a different port (should fail) (192.168.122.202 0 192.168.122.202 123) ...
Error: Server socket bind: OP not supported
Try a different port (should fail) (192.168.122.202 0 192.168.122.202 123) ... success
Try a different IP (should fail) (192.168.122.202 1234 127.0.0.1 1234) ...
Try a different IP (should fail) (192.168.122.202 1234 127.0.0.1 1234) ... error
Listen to any address (0.0.0.0 1234 192.168.122.202 1234) ...
Listen to any address (0.0.0.0 1234 192.168.122.202 1234) ... success
==== Tests for fe80::5054:ff:fe04:8095 ...
Connect to a given port (fe80::5054:ff:fe04:8095 1234) ...
Connect to a given port (fe80::5054:ff:fe04:8095 1234) ... success
Connect to an auto-selected port (fe80::5054:ff:fe04:8095 0) ...
Error: Server socket bind: OP not supported
Connect to an auto-selected port (fe80::5054:ff:fe04:8095 0) ... error
Try a different port (should fail) (fe80::5054:ff:fe04:8095 0 fe80::5054:ff:fe04:8095 123) ...
Error: Server socket bind: OP not supported
Try a different port (should fail) (fe80::5054:ff:fe04:8095 0 fe80::5054:ff:fe04:8095 123) ... success
Try a different IP (should fail) (fe80::5054:ff:fe04:8095 1234 127.0.0.1 1234) ...
Try a different IP (should fail) (fe80::5054:ff:fe04:8095 1234 127.0.0.1 1234) ... error
Listen to any address (::0 1234 fe80::5054:ff:fe04:8095 1234) ...
Listen to any address (::0 1234 fe80::5054:ff:fe04:8095 1234) ... success
==== Summary
Errors: 8 of 20
0.07u 0.25s 20.43r ape/sh ./test-socket.psh # status= 1
[-- Attachment #4: 9front-patch.log --]
[-- Type: application/octet-stream, Size: 2813 bytes --]
==== Tests for ::1 ...
Connect to a given port (::1 1234) ...
Connect to a given port (::1 1234) ... success
Connect to an auto-selected port (::1 0) ...
Connect to an auto-selected port (::1 0) ... success
Try a different port (should fail) (::1 0 ::1 123) ...
Try a different port (should fail) (::1 0 ::1 123) ... success
Try a different IP (should fail) (::1 1234 9front 1234) ...
Try a different IP (should fail) (::1 1234 9front 1234) ... success
Listen to any address (::0 1234 ::1 1234) ...
Listen to any address (::0 1234 ::1 1234) ... success
==== Tests for 127.0.0.1 ...
Connect to a given port (127.0.0.1 1234) ...
Connect to a given port (127.0.0.1 1234) ... success
Connect to an auto-selected port (127.0.0.1 0) ...
Connect to an auto-selected port (127.0.0.1 0) ... success
Try a different port (should fail) (127.0.0.1 0 127.0.0.1 123) ...
Try a different port (should fail) (127.0.0.1 0 127.0.0.1 123) ... success
Try a different IP (should fail) (127.0.0.1 1234 9front 1234) ...
Try a different IP (should fail) (127.0.0.1 1234 9front 1234) ... success
Listen to any address (0.0.0.0 1234 127.0.0.1 1234) ...
Listen to any address (0.0.0.0 1234 127.0.0.1 1234) ... success
==== Tests for 192.168.122.202 ...
Connect to a given port (192.168.122.202 1234) ...
Connect to a given port (192.168.122.202 1234) ... success
Connect to an auto-selected port (192.168.122.202 0) ...
Connect to an auto-selected port (192.168.122.202 0) ... success
Try a different port (should fail) (192.168.122.202 0 192.168.122.202 123) ...
Try a different port (should fail) (192.168.122.202 0 192.168.122.202 123) ... success
Try a different IP (should fail) (192.168.122.202 1234 127.0.0.1 1234) ...
Try a different IP (should fail) (192.168.122.202 1234 127.0.0.1 1234) ... success
Listen to any address (0.0.0.0 1234 192.168.122.202 1234) ...
Listen to any address (0.0.0.0 1234 192.168.122.202 1234) ... success
==== Tests for fe80::5054:ff:fe04:8095 ...
Connect to a given port (fe80::5054:ff:fe04:8095 1234) ...
Connect to a given port (fe80::5054:ff:fe04:8095 1234) ... success
Connect to an auto-selected port (fe80::5054:ff:fe04:8095 0) ...
Connect to an auto-selected port (fe80::5054:ff:fe04:8095 0) ... success
Try a different port (should fail) (fe80::5054:ff:fe04:8095 0 fe80::5054:ff:fe04:8095 123) ...
Try a different port (should fail) (fe80::5054:ff:fe04:8095 0 fe80::5054:ff:fe04:8095 123) ... success
Try a different IP (should fail) (fe80::5054:ff:fe04:8095 1234 127.0.0.1 1234) ...
Try a different IP (should fail) (fe80::5054:ff:fe04:8095 1234 127.0.0.1 1234) ... success
Listen to any address (::0 1234 fe80::5054:ff:fe04:8095 1234) ...
Listen to any address (::0 1234 fe80::5054:ff:fe04:8095 1234) ... success
==== Summary
Errors: 0 of 20
0.05u 0.18s 20.70r ape/sh ./test-socket.psh
next prev parent reply other threads:[~2022-06-10 15:18 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-04 20:00 Benjamin Riefenstahl
2022-01-21 14:22 ` [9front] " Benjamin Riefenstahl
2022-01-21 19:22 ` ori
2022-02-10 17:38 ` Benjamin Riefenstahl
2022-04-16 17:33 ` [9front] " ori
2022-04-20 15:35 ` Benjamin Riefenstahl
2022-06-10 15:14 ` Benjamin Riefenstahl
2022-06-10 15:16 ` Benjamin Riefenstahl [this message]
2022-06-11 17:13 ` ori
2022-06-11 18:31 ` Benjamin Riefenstahl
2022-07-07 21:22 ` Benjamin Riefenstahl
2022-07-17 19:05 ` ori
2022-07-17 22:01 ` Benjamin Riefenstahl
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=875yl81rd2.fsf@turtle-trading.net \
--to=b.riefenstahl@turtle-trading.net \
--cc=9front@9front.org \
--cc=ori@eigenstate.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).