Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cloudflare/slirpnetstack
/ functions
Functions
206 in github.com/cloudflare/slirpnetstack
⨍
Functions
206
◇
Types & classes
35
↓ 84 callers
Method
stdout_line
(self)
tests/base.py:53
↓ 67 callers
Method
prun
(self, argv1=[], close_fds=True, netns=True)
tests/base.py:104
↓ 57 callers
Method
assertStartSync
(self, p, fd=False)
tests/base.py:243
↓ 55 callers
Method
assertUdpEcho
(self, *args, **kwargs)
tests/base.py:222
↓ 53 callers
Method
guest_netns
(self)
tests/base.py:177
↓ 45 callers
Method
close
Returns process return code.
tests/base.py:79
↓ 40 callers
Method
assertTcpEcho
(self, *args, **kwargs)
tests/base.py:230
↓ 33 callers
Method
assertListenLine
(self, p, in_pattern)
tests/base.py:249
↓ 33 callers
Method
start_udp_echo
(self, **kwargs)
tests/base.py:188
↓ 29 callers
Method
String
()
addr.go:321
↓ 25 callers
Method
start_tcp_echo
(self, **kwargs)
tests/base.py:192
↓ 18 callers
Method
stderr_line
(self)
tests/base.py:64
↓ 16 callers
Method
Close
()
fwd.go:11
↓ 15 callers
Function
netParseIP
The problem with standard net.ParseIP is that it can return ::ffff:x.x.x.x IPv4-mapped address. We don't like the lack of uniformity.
net.go:52
↓ 9 callers
Function
MustParseCIDR
(n string)
net.go:24
↓ 7 callers
Method
Contains
(addr net.Addr)
addr.go:446
↓ 7 callers
Function
encode_shell
r''' >>> test_encode_shell()
tests/utils.py:44
↓ 6 callers
Function
FullAddressFromAddr
(a net.Addr)
addr.go:185
↓ 6 callers
Function
SplitHostPort
(buf string)
addr.go:290
↓ 6 callers
Method
_add_teardown
(self, item)
tests/base.py:123
↓ 5 callers
Method
assertTcpRefusedError
(self, ip="127.0.0.1", port=0)
tests/base.py:237
↓ 5 callers
Function
netAddrIP
(a net.Addr)
addr.go:201
↓ 4 callers
Function
ErrIsMyFault
See this and cry: https://github.com/golang/go/issues/4373
proxy.go:24
↓ 4 callers
Method
GetTCPAddr
()
net.go:137
↓ 4 callers
Method
GetUDPAddr
()
net.go:149
↓ 4 callers
Method
SetDefaultAddr
(a net.IP)
net.go:100
↓ 4 callers
Method
SetTimeouts
(kaInterval time.Duration, kaCount int)
kacon.go:13
↓ 4 callers
Method
Write
(buf []byte)
kacon.go:105
↓ 4 callers
Function
equalSlice
(t *testing.T, expected, actual []string)
addr_test.go:7
↓ 4 callers
Function
netAddrPort
(a net.Addr)
addr.go:211
↓ 3 callers
Method
Addr
()
fwd.go:12
↓ 3 callers
Method
Read
(buf []byte)
kacon.go:81
↓ 3 callers
Method
Retrieve
()
net.go:106
↓ 3 callers
Function
SetResetOnClose
(conn net.Conn)
net.go:40
↓ 3 callers
Method
SyscallConn
()
udp.go:9
↓ 3 callers
Function
connSplice
(local KaConn, remote KaConn, sppHeader []byte)
proxy.go:143
↓ 2 callers
Function
FetchLocalRoutes
Regularly load "local" and "main" routing tables, for both IPv4 and IPv6. The idea is to refuse connections to IP ranges that might be local.
local_routes.go:54
↓ 2 callers
Function
FirewallRoutingBlock
(state *State, addr net.Addr)
routing.go:14
↓ 2 callers
Function
FullResolve
(label string)
net.go:186
↓ 2 callers
Function
IPNetContains
(nets []*net.IPNet, ip net.IP)
net.go:15
↓ 2 callers
Function
LocalForward
(state *State, s *stack.Stack, conn KaConn, targetAddr net.Addr, buf []byte, proxyProtocol bool)
fwd.go:109
↓ 2 callers
Function
Main
(programName string, args []string)
main.go:96
↓ 2 callers
Function
MustTo16
Coverts IP address to its IPv6 representation. Nil or wrong length IP addresses map to :: (all zeros).
pp.go:18
↓ 2 callers
Function
OutboundDial
(srcIPs *SrcIPs, dst net.Addr)
net.go:248
↓ 2 callers
Function
ParseDefAddress
(ipS string, portS string)
net.go:76
↓ 2 callers
Function
RemoteForward
(guest KaConn, srcIPs *SrcIPs, rf *FwdAddr)
routing.go:176
↓ 2 callers
Function
RoutingForward
(guest KaConn, srcIPs *SrcIPs, loc net.Addr)
routing.go:130
↓ 2 callers
Method
SetDefaultAddrs
SetDefaultAddrs populates any unset endpoint with the provided default value. IPv6 values are only used if the one of the existing addresses is IPv6.
addr.go:133
↓ 2 callers
Function
StackRoutingSetup
(s *stack.Stack, nic tcpip.NICID, assignNet string)
stack.go:167
↓ 2 callers
Function
UserTimeoutFromKeepalive
(kaInterval time.Duration, kaCount int)
kacon.go:49
↓ 2 callers
Method
extend
(self, vmax)
tests/cover.py:12
↓ 2 callers
Function
netAddrSetPort
(a net.Addr, port int)
addr.go:221
↓ 2 callers
Function
netParseOrResolveIP
(h string)
net.go:238
↓ 2 callers
Function
networkProtocolNumberFromIP
(ip net.IP)
stack.go:261
↓ 2 callers
Function
proxyOneFlow
( in, out KaConn, readErrPtr, writeErrPtr *error, doneCh chan int, scDir int, sppHeader []byte)
proxy.go:63
↓ 2 callers
Function
run
(argv1=[], close_fds=True)
tests/base.py:28
↓ 2 callers
Function
simpleLookupHost
(resolver *net.Resolver, label string)
net.go:161
↓ 2 callers
Method
start_dns
(self, *kv)
tests/base.py:215
↓ 2 callers
Method
start_echo
(self, guest=False, log=False, tcp=True)
tests/base.py:196
↓ 1 callers
Function
AddrFromString
(value string)
addr.go:257
↓ 1 callers
Method
BindAddr
()
addr.go:149
↓ 1 callers
Method
CloseRead
()
proxy.go:59
↓ 1 callers
Method
CloseWrite
()
proxy.go:60
↓ 1 callers
Function
DecodePP
(b []byte)
pp.go:72
↓ 1 callers
Function
DecodeSPP
(b []byte)
pp.go:26
↓ 1 callers
Function
ExtractCMSGDestinationAddr
(oob []byte)
unconn/unconn.go:30
↓ 1 callers
Function
GetTunTap
(netNsPath string, ifName string)
stack.go:25
↓ 1 callers
Function
GonetDial
(s *stack.Stack, laddr, raddr net.Addr)
stack.go:285
↓ 1 callers
Function
GonetDialTCP
(s *stack.Stack, laddr, raddr *tcpip.FullAddress, network tcpip.NetworkProtocolNumber)
stack.go:200
↓ 1 callers
Function
GonetDialUDP
(s *stack.Stack, laddr, raddr *tcpip.FullAddress, network tcpip.NetworkProtocolNumber)
stack.go:273
↓ 1 callers
Method
HostAddr
()
addr.go:167
↓ 1 callers
Function
LocalForwardTCP
(state *State, s *stack.Stack, rf FwdAddr, doneChannel <-chan bool)
fwd.go:15
↓ 1 callers
Function
LocalForwardUDP
(state *State, s *stack.Stack, rf FwdAddr, doneChannel <-chan bool)
fwd.go:55
↓ 1 callers
Function
MagicDialUDP
(laddr, raddr *net.UDPAddr)
udp.go:22
↓ 1 callers
Function
MustParseMAC
(m string)
net.go:32
↓ 1 callers
Function
MustSubnet
(ipNet *net.IPNet)
stack.go:159
↓ 1 callers
Function
NewStack
(rcvBufferSize, sndBufferSize int)
stack.go:77
↓ 1 callers
Function
Prime
(udpConn *net.UDPConn)
unconn/unconn.go:13
↓ 1 callers
Function
Read
(udpConn *net.UDPConn, buf []byte)
unconn/unconn.go:83
↓ 1 callers
Method
Set
(value string)
addr.go:325
↓ 1 callers
Function
SetReuseaddr
(fd SyscallConner)
udp.go:12
↓ 1 callers
Function
StackPrimeArp
(s *stack.Stack, nic tcpip.NICID, ip net.IP)
stack.go:187
↓ 1 callers
Method
Start
(interval time.Duration)
local_routes.go:25
↓ 1 callers
Function
StartMetrics
(addr net.Addr)
metrics.go:27
↓ 1 callers
Method
Stop
()
local_routes.go:45
↓ 1 callers
Function
TcpRoutingHandler
(state *State)
routing.go:82
↓ 1 callers
Function
UdpRoutingHandler
(s *stack.Stack, state *State)
routing.go:38
↓ 1 callers
Function
Write
(udpConn *net.UDPConn, src net.IP, dst *net.UDPAddr, b []byte)
unconn/unconn.go:59
↓ 1 callers
Method
clear
(self, start, stop)
tests/cover.py:17
↓ 1 callers
Method
count
(self)
tests/cover.py:41
↓ 1 callers
Function
createLinkEP
(s *stack.Stack, tunFd int, tapMode bool, macAddress net.HardwareAddr, tapMtu uint32)
stack.go:129
↓ 1 callers
Function
createNIC
(s *stack.Stack, nic tcpip.NICID, linkEP stack.LinkEndpoint)
stack.go:142
↓ 1 callers
Method
get_tmp_filename
(self, name)
tests/base.py:120
↓ 1 callers
Function
handle
(conn net.Conn)
tests/mocktcpecho/mocktcpecho.go:54
↓ 1 callers
Function
initFlagSet
(flag *flag.FlagSet)
main.go:48
↓ 1 callers
Function
is_running_under_teamcity
()
tests/runner.py:11
↓ 1 callers
Function
joinNetNS
(nsPath string, run func())
netns_utils.go:11
↓ 1 callers
Method
list
(self, state)
tests/cover.py:28
↓ 1 callers
Function
main
()
tests/cover.py:47
↓ 1 callers
Method
mark
(self, start, stop)
tests/cover.py:23
next →
1–100 of 206, ranked by callers