Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/canndrew/netsim
/ functions
Functions
164 in github.com/canndrew/netsim
⨍
Functions
164
◇
Types & classes
35
Method
data
(&self)
src/packet.rs:698
Method
drop
(&mut self)
src/machine.rs:89
Method
drop
(&mut self)
src/namespace.rs:65
Method
fmt
(&self, formatter: &mut fmt::Formatter)
src/packet.rs:167
Method
fmt
(&self, f: &mut fmt::Formatter)
src/network.rs:252
Method
from_str
(s: &str)
src/network.rs:278
Method
hair_pinning
Enables [NAT hair-pinning](https://en.wikipedia.org/wiki/Network_address_translation#NAT_hairpinning).
src/device/nat/mod.rs:48
Method
infer_from_addr
Guesses an `Ipv4Network` from an `Ipv4Addr` by checking which, if any, of the [reserved IP address ranges](https://en.wikipedia.org/wiki/Reserved_IP_a
src/network.rs:130
Method
insert_iface
Insert an interface into the internal side of this NAT. Packets sent by this interface to addresses outside the NAT's internal network will be address
src/device/nat/mod.rs:134
Method
into_future
(self)
src/machine.rs:134
Method
ipv4_default_route_with_gateway
Adds an IPv4 route to the machine's routing table which forwards through this interface via the specified gateway. Sets it as the default route.
src/iface/create.rs:82
Function
ipv4_network
(input: TokenStream)
netsim-macros/src/lib.rs:19
Method
ipv6_addr
Sets the interface's IPv6 address.
src/iface/create.rs:49
Method
ipv6_default_route
Adds an IPv6 route for this interface to the machine's routing table and sets it as the default route.
src/iface/create.rs:94
Function
ipv6_network
(input: TokenStream)
netsim-macros/src/lib.rs:66
Method
ipv6_route
Adds an IPv6 route for this interface to the machine's routing table.
src/iface/create.rs:87
Method
is_terminated
(&self)
src/device/channel.rs:144
Method
is_terminated
(&self)
src/adapter/loss.rs:143
Function
isolate
(_attr: TokenStream, input: TokenStream)
netsim-macros/src/lib.rs:110
Function
main
()
examples/capture_packet.rs:12
Function
main
()
examples/ping_pong.rs:16
Function
main
()
examples/nat.rs:17
Function
main
()
examples/isolate.rs:10
Method
name
Sets the interface name. Defaults to "netsim" if not set.
src/iface/create.rs:35
Function
nat_tcp_reset
()
src/tests/nat.rs:72
Method
new
Create a new machine. A machine initially has no network interfaces, so attempting to (eg.) make an outgoing TCP connection from a future running on t
src/machine.rs:28
Method
new
()
src/packet.rs:21
Method
new
Creates a network range containing `base_addr` and all addresses that share the same `subnet_mask_bits` most-significant bits. # Example `Ipv4Networ
src/network.rs:78
Method
new
(fd: OwnedFd)
src/iface/stream.rs:17
Method
new
(machine: &Machine)
src/iface/create.rs:21
Method
new
Creates a connected pair of `BiChannel`s.
src/device/channel.rs:12
Method
new
()
src/device/hub.rs:19
Method
new
Starts building a [`Nat`](crate::device::Nat). Use to configure the NAT then call [`build`](crate::device::NatBuilder::build) to create the NAT. `ext
src/device/nat/mod.rs:36
Method
new
()
src/device/nat/port_map.rs:12
Method
new
(loss_rate: f64, jitter_period: Duration)
src/adapter/loss.rs:22
Method
new
()
src/adapter/delay.rs:31
Method
new_box
(data: Box<[u8]>)
src/packet.rs:246
Method
next_back
(&mut self)
src/network.rs:412
Function
non_zero_jitter_is_locally_non_random
()
src/tests/loss.rs:52
Method
poll
(self: Pin<&mut Self>, cx: &mut task::Context)
src/device/nat/mod.rs:563
Method
poll_close
( self: Pin<&mut Self>, cx: &mut task::Context<'_>, )
src/iface/stream.rs:83
Method
poll_close
(self: Pin<&mut Self>, cx: &mut task::Context)
src/device/channel.rs:49
Method
poll_close
(self: Pin<&mut Self>, cx: &mut task::Context<'_>)
src/adapter/loss.rs:133
Method
poll_close
(self: Pin<&mut Self>, cx: &mut task::Context<'_>)
src/adapter/delay.rs:190
Method
poll_flush
( self: Pin<&mut Self>, cx: &mut task::Context<'_>, )
src/iface/stream.rs:45
Method
poll_flush
(self: Pin<&mut Self>, cx: &mut task::Context<'_>)
src/adapter/loss.rs:128
Method
poll_flush
(self: Pin<&mut Self>, cx: &mut task::Context<'_>)
src/adapter/delay.rs:162
Method
poll_next
( self: Pin<&mut Self>, cx: &mut task::Context<'_>, )
src/iface/stream.rs:94
Method
poll_next
(self: Pin<&mut Self>, cx: &mut task::Context)
src/adapter/loss.rs:89
Method
poll_next
(self: Pin<&mut Self>, cx: &mut task::Context)
src/adapter/delay.rs:108
Method
poll_ready
( self: Pin<&mut Self>, cx: &mut task::Context<'_>, )
src/iface/stream.rs:31
Method
poll_ready
(self: Pin<&mut Self>, cx: &mut task::Context)
src/adapter/loss.rs:114
Method
protocol_arc
(self: Arc<Ipv4Packet>)
src/packet.rs:325
Method
protocol_mut
(&mut self)
src/packet.rs:345
Function
random_delays_are_approx_correct
()
src/tests/delay.rs:55
Method
set_seq_number
(&mut self, seq_number: u32)
src/packet.rs:572
Method
size_hint
(&self)
src/network.rs:388
Method
source
(&self)
src/network.rs:364
Method
start_send
(self: Pin<&mut Self>, item: Box<IpPacket>)
src/iface/stream.rs:38
Method
start_send
(self: Pin<&mut Self>, item: T)
src/adapter/loss.rs:119
Method
version_arc
(self: Arc<IpPacket>)
src/packet.rs:260
Method
version_mut
(&mut self)
src/packet.rs:278
Function
zero_jitter_is_random
()
src/tests/loss.rs:4
Function
zero_random_delay_in_order
()
src/tests/delay.rs:4
← previous
101–164 of 164, ranked by callers