MCPcopy Create free account

hub / github.com/cloudflare/slirpnetstack / functions

Functions206 in github.com/cloudflare/slirpnetstack

↓ 84 callersMethodstdout_line
(self)
tests/base.py:53
↓ 67 callersMethodprun
(self, argv1=[], close_fds=True, netns=True)
tests/base.py:104
↓ 57 callersMethodassertStartSync
(self, p, fd=False)
tests/base.py:243
↓ 55 callersMethodassertUdpEcho
(self, *args, **kwargs)
tests/base.py:222
↓ 53 callersMethodguest_netns
(self)
tests/base.py:177
↓ 45 callersMethodclose
Returns process return code.
tests/base.py:79
↓ 40 callersMethodassertTcpEcho
(self, *args, **kwargs)
tests/base.py:230
↓ 33 callersMethodassertListenLine
(self, p, in_pattern)
tests/base.py:249
↓ 33 callersMethodstart_udp_echo
(self, **kwargs)
tests/base.py:188
↓ 29 callersMethodString
()
addr.go:321
↓ 25 callersMethodstart_tcp_echo
(self, **kwargs)
tests/base.py:192
↓ 18 callersMethodstderr_line
(self)
tests/base.py:64
↓ 16 callersMethodClose
()
fwd.go:11
↓ 15 callersFunctionnetParseIP
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 callersFunctionMustParseCIDR
(n string)
net.go:24
↓ 7 callersMethodContains
(addr net.Addr)
addr.go:446
↓ 7 callersFunctionencode_shell
r''' >>> test_encode_shell()
tests/utils.py:44
↓ 6 callersFunctionFullAddressFromAddr
(a net.Addr)
addr.go:185
↓ 6 callersFunctionSplitHostPort
(buf string)
addr.go:290
↓ 6 callersMethod_add_teardown
(self, item)
tests/base.py:123
↓ 5 callersMethodassertTcpRefusedError
(self, ip="127.0.0.1", port=0)
tests/base.py:237
↓ 5 callersFunctionnetAddrIP
(a net.Addr)
addr.go:201
↓ 4 callersFunctionErrIsMyFault
See this and cry: https://github.com/golang/go/issues/4373
proxy.go:24
↓ 4 callersMethodGetTCPAddr
()
net.go:137
↓ 4 callersMethodGetUDPAddr
()
net.go:149
↓ 4 callersMethodSetDefaultAddr
(a net.IP)
net.go:100
↓ 4 callersMethodSetTimeouts
(kaInterval time.Duration, kaCount int)
kacon.go:13
↓ 4 callersMethodWrite
(buf []byte)
kacon.go:105
↓ 4 callersFunctionequalSlice
(t *testing.T, expected, actual []string)
addr_test.go:7
↓ 4 callersFunctionnetAddrPort
(a net.Addr)
addr.go:211
↓ 3 callersMethodAddr
()
fwd.go:12
↓ 3 callersMethodRead
(buf []byte)
kacon.go:81
↓ 3 callersMethodRetrieve
()
net.go:106
↓ 3 callersFunctionSetResetOnClose
(conn net.Conn)
net.go:40
↓ 3 callersMethodSyscallConn
()
udp.go:9
↓ 3 callersFunctionconnSplice
(local KaConn, remote KaConn, sppHeader []byte)
proxy.go:143
↓ 2 callersFunctionFetchLocalRoutes
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 callersFunctionFirewallRoutingBlock
(state *State, addr net.Addr)
routing.go:14
↓ 2 callersFunctionFullResolve
(label string)
net.go:186
↓ 2 callersFunctionIPNetContains
(nets []*net.IPNet, ip net.IP)
net.go:15
↓ 2 callersFunctionLocalForward
(state *State, s *stack.Stack, conn KaConn, targetAddr net.Addr, buf []byte, proxyProtocol bool)
fwd.go:109
↓ 2 callersFunctionMain
(programName string, args []string)
main.go:96
↓ 2 callersFunctionMustTo16
Coverts IP address to its IPv6 representation. Nil or wrong length IP addresses map to :: (all zeros).
pp.go:18
↓ 2 callersFunctionOutboundDial
(srcIPs *SrcIPs, dst net.Addr)
net.go:248
↓ 2 callersFunctionParseDefAddress
(ipS string, portS string)
net.go:76
↓ 2 callersFunctionRemoteForward
(guest KaConn, srcIPs *SrcIPs, rf *FwdAddr)
routing.go:176
↓ 2 callersFunctionRoutingForward
(guest KaConn, srcIPs *SrcIPs, loc net.Addr)
routing.go:130
↓ 2 callersMethodSetDefaultAddrs
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 callersFunctionStackRoutingSetup
(s *stack.Stack, nic tcpip.NICID, assignNet string)
stack.go:167
↓ 2 callersFunctionUserTimeoutFromKeepalive
(kaInterval time.Duration, kaCount int)
kacon.go:49
↓ 2 callersMethodextend
(self, vmax)
tests/cover.py:12
↓ 2 callersFunctionnetAddrSetPort
(a net.Addr, port int)
addr.go:221
↓ 2 callersFunctionnetParseOrResolveIP
(h string)
net.go:238
↓ 2 callersFunctionnetworkProtocolNumberFromIP
(ip net.IP)
stack.go:261
↓ 2 callersFunctionproxyOneFlow
( in, out KaConn, readErrPtr, writeErrPtr *error, doneCh chan int, scDir int, sppHeader []byte)
proxy.go:63
↓ 2 callersFunctionrun
(argv1=[], close_fds=True)
tests/base.py:28
↓ 2 callersFunctionsimpleLookupHost
(resolver *net.Resolver, label string)
net.go:161
↓ 2 callersMethodstart_dns
(self, *kv)
tests/base.py:215
↓ 2 callersMethodstart_echo
(self, guest=False, log=False, tcp=True)
tests/base.py:196
↓ 1 callersFunctionAddrFromString
(value string)
addr.go:257
↓ 1 callersMethodBindAddr
()
addr.go:149
↓ 1 callersMethodCloseRead
()
proxy.go:59
↓ 1 callersMethodCloseWrite
()
proxy.go:60
↓ 1 callersFunctionDecodePP
(b []byte)
pp.go:72
↓ 1 callersFunctionDecodeSPP
(b []byte)
pp.go:26
↓ 1 callersFunctionExtractCMSGDestinationAddr
(oob []byte)
unconn/unconn.go:30
↓ 1 callersFunctionGetTunTap
(netNsPath string, ifName string)
stack.go:25
↓ 1 callersFunctionGonetDial
(s *stack.Stack, laddr, raddr net.Addr)
stack.go:285
↓ 1 callersFunctionGonetDialTCP
(s *stack.Stack, laddr, raddr *tcpip.FullAddress, network tcpip.NetworkProtocolNumber)
stack.go:200
↓ 1 callersFunctionGonetDialUDP
(s *stack.Stack, laddr, raddr *tcpip.FullAddress, network tcpip.NetworkProtocolNumber)
stack.go:273
↓ 1 callersMethodHostAddr
()
addr.go:167
↓ 1 callersFunctionLocalForwardTCP
(state *State, s *stack.Stack, rf FwdAddr, doneChannel <-chan bool)
fwd.go:15
↓ 1 callersFunctionLocalForwardUDP
(state *State, s *stack.Stack, rf FwdAddr, doneChannel <-chan bool)
fwd.go:55
↓ 1 callersFunctionMagicDialUDP
(laddr, raddr *net.UDPAddr)
udp.go:22
↓ 1 callersFunctionMustParseMAC
(m string)
net.go:32
↓ 1 callersFunctionMustSubnet
(ipNet *net.IPNet)
stack.go:159
↓ 1 callersFunctionNewStack
(rcvBufferSize, sndBufferSize int)
stack.go:77
↓ 1 callersFunctionPrime
(udpConn *net.UDPConn)
unconn/unconn.go:13
↓ 1 callersFunctionRead
(udpConn *net.UDPConn, buf []byte)
unconn/unconn.go:83
↓ 1 callersMethodSet
(value string)
addr.go:325
↓ 1 callersFunctionSetReuseaddr
(fd SyscallConner)
udp.go:12
↓ 1 callersFunctionStackPrimeArp
(s *stack.Stack, nic tcpip.NICID, ip net.IP)
stack.go:187
↓ 1 callersMethodStart
(interval time.Duration)
local_routes.go:25
↓ 1 callersFunctionStartMetrics
(addr net.Addr)
metrics.go:27
↓ 1 callersMethodStop
()
local_routes.go:45
↓ 1 callersFunctionTcpRoutingHandler
(state *State)
routing.go:82
↓ 1 callersFunctionUdpRoutingHandler
(s *stack.Stack, state *State)
routing.go:38
↓ 1 callersFunctionWrite
(udpConn *net.UDPConn, src net.IP, dst *net.UDPAddr, b []byte)
unconn/unconn.go:59
↓ 1 callersMethodclear
(self, start, stop)
tests/cover.py:17
↓ 1 callersMethodcount
(self)
tests/cover.py:41
↓ 1 callersFunctioncreateLinkEP
(s *stack.Stack, tunFd int, tapMode bool, macAddress net.HardwareAddr, tapMtu uint32)
stack.go:129
↓ 1 callersFunctioncreateNIC
(s *stack.Stack, nic tcpip.NICID, linkEP stack.LinkEndpoint)
stack.go:142
↓ 1 callersMethodget_tmp_filename
(self, name)
tests/base.py:120
↓ 1 callersFunctionhandle
(conn net.Conn)
tests/mocktcpecho/mocktcpecho.go:54
↓ 1 callersFunctioninitFlagSet
(flag *flag.FlagSet)
main.go:48
↓ 1 callersFunctionis_running_under_teamcity
()
tests/runner.py:11
↓ 1 callersFunctionjoinNetNS
(nsPath string, run func())
netns_utils.go:11
↓ 1 callersMethodlist
(self, state)
tests/cover.py:28
↓ 1 callersFunctionmain
()
tests/cover.py:47
↓ 1 callersMethodmark
(self, start, stop)
tests/cover.py:23
next →1–100 of 206, ranked by callers