MCPcopy Create free account

hub / github.com/WireGuard/wireguard-rs / functions

Functions320 in github.com/WireGuard/wireguard-rs

↓ 1 callersMethodclose
(&self)
src/wireguard/queue.rs:35
↓ 1 callersFunctioncompare
(old: &TAI64N, new: &TAI64N)
src/wireguard/handshake/timestamp.rs:25
↓ 1 callersMethodconfirm_key
(&self, keypair: &Arc<KeyPair>)
src/wireguard/router/peer.rs:316
↓ 1 callersMethodconnect
(&self)
src/platform/linux/uapi.rs:27
↓ 1 callersFunctionconsume_initiation
( device: &'a Device<O>, keyst: &KeyState, msg: &NoiseInitiation, )
src/wireguard/handshake/noise.rs:319
↓ 1 callersFunctionconsume_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 callersFunctioncreate_initiation
( rng: &mut R, keyst: &KeyState, peer: &Peer<O>, pk: &PublicKey, local: u32, msg: &mut
src/wireguard/handshake/noise.rs:230
↓ 1 callersFunctioncreate_response
( rng: &mut R, peer: &Peer<O>, pk: &PublicKey, local: u32, // sending identifier
src/wireguard/handshake/noise.rs:406
↓ 1 callersFunctiondaemonize
()
src/util.rs:40
↓ 1 callersMethoddecrease
(&self)
src/wireguard/wireguard.rs:103
↓ 1 callersMethoddown
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 callersFunctiondrop_privileges
()
src/util.rs:53
↓ 1 callersMethoderrno
(&self)
src/configuration/error.rs:42
↓ 1 callersMethodevent
(&mut self)
src/platform/linux/tun.rs:176
↓ 1 callersMethodget_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 callersMethodget_fwmark
(&self)
src/configuration/config.rs:239
↓ 1 callersFunctionget_ifindex
(name: &[u8; libc::IFNAMSIZ])
src/platform/linux/tun.rs:117
↓ 1 callersMethodget_keepalive_interval
(&self)
src/wireguard/timers.rs:42
↓ 1 callersMethodget_listen_port
(&self)
src/configuration/config.rs:256
↓ 1 callersFunctionget_mtu
(name: &[u8; libc::IFNAMSIZ])
src/platform/linux/tun.rs:132
↓ 1 callersMethodget_port
(&self)
src/platform/dummy/udp.rs:186
↓ 1 callersMethodget_private_key
(&self)
src/configuration/config.rs:248
↓ 1 callersMethodget_protocol_version
(&self)
src/configuration/config.rs:252
↓ 1 callersMethodget_psk
(&self, pk: &PublicKey)
src/wireguard/wireguard.rs:201
↓ 1 callersMethodget_route
(&self, packet: &[u8])
src/wireguard/router/route.rs:75
↓ 1 callersMethodget_sk
(&self)
src/wireguard/wireguard.rs:191
↓ 1 callersMethodget_tau
(&self, src: &[u8])
src/wireguard/handshake/macs.rs:205
↓ 1 callersFunctionhandle
(stream: &mut S, config: &C)
src/configuration/uapi/mod.rs:13
↓ 1 callersFunctionhandshake_worker
( wg: &WireGuard<T, B>, rx: Receiver<HandshakeJob<B::Endpoint>>, )
src/wireguard/workers.rs:148
↓ 1 callersMethodincrease
(&self)
src/wireguard/wireguard.rs:112
↓ 1 callersFunctioninit
()
src/wireguard/tests.rs:58
↓ 1 callersFunctioninner_length
(packet: &[u8])
src/wireguard/router/ip.rs:32
↓ 1 callersMethodis_ready
(&self)
src/wireguard/router/queue.rs:114
↓ 1 callersFunctionkeypair
split into (key, value) pair
src/configuration/uapi/mod.rs:37
↓ 1 callersMethodlist
(&self, value: &T)
src/wireguard/router/route.rs:47
↓ 1 callersMethodlist_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 callersMethodlookup_pk
Internal function Return the peer associated with the public key
src/wireguard/handshake/device.rs:436
↓ 1 callersMethodneed_another_keepalive
(&self)
src/wireguard/timers.rs:36
↓ 1 callersFunctionoperation
( stream: &mut S, config: &C, )
src/configuration/uapi/mod.rs:14
↓ 1 callersMethodpacket_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 callersFunctionpadding
(size: usize, mtu: usize)
src/wireguard/workers.rs:47
↓ 1 callersFunctionprofiler_start
(name: &str)
src/main.rs:39
↓ 1 callersFunctionprofiler_start
(name: &str)
src/wireguard/router/tests/bench.rs:77
↓ 1 callersFunctionprofiler_stop
()
src/wireguard/router/tests/bench.rs:71
↓ 1 callersMethodpurge_staged_packets
(&self)
src/wireguard/router/peer.rs:548
↓ 1 callersMethodremove_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 callersMethodreset_state
(&self)
src/wireguard/handshake/peer.rs:74
↓ 1 callersMethodsend
Cryptkey routes and sends a plaintext message (IP packet) # Arguments - msg: IP packet to crypt-key route
src/wireguard/router/device.rs:181
↓ 1 callersMethodsend
(t: &Self::Opaque, size: usize, _sent: bool, _keypair: &Arc<KeyPair>, _counter: u64)
src/wireguard/router/tests/bench.rs:57
↓ 1 callersMethodsent
(&self)
src/wireguard/router/tests/bench.rs:43
↓ 1 callersMethodsent_handshake_initiation
Called after a handshake worker sends a handshake initiation to the peer */
src/wireguard/timers.rs:194
↓ 1 callersMethodsent_handshake_response
(&self)
src/wireguard/timers.rs:202
↓ 1 callersMethodsequential_work
(self)
src/wireguard/router/queue.rs:118
↓ 1 callersFunctionserialize
(writer: &mut W, config: &C)
src/configuration/uapi/get.rs:5
↓ 1 callersMethodset_endpoint
(&self, peer: &PublicKey, addr: SocketAddr)
src/configuration/config.rs:311
↓ 1 callersMethodset_listen_port
(&self, port: u16)
src/configuration/config.rs:262
↓ 1 callersMethodset_persistent_keepalive_interval
(&self, peer: &PublicKey, secs: u64)
src/configuration/config.rs:317
↓ 1 callersMethodset_preshared_key
(&self, peer: &PublicKey, psk: [u8; 32])
src/configuration/config.rs:307
↓ 1 callersMethodset_private_key
(&self, sk: Option<StaticSecret>)
src/configuration/config.rs:243
↓ 1 callersMethodset_psk
(&self, pk: PublicKey, psk: [u8; 32])
src/wireguard/wireguard.rs:198
↓ 1 callersMethodstart_timers
(&self)
src/wireguard/timers.rs:71
↓ 1 callersMethodstop_timers
(&self)
src/wireguard/timers.rs:46
↓ 1 callersMethodtimers_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 callersMethodtimers_data_received
should be called after an authenticated data packet is received */
src/wireguard/timers.rs:100
↓ 1 callersMethodtimers_data_sent
should be called after an authenticated data packet is sent */
src/wireguard/timers.rs:90
↓ 1 callersMethodtimers_handshake_initiated
Should be called after a handshake initiation message is sent. */
src/wireguard/timers.rs:134
↓ 1 callersMethodtimers_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 callersMethodtimers_set_retransmit_handshake
(&self)
src/wireguard/timers.rs:184
↓ 1 callersFunctiontun_worker
(wg: &WireGuard<T, B>, reader: T::Reader)
src/wireguard/workers.rs:57
↓ 1 callersFunctionudp_worker
(wg: &WireGuard<T, B>, reader: B::Reader)
src/wireguard/workers.rs:103
↓ 1 callersMethodupdate
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 callersMethodupdate_ss
(&mut self)
src/wireguard/handshake/device.rs:106
↓ 1 callersMethodupdate_store
Should only be called if check returns true.
src/wireguard/router/anti_replay.rs:67
↓ 1 callersMethodwait
(&self)
src/wireguard/wireguard.rs:92
↓ 1 callersMethodwait
(&self, timeout: Duration)
src/wireguard/router/tests/tests.rs:39
↓ 1 callersFunctionworker
( receiver: Receiver<JobUnion<E, C, T, B>>, )
src/wireguard/router/worker.rs:15
Functionanti_replay
()
src/wireguard/router/anti_replay.rs:118
Functionbench_router_outbound
(b: &mut Bencher)
src/wireguard/router/tests/bench.rs:95
Methodbind
(_port: u16)
src/platform/dummy/udp.rs:193
Methodbind
(mut port: u16)
src/platform/linux/udp.rs:671
Methodbind
(name: &str)
src/platform/linux/uapi.rs:15
Methodbind4
Bind on all IPv4 interfaces. * * Arguments: * * - 'port', port to bind to (0 = any) * * Returns: * * Returns a
src/platform/linux/udp.rs:598
Methodbind6
Bind on all IPv6 interfaces * * Arguments: * * - 'port', port to bind to (0 = any) * * Returns: * * Returns a
src/platform/linux/udp.rs:519
Methodclear_src
(&mut self)
src/platform/dummy/endpoint.rs:17
Methodclear_src
(&mut self)
src/platform/linux/udp.rs:185
Methodclone
(&self)
src/configuration/config.rs:58
Methodclone
(&self)
src/wireguard/router/receive.rs:29
Methodcollect
collect keys mapping to the given value
src/wireguard/router/route.rs:27
Methodcreate
(store: bool)
src/platform/dummy/tun/dummy.rs:163
Methodcreate
(name: &str)
src/platform/linux/tun.rs:322
Methoddefault
()
src/wireguard/router/anti_replay.rs:32
Methoddefault
()
src/wireguard/handshake/messages.rs:134
Methodderef
(&self)
src/wireguard/wireguard.rs:77
Methodderef
(&self)
src/wireguard/router/device.rs:77
Methodderef
(&self)
src/wireguard/router/peer.rs:58
Methodderef
(&self)
src/wireguard/router/tests/tests.rs:68
Methoddescription
(&self)
src/configuration/error.rs:31
Methoddescription
(&self)
src/wireguard/router/types.rs:65
Methoddescription
(&self)
src/wireguard/handshake/types.rs:26
Methoddescription
(&self)
src/platform/dummy/udp.rs:26
← previousnext →101–200 of 320, ranked by callers