MCPcopy Create free account

hub / github.com/bluecatengineering/dora / functions

Functions611 in github.com/bluecatengineering/dora

↓ 1 callersMethodflood_threshold
return the flood threshold config
libs/config/src/v4.rs:119
↓ 1 callersMethodforward
( &mut self, zone: Name, domain: Name, duid: DhcId, leased: Ipv4Addr,
libs/ddns/src/update.rs:46
↓ 1 callersFunctiongenerate_random_bytes
(len: usize)
libs/config/src/lib.rs:212
↓ 1 callersMethodget_fqdn
( &self, ctx: &mut MsgContext<v4::Message>, cfg: &'a Ddns, server_opts: &NetRa
libs/ddns/src/lib.rs:102
↓ 1 callersMethodget_id
(&self, id: &[u8])
libs/ip-manager/src/sqlite.rs:264
↓ 1 callersMethodget_interface_global
Returns: - if the config has an interface, return that - OR find iface_index and return that - OR use default interface
libs/config/src/v6.rs:54
↓ 1 callersMethodget_interface_ips
(&self, iface_index: u32)
libs/config/src/v6.rs:70
↓ 1 callersMethodget_interface_link_local
(&self, iface_index: u32)
libs/config/src/v6.rs:62
↓ 1 callersMethodget_network
get a `Network` configured for a given interface index. If the config doesn't specify an interface, use the IPs (local/global) of the receiving interf
libs/config/src/v6.rs:88
↓ 1 callersMethodget_opts
gets options (which have been already merged with global opts) for the network of `iface_index` or the global options
libs/config/src/v6.rs:103
↓ 1 callersMethodget_remaining
if the elapsed time is less than the fraction of lease time configured return the lease time remaining
libs/client-protection/src/lib.rs:38
↓ 1 callersMethodget_reservations
get all reservations for this network
libs/config/src/v4.rs:394
↓ 1 callersMethodget_reserved_mac
get reservation based on mac & matched client classes
libs/config/src/v4.rs:400
↓ 1 callersMethodhas_v6
(&self)
libs/config/src/lib.rs:36
↓ 1 callersFunctionimpl_register
(input: DeriveInput)
libs/register_derive_impl/src/lib.rs:21
↓ 1 callersMethodinc_id
(&self)
dora-core/src/server/state.rs:61
↓ 1 callersFunctioninc_ip
get the next IP between start and end, skipping any exclusions
libs/ip-manager/src/sqlite.rs:656
↓ 1 callersMethodinsert_max_in_range
find next available IP in the range and insert an entry for this id
libs/ip-manager/src/sqlite.rs:86
↓ 1 callersMethodinterface
get the interface for the message. this should always be set
dora-core/src/server/context.rs:283
↓ 1 callersMethodinto_nonzero
(self)
libs/config/src/wire/mod.rs:174
↓ 1 callersMethodis_allowed
(&self, id: &K)
libs/client-protection/src/lib.rs:114
↓ 1 callersFunctionis_bytes
(val: Val)
libs/client-classification/src/lib.rs:82
↓ 1 callersMethodis_default_port_v4
are we bound to the default dhcpv4 port?
dora-core/src/config.rs:104
↓ 1 callersMethodis_default_port_v6
are we bound to the default dhcpv6 port?
dora-core/src/config.rs:109
↓ 1 callersFunctionis_doc_attr
Checks for `#[doc ...]`, which is generated by doc comments.
libs/register_derive_impl/src/lib.rs:131
↓ 1 callersFunctionis_int
(val: Val)
libs/client-classification/src/lib.rs:88
↓ 1 callersFunctionis_matching_attr
Whether the attribute is one like `#[<name> ...]`
libs/register_derive_impl/src/lib.rs:126
↓ 1 callersFunctionis_subdomain_of
test if `needle` is subdomain of `haystack`
libs/config/src/wire/v4.rs:691
↓ 1 callersFunctionis_unicast_global
TODO: replace with is_unicast_global from std when released
libs/config/src/v6.rs:168
↓ 1 callersMethodjson
Create a new DhcpConfig for the server. Pass in the wire config format from json
libs/config/src/v4.rs:256
↓ 1 callersMethodkey
(&self, name: &str)
libs/config/src/wire/v4.rs:632
↓ 1 callersMethodkeys
(&self)
libs/config/src/wire/v4.rs:629
↓ 1 callersMethodlookup
do a DNS lookup, returning a URL ex. lookup("http", "foobar.internal", 67) -> "http://1.2.3.4:67"
libs/discovery/src/lib.rs:50
↓ 1 callersMethodmark_as_not_live
Decrement the `state.live_msgs` counter and mark this as not live This gets done before passing the `MsgContext` to the postresponse plugins.
dora-core/src/server/context.rs:188
↓ 1 callersFunctionmax_in_range
get the max IP in a given range
libs/ip-manager/src/sqlite.rs:619
↓ 1 callersFunctionmerge_opts
merge `b` into `a`, favoring `a` where there are duplicates
libs/config/src/v4.rs:660
↓ 1 callersFunctionmerge_opts
merge `b` into `a`, favoring `b` where there are duplicates
libs/config/src/client_classes.rs:178
↓ 1 callersFunctionmerge_opts
merge `b` into `a`, favoring `a` where there are duplicates
libs/config/src/v6.rs:116
↓ 1 callersFunctionmock_dns_server
()
libs/ddns/src/lib.rs:446
↓ 1 callersMethodnetworks
return hashmap of networks
libs/config/src/v4.rs:166
↓ 1 callersMethodnext_expired
find the next expired IP in the range, or where client_id matches, and update it with the new client_id & expiry & state NOTE: always sets probation =
libs/ip-manager/src/sqlite.rs:53
↓ 1 callersMethodopts
return options configured for this network
libs/config/src/v6.rs:162
↓ 1 callersMethodoverride_client_updates
(&self)
libs/config/src/wire/v4.rs:623
↓ 1 callersMethodoverride_no_updates
(&self)
libs/config/src/wire/v4.rs:626
↓ 1 callersFunctionpacket_details
(cfg: &Config, meta: RecvMeta)
plugins/message-type/src/lib.rs:290
↓ 1 callersMethodpackets
(&self)
libs/config/src/v4.rs:693
↓ 1 callersMethodparse
Make new runtime config
dora-core/src/config.rs:144
↓ 1 callersFunctionparse_duration
Parse a duration string with optional time units Accepts: "3600", "3600s", "60m", "24h" If no unit is specified, assumes seconds
libs/config/src/wire/mod.rs:141
↓ 1 callersFunctionparse_expr
(pairs: Pairs<Rule>, pratt: &PrattParser<Rule>)
libs/client-classification/src/ast.rs:122
↓ 1 callersFunctionparse_schema
(args: &Args)
dora-cfg/src/main.rs:53
↓ 1 callersFunctionparse_string_inner
(primary: Pair<Rule>)
libs/client-classification/src/ast.rs:284
↓ 1 callersFunctionparse_var_with_err
Calls [`parse_var`] but gives a default error message with the environment variable name in it [`parse_var`]: crate::parse_var
libs/env-parser/src/lib.rs:59
↓ 1 callersMethodpath
(&self)
libs/config/src/lib.rs:42
↓ 1 callersMethodperiod
(&self)
libs/config/src/v4.rs:696
↓ 1 callersMethodping_insert
(&self, ip: IpAddr, reply: Option<PingReply>)
libs/ip-manager/src/lib.rs:231
↓ 1 callersMethodping_timeout
get the ping timeout
libs/config/src/v4.rs:454
↓ 1 callersMethodplugin_order
Add plugin to the preresolve list of handlers, specifying dependencies
dora-core/src/server/mod.rs:94
↓ 1 callersMethodranges_with_class
( &'a self, classes: Option<&'b [String]>, )
libs/config/src/v4.rs:383
↓ 1 callersFunctionrecord_resp_metric
(is_ipv4: bool, start: Instant)
libs/icmp-ping/src/lib.rs:176
↓ 1 callersMethodrelay_subnet
determine the correct subnet of a DHCP message <https://www.rfc-editor.org/rfc/rfc3527.html> > In the event that a DHCP server receives a packet that
dora-core/src/server/context.rs:543
↓ 1 callersMethodrelease
(&self, ctx: &mut MsgContext<Message>, client_id: &[u8])
plugins/leases/src/lib.rs:393
↓ 1 callersFunctionrelease_ip
( conn: &SqlitePool, ip: i64, id: &[u8], )
libs/ip-manager/src/sqlite.rs:339
↓ 1 callersMethodreply
not cancel-safe
libs/icmp-ping/src/lib.rs:77
↓ 1 callersMethodrequest
( &self, ctx: &mut MsgContext<Message>, client_id: &[u8], network: &Network,
plugins/leases/src/lib.rs:294
↓ 1 callersMethodreverse
( &mut self, zone: Name, domain: Name, duid: DhcId, leased: Ipv4Addr,
libs/ddns/src/update.rs:84
↓ 1 callersMethodsearch_reserved_opt
Given some `opts`, search to see if there is a match with a reservation client classes must also match
libs/config/src/v4.rs:418
↓ 1 callersFunctionselect_all
select all values in leases table and return them
libs/ip-manager/src/sqlite.rs:434
↓ 1 callersMethodsender
clone the health sender channel
external-api/src/lib.rs:76
↓ 1 callersMethodserialize
(&self, ser: S)
libs/config/src/wire/v4.rs:404
↓ 1 callersMethodserver_name
(&self)
libs/config/src/v4.rs:365
↓ 1 callersMethodset_authoritative
(&mut self, authoritative: bool)
libs/config/src/v4.rs:361
↓ 1 callersMethodset_global
set the global unicast address associated with the interface the message was received on
dora-core/src/server/context.rs:275
↓ 1 callersFunctionshutdown_signal
(token: CancellationToken)
bin/src/main.rs:141
↓ 1 callersFunctionslice
(s: T, start: isize, j: Option<isize>)
libs/client-classification/src/lib.rs:323
↓ 1 callersMethodspawn_recv
( &self, tx: Sender<M>, recv: Arc<UdpSocket>, )
bin/tests/common/client.rs:60
↓ 1 callersMethodspawn_send
(&self, msg_type: MsgType, retry_rx: Receiver<()>, send: Arc<UdpSocket>)
bin/tests/common/client.rs:40
↓ 1 callersMethodsrc_addr
Return the source address and port. This is initially set to the address that the UDP packet originates from, but can be overridden with `set_src_add
dora-core/src/server/context.rs:160
↓ 1 callersMethodstart
Kick off the HTTP service and start listening on all channels for changes
external-api/src/lib.rs:139
↓ 1 callersFunctionstart_dhcp_server
(config: &str, netns: &str, db: &str)
bin/tests/common/env.rs:99
↓ 1 callersFunctionstop_dhcp_server
(daemon: &mut Child)
bin/tests/common/env.rs:123
↓ 1 callersMethodsubnet
tries to determine the subnet for this MsgContext. calls `relay_subnet` first, and if there is no relay information, falls back on the IP of the inter
dora-core/src/server/context.rs:590
↓ 1 callersFunctionsubstring
(s: &str, start: isize, j: Option<isize>)
libs/client-classification/src/lib.rs:314
↓ 1 callersMethodthreshold
test if threshold has been met for a given id
libs/client-protection/src/lib.rs:71
↓ 1 callersMethodtimeout
(&mut self, timeout: Duration)
libs/icmp-ping/src/lib.rs:114
↓ 1 callersMethodto_json
(&self, path: &Path)
libs/config/src/lib.rs:225
↓ 1 callersFunctionto_opt
(code: &OptionCode, opt: &DhcpOption)
libs/config/src/wire/v4.rs:417
↓ 1 callersFunctionto_unknown_opts
( req: &dhcproto::v4::Message, )
libs/config/src/client_classes.rs:155
↓ 1 callersMethodtotal_addrs
(&self)
libs/config/src/v4.rs:461
↓ 1 callersMethodtry_ip
tries to take an ip for an id that's set to expire at some future time. If `ping` is set, will send a ping to the IP, returning an error if in use Ret
libs/ip-manager/src/lib.rs:393
↓ 1 callersFunctiontry_send
(args: &ClientSettings, msg_type: &MsgType, send: &Arc<UdpSocket>)
bin/tests/common/client.rs:169
↓ 1 callersFunctionupdate_expired
updates an entry if the ip & id match or if the entry is expired and the ip matches
libs/ip-manager/src/sqlite.rs:578
↓ 1 callersMethodupdate_expired
( &self, ip: IpAddr, state: Option<IpState>, id: &[u8], expires_at: Sy
libs/ip-manager/src/sqlite.rs:149
↓ 1 callersFunctionupdate_ip
( conn: E, ip: i64, client_id: Option<&[u8]>, expires_at: i64, leased:
libs/ip-manager/src/sqlite.rs:680
↓ 1 callersMethodupdate_ip
( &self, ip: IpAddr, state: IpState, id: Option<&[u8]>, expires_at: Sy
libs/ip-manager/src/sqlite.rs:204
↓ 1 callersFunctionupdate_next_expired
returns the first expired IP in a range, or where the id matches expires_at can refer to IPs under probation
libs/ip-manager/src/sqlite.rs:491
↓ 1 callersFunctionupdate_present
( zone_origin: Name, name: Name, duid: DhcId, leased: Ipv4Addr, ttl: u32, use_edns: bo
libs/ddns/src/update.rs:147
↓ 1 callersFunctionupdate_unexpired
updates an entry if the ip & id match and not expired
libs/ip-manager/src/sqlite.rs:535
↓ 1 callersFunctionv4_find_interfaces
Returns: - interfaces matching the list supplied that are 'up' and have an IPv4 - OR any 'up' interfaces that also have an IPv4
libs/config/src/lib.rs:123
↓ 1 callersMethodv6
(&self)
libs/config/src/lib.rs:39
↓ 1 callersFunctionv6_find_interfaces
Returns: - interfaces matching the list supplied that are 'up' and have an IPv6 - OR any 'up' interfaces that also have an IPv6
libs/config/src/lib.rs:134
← previousnext →201–300 of 611, ranked by callers