Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bluecatengineering/dora
/ functions
Functions
611 in github.com/bluecatengineering/dora
⨍
Functions
611
◇
Types & classes
146
↓ 129 callers
Method
clone
(&self)
libs/ip-manager/src/lib.rs:192
↓ 117 callers
Method
into
(self)
libs/ip-manager/src/lib.rs:166
↓ 75 callers
Method
insert
Insert a type into the map. If the type already exists, it will be returned. ``` # use dora_core::server::typemap::TypeMap; let mut map = TypeMap::ne
dora-core/src/server/typemap.rs:68
↓ 73 callers
Method
parse
attempts to decode the config first as JSON, then YAML, finally erroring if neither work
libs/config/src/lib.rs:69
↓ 64 callers
Method
build
(&self, broadcast: bool)
bin/tests/common/builder.rs:72
↓ 57 callers
Method
iter
return an iterator over the range
libs/config/src/v4.rs:531
↓ 55 callers
Method
opts
return the option parameters that should be included (if requested)
libs/config/src/v4.rs:501
↓ 49 callers
Function
eval
evaluate the AST, using values from this DHCP message
libs/client-classification/src/lib.rs:182
↓ 48 callers
Function
parse
(expr: S)
libs/client-classification/src/ast.rs:104
↓ 38 callers
Method
insert
insert id into cache with lease time, replacing existing entry
libs/client-protection/src/lib.rs:65
↓ 37 callers
Method
run
(&mut self, msg_type: MsgType)
bin/tests/common/client.rs:141
↓ 27 callers
Method
get
(self)
libs/config/src/wire/v4.rs:112
↓ 26 callers
Method
v4
(&self)
libs/config/src/lib.rs:33
↓ 24 callers
Method
as_ref
(&self)
libs/config/src/wire/v4.rs:118
↓ 21 callers
Method
add
Add an item at some key index with a list of dependents
libs/topo_sort/src/lib.rs:127
↓ 21 callers
Method
chaddr
(id: T)
libs/ddns/src/dhcid.rs:28
↓ 21 callers
Method
reserve_first
get the first available IP in a range with a given id/expiry/network
libs/ip-manager/src/lib.rs:282
↓ 21 callers
Function
start
(config: cli::Config)
bin/src/main.rs:62
↓ 17 callers
Method
ip
get the IP for this reservation
libs/config/src/v4.rs:596
↓ 16 callers
Method
get
Get a reference to a type previously inserted ``` # use dora_core::server::typemap::TypeMap; let mut map = TypeMap::new(); assert!(map.get::<i32>().i
dora-core/src/server/typemap.rs:90
↓ 16 callers
Method
msg
Clone underlying `Bytes` pointer
dora-core/src/server/msg.rs:41
↓ 15 callers
Method
as_ref
(&self)
libs/ip-manager/src/lib.rs:156
↓ 15 callers
Method
set_subnet
(&mut self, subnet: Ipv4Net)
libs/config/src/v4.rs:349
↓ 14 callers
Method
set_ranges
(&mut self, ranges: Vec<NetRange>)
libs/config/src/v4.rs:353
↓ 13 callers
Function
found_or_default
( found_interfaces: Vec<NetworkInterface>, interfaces: Option<&[wire::Interface]>, )
libs/config/src/lib.rs:142
↓ 13 callers
Method
resp_msg_mut
The mutable deserialized contents of `resp_msg`
dora-core/src/server/context.rs:267
↓ 12 callers
Function
blank_ctx
for testing
plugins/message-type/src/lib.rs:342
↓ 12 callers
Method
contains
returns true if the range contains a given IP
libs/config/src/v4.rs:509
↓ 12 callers
Method
msg_mut
The mutable deserialized contents of `msg`
dora-core/src/server/context.rs:249
↓ 12 callers
Function
parse_str
(str: &str)
libs/client-classification/src/ast.rs:274
↓ 12 callers
Method
v6
(&self)
libs/config/src/v4.rs:115
↓ 11 callers
Method
bytes
Get a reference to the bytes
dora-core/src/server/msg.rs:36
↓ 11 callers
Method
get
(&self, ip: IpAddr)
libs/ip-manager/src/lib.rs:429
↓ 11 callers
Method
get
(&self)
plugins/message-type/src/lib.rs:248
↓ 11 callers
Method
match_longest_forward
get longest forward match
libs/config/src/wire/v4.rs:639
↓ 11 callers
Method
network
get a `Network` with a subnet that contains the given IP
libs/config/src/v4.rs:205
↓ 11 callers
Function
systime_epoch
(time: SystemTime)
libs/ip-manager/src/sqlite.rs:318
↓ 10 callers
Method
find
(&self, name: &str)
libs/config/src/client_classes.rs:26
↓ 10 callers
Method
finish
(&self)
dora-core/src/server/typemap.rs:25
↓ 10 callers
Function
harness
( cli: FqdnFlags, (enable, override_client, override_no_update): (bool, bool, bool), e
libs/ddns/src/lib.rs:337
↓ 9 callers
Method
msg
The deserialized contents of `msg`
dora-core/src/server/context.rs:244
↓ 8 callers
Method
determine_lease
calculate the lease time based on a possible requested time
libs/config/src/lib.rs:191
↓ 8 callers
Method
lease
get the lease time
libs/config/src/v4.rs:505
↓ 7 callers
Function
blank_msg
()
dora-core/src/server/context.rs:855
↓ 7 callers
Method
handle
(&self, ctx: &mut MsgContext<Message>)
plugins/leases/src/lib.rs:126
↓ 7 callers
Function
is_bool
(val: Val)
libs/client-classification/src/lib.rs:76
↓ 7 callers
Method
next
skips any IPs in exclusions
libs/config/src/v4.rs:568
↓ 7 callers
Method
ping
(&self, seq_cnt: u16)
libs/icmp-ping/src/lib.rs:119
↓ 7 callers
Function
run_cmd
(cmd: &str)
bin/tests/common/env.rs:127
↓ 7 callers
Method
subnet
(&self)
libs/config/src/v4.rs:371
↓ 6 callers
Method
enable_updates
(&self)
libs/config/src/wire/v4.rs:620
↓ 6 callers
Method
meta
return meta data associated with recv'd packet
dora-core/src/server/context.rs:91
↓ 6 callers
Method
rdata
The DHCID RDATA has the following structure: < identifier-type > < digest-type > < digest > identifier-type: chaddr 0x0000 client id 0x0001 d
libs/ddns/src/dhcid.rs:68
↓ 6 callers
Method
resp_msg
The contents of `resp_msg`
dora-core/src/server/context.rs:254
↓ 6 callers
Method
server_id
return server id as a slice of bytes
libs/config/src/v6.rs:43
↓ 6 callers
Method
set_resp_msg
sets the resp_msg with a `Message`
dora-core/src/server/context.rs:259
↓ 6 callers
Method
try_lease
Sets a reserved ip/id combo to leased state. If no un-expired ip/id pair found, then if we're authoritative we will just try to insert the IP, and if
libs/ip-manager/src/lib.rs:455
↓ 5 callers
Function
assert_opt
(ctx: &MsgContext<v4::Message>, opt: v4::DhcpOption)
dora-core/src/server/context.rs:868
↓ 5 callers
Method
collect_opts
given a list of matched classes and a range return all options merged for parameter request list
libs/config/src/v4.rs:218
↓ 5 callers
Function
deserialize
deserialize
libs/config/src/wire/v4.rs:569
↓ 5 callers
Method
end
get the ending IP of the range
libs/config/src/v4.rs:497
↓ 5 callers
Function
get_sident
(msg: &v4::Message)
bin/tests/common/mod.rs:28
↓ 5 callers
Method
handle
(&self, ctx: &mut MsgContext<Message>)
plugins/message-type/src/lib.rs:61
↓ 5 callers
Method
match_longest_reverse
find longest reverse match
libs/config/src/wire/v4.rs:646
↓ 5 callers
Method
populate_opts
looks in `decoded_msg` for `DhcpOption::ParameterRequestList` and provides any options in `decoded_resp_msg` that match both in `opts` and in the para
dora-core/src/server/context.rs:607
↓ 5 callers
Method
range
get a `NetRange` within a subnet that contains the given IP & any matching client classes
libs/config/src/v4.rs:234
↓ 5 callers
Method
requested_lease_time
Look in the `decoded_msg` and see if there was a lease time requested
dora-core/src/server/context.rs:501
↓ 5 callers
Method
start
get the starting IP of the range
libs/config/src/v4.rs:493
↓ 5 callers
Function
to_systime
(time: i64)
libs/ip-manager/src/sqlite.rs:325
↓ 4 callers
Method
bootp_enabled
Whether the server is configured to use bootp
libs/config/src/v4.rs:181
↓ 4 callers
Function
build_ast
(pair: Pairs<Rule>)
libs/client-classification/src/ast.rs:108
↓ 4 callers
Method
bytes
Get the `SerialMsg` bytes by shared ref
dora-core/src/server/context.rs:87
↓ 4 callers
Method
extend
(&mut self, iter: I)
libs/topo_sort/src/lib.rs:220
↓ 4 callers
Method
insert
( &self, ip: IpAddr, network: IpAddr, id: &[u8], expires_at: SystemTim
libs/ip-manager/src/sqlite.rs:230
↓ 4 callers
Function
into_clientinfo
(info: ClientInfo, leased: bool, probation: bool)
libs/ip-manager/src/sqlite.rs:670
↓ 4 callers
Method
match_class
(&self, classes: Option<&[String]>)
libs/config/src/v4.rs:517
↓ 4 callers
Method
populate_opts_lease
Populate the opts with lease times looks in `decoded_msg` for `DhcpOption::ParameterRequestList` and provides any options in `decoded_resp_msg` that m
dora-core/src/server/context.rs:689
↓ 4 callers
Function
rand_mac
()
bin/tests/common/mod.rs:20
↓ 4 callers
Function
run_cmd_ignore_failure
(cmd: &str)
bin/tests/common/env.rs:140
↓ 4 callers
Method
send_to
(&self, buf: &[u8], target: &SocketAddr)
libs/icmp-ping/src/socket.rs:29
↓ 4 callers
Method
set_lease
( &self, ctx: &mut MsgContext<Message>, (lease, t1, t2): (Duration, Duration, Duration
plugins/leases/src/lib.rs:97
↓ 4 callers
Method
update_resp_msg
replace `decoded_resp_msg` with a new message type should clear/update corresponding fields in the msg. for example, if switched to Nak, yiaddr/siaddr
dora-core/src/server/context.rs:467
↓ 3 callers
Method
addr
Get the source or destination address (context dependent)
dora-core/src/server/msg.rs:46
↓ 3 callers
Method
authoritative
(&self)
libs/config/src/v4.rs:377
↓ 3 callers
Method
decode
(buffer: &[u8], decode_header: bool)
libs/icmp-ping/src/icmp.rs:114
↓ 3 callers
Method
duid
(&self)
libs/config/src/lib.rs:236
↓ 3 callers
Method
encode
(&self, buffer: &mut [u8])
libs/icmp-ping/src/icmp.rs:53
↓ 3 callers
Function
encode_opt
(data: &[T], f: F, e: &mut Encoder<'a>)
libs/config/src/wire/v6.rs:185
↓ 3 callers
Method
eval
evaluate all client classes, returning a list of classes that match
libs/config/src/client_classes.rs:73
↓ 3 callers
Method
eval_client_classes
eval all client classes, return names of classes that evaluate to true
libs/config/src/v4.rs:127
↓ 3 callers
Method
expires_at
(&self)
libs/ip-manager/src/lib.rs:59
↓ 3 callers
Method
find_interface
find the interface at the index `iface_index`
libs/config/src/v6.rs:82
↓ 3 callers
Method
id
(&self)
libs/ddns/src/dhcid.rs:46
↓ 3 callers
Function
is_unicast_link_local
TODO: replace with is_unicast_link_local from std when released
libs/config/src/v6.rs:178
↓ 3 callers
Function
rebind
(t: Duration)
libs/config/src/lib.rs:208
↓ 3 callers
Method
recv
(&self, buf: &mut [u8])
libs/icmp-ping/src/socket.rs:33
↓ 3 callers
Method
release_ip
release the requested ip if the (ip, id) pair matches Returns Ok(None) if ip did not exist in storage Ok(Some(info)) the existing client info Err(_) f
libs/ip-manager/src/lib.rs:519
↓ 3 callers
Method
remove
(&self, id: &K)
libs/client-protection/src/lib.rs:81
↓ 3 callers
Method
remove
Remove a type ``` # use dora_core::server::typemap::TypeMap; let mut map = TypeMap::new(); map.insert(10_usize); assert_eq!(map.remove::<usize>(), So
dora-core/src/server/typemap.rs:123
↓ 3 callers
Function
renew
(t: Duration)
libs/config/src/lib.rs:204
next →
1–100 of 611, ranked by callers