diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-16 19:23:18 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-16 19:23:18 +0000 |
commit | 43a123c1ae6613b3efeed291fa552ecd909d3acf (patch) | |
tree | fd92518b7024bc74031f78a1cf9e454b65e73665 /src/net/testdata | |
parent | Initial commit. (diff) | |
download | golang-1.20-43a123c1ae6613b3efeed291fa552ecd909d3acf.tar.xz golang-1.20-43a123c1ae6613b3efeed291fa552ecd909d3acf.zip |
Adding upstream version 1.20.14.upstream/1.20.14upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
22 files changed, 120 insertions, 0 deletions
diff --git a/src/net/testdata/aliases b/src/net/testdata/aliases new file mode 100644 index 0000000..9330ba0 --- /dev/null +++ b/src/net/testdata/aliases @@ -0,0 +1,8 @@ +127.0.0.1 test +127.0.0.2 test2.example.com 2.test +127.0.0.3 3.test test3.example.com +127.0.0.4 example.com +127.0.0.5 test4.example.com 4.test 5.test test5.example.com + +# must be a non resolvable domain on the internet +127.0.1.1 invalid.test invalid.invalid diff --git a/src/net/testdata/case-hosts b/src/net/testdata/case-hosts new file mode 100644 index 0000000..1f30df1 --- /dev/null +++ b/src/net/testdata/case-hosts @@ -0,0 +1,2 @@ +127.0.0.1 PreserveMe PreserveMe.local +::1 PreserveMe PreserveMe.local diff --git a/src/net/testdata/domain-resolv.conf b/src/net/testdata/domain-resolv.conf new file mode 100644 index 0000000..ff26918 --- /dev/null +++ b/src/net/testdata/domain-resolv.conf @@ -0,0 +1,5 @@ +# /etc/resolv.conf + +search test invalid +domain localdomain +nameserver 8.8.8.8 diff --git a/src/net/testdata/empty-resolv.conf b/src/net/testdata/empty-resolv.conf new file mode 100644 index 0000000..c4b2b57 --- /dev/null +++ b/src/net/testdata/empty-resolv.conf @@ -0,0 +1 @@ +# /etc/resolv.conf diff --git a/src/net/testdata/freebsd-usevc-resolv.conf b/src/net/testdata/freebsd-usevc-resolv.conf new file mode 100644 index 0000000..4afb281 --- /dev/null +++ b/src/net/testdata/freebsd-usevc-resolv.conf @@ -0,0 +1 @@ +options usevc
\ No newline at end of file diff --git a/src/net/testdata/hosts b/src/net/testdata/hosts new file mode 100644 index 0000000..3ed83ff --- /dev/null +++ b/src/net/testdata/hosts @@ -0,0 +1,11 @@ +255.255.255.255 broadcasthost +127.0.0.2 odin +127.0.0.3 odin # inline comment +::2 odin +127.1.1.1 thor +# aliases +127.1.1.2 ullr ullrhost +fe80::1%lo0 localhost +# Bogus entries that must be ignored. +123.123.123 loki +321.321.321.321 diff --git a/src/net/testdata/igmp b/src/net/testdata/igmp new file mode 100644 index 0000000..5f380a2 --- /dev/null +++ b/src/net/testdata/igmp @@ -0,0 +1,24 @@ +Idx Device : Count Querier Group Users Timer Reporter +1 lo : 1 V3 + 010000E0 1 0:00000000 0 +2 eth0 : 2 V2 + FB0000E0 1 0:00000000 1 + 010000E0 1 0:00000000 0 +3 eth1 : 1 V3 + 010000E0 1 0:00000000 0 +4 eth2 : 1 V3 + 010000E0 1 0:00000000 0 +5 eth0.100 : 2 V3 + FB0000E0 1 0:00000000 0 + 010000E0 1 0:00000000 0 +6 eth0.101 : 2 V3 + FB0000E0 1 0:00000000 0 + 010000E0 1 0:00000000 0 +7 eth0.102 : 2 V3 + FB0000E0 1 0:00000000 0 + 010000E0 1 0:00000000 0 +8 eth0.103 : 2 V3 + FB0000E0 1 0:00000000 0 + 010000E0 1 0:00000000 0 +9 device1tap2: 1 V3 + 010000E0 1 0:00000000 0 diff --git a/src/net/testdata/igmp6 b/src/net/testdata/igmp6 new file mode 100644 index 0000000..6cd5a2d --- /dev/null +++ b/src/net/testdata/igmp6 @@ -0,0 +1,18 @@ +1 lo ff020000000000000000000000000001 1 0000000C 0 +2 eth0 ff0200000000000000000001ffac891e 1 00000006 0 +2 eth0 ff020000000000000000000000000001 1 0000000C 0 +3 eth1 ff0200000000000000000001ffac8928 2 00000006 0 +3 eth1 ff020000000000000000000000000001 1 0000000C 0 +4 eth2 ff0200000000000000000001ffac8932 2 00000006 0 +4 eth2 ff020000000000000000000000000001 1 0000000C 0 +5 eth0.100 ff0200000000000000000001ffac891e 1 00000004 0 +5 eth0.100 ff020000000000000000000000000001 1 0000000C 0 +6 pan0 ff020000000000000000000000000001 1 0000000C 0 +7 eth0.101 ff0200000000000000000001ffac891e 1 00000004 0 +7 eth0.101 ff020000000000000000000000000001 1 0000000C 0 +8 eth0.102 ff0200000000000000000001ffac891e 1 00000004 0 +8 eth0.102 ff020000000000000000000000000001 1 0000000C 0 +9 eth0.103 ff0200000000000000000001ffac891e 1 00000004 0 +9 eth0.103 ff020000000000000000000000000001 1 0000000C 0 +10 device1tap2 ff0200000000000000000001ff4cc3a3 1 00000004 0 +10 device1tap2 ff020000000000000000000000000001 1 0000000C 0 diff --git a/src/net/testdata/invalid-ndots-resolv.conf b/src/net/testdata/invalid-ndots-resolv.conf new file mode 100644 index 0000000..084c164 --- /dev/null +++ b/src/net/testdata/invalid-ndots-resolv.conf @@ -0,0 +1 @@ +options ndots:invalid
\ No newline at end of file diff --git a/src/net/testdata/ipv4-hosts b/src/net/testdata/ipv4-hosts new file mode 100644 index 0000000..6b99675 --- /dev/null +++ b/src/net/testdata/ipv4-hosts @@ -0,0 +1,8 @@ +# See https://tools.ietf.org/html/rfc1123. + +# internet address and host name +127.0.0.1 localhost # inline comment separated by tab +127.0.0.2 localhost # inline comment separated by space + +# internet address, host name and aliases +127.0.0.3 localhost localhost.localdomain diff --git a/src/net/testdata/ipv6-hosts b/src/net/testdata/ipv6-hosts new file mode 100644 index 0000000..f78b7fc --- /dev/null +++ b/src/net/testdata/ipv6-hosts @@ -0,0 +1,11 @@ +# See https://tools.ietf.org/html/rfc5952, https://tools.ietf.org/html/rfc4007. + +# internet address and host name +::1 localhost # inline comment separated by tab +fe80:0000:0000:0000:0000:0000:0000:0001 localhost # inline comment separated by space + +# internet address with zone identifier and host name +fe80:0000:0000:0000:0000:0000:0000:0002%lo0 localhost + +# internet address, host name and aliases +fe80::3%lo0 localhost localhost.localdomain diff --git a/src/net/testdata/large-ndots-resolv.conf b/src/net/testdata/large-ndots-resolv.conf new file mode 100644 index 0000000..72968ee --- /dev/null +++ b/src/net/testdata/large-ndots-resolv.conf @@ -0,0 +1 @@ +options ndots:16
\ No newline at end of file diff --git a/src/net/testdata/linux-use-vc-resolv.conf b/src/net/testdata/linux-use-vc-resolv.conf new file mode 100644 index 0000000..4e4a58b --- /dev/null +++ b/src/net/testdata/linux-use-vc-resolv.conf @@ -0,0 +1 @@ +options use-vc
\ No newline at end of file diff --git a/src/net/testdata/negative-ndots-resolv.conf b/src/net/testdata/negative-ndots-resolv.conf new file mode 100644 index 0000000..c11e0cc --- /dev/null +++ b/src/net/testdata/negative-ndots-resolv.conf @@ -0,0 +1 @@ +options ndots:-1
\ No newline at end of file diff --git a/src/net/testdata/openbsd-resolv.conf b/src/net/testdata/openbsd-resolv.conf new file mode 100644 index 0000000..8281a91 --- /dev/null +++ b/src/net/testdata/openbsd-resolv.conf @@ -0,0 +1,5 @@ +# Generated by vio0 dhclient +search c.symbolic-datum-552.internal. +nameserver 169.254.169.254 +nameserver 10.240.0.1 +lookup file bind diff --git a/src/net/testdata/openbsd-tcp-resolv.conf b/src/net/testdata/openbsd-tcp-resolv.conf new file mode 100644 index 0000000..7929e50 --- /dev/null +++ b/src/net/testdata/openbsd-tcp-resolv.conf @@ -0,0 +1 @@ +options tcp
\ No newline at end of file diff --git a/src/net/testdata/resolv.conf b/src/net/testdata/resolv.conf new file mode 100644 index 0000000..04e87ee --- /dev/null +++ b/src/net/testdata/resolv.conf @@ -0,0 +1,8 @@ +# /etc/resolv.conf + +domain localdomain +nameserver 8.8.8.8 +nameserver 2001:4860:4860::8888 +nameserver fe80::1%lo0 +options ndots:5 timeout:10 attempts:3 rotate +options attempts 3 diff --git a/src/net/testdata/search-resolv.conf b/src/net/testdata/search-resolv.conf new file mode 100644 index 0000000..1c846bf --- /dev/null +++ b/src/net/testdata/search-resolv.conf @@ -0,0 +1,5 @@ +# /etc/resolv.conf + +domain localdomain +search test invalid +nameserver 8.8.8.8 diff --git a/src/net/testdata/search-single-dot-resolv.conf b/src/net/testdata/search-single-dot-resolv.conf new file mode 100644 index 0000000..934cd3e --- /dev/null +++ b/src/net/testdata/search-single-dot-resolv.conf @@ -0,0 +1,5 @@ +# /etc/resolv.conf + +domain localdomain +search . +nameserver 8.8.8.8 diff --git a/src/net/testdata/single-request-reopen-resolv.conf b/src/net/testdata/single-request-reopen-resolv.conf new file mode 100644 index 0000000..9bddeb3 --- /dev/null +++ b/src/net/testdata/single-request-reopen-resolv.conf @@ -0,0 +1 @@ +options single-request-reopen
\ No newline at end of file diff --git a/src/net/testdata/single-request-resolv.conf b/src/net/testdata/single-request-resolv.conf new file mode 100644 index 0000000..5595d29 --- /dev/null +++ b/src/net/testdata/single-request-resolv.conf @@ -0,0 +1 @@ +options single-request
\ No newline at end of file diff --git a/src/net/testdata/singleline-hosts b/src/net/testdata/singleline-hosts new file mode 100644 index 0000000..5f5f74a --- /dev/null +++ b/src/net/testdata/singleline-hosts @@ -0,0 +1 @@ +127.0.0.2 odin
\ No newline at end of file |