Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/celzero/firestack
/ functions
Functions
3,609 in github.com/celzero/firestack
⨍
Functions
3,609
◇
Types & classes
485
Function
Test192
(tst *testing.T)
intra/backend/core_iptree_test.go:11
Function
TestAccept
Test a successful query over TCP
intra/doh/doh_test.go:543
Function
TestAcceptClose
Sends a TCP query, and closes the socket before the response is sent. This tests for crashes when a response cannot be delivered.
intra/doh/doh_test.go:634
Function
TestAcceptFail
Sends a TCP query that results in failure. When a query fails, Accept should close the TCP socket.
intra/doh/doh_test.go:602
Function
TestAcceptOversize
Test failure due to a response that is larger than the maximum message size for DNS over TCP (65535).
intra/doh/doh_test.go:664
Function
TestAddDomain
(t *testing.T)
intra/protect/ipmap/ipmap_test.go:74
Function
TestAddEdnsPaddingCompressedOptQuery
Try to pad a query that already contains an OPT record, but no padding option.
intra/doh/doh_test.go:767
Function
TestAddEdnsPaddingCompressedPaddedQuery
Try to pad a query that already contains an OPT record with padding. The query should be unmodified by AddEdnsPadding.
intra/doh/doh_test.go:795
Function
TestAddEdnsPaddingCompressedQuery
Check that we correctly pad a compressed query to the nearest block.
intra/doh/doh_test.go:753
Function
TestAddEdnsPaddingIdempotent
(t *testing.T)
intra/doh/doh_test.go:704
Function
TestAddEdnsPaddingUncompressedQuery
Check that we correctly pad an uncompressed query to the nearest block.
intra/doh/doh_test.go:739
Function
TestAddIP
(t *testing.T)
intra/protect/ipmap/ipmap_test.go:88
Function
TestBackwardsUse
(t *testing.T)
intra/dialers/retrier_test.go:267
Function
TestBadUrl
Check that the constructor rejects unsupported URLs.
intra/doh/doh_test.go:151
Function
TestComputePaddingSize
(t *testing.T)
intra/doh/doh_test.go:692
Function
TestConfirmNew
(t *testing.T)
intra/protect/ipmap/ipmap_test.go:124
Function
TestConfirmed
(t *testing.T)
intra/protect/ipmap/ipmap_test.go:100
Function
TestDialTCP
(t *testing.T)
intra/protect/protect_test.go:55
Function
TestDisappearingServer
(t *testing.T)
intra/dialers/retrier_test.go:242
Function
TestDisconfirmMismatch
(t *testing.T)
intra/protect/ipmap/ipmap_test.go:139
Function
TestDnsMessageCompressedQuerySanityCheck
Sanity check that packing |compressedQueryBytes| constructs the same query byte-for-byte.
intra/doh/doh_test.go:720
Function
TestDnsMessageUncompressedQuerySanityCheck
Sanity check that packing |uncompressedQueryBytes| constructs a smaller query byte-for-byte, since label compression is enabled by default.
intra/doh/doh_test.go:730
Function
TestDoh
(t *testing.T)
intra/doh/client_auth_test.go:392
Function
TestDot
(t *testing.T)
intra/dns53/dot_test.go:163
Function
TestDot
(t *testing.T)
intra/ipn/proxy_test.go:88
Function
TestEmptyResponse
Simulate an empty response. (This is not a compliant server behavior.)
intra/doh/doh_test.go:341
Function
TestEscLike
(tst *testing.T)
intra/backend/core_iptree_test.go:143
Method
TestExit64
TestExit64 connects to public NAT64 endpoints and returns reachable ones.
intra/backend/ipn_proxies.go:210
Method
TestExit64
TestExit64 implements x.Rpn.
intra/ipn/proxies.go:1444
Function
TestFailedRetry
(t *testing.T)
intra/dialers/retrier_test.go:232
Function
TestFinRetry
(t *testing.T)
intra/dialers/retrier_test.go:197
Function
TestGateway
(tst *testing.T)
intra/backend/core_iptree_test.go:80
Function
TestGenKeypair
create a new private key and prints corres pubkey
intra/backend/ipn_wgkeygen_test.go:23
Function
TestGeneric
(tester *testing.T)
intra/dnsx/rethinkdns_test.go:37
Function
TestGetDomain
(t *testing.T)
intra/protect/ipmap/ipmap_test.go:46
Function
TestGetIP
(t *testing.T)
intra/protect/ipmap/ipmap_test.go:60
Function
TestGetInvalid
(t *testing.T)
intra/protect/ipmap/ipmap_test.go:35
Function
TestGetTwice
(t *testing.T)
intra/protect/ipmap/ipmap_test.go:26
Function
TestHTTPError
Simulate a non-200 HTTP response code.
intra/doh/doh_test.go:372
Method
TestHop
TestHop returns empty diag if origin can hop to via, otherwise returns a diagnosis of why it couldn't. Only WireGuard via & origin are supported, for
intra/backend/ipn_proxies.go:333
Method
TestHop
TestHop implements x.Proxies.
intra/ipn/proxies.go:875
Function
TestIdle
Regression test for an issue in which the initial handshake timeout continued to apply after the handshake completed.
intra/dialers/retrier_test.go:279
Function
TestListenUDP
(t *testing.T)
intra/protect/protect_test.go:78
Function
TestListener
Check that the DNSListener is called with a correct summary.
intra/doh/doh_test.go:445
Function
TestLookupIPAddr
(t *testing.T)
intra/protect/protect_test.go:96
Function
TestMemconsoleWriteRead
TestMemconsoleWriteRead writes 5000 log lines into a Memconsole via SetReader and verifies that the number of lines received equals total minus any dr
intra/log/memconsole_test.go:56
Function
TestMultihostMap
(t *testing.T)
intra/ipn/multihost/multihost_test.go:86
Function
TestNewTransport
Check that the constructor works.
intra/doh/doh_test.go:143
Function
TestNilDialer
(t *testing.T)
intra/protect/protect_test.go:106
Function
TestNilListener
(t *testing.T)
intra/protect/protect_test.go:124
Function
TestNilLoader
Simulate a nil loader.
intra/doh/client_auth_test.go:330
Function
TestNoAuth
Simulate a client that does not have a certificate.
intra/doh/client_auth_test.go:267
Function
TestNormalConnection
(t *testing.T)
intra/dialers/retrier_test.go:187
Function
TestOne
(t *testing.T)
intra/dnscrypt/servers_test.go:99
Function
TestParsedDecodeICMPv6EchoRequest
(t *testing.T)
intra/core/wire/parsed_test.go:22
Function
TestPinger
(t *testing.T)
intra/dns53/dot_test.go:724
Function
TestProxyClientIP4
(t *testing.T)
intra/ipn/pxclient_test.go:204
Function
TestProxyClientIP4Live
(t *testing.T)
intra/ipn/pxclient_test.go:279
Function
TestProxyClientIP6
(t *testing.T)
intra/ipn/pxclient_test.go:243
Function
TestProxyClientIP6Live
(t *testing.T)
intra/ipn/pxclient_test.go:308
Function
TestProxyClientIPinfo
(t *testing.T)
intra/ipn/pxclient_test.go:168
Function
TestProxyClientWindscribe
(t *testing.T)
intra/ipn/pxclient_test.go:139
Function
TestProxyReaches
(t *testing.T)
intra/dns53/dot_test.go:222
Function
TestProxyReaches
(t *testing.T)
intra/ipn/proxy_test.go:147
Function
TestQueryIntegration
Send a DoH query to an actual DoH server
intra/doh/doh_test.go:186
Function
TestRSACertificate
Simulate a client that has an RSA certificate.
intra/doh/client_auth_test.go:299
Function
TestRadixSearch
(t *testing.T)
intra/backend/ipn_wgkeygen_test.go:33
Function
TestRequest
Check that a DNS query is converted correctly into an HTTP query.
intra/doh/doh_test.go:253
Function
TestResolver
(t *testing.T)
intra/protect/ipmap/ipmap_test.go:191
Function
TestResponse
Check that a DOH response is returned correctly.
intra/doh/doh_test.go:302
Function
TestSEProxy
(t *testing.T)
intra/dns53/dot_test.go:265
Function
TestSendFailed
Simulate an HTTP query error.
intra/doh/doh_test.go:402
Function
TestSequentialClose
(t *testing.T)
intra/dialers/retrier_test.go:257
Function
TestServfail
(t *testing.T)
intra/doh/doh_test.go:829
Function
TestShortQuery
Check for failure when the query is too short to be valid.
intra/doh/doh_test.go:163
Function
TestSign
Simulate a TLS handshake that requires a client cert and signature.
intra/doh/client_auth_test.go:179
Function
TestSignNoIntermediate
Simulate a client that does not use an intermediate certificate.
intra/doh/client_auth_test.go:227
Function
TestStackTraceScenario
TestStackTraceScenario tests the specific scenario from the original stack trace where magiclink.Wait() is called during endpoint swapping.
intra/netstack/waitgroup_test.go:101
Function
TestTimeoutRetry
(t *testing.T)
intra/dialers/retrier_test.go:208
Function
TestTwoWriteRetry
(t *testing.T)
intra/dialers/retrier_test.go:220
Function
TestUn
(tst *testing.T)
intra/backend/core_iptree_test.go:62
Function
TestWaitGroupRaceCondition
TestWaitGroupRaceCondition tests that the WaitGroup reuse issue is fixed. This test reproduces the scenario where an endpoint is swapped while another
intra/netstack/waitgroup_test.go:13
Function
TestWgReaches
(t *testing.T)
intra/dns53/dot_test.go:336
Method
TestWin
TestWin implements x.Rpn.
intra/ipn/proxies.go:1407
Function
TestWinDownloadSpeed
(t *testing.T)
intra/dns53/dot_test.go:604
Function
TestWinReaches
(t *testing.T)
intra/dns53/dot_test.go:433
Function
TestWindscribeReaches
(t *testing.T)
intra/ipn/proxy_test.go:192
Function
TlsDial
(d *tls.Dialer, network, addr string)
intra/dialers/tlsdial.go:35
Function
ToIp6Hint
(answer dns.RR, prefix *net.IPNet)
intra/xdns/dnsutil.go:1285
Method
ToResponse
ToResponse implements Header. TODO: it doesn't implement it correctly, instead it statically generates an ICMP Echo Reply packet.
intra/core/wire/icmp6.go:101
Method
ToResponse
ToResponse implements Header. TODO: it doesn't implement it correctly, instead it statically generates an ICMP Echo Reply packet.
intra/core/wire/icmp4.go:98
Method
ToResponse
ToResponse implements Header.
intra/core/wire/udp.go:106
Method
ToResponse
ToResponse implements Header.
intra/core/wire/ip6.go:60
Function
Token
Token gnerates a 32 byte random as hex (auths dataplane ops)
intra/backend/ipn_pipkeygen.go:572
Method
Token
Token is the entitlement token, if any.
intra/backend/ipn_proxies.go:297
Method
Token
()
intra/ipn/rpn/yegor.go:913
Method
Trace
(c bool, t string)
intra/log/logger.go:531
Method
Track
(cid, uid, pid string, conns ...MinConn)
intra/core/connmap.go:108
Method
Translate
Translate enables or disables ALG and fixed responses.
intra/backend/dnsx.go:151
Method
Translate
(tr, fix bool)
intra/dnsx/transport.go:297
← previous
next →
3,301–3,400 of 3,609, ranked by callers