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
↓ 6 callers
Function
fullAddrFrom
-------------------------------------------------------------------- tcp and udp dialers -------------------------------------------------------------
intra/ipn/wgnet.go:179
↓ 6 callers
Method
get
(serverid string)
intra/x64/dns64.go:412
↓ 6 callers
Function
hex2byte
hex2byte returns the byte slice represented by the hex string s.
intra/backend/ipn_pipkeygen.go:600
↓ 6 callers
Function
ifbind
Binds a socket to a particular network interface.
intra/protect/protect.go:83
↓ 6 callers
Method
internalCtx
()
intra/tunnel.go:76
↓ 6 callers
Method
internalProxies
Get the internal proxies.
intra/tunnel.go:85
↓ 6 callers
Function
isNil
Cannot import pkg core here. from: intra/core/typ.go:isNil
intra/log/logger.go:1074
↓ 6 callers
Function
lidx
(i uint32)
intra/log/logpool.go:125
↓ 6 callers
Method
listener
(op wg.PktDir, err error)
intra/ipn/wgproxy.go:1680
↓ 6 callers
Method
mainRpnProxyOf
mainRpnProxyFor returns the main (default) RPN proxy from this multi-transport.
intra/ipn/proxies.go:204
↓ 6 callers
Function
makeTestRoundTripper
()
intra/doh/doh_test.go:237
↓ 6 callers
Method
ok
()
intra/netstack/fds.go:110
↓ 6 callers
Function
qtype
(msg *dns.Msg)
intra/dnsx/transport.go:1695
↓ 6 callers
Method
realipsFor
realipsFor returns all live primary ips for a given tid+uid pair
intra/dnsx/alg.go:380
↓ 6 callers
Function
toHex
(b64 string)
intra/ipn/rpn/regional.go:61
↓ 6 callers
Function
tr2csv2
(ts []Transport)
intra/dnsx/transport.go:1710
↓ 6 callers
Method
track
track marks a name as being tracked by this client; name is NOT normalized.
intra/dns53/mdns.go:613
↓ 6 callers
Function
trackmap
trackmap registers snap under id for use in Snapshot(). Returns a deregister function that removes it from the registry.
intra/core/runmet.go:505
↓ 6 callers
Function
wsErr
(res *http.Response, op string)
intra/ipn/rpn/yegor.go:1430
↓ 5 callers
Function
Alloc16
Alloc16 returns a truncated byte slice of size 16384
intra/core/buf.go:61
↓ 5 callers
Method
Base64
Base64 returns the key as a base64-encoded string.
intra/backend/ipn_wgkeygen.go:44
↓ 5 callers
Method
Client
Client returns a client that uses this proxy.
intra/backend/ipn_proxies.go:228
↓ 5 callers
Method
Close
Close closes the connection and the read and write flags.
intra/dialers/retrier.go:871
↓ 5 callers
Method
Cond
Cond returns true if the signal has been fired.
intra/core/sigcond.go:41
↓ 5 callers
Method
Confirm
Confirm marks ip as the confirmed address. No-op if current confirmed IP is the same as ip. No-op if s is of type Protected and ip isn't in seed addrs
intra/protect/ipmap/ipmap.go:794
↓ 5 callers
Method
DoIt
DoIt is like Do but return type is same as func once.
intra/core/barrier.go:224
↓ 5 callers
Method
GetAny
Returns the value of the longest prefix of k in the trie or "".
intra/backend/core_radixtree.go:30
↓ 5 callers
Function
HasAQuadAQuestion
whether the given msg (ans/query) has a a/aaaa question section
intra/xdns/dnsutil.go:1144
↓ 5 callers
Method
HasAny
Returns true if any route matches cidr.
intra/backend/core_iptree.go:42
↓ 5 callers
Function
HasRcodeSuccess
(msg *dns.Msg)
intra/xdns/dnsutil.go:745
↓ 5 callers
Method
ICMPHeaderString
()
intra/core/wire/parsed.go:431
↓ 5 callers
Function
IP2Cidr
(ippOrCidr string)
intra/core/ip.go:72
↓ 5 callers
Method
IPPorts
IPPorts returns all ip:ports of this server.
intra/dnsx/transport.go:139
↓ 5 callers
Function
IsDNSSECAnswerAuthenticated
IsDNSSECAnswerAuthenticated checks if the DNSSEC authenticated bit is set in the DNS answer.
intra/xdns/dnsutil.go:576
↓ 5 callers
Function
Net2ProxyID
Net2ProxyID splits network string into proto and pid; proto is the network protocol and pid is the proxy ID. May return empty strings.
intra/xdns/common.go:125
↓ 5 callers
Function
NewInternalQueryError
(err error)
intra/dnsx/queryerror.go:115
↓ 5 callers
Function
NewZeroVolatile
NewVolatile returns a new uninitialized Volatile.
intra/core/volatile.go:25
↓ 5 callers
Function
Pipe
Pipe reads data from src to dst, and returns the number of bytes copied. Prefers src.WriteTo(dst) and dst.ReadFrom(src) if available. Otherwise, it us
intra/core/cp.go:25
↓ 5 callers
Method
Printf
(msg string, args ...any)
intra/log/logger.go:59
↓ 5 callers
Method
Probe
Probe listens on the local address for ICMP packets sent over UDP. Network must be "udp" or "udp4" or "udp6".
intra/protect/xdial.go:60
↓ 5 callers
Method
Push
Push adds an element to the ring buffer
intra/log/ring.go:48
↓ 5 callers
Function
QType
(msg *dns.Msg)
intra/xdns/dnsutil.go:164
↓ 5 callers
Function
Race
Race runs all the functions in fs concurrently and returns the first non-error result. Returned values are the result, the index of the function that
intra/core/async.go:191
↓ 5 callers
Function
Rand64
Rand64 returns a random 64-bit hex string (16 chars long).
intra/core/typ.go:39
↓ 5 callers
Method
RefreshProto
RefreshProto broadcasts proto change to all active proxies. l3 if left empty, will use last recorded value; same for mtu <= 0.
intra/ipn/proxies.go:227
↓ 5 callers
Function
RegisterAddrs
RegisterAddrs registers IP ports with all dialers for a given hostname. If id is dnsx.Bootstrap, the hostname is "protected" from re-resolutions. host
intra/dnsx/transport.go:1492
↓ 5 callers
Method
Reset
()
intra/core/byt.go:76
↓ 5 callers
Function
Resolve
Resolve resolves hostname to IP addresses, bypassing cache. If resolution fails, entries from the cache are returned, if any.
intra/dialers/dns.go:29
↓ 5 callers
Method
SetKeepAlive
(bool)
intra/core/proto.go:102
↓ 5 callers
Method
Signal
Signal sets the condition to true and wakes all waiters, if any.
intra/core/sigcond.go:70
↓ 5 callers
Method
Size
Size returns the size of the public key.
intra/core/brsa/keys.go:35
↓ 5 callers
Method
Stack
(at int, msg string, scratch []byte)
intra/log/logger.go:69
↓ 5 callers
Function
Stream
Stream reads data from src in to dst until error, and returns the no. of bytes read. Internally, it bypasses io.ReaderFrom and io.WriterTo but uses io
intra/core/cp.go:54
↓ 5 callers
Method
ValuesLike
Returns csv of all routes with values like v for cidr.
intra/backend/core_iptree.go:48
↓ 5 callers
Method
Wait
Wait implements stack.LinkEndpoint.Wait. It waits for the endpoint to stop reading from its FD.
intra/netstack/fdbased.go:412
↓ 5 callers
Method
add
add one or more IP addresses to the set. The hostname can be a domain name or an IP address.
intra/protect/ipmap/ipmap.go:641
↓ 5 callers
Method
addLocked
Adds an IP to the set if it is not present. Must be called under Lock.
intra/protect/ipmap/ipmap.go:595
↓ 5 callers
Method
allips
(t xaddrtyp, s xaddrstatus)
intra/dnsx/alg.go:321
↓ 5 callers
Function
aquery
(d string)
intra/dns53/dot_test.go:753
↓ 5 callers
Method
checkNoSplit
()
intra/dialers/retrier_test.go:183
↓ 5 callers
Function
commondial2
(d D, network, laddr, raddr string, connect dialFn[D, C])
intra/dialers/cdial.go:62
↓ 5 callers
Method
emitStack
emitStack sends stacktrace to console or log. Empty msgs are ignored. Log level (ex: "F ") is prepend to each log line when sent to console.
intra/log/logger.go:496
↓ 5 callers
Function
fillSummary
fillSummary copies non-zero values into out.
intra/dnsx/cacher.go:562
↓ 5 callers
Method
forward
(network string, q *dns.Msg, outSmm *x.DNSSummary, all ...Transport)
intra/dnsx/plus.go:220
↓ 5 callers
Function
fulladdr
(addr string)
tunnel/dialer.go:130
↓ 5 callers
Method
get
(cidr string)
intra/backend/core_iptree.go:259
↓ 5 callers
Function
hdlstr
(p Proxy)
intra/ipn/exit.go:219
↓ 5 callers
Function
id64
(tid string)
intra/x64/natpt.go:185
↓ 5 callers
Function
infcsv
(ts ...Transport)
intra/dnsx/alg.go:2602
↓ 5 callers
Function
isPlus
(id string)
intra/dnsx/transport.go:1786
↓ 5 callers
Function
isTransportID
Also accounts for prefixes such as CT+ID
intra/dnsx/transport.go:1557
↓ 5 callers
Function
key
(name string, typ string, oth ...string)
intra/dns53/ipmapper.go:387
↓ 5 callers
Function
logei
(cond bool)
intra/netstack/rev.go:224
↓ 5 callers
Function
logeor
(e error, d log.LogFn)
intra/dialers/op.go:231
↓ 5 callers
Function
logev
(err error)
intra/common.go:887
↓ 5 callers
Function
logev
(err error)
intra/core/connpool.go:494
↓ 5 callers
Function
logwif
(cond bool)
intra/dns53/upstream.go:438
↓ 5 callers
Function
logwv
(cond bool)
intra/netstack/rev.go:231
↓ 5 callers
Method
maybeReplaceDest
maybeReplaceDest replaces the target AddrPort with the IP in res, if res.IP is set and valid.
intra/common.go:778
↓ 5 callers
Function
mustUnpack
(q []byte)
intra/doh/doh_test.go:85
↓ 5 callers
Function
newCertificateRequestInfo
()
intra/doh/client_auth_test.go:166
↓ 5 callers
Function
newClientAuthWrapper
(signer ClientAuth)
intra/doh/client_auth.go:114
↓ 5 callers
Function
newToBeSigned
(message []byte)
intra/doh/client_auth_test.go:172
↓ 5 callers
Method
onFlow
onFlow calls listener.Flow to determine egress rules and routes; thread-safe.
intra/common.go:148
↓ 5 callers
Method
plus
()
intra/dnsx/transport.go:425
↓ 5 callers
Method
s
()
intra/log/logger.go:189
↓ 5 callers
Method
set
(cidr string, v string)
intra/backend/core_iptree.go:128
↓ 5 callers
Method
sizes
()
intra/dnsx/alg.go:142
↓ 5 callers
Method
stopIfExistsLocked
stopIfExistsLocked stops the transport if it exists, then deletes it from the map.
intra/dnsx/transport.go:303
↓ 5 callers
Method
swapBuffersLocked
swapBuffersLocked stamps the count header of the active buffer, sets its draining flag, flips active to the other buffer, and returns the Drain call p
intra/log/memconsole.go:360
↓ 4 callers
Function
AQuadAForQueryTTL
(q *dns.Msg, ttl uint32, ips ...netip.Addr)
intra/xdns/dnsutil.go:685
↓ 4 callers
Method
Add
Adds k to the trie. Returns true if k was not already in the trie.
intra/backend/core_radixtree.go:20
↓ 4 callers
Function
AutoAlwaysRemote
backend.Auto must use remote proxies and never use local (ex: ipn.Exit) ones.
intra/settings/proxyopts.go:154
↓ 4 callers
Function
ChangeBufferSizesSockOpt
(who string, c MinConn, rsz, wsz int)
intra/core/sockopt.go:180
↓ 4 callers
Method
Close
()
intra/netstack/waitgroup_test.go:178
↓ 4 callers
Method
Del
Deletes cidr route. Returns true if cidr was found.
intra/backend/core_iptree.go:30
↓ 4 callers
Method
DialContext
-------------------------------------------------------------------- generic dialer ------------------------------------------------------------------
intra/ipn/wgnet.go:83
↓ 4 callers
Method
Disconfirm
Disconfirm sets the confirmed address to zeroaddr if the current confirmed address is the provided ip.
intra/protect/ipmap/ipmap.go:863
↓ 4 callers
Method
Dispose
Dispose closes all existing FDs.
intra/netstack/seamless.go:27
↓ 4 callers
Method
E
()
intra/core/barrier.go:64
← previous
next →
301–400 of 3,609, ranked by callers