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
↓ 1 callers
Method
net_ns_path
(self)
tests/base.py:174
Method
Addr
()
fwd.go:51
Method
Close
()
metrics.go:64
Method
Contains
(ip net.IP)
local_routes.go:18
Function
EncodeSPP
(b []byte, c, p *net.UDPAddr)
pp.go:56
Method
Err
()
metrics.go:60
Method
Set
(value string)
addr.go:52
Method
Set
(value string)
addr.go:248
Method
Set
(commaValue string)
addr.go:369
Method
Set
(value string)
main_test.go:17
Method
SetTimeouts
(kaInterval time.Duration, kaCount int)
stack.go:243
Method
SetTimeouts
(kaInterval time.Duration, kaCount int)
kacon.go:20
Method
SetTimeouts
(kaInterval time.Duration, kaCount int)
kacon.go:73
Method
String
()
addr.go:40
Method
String
()
addr.go:241
Method
String
()
addr.go:343
Method
String
()
addr.go:361
Method
String
()
proxy.go:29
Method
String
()
main_test.go:14
Method
String
()
net.go:129
Function
TestMain
(m *testing.M)
main_test.go:36
Function
TestRunMain
(t *testing.T)
main_test.go:32
Function
TestSplitHost
(t *testing.T)
addr_test.go:19
Method
__enter__
(self)
tests/base.py:180
Method
__exit__
(self, type, value, traceback)
tests/base.py:183
Method
__init__
(self)
tests/cover.py:9
Method
__init__
(self, argv, close_fds=True)
tests/base.py:42
Function
connect
(ip='127.0.0.1', port=0, path=None, udp=False, src='', sport=0, cloexec=True, cleanup=None, timeou
tests/utils.py:70
Function
decorate
(fn)
tests/base.py:256
Function
find_free_port
(ip='127.0.0.1', udp=False)
tests/base.py:281
Method
graceful_stop
(self, wait=True)
tests/base.py:96
Function
handleDnsRequest
(w dns.ResponseWriter, r *dns.Msg)
tests/mockdns/mockdns.go:17
Function
init
()
metrics.go:13
Function
init
Inject our option whether go tests like it or not. Muhahaha.
main_test.go:28
Function
isolateHostNetwork
()
tests/base.py:255
Function
main
()
main.go:70
Function
main
()
tests/mocktcpecho/mocktcpecho.go:11
Function
main
()
tests/mockdns/mockdns.go:52
Function
main
()
tests/mockudpecho/mockudpecho.go:13
Function
maybe
(*args, **kw)
tests/base.py:259
Method
setUp
(self)
tests/base.py:128
Method
stdout_log
(self)
tests/base.py:60
Method
tearDown
(self)
tests/base.py:154
Method
test_allow_cover_cases
Test --allow parsing corner cases
tests/test_basic.py:932
Method
test_allow_range_all_ports
Test --allow and --deny with disabled routing - all ports
tests/test_basic.py:891
Method
test_basic_connection
Test connection reset on netstack IP. Netstack is not supposed to forward nor route this.
tests/test_basic.py:83
Method
test_basic_ping
Due to how netstack is configured, we will answer to ping against any IP. Let's test it!.
tests/test_basic.py:30
Method
test_basic_ping6
Due to how netstack is configured, we will answer to ping against any IP. Let's test it!.
tests/test_basic.py:115
Method
test_deny_range_some_ports
Test --allow and --deny with --disable-routing - some ports
tests/test_basic.py:911
Method
test_disabe_routing
Test tcp routing security, specifically by default routing should be disabled. This test is the same as test above.
tests/test_basic.py:831
Method
test_disable_host_networks
Test tcp routing security, specifically --disable-host-networks option.
tests/test_basic.py:809
Function
test_encode_shell
()
tests/utils.py:11
Method
test_fd
Check inherinting tuntap fd with -fd option
tests/test_basic.py:62
Method
test_fwd_parsing_one
Test basic forwarding parsing, just port
tests/test_basic.py:244
Method
test_fwd_parsing_two
Test basic forwarding parsing, port and host
tests/test_basic.py:252
Method
test_help
Basic test if -h prints stuff looking like help screen.
tests/test_basic.py:11
Method
test_loc_parsing_one
Test basic forwarding parsing, just port
tests/test_basic.py:260
Method
test_loc_parsing_two
Test basic forwarding parsing, port and host
tests/test_basic.py:268
Method
test_local_any_v4
Test a local forward rule with the 0.0.0.0 addr
tests/test_basic.py:373
Method
test_local_any_v6
Test a local forward rule with the :: addr
tests/test_basic.py:385
Method
test_local_empty
Test a local forward rule with no IPs given
tests/test_basic.py:291
Method
test_local_fwd_error_tcp
Test bind errors on local TCP forwarding.
tests/test_basic.py:91
Method
test_local_fwd_error_udp
Test bind errors on local UDP forwarding.
tests/test_basic.py:102
Method
test_local_fwd_resolve_host
Test if you can local forward to dns label.
tests/test_basic.py:276
Method
test_local_implicit_forward_v4
Test a local forward rule with an implicit IPv4 denstination
tests/test_basic.py:326
Method
test_local_implicit_forward_v6
Test a local forward rule with an implicit IPv6 denstination
tests/test_basic.py:350
Method
test_local_implicit_host_v4
Test a local forward rule with an implicit IPv4 host
tests/test_basic.py:314
Method
test_local_implicit_host_v6
Test a local forward rule with an implicit IPv6 host
tests/test_basic.py:338
Method
test_localhost_v4
Test a local forward rule with the localhost label
tests/test_basic.py:397
Method
test_metric
Test if metrics server run.
tests/test_basic.py:133
Method
test_pcap
Check -pcap capture
tests/test_basic.py:42
Method
test_remote_empty
Test a remote forward rule with no IPs given
tests/test_basic.py:303
Method
test_remote_implicit_forward_v6
Test a remote forward rule with an implicit IPv6 destination
tests/test_basic.py:362
Method
test_remote_srv
Test -R=tcp://:2222:tcp.echo.server@srv-8600:0 syntax
tests/test_basic.py:974
Method
test_remote_srv_ipv6
Test -R=tcp://:2222:[tcp.echo.server@srv-[::1]:8600]:0 syntax
tests/test_basic.py:1045
Method
test_remote_srv_withut_dns
Test -R=tcp://:2222:tcp.echo.server@srv-8600:0 syntax but when dns server is down. Most importantly - starting the app with dns dwown.
tests/test_basic.py:1011
Method
test_source_ipv4
Test --source-ipv4 option
tests/test_basic.py:854
Method
test_source_ipv6
Test --source-ipv6 option
tests/test_basic.py:871
Method
test_tcp_local_fwd
Test basic local forwarding - bind to local port on host and forward it to the guest.
tests/test_basic.py:476
Method
test_tcp_local_fwd_2
Test tcp local forwarding - bind to local port on host and forward it to the guest. Establish connection from a routable IP - it shoul
tests/test_basic.py:491
Method
test_tcp_local_fwd_v4tov6
Test basic local forwarding - bind to local IPv4 port on host and forward it to the guest via IPv6.
tests/test_basic.py:528
Method
test_tcp_local_fwd_v6tov4
Test local forwarding - bind to local IPv6 port on host and forward it to the guest via IPv4.
tests/test_basic.py:510
Method
test_tcp_pp_local_fwd
Test inbound TCP proxy-protocol
tests/test_basic.py:652
Method
test_tcp_pp_local_fwd_noport
Test inbound TCP proxy-protocol, while specifying zero port on the guest side
tests/test_basic.py:683
Method
test_tcp_pp_local_fwd_v4tov6
Test inbound TCP v4 proxy-protocol to v6 destination
tests/test_basic.py:785
Method
test_tcp_pp_local_fwd_v6
Test inbound TCP v6 proxy-protocol
tests/test_basic.py:744
Method
test_tcp_pp_local_fwd_v6tov4
Test inbound TCP v6 proxy-protocol to v4 destination
tests/test_basic.py:764
Method
test_tcp_remote_fwd
Test tcp remote forwarding - bind to remote port on guest and forward it to host.
tests/test_basic.py:411
Method
test_tcp_remote_fwd_2
Test tcp remote forwarding - bind to remote port on arbitrary guest IP and forward it to host.
tests/test_basic.py:421
Method
test_tcp_routing
Test tcp routing. Establish connection from guest onto an IP assigned to local-scoped IP on host.
tests/test_basic.py:145
Method
test_tcp_routing_multi
Test tcp routing. Can we establish like 200 connnections?
tests/test_basic.py:173
Method
test_tcp_routing_v6
Test tcp routing. Establish connection from guest onto an IP assigned to local-scoped IP on host.
tests/test_basic.py:159
Method
test_udp_large_packet
Test UDP packet larger than 1500 bytes
tests/test_basic.py:227
Method
test_udp_local_fwd
Test udp local forwarding - bind to local port on host and forward it to the guest.
tests/test_basic.py:545
Method
test_udp_local_fwd_2
Test udp local forwarding - bind to local port on host and forward it to the guest. Establish connection from a routable IP - it shoul
tests/test_basic.py:560
Method
test_udp_local_fwd_merge
Test if udp message boundry is preserved.
tests/test_basic.py:630
Method
test_udp_local_fwd_v4tov6
Test basic local forwarding - bind to local IPv4 port on host and forward it to the guest via IPv6.
tests/test_basic.py:596
Method
test_udp_local_fwd_v6tov4
Test local forwarding - bind to local IPv6 port on host and forward it to the guest via IPv4.
tests/test_basic.py:579
Method
test_udp_remote_fwd
Test udp remote forwarding - bind to remote port on guest and forward it to host.
tests/test_basic.py:433
Method
test_udp_remote_fwd_2
Test udp remote forwarding - bind to remote port on arbitrary guest IP and forward it to host.
tests/test_basic.py:445
← previous
next →
101–200 of 206, ranked by callers