Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/WireGuard/wireguard-rs
/ functions
Functions
320 in github.com/WireGuard/wireguard-rs
⨍
Functions
320
◇
Types & classes
119
↓ 1 callers
Method
close
(&self)
src/wireguard/queue.rs:35
↓ 1 callers
Function
compare
(old: &TAI64N, new: &TAI64N)
src/wireguard/handshake/timestamp.rs:25
↓ 1 callers
Method
confirm_key
(&self, keypair: &Arc<KeyPair>)
src/wireguard/router/peer.rs:316
↓ 1 callers
Method
connect
(&self)
src/platform/linux/uapi.rs:27
↓ 1 callers
Function
consume_initiation
( device: &'a Device<O>, keyst: &KeyState, msg: &NoiseInitiation, )
src/wireguard/handshake/noise.rs:319
↓ 1 callers
Function
consume_response
The state lock is released while processing the message to * allow concurrent processing of potential responses to the initiation, * in order to bet
src/wireguard/handshake/noise.rs:494
↓ 1 callers
Function
create_initiation
( rng: &mut R, keyst: &KeyState, peer: &Peer<O>, pk: &PublicKey, local: u32, msg: &mut
src/wireguard/handshake/noise.rs:230
↓ 1 callers
Function
create_response
( rng: &mut R, peer: &Peer<O>, pk: &PublicKey, local: u32, // sending identifier
src/wireguard/handshake/noise.rs:406
↓ 1 callers
Function
daemonize
()
src/util.rs:40
↓ 1 callers
Method
decrease
(&self)
src/wireguard/wireguard.rs:103
↓ 1 callers
Method
down
Brings the WireGuard device down. Usually called when the associated interface is brought down. This stops any further action/timer on any peer and p
src/wireguard/wireguard.rs:127
↓ 1 callers
Function
drop_privileges
()
src/util.rs:53
↓ 1 callers
Method
errno
(&self)
src/configuration/error.rs:42
↓ 1 callers
Method
event
(&mut self)
src/platform/linux/tun.rs:176
↓ 1 callers
Method
get_endpoint
Returns the current endpoint of the peer (for configuration) # Note Does not convey potential "sticky socket" information
src/wireguard/router/peer.rs:377
↓ 1 callers
Method
get_fwmark
(&self)
src/configuration/config.rs:239
↓ 1 callers
Function
get_ifindex
(name: &[u8; libc::IFNAMSIZ])
src/platform/linux/tun.rs:117
↓ 1 callers
Method
get_keepalive_interval
(&self)
src/wireguard/timers.rs:42
↓ 1 callers
Method
get_listen_port
(&self)
src/configuration/config.rs:256
↓ 1 callers
Function
get_mtu
(name: &[u8; libc::IFNAMSIZ])
src/platform/linux/tun.rs:132
↓ 1 callers
Method
get_port
(&self)
src/platform/dummy/udp.rs:186
↓ 1 callers
Method
get_private_key
(&self)
src/configuration/config.rs:248
↓ 1 callers
Method
get_protocol_version
(&self)
src/configuration/config.rs:252
↓ 1 callers
Method
get_psk
(&self, pk: &PublicKey)
src/wireguard/wireguard.rs:201
↓ 1 callers
Method
get_route
(&self, packet: &[u8])
src/wireguard/router/route.rs:75
↓ 1 callers
Method
get_sk
(&self)
src/wireguard/wireguard.rs:191
↓ 1 callers
Method
get_tau
(&self, src: &[u8])
src/wireguard/handshake/macs.rs:205
↓ 1 callers
Function
handle
(stream: &mut S, config: &C)
src/configuration/uapi/mod.rs:13
↓ 1 callers
Function
handshake_worker
( wg: &WireGuard<T, B>, rx: Receiver<HandshakeJob<B::Endpoint>>, )
src/wireguard/workers.rs:148
↓ 1 callers
Method
increase
(&self)
src/wireguard/wireguard.rs:112
↓ 1 callers
Function
init
()
src/wireguard/tests.rs:58
↓ 1 callers
Function
inner_length
(packet: &[u8])
src/wireguard/router/ip.rs:32
↓ 1 callers
Method
is_ready
(&self)
src/wireguard/router/queue.rs:114
↓ 1 callers
Function
keypair
split into (key, value) pair
src/configuration/uapi/mod.rs:37
↓ 1 callers
Method
list
(&self, value: &T)
src/wireguard/router/route.rs:47
↓ 1 callers
Method
list_allowed_ips
List subnets mapped to the peer # Returns A vector of subnets, represented by as mask/size
src/wireguard/router/peer.rs:531
↓ 1 callers
Method
lookup_pk
Internal function Return the peer associated with the public key
src/wireguard/handshake/device.rs:436
↓ 1 callers
Method
need_another_keepalive
(&self)
src/wireguard/timers.rs:36
↓ 1 callers
Function
operation
( stream: &mut S, config: &C, )
src/configuration/uapi/mod.rs:14
↓ 1 callers
Method
packet_send_handshake_initiation
Queue a handshake request for the parallel workers * (if one does not already exist) * * The function is ratelimited. */
src/wireguard/peer.rs:47
↓ 1 callers
Function
padding
(size: usize, mtu: usize)
src/wireguard/workers.rs:47
↓ 1 callers
Function
profiler_start
(name: &str)
src/main.rs:39
↓ 1 callers
Function
profiler_start
(name: &str)
src/wireguard/router/tests/bench.rs:77
↓ 1 callers
Function
profiler_stop
()
src/wireguard/router/tests/bench.rs:71
↓ 1 callers
Method
purge_staged_packets
(&self)
src/wireguard/router/peer.rs:548
↓ 1 callers
Method
remove_allowed_ips
Clear subnets mapped to the peer. After the call, no subnets will be cryptkey routed to the peer. Used for the UAPI command "replace_allowed_ips=true"
src/wireguard/router/peer.rs:538
↓ 1 callers
Method
reset_state
(&self)
src/wireguard/handshake/peer.rs:74
↓ 1 callers
Method
send
Cryptkey routes and sends a plaintext message (IP packet) # Arguments - msg: IP packet to crypt-key route
src/wireguard/router/device.rs:181
↓ 1 callers
Method
send
(t: &Self::Opaque, size: usize, _sent: bool, _keypair: &Arc<KeyPair>, _counter: u64)
src/wireguard/router/tests/bench.rs:57
↓ 1 callers
Method
sent
(&self)
src/wireguard/router/tests/bench.rs:43
↓ 1 callers
Method
sent_handshake_initiation
Called after a handshake worker sends a handshake initiation to the peer */
src/wireguard/timers.rs:194
↓ 1 callers
Method
sent_handshake_response
(&self)
src/wireguard/timers.rs:202
↓ 1 callers
Method
sequential_work
(self)
src/wireguard/router/queue.rs:118
↓ 1 callers
Function
serialize
(writer: &mut W, config: &C)
src/configuration/uapi/get.rs:5
↓ 1 callers
Method
set_endpoint
(&self, peer: &PublicKey, addr: SocketAddr)
src/configuration/config.rs:311
↓ 1 callers
Method
set_listen_port
(&self, port: u16)
src/configuration/config.rs:262
↓ 1 callers
Method
set_persistent_keepalive_interval
(&self, peer: &PublicKey, secs: u64)
src/configuration/config.rs:317
↓ 1 callers
Method
set_preshared_key
(&self, peer: &PublicKey, psk: [u8; 32])
src/configuration/config.rs:307
↓ 1 callers
Method
set_private_key
(&self, sk: Option<StaticSecret>)
src/configuration/config.rs:243
↓ 1 callers
Method
set_psk
(&self, pk: PublicKey, psk: [u8; 32])
src/wireguard/wireguard.rs:198
↓ 1 callers
Method
start_timers
(&self)
src/wireguard/timers.rs:71
↓ 1 callers
Method
stop_timers
(&self)
src/wireguard/timers.rs:46
↓ 1 callers
Method
timers_any_authenticated_packet_received
Should be called after any type of authenticated packet is received, whether: * - keepalive * - data * - handshake */
src/wireguard/timers.rs:125
↓ 1 callers
Method
timers_data_received
should be called after an authenticated data packet is received */
src/wireguard/timers.rs:100
↓ 1 callers
Method
timers_data_sent
should be called after an authenticated data packet is sent */
src/wireguard/timers.rs:90
↓ 1 callers
Method
timers_handshake_initiated
Should be called after a handshake initiation message is sent. */
src/wireguard/timers.rs:134
↓ 1 callers
Method
timers_session_derived
Should be called after an ephemeral key is created, which is before sending a * handshake response or after receiving a handshake response.
src/wireguard/timers.rs:162
↓ 1 callers
Method
timers_set_retransmit_handshake
(&self)
src/wireguard/timers.rs:184
↓ 1 callers
Function
tun_worker
(wg: &WireGuard<T, B>, reader: T::Reader)
src/wireguard/workers.rs:57
↓ 1 callers
Function
udp_worker
(wg: &WireGuard<T, B>, reader: B::Reader)
src/wireguard/workers.rs:103
↓ 1 callers
Method
update
Checks and marks a sequence number in the replay filter # Arguments - seq: Sequence number check for replay and add to filter # Returns Ok(()) if
src/wireguard/router/anti_replay.rs:103
↓ 1 callers
Method
update_ss
(&mut self)
src/wireguard/handshake/device.rs:106
↓ 1 callers
Method
update_store
Should only be called if check returns true.
src/wireguard/router/anti_replay.rs:67
↓ 1 callers
Method
wait
(&self)
src/wireguard/wireguard.rs:92
↓ 1 callers
Method
wait
(&self, timeout: Duration)
src/wireguard/router/tests/tests.rs:39
↓ 1 callers
Function
worker
( receiver: Receiver<JobUnion<E, C, T, B>>, )
src/wireguard/router/worker.rs:15
Function
anti_replay
()
src/wireguard/router/anti_replay.rs:118
Function
bench_router_outbound
(b: &mut Bencher)
src/wireguard/router/tests/bench.rs:95
Method
bind
(_port: u16)
src/platform/dummy/udp.rs:193
Method
bind
(mut port: u16)
src/platform/linux/udp.rs:671
Method
bind
(name: &str)
src/platform/linux/uapi.rs:15
Method
bind4
Bind on all IPv4 interfaces. * * Arguments: * * - 'port', port to bind to (0 = any) * * Returns: * * Returns a
src/platform/linux/udp.rs:598
Method
bind6
Bind on all IPv6 interfaces * * Arguments: * * - 'port', port to bind to (0 = any) * * Returns: * * Returns a
src/platform/linux/udp.rs:519
Method
clear_src
(&mut self)
src/platform/dummy/endpoint.rs:17
Method
clear_src
(&mut self)
src/platform/linux/udp.rs:185
Method
clone
(&self)
src/configuration/config.rs:58
Method
clone
(&self)
src/wireguard/router/receive.rs:29
Method
collect
collect keys mapping to the given value
src/wireguard/router/route.rs:27
Method
create
(store: bool)
src/platform/dummy/tun/dummy.rs:163
Method
create
(name: &str)
src/platform/linux/tun.rs:322
Method
default
()
src/wireguard/router/anti_replay.rs:32
Method
default
()
src/wireguard/handshake/messages.rs:134
Method
deref
(&self)
src/wireguard/wireguard.rs:77
Method
deref
(&self)
src/wireguard/router/device.rs:77
Method
deref
(&self)
src/wireguard/router/peer.rs:58
Method
deref
(&self)
src/wireguard/router/tests/tests.rs:68
Method
description
(&self)
src/configuration/error.rs:31
Method
description
(&self)
src/wireguard/router/types.rs:65
Method
description
(&self)
src/wireguard/handshake/types.rs:26
Method
description
(&self)
src/platform/dummy/udp.rs:26
← previous
next →
101–200 of 320, ranked by callers