Skip to content

Commit

Permalink
fix(webconnectivitylte): add 10k*i scope to all IDs (#1513)
Browse files Browse the repository at this point in the history
Arguably IDs starting from 10k for getaddrinfo more obviously have a
scope.

Related to ooni/probe#2677.
  • Loading branch information
bassosimone committed Feb 13, 2024
1 parent a37f0d2 commit 5f716f2
Show file tree
Hide file tree
Showing 241 changed files with 4,594 additions and 4,594 deletions.
10 changes: 5 additions & 5 deletions internal/experiment/webconnectivitylte/idgenerator.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ package webconnectivitylte
import "sync/atomic"

const (
idGeneratorGetaddrinfoOffset = 0
idGeneratorDNSOverUDPOffset = 10_000
idGeneratorDNSOverHTTPSOffset = 20_000
idGeneratorEndpointCleartextOffset = 30_000
idGeneratorEndpointSecureOffset = 40_000
idGeneratorGetaddrinfoOffset = 10_000
idGeneratorDNSOverUDPOffset = 20_000
idGeneratorDNSOverHTTPSOffset = 30_000
idGeneratorEndpointCleartextOffset = 40_000
idGeneratorEndpointSecureOffset = 50_000
)

// IDGenerator helps with generating IDs that neatly fall into namespaces.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,22 @@
"FinalResponseFailure": "unknown_error"
},
"DNSLookupSuccess": [
1,
10001,
20001
20001,
30001
],
"DNSLookupSuccessWithInvalidAddresses": [],
"DNSLookupSuccessWithValidAddress": [
1,
10001,
20001
20001,
30001
],
"DNSLookupSuccessWithBogonAddresses": [],
"DNSLookupSuccessWithInvalidAddressesClassic": [],
"DNSLookupSuccessWithValidAddressClassic": [
1,
10001,
20001
20001,
30001
],
"DNSLookupUnexpectedFailure": [],
"DNSLookupUnexplainedFailure": [],
Expand All @@ -36,7 +36,7 @@
"TCPConnectUnexplainedFailureDuringWebFetch": [],
"TCPConnectUnexplainedFailureDuringConnectivityCheck": [],
"TLSHandshakeExpectedFailure": [
40001
50001
],
"TLSHandshakeUnexpectedFailure": [],
"TLSHandshakeUnexpectedFailureDuringWebFetch": [],
Expand All @@ -59,9 +59,9 @@
"TagDepth": 0,
"Type": 2,
"Failure": "ssl_invalid_certificate",
"TransactionID": 40001,
"TransactionID": 50001,
"TagFetchBody": true,
"DNSTransactionID": 20001,
"DNSTransactionID": 30001,
"DNSDomain": "expired.badssl.com",
"DNSLookupFailure": "",
"DNSQueryType": null,
Expand All @@ -73,7 +73,7 @@
"IPAddress": "104.154.89.105",
"IPAddressASN": 396982,
"IPAddressBogon": false,
"EndpointTransactionID": 40001,
"EndpointTransactionID": 50001,
"EndpointProto": "tcp",
"EndpointPort": "443",
"EndpointAddress": "104.154.89.105:443",
Expand Down Expand Up @@ -106,9 +106,9 @@
"TagDepth": 0,
"Type": 0,
"Failure": "",
"TransactionID": 20001,
"TransactionID": 30001,
"TagFetchBody": null,
"DNSTransactionID": 20001,
"DNSTransactionID": 30001,
"DNSDomain": "expired.badssl.com",
"DNSLookupFailure": "",
"DNSQueryType": "A",
Expand Down Expand Up @@ -153,9 +153,9 @@
"TagDepth": 0,
"Type": 0,
"Failure": "",
"TransactionID": 10001,
"TransactionID": 20001,
"TagFetchBody": null,
"DNSTransactionID": 10001,
"DNSTransactionID": 20001,
"DNSDomain": "expired.badssl.com",
"DNSLookupFailure": "",
"DNSQueryType": "A",
Expand Down Expand Up @@ -200,9 +200,9 @@
"TagDepth": 0,
"Type": 0,
"Failure": "",
"TransactionID": 1,
"TransactionID": 10001,
"TagFetchBody": null,
"DNSTransactionID": 1,
"DNSTransactionID": 10001,
"DNSDomain": "expired.badssl.com",
"DNSLookupFailure": "",
"DNSQueryType": "ANY",
Expand Down Expand Up @@ -247,9 +247,9 @@
"TagDepth": 0,
"Type": 0,
"Failure": "dns_no_answer",
"TransactionID": 20001,
"TransactionID": 30001,
"TagFetchBody": null,
"DNSTransactionID": 20001,
"DNSTransactionID": 30001,
"DNSDomain": "expired.badssl.com",
"DNSLookupFailure": "dns_no_answer",
"DNSQueryType": "AAAA",
Expand Down Expand Up @@ -292,9 +292,9 @@
"TagDepth": 0,
"Type": 0,
"Failure": "dns_no_answer",
"TransactionID": 10001,
"TransactionID": 20001,
"TagFetchBody": null,
"DNSTransactionID": 10001,
"DNSTransactionID": 20001,
"DNSDomain": "expired.badssl.com",
"DNSLookupFailure": "dns_no_answer",
"DNSQueryType": "AAAA",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@
"FinalResponseFailure": "unknown_error"
},
"DNSLookupSuccess": [
1
10001
],
"DNSLookupSuccessWithInvalidAddresses": [],
"DNSLookupSuccessWithValidAddress": [
1
10001
],
"DNSLookupSuccessWithBogonAddresses": [],
"DNSLookupSuccessWithInvalidAddressesClassic": [],
"DNSLookupSuccessWithValidAddressClassic": [
1
10001
],
"DNSLookupUnexpectedFailure": [],
"DNSLookupUnexplainedFailure": [],
Expand All @@ -30,7 +30,7 @@
"TCPConnectUnexplainedFailureDuringWebFetch": [],
"TCPConnectUnexplainedFailureDuringConnectivityCheck": [],
"TLSHandshakeExpectedFailure": [
40001
50001
],
"TLSHandshakeUnexpectedFailure": [],
"TLSHandshakeUnexpectedFailureDuringWebFetch": [],
Expand All @@ -53,9 +53,9 @@
"TagDepth": 0,
"Type": 2,
"Failure": "ssl_invalid_certificate",
"TransactionID": 40001,
"TransactionID": 50001,
"TagFetchBody": true,
"DNSTransactionID": 20001,
"DNSTransactionID": 30001,
"DNSDomain": "expired.badssl.com",
"DNSLookupFailure": "",
"DNSQueryType": null,
Expand All @@ -67,7 +67,7 @@
"IPAddress": "104.154.89.105",
"IPAddressASN": 396982,
"IPAddressBogon": false,
"EndpointTransactionID": 40001,
"EndpointTransactionID": 50001,
"EndpointProto": "tcp",
"EndpointPort": "443",
"EndpointAddress": "104.154.89.105:443",
Expand Down Expand Up @@ -100,9 +100,9 @@
"TagDepth": 0,
"Type": 0,
"Failure": "",
"TransactionID": 1,
"TransactionID": 10001,
"TagFetchBody": null,
"DNSTransactionID": 1,
"DNSTransactionID": 10001,
"DNSDomain": "expired.badssl.com",
"DNSLookupFailure": "",
"DNSQueryType": "ANY",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"tags": [
"depth=0"
],
"transaction_id": 20001
"transaction_id": 30001
},
{
"answers": null,
Expand All @@ -73,7 +73,7 @@
"tags": [
"depth=0"
],
"transaction_id": 20001
"transaction_id": 30001
},
{
"answers": [
Expand All @@ -96,7 +96,7 @@
"tags": [
"depth=0"
],
"transaction_id": 1
"transaction_id": 10001
},
{
"answers": [
Expand All @@ -119,7 +119,7 @@
"tags": [
"depth=0"
],
"transaction_id": 10001
"transaction_id": 20001
},
{
"answers": null,
Expand All @@ -134,7 +134,7 @@
"tags": [
"depth=0"
],
"transaction_id": 10001
"transaction_id": 20001
}
],
"requests": [],
Expand All @@ -151,7 +151,7 @@
"depth=0",
"fetch_body=true"
],
"transaction_id": 40001
"transaction_id": 50001
}
],
"tls_handshakes": [
Expand All @@ -170,7 +170,7 @@
"fetch_body=true"
],
"tls_version": "",
"transaction_id": 40001
"transaction_id": 50001
}
],
"x_control_request": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"TagDepth": 0,
"Type": 0,
"Failure": "dns_no_answer",
"TransactionID": 20001,
"TransactionID": 30001,
"TagFetchBody": null,
"DNSTransactionID": 20001,
"DNSTransactionID": 30001,
"DNSDomain": "expired.badssl.com",
"DNSLookupFailure": "dns_no_answer",
"DNSQueryType": "AAAA",
Expand Down Expand Up @@ -49,9 +49,9 @@
"TagDepth": 0,
"Type": 0,
"Failure": "dns_no_answer",
"TransactionID": 10001,
"TransactionID": 20001,
"TagFetchBody": null,
"DNSTransactionID": 10001,
"DNSTransactionID": 20001,
"DNSDomain": "expired.badssl.com",
"DNSLookupFailure": "dns_no_answer",
"DNSQueryType": "AAAA",
Expand Down Expand Up @@ -96,9 +96,9 @@
"TagDepth": 0,
"Type": 0,
"Failure": "",
"TransactionID": 20001,
"TransactionID": 30001,
"TagFetchBody": null,
"DNSTransactionID": 20001,
"DNSTransactionID": 30001,
"DNSDomain": "expired.badssl.com",
"DNSLookupFailure": "",
"DNSQueryType": "A",
Expand Down Expand Up @@ -143,9 +143,9 @@
"TagDepth": 0,
"Type": 0,
"Failure": "",
"TransactionID": 1,
"TransactionID": 10001,
"TagFetchBody": null,
"DNSTransactionID": 1,
"DNSTransactionID": 10001,
"DNSDomain": "expired.badssl.com",
"DNSLookupFailure": "",
"DNSQueryType": "ANY",
Expand Down Expand Up @@ -190,9 +190,9 @@
"TagDepth": 0,
"Type": 0,
"Failure": "",
"TransactionID": 10001,
"TransactionID": 20001,
"TagFetchBody": null,
"DNSTransactionID": 10001,
"DNSTransactionID": 20001,
"DNSDomain": "expired.badssl.com",
"DNSLookupFailure": "",
"DNSQueryType": "A",
Expand Down Expand Up @@ -235,13 +235,13 @@
}
],
"KnownTCPEndpoints": {
"40001": {
"50001": {
"TagDepth": 0,
"Type": 2,
"Failure": "ssl_invalid_certificate",
"TransactionID": 40001,
"TransactionID": 50001,
"TagFetchBody": true,
"DNSTransactionID": 20001,
"DNSTransactionID": 30001,
"DNSDomain": "expired.badssl.com",
"DNSLookupFailure": "",
"DNSQueryType": null,
Expand All @@ -253,7 +253,7 @@
"IPAddress": "104.154.89.105",
"IPAddressASN": 396982,
"IPAddressBogon": false,
"EndpointTransactionID": 40001,
"EndpointTransactionID": 50001,
"EndpointProto": "tcp",
"EndpointPort": "443",
"EndpointAddress": "104.154.89.105:443",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"TagDepth": 0,
"Type": 0,
"Failure": "",
"TransactionID": 1,
"TransactionID": 10001,
"TagFetchBody": null,
"DNSTransactionID": 1,
"DNSTransactionID": 10001,
"DNSDomain": "expired.badssl.com",
"DNSLookupFailure": "",
"DNSQueryType": "ANY",
Expand Down Expand Up @@ -50,13 +50,13 @@
}
],
"KnownTCPEndpoints": {
"40001": {
"50001": {
"TagDepth": 0,
"Type": 2,
"Failure": "ssl_invalid_certificate",
"TransactionID": 40001,
"TransactionID": 50001,
"TagFetchBody": true,
"DNSTransactionID": 20001,
"DNSTransactionID": 30001,
"DNSDomain": "expired.badssl.com",
"DNSLookupFailure": "",
"DNSQueryType": null,
Expand All @@ -68,7 +68,7 @@
"IPAddress": "104.154.89.105",
"IPAddressASN": 396982,
"IPAddressBogon": false,
"EndpointTransactionID": 40001,
"EndpointTransactionID": 50001,
"EndpointProto": "tcp",
"EndpointPort": "443",
"EndpointAddress": "104.154.89.105:443",
Expand Down
Loading

0 comments on commit 5f716f2

Please sign in to comment.