MCPcopy Create free account

hub / github.com/bluecatengineering/dora / functions

Functions611 in github.com/bluecatengineering/dora

↓ 129 callersMethodclone
(&self)
libs/ip-manager/src/lib.rs:192
↓ 117 callersMethodinto
(self)
libs/ip-manager/src/lib.rs:166
↓ 75 callersMethodinsert
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 callersMethodparse
attempts to decode the config first as JSON, then YAML, finally erroring if neither work
libs/config/src/lib.rs:69
↓ 64 callersMethodbuild
(&self, broadcast: bool)
bin/tests/common/builder.rs:72
↓ 57 callersMethoditer
return an iterator over the range
libs/config/src/v4.rs:531
↓ 55 callersMethodopts
return the option parameters that should be included (if requested)
libs/config/src/v4.rs:501
↓ 49 callersFunctioneval
evaluate the AST, using values from this DHCP message
libs/client-classification/src/lib.rs:182
↓ 48 callersFunctionparse
(expr: S)
libs/client-classification/src/ast.rs:104
↓ 38 callersMethodinsert
insert id into cache with lease time, replacing existing entry
libs/client-protection/src/lib.rs:65
↓ 37 callersMethodrun
(&mut self, msg_type: MsgType)
bin/tests/common/client.rs:141
↓ 27 callersMethodget
(self)
libs/config/src/wire/v4.rs:112
↓ 26 callersMethodv4
(&self)
libs/config/src/lib.rs:33
↓ 24 callersMethodas_ref
(&self)
libs/config/src/wire/v4.rs:118
↓ 21 callersMethodadd
Add an item at some key index with a list of dependents
libs/topo_sort/src/lib.rs:127
↓ 21 callersMethodchaddr
(id: T)
libs/ddns/src/dhcid.rs:28
↓ 21 callersMethodreserve_first
get the first available IP in a range with a given id/expiry/network
libs/ip-manager/src/lib.rs:282
↓ 21 callersFunctionstart
(config: cli::Config)
bin/src/main.rs:62
↓ 17 callersMethodip
get the IP for this reservation
libs/config/src/v4.rs:596
↓ 16 callersMethodget
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 callersMethodmsg
Clone underlying `Bytes` pointer
dora-core/src/server/msg.rs:41
↓ 15 callersMethodas_ref
(&self)
libs/ip-manager/src/lib.rs:156
↓ 15 callersMethodset_subnet
(&mut self, subnet: Ipv4Net)
libs/config/src/v4.rs:349
↓ 14 callersMethodset_ranges
(&mut self, ranges: Vec<NetRange>)
libs/config/src/v4.rs:353
↓ 13 callersFunctionfound_or_default
( found_interfaces: Vec<NetworkInterface>, interfaces: Option<&[wire::Interface]>, )
libs/config/src/lib.rs:142
↓ 13 callersMethodresp_msg_mut
The mutable deserialized contents of `resp_msg`
dora-core/src/server/context.rs:267
↓ 12 callersFunctionblank_ctx
for testing
plugins/message-type/src/lib.rs:342
↓ 12 callersMethodcontains
returns true if the range contains a given IP
libs/config/src/v4.rs:509
↓ 12 callersMethodmsg_mut
The mutable deserialized contents of `msg`
dora-core/src/server/context.rs:249
↓ 12 callersFunctionparse_str
(str: &str)
libs/client-classification/src/ast.rs:274
↓ 12 callersMethodv6
(&self)
libs/config/src/v4.rs:115
↓ 11 callersMethodbytes
Get a reference to the bytes
dora-core/src/server/msg.rs:36
↓ 11 callersMethodget
(&self, ip: IpAddr)
libs/ip-manager/src/lib.rs:429
↓ 11 callersMethodget
(&self)
plugins/message-type/src/lib.rs:248
↓ 11 callersMethodmatch_longest_forward
get longest forward match
libs/config/src/wire/v4.rs:639
↓ 11 callersMethodnetwork
get a `Network` with a subnet that contains the given IP
libs/config/src/v4.rs:205
↓ 11 callersFunctionsystime_epoch
(time: SystemTime)
libs/ip-manager/src/sqlite.rs:318
↓ 10 callersMethodfind
(&self, name: &str)
libs/config/src/client_classes.rs:26
↓ 10 callersMethodfinish
(&self)
dora-core/src/server/typemap.rs:25
↓ 10 callersFunctionharness
( cli: FqdnFlags, (enable, override_client, override_no_update): (bool, bool, bool), e
libs/ddns/src/lib.rs:337
↓ 9 callersMethodmsg
The deserialized contents of `msg`
dora-core/src/server/context.rs:244
↓ 8 callersMethoddetermine_lease
calculate the lease time based on a possible requested time
libs/config/src/lib.rs:191
↓ 8 callersMethodlease
get the lease time
libs/config/src/v4.rs:505
↓ 7 callersFunctionblank_msg
()
dora-core/src/server/context.rs:855
↓ 7 callersMethodhandle
(&self, ctx: &mut MsgContext<Message>)
plugins/leases/src/lib.rs:126
↓ 7 callersFunctionis_bool
(val: Val)
libs/client-classification/src/lib.rs:76
↓ 7 callersMethodnext
skips any IPs in exclusions
libs/config/src/v4.rs:568
↓ 7 callersMethodping
(&self, seq_cnt: u16)
libs/icmp-ping/src/lib.rs:119
↓ 7 callersFunctionrun_cmd
(cmd: &str)
bin/tests/common/env.rs:127
↓ 7 callersMethodsubnet
(&self)
libs/config/src/v4.rs:371
↓ 6 callersMethodenable_updates
(&self)
libs/config/src/wire/v4.rs:620
↓ 6 callersMethodmeta
return meta data associated with recv'd packet
dora-core/src/server/context.rs:91
↓ 6 callersMethodrdata
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 callersMethodresp_msg
The contents of `resp_msg`
dora-core/src/server/context.rs:254
↓ 6 callersMethodserver_id
return server id as a slice of bytes
libs/config/src/v6.rs:43
↓ 6 callersMethodset_resp_msg
sets the resp_msg with a `Message`
dora-core/src/server/context.rs:259
↓ 6 callersMethodtry_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 callersFunctionassert_opt
(ctx: &MsgContext<v4::Message>, opt: v4::DhcpOption)
dora-core/src/server/context.rs:868
↓ 5 callersMethodcollect_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 callersFunctiondeserialize
deserialize
libs/config/src/wire/v4.rs:569
↓ 5 callersMethodend
get the ending IP of the range
libs/config/src/v4.rs:497
↓ 5 callersFunctionget_sident
(msg: &v4::Message)
bin/tests/common/mod.rs:28
↓ 5 callersMethodhandle
(&self, ctx: &mut MsgContext<Message>)
plugins/message-type/src/lib.rs:61
↓ 5 callersMethodmatch_longest_reverse
find longest reverse match
libs/config/src/wire/v4.rs:646
↓ 5 callersMethodpopulate_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 callersMethodrange
get a `NetRange` within a subnet that contains the given IP & any matching client classes
libs/config/src/v4.rs:234
↓ 5 callersMethodrequested_lease_time
Look in the `decoded_msg` and see if there was a lease time requested
dora-core/src/server/context.rs:501
↓ 5 callersMethodstart
get the starting IP of the range
libs/config/src/v4.rs:493
↓ 5 callersFunctionto_systime
(time: i64)
libs/ip-manager/src/sqlite.rs:325
↓ 4 callersMethodbootp_enabled
Whether the server is configured to use bootp
libs/config/src/v4.rs:181
↓ 4 callersFunctionbuild_ast
(pair: Pairs<Rule>)
libs/client-classification/src/ast.rs:108
↓ 4 callersMethodbytes
Get the `SerialMsg` bytes by shared ref
dora-core/src/server/context.rs:87
↓ 4 callersMethodextend
(&mut self, iter: I)
libs/topo_sort/src/lib.rs:220
↓ 4 callersMethodinsert
( &self, ip: IpAddr, network: IpAddr, id: &[u8], expires_at: SystemTim
libs/ip-manager/src/sqlite.rs:230
↓ 4 callersFunctioninto_clientinfo
(info: ClientInfo, leased: bool, probation: bool)
libs/ip-manager/src/sqlite.rs:670
↓ 4 callersMethodmatch_class
(&self, classes: Option<&[String]>)
libs/config/src/v4.rs:517
↓ 4 callersMethodpopulate_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 callersFunctionrand_mac
()
bin/tests/common/mod.rs:20
↓ 4 callersFunctionrun_cmd_ignore_failure
(cmd: &str)
bin/tests/common/env.rs:140
↓ 4 callersMethodsend_to
(&self, buf: &[u8], target: &SocketAddr)
libs/icmp-ping/src/socket.rs:29
↓ 4 callersMethodset_lease
( &self, ctx: &mut MsgContext<Message>, (lease, t1, t2): (Duration, Duration, Duration
plugins/leases/src/lib.rs:97
↓ 4 callersMethodupdate_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 callersMethodaddr
Get the source or destination address (context dependent)
dora-core/src/server/msg.rs:46
↓ 3 callersMethodauthoritative
(&self)
libs/config/src/v4.rs:377
↓ 3 callersMethoddecode
(buffer: &[u8], decode_header: bool)
libs/icmp-ping/src/icmp.rs:114
↓ 3 callersMethodduid
(&self)
libs/config/src/lib.rs:236
↓ 3 callersMethodencode
(&self, buffer: &mut [u8])
libs/icmp-ping/src/icmp.rs:53
↓ 3 callersFunctionencode_opt
(data: &[T], f: F, e: &mut Encoder<'a>)
libs/config/src/wire/v6.rs:185
↓ 3 callersMethodeval
evaluate all client classes, returning a list of classes that match
libs/config/src/client_classes.rs:73
↓ 3 callersMethodeval_client_classes
eval all client classes, return names of classes that evaluate to true
libs/config/src/v4.rs:127
↓ 3 callersMethodexpires_at
(&self)
libs/ip-manager/src/lib.rs:59
↓ 3 callersMethodfind_interface
find the interface at the index `iface_index`
libs/config/src/v6.rs:82
↓ 3 callersMethodid
(&self)
libs/ddns/src/dhcid.rs:46
↓ 3 callersFunctionis_unicast_link_local
TODO: replace with is_unicast_link_local from std when released
libs/config/src/v6.rs:178
↓ 3 callersFunctionrebind
(t: Duration)
libs/config/src/lib.rs:208
↓ 3 callersMethodrecv
(&self, buf: &mut [u8])
libs/icmp-ping/src/socket.rs:33
↓ 3 callersMethodrelease_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 callersMethodremove
(&self, id: &K)
libs/client-protection/src/lib.rs:81
↓ 3 callersMethodremove
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 callersFunctionrenew
(t: Duration)
libs/config/src/lib.rs:204
next →1–100 of 611, ranked by callers