diff options
author | Tianon Gravi <admwiggin@gmail.com> | 2015-01-15 11:54:00 -0700 |
---|---|---|
committer | Tianon Gravi <admwiggin@gmail.com> | 2015-01-15 11:54:00 -0700 |
commit | f154da9e12608589e8d5f0508f908a0c3e88a1bb (patch) | |
tree | f8255d51e10c6f1e0ed69702200b966c9556a431 /src/net/testdata | |
parent | 8d8329ed5dfb9622c82a9fbec6fd99a580f9c9f6 (diff) | |
download | golang-upstream/1.4.tar.gz |
Imported Upstream version 1.4upstream/1.4
Diffstat (limited to 'src/net/testdata')
-rw-r--r-- | src/net/testdata/domain-resolv.conf | 5 | ||||
-rw-r--r-- | src/net/testdata/empty-resolv.conf | 1 | ||||
-rw-r--r-- | src/net/testdata/hosts | 12 | ||||
-rw-r--r-- | src/net/testdata/hosts_singleline | 1 | ||||
-rw-r--r-- | src/net/testdata/igmp | 24 | ||||
-rw-r--r-- | src/net/testdata/igmp6 | 18 | ||||
-rw-r--r-- | src/net/testdata/resolv.conf | 8 | ||||
-rw-r--r-- | src/net/testdata/search-resolv.conf | 5 |
8 files changed, 74 insertions, 0 deletions
diff --git a/src/net/testdata/domain-resolv.conf b/src/net/testdata/domain-resolv.conf new file mode 100644 index 000000000..ff269180f --- /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 000000000..c4b2b5765 --- /dev/null +++ b/src/net/testdata/empty-resolv.conf @@ -0,0 +1 @@ +# /etc/resolv.conf diff --git a/src/net/testdata/hosts b/src/net/testdata/hosts new file mode 100644 index 000000000..b60176389 --- /dev/null +++ b/src/net/testdata/hosts @@ -0,0 +1,12 @@ +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 +# Bogus entries that must be ignored. +123.123.123 loki +321.321.321.321 +# TODO(yvesj): Should we be able to parse this? From a Darwin system. +fe80::1%lo0 localhost diff --git a/src/net/testdata/hosts_singleline b/src/net/testdata/hosts_singleline new file mode 100644 index 000000000..5f5f74a3f --- /dev/null +++ b/src/net/testdata/hosts_singleline @@ -0,0 +1 @@ +127.0.0.2 odin
\ No newline at end of file diff --git a/src/net/testdata/igmp b/src/net/testdata/igmp new file mode 100644 index 000000000..5f380a2c7 --- /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 000000000..6cd5a2d4d --- /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/resolv.conf b/src/net/testdata/resolv.conf new file mode 100644 index 000000000..04e87eed0 --- /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 000000000..1c846bfaf --- /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 |