MCPcopy Create free account

hub / github.com/bluecatengineering/dora / functions

Functions611 in github.com/bluecatengineering/dora

↓ 3 callersMethodrequested_ip
Determine what the requested IP is If `ciaddr` is not unspecified, return it else if opts has `RequestedIpAddress`, return it, otherwise return None,
dora-core/src/server/context.rs:514
↓ 3 callersMethodresp_msg_take
take response message and replace with None
dora-core/src/server/context.rs:263
↓ 3 callersMethodsend_dns
( &self, cfg: &Ddns, duid: DhcId, leased: Ipv4Addr, lease_length: u32,
libs/ddns/src/lib.rs:172
↓ 3 callersMethodset_local
Store a value in the current `MsgContext` based on a type. This value will be available across any step in the lifecycle of a request If this type al
dora-core/src/server/context.rs:123
↓ 3 callersFunctionupdate_msg
(zone_origin: Name, use_edns: bool)
libs/ddns/src/update.rs:222
↓ 3 callersFunctionwhole_seconds
(t: Duration)
dora-core/src/server/context.rs:708
↓ 3 callersMethodwrite
(&mut self, _: &[u8])
dora-core/src/server/typemap.rs:15
↓ 2 callersMethodcache_remove
(&self, id: &[u8])
plugins/leases/src/lib.rs:81
↓ 2 callersMethodcache_threshold
(&self, id: &[u8])
plugins/leases/src/lib.rs:75
↓ 2 callersFunctioncalculate_ttl
(lease_length: u32)
libs/ddns/src/update.rs:279
↓ 2 callersMethodclient_id
If opt 61 (client id) exists return that, otherwise return `chaddr` from the message header.
libs/config/src/v4.rs:192
↓ 2 callersFunctioncreate_builtin_vendor
(req: &v4::Message)
libs/client-classification/src/lib.rs:26
↓ 2 callersMethoddec_live_msgs
(&self)
dora-core/src/server/state.rs:48
↓ 2 callersFunctiondelete
(conn: E, ip: i64)
libs/ip-manager/src/sqlite.rs:329
↓ 2 callersMethoddiscover
( &self, ctx: &mut MsgContext<Message>, chaddr: &[u8], classes: Option<&[Strin
plugins/static-addr/src/lib.rs:84
↓ 2 callersFunctioneval_bool
(lhs: &Expr, rhs: &Expr, args: &Args)
libs/client-classification/src/lib.rs:381
↓ 2 callersMethodfilter_dhcp_opts
clears DHCP specific options from the response leaving only BOOTP options as defined in RFC 1533
dora-core/src/server/context.rs:666
↓ 2 callersMethodfind_interface
find the interface at the index `iface_index`
libs/config/src/v4.rs:171
↓ 2 callersMethodfind_network
Returns: - if the config has an interface, return that - OR find iface_index and return that - OR use default interface
libs/config/src/v4.rs:156
↓ 2 callersMethodfirst_available
uses requested ip from client, or the first available IP in the range
plugins/leases/src/lib.rs:190
↓ 2 callersMethodfull_subnet
(&self)
libs/config/src/v4.rs:374
↓ 2 callersFunctiongenerate_duid_and_persist
( server_id_info: &ServerDuidInfo, link_layer_address: Ipv6Addr, server_id_path: &Path, )
libs/config/src/v6.rs:247
↓ 2 callersFunctiongenerate_duid_from_config
(server_id: &ServerDuidInfo, link_layer: Ipv6Addr)
libs/config/src/v6.rs:182
↓ 2 callersFunctionget_class_dependencies
get all the `member` classes used in the expression
libs/client-classification/src/lib.rs:116
↓ 2 callersMethodget_mut
Get a mutable reference to a type previously inserted ``` # use dora_core::server::typemap::TypeMap; let mut map = TypeMap::new(); map.insert(String:
dora-core/src/server/typemap.rs:107
↓ 2 callersFunctionget_pos
(s_len: usize, mut start: isize, j: Option<isize>)
libs/client-classification/src/lib.rs:342
↓ 2 callersMethodget_reserved_opt
Based on a `DhcpOption`, find if there is a reservation where the value matches
libs/config/src/v4.rs:410
↓ 2 callersFunctionget_server_id_override
Convenience for RFC 5107 compliance. Fetches the ServerIdentifierOverride suboption (11) from RelayAgentInformation (82) to use in comparisons between
plugins/message-type/src/lib.rs:381
↓ 2 callersMethodhandle
(&self, ctx: &mut MsgContext<Message>)
plugins/static-addr/src/lib.rs:37
↓ 2 callersFunctionhandle_flags
( client_flags: FqdnFlags, cfg: &Ddns, server_flags: FqdnFlags, )
libs/ddns/src/lib.rs:272
↓ 2 callersFunctioninsert
Inserts ip/network/client_id/expires_at into db. If state is Some, we will insert the leased/probation state too. if None then we use the default colu
libs/ip-manager/src/sqlite.rs:375
↓ 2 callersMethodinterfaces
return the optional explicitly bound interfaces if there are any
libs/config/src/v4.rs:149
↓ 2 callersMethodip
(&self)
libs/ip-manager/src/lib.rs:50
↓ 2 callersFunctionis_empty
(val: Val)
libs/client-classification/src/lib.rs:94
↓ 2 callersMethodlookup_id
sees if there is an un-expired IP associated with this ID Returns Err if expired or id not found Ok(ip) un-expired id found in storage
libs/ip-manager/src/lib.rs:437
↓ 2 callersFunctionmatch_longest_fqdn
matches longest server entry for `fqdn` server list can contain: - exact matches: entry [example.com] matches on example.com - zone of matches: entry
libs/config/src/wire/v4.rs:657
↓ 2 callersMethodmsg_buf
Get `Serial` message by shared ref
dora-core/src/server/context.rs:96
↓ 2 callersFunctionnew_msg
( req: &Message, siaddr: Ipv4Addr, sname: Option<&str>, fname: Option<&str>,
plugins/message-type/src/lib.rs:262
↓ 2 callersFunctionparse_htype
(htype: u16)
libs/config/src/v6.rs:190
↓ 2 callersFunctionparse_id
(id: &str, link_layer: Ipv6Addr)
libs/config/src/v6.rs:183
↓ 2 callersFunctionparse_num
(primary: Pair<Rule>)
libs/client-classification/src/ast.rs:288
↓ 2 callersFunctionparse_string
(primary: Pair<Rule>)
libs/client-classification/src/ast.rs:280
↓ 2 callersFunctionparse_sub_opts
(buf: &[u8], sub_code: u8)
libs/client-classification/src/lib.rs:101
↓ 2 callersMethodping_check
returns Ok(()) if ping failed or ping == false returns Err if ping succeeded
libs/ip-manager/src/lib.rs:237
↓ 2 callersMethodprobate_ip
Will mark IP for probation if it is un-expired and ip/id match we check to see if it has expired because a DECLINE happens after an address has been A
libs/ip-manager/src/lib.rs:531
↓ 2 callersMethodprobation_period
Returns the configured probation period for decline's received on this network
libs/config/src/v4.rs:458
↓ 2 callersMethodrapid_commit
Whether the server is configured to use bootp
libs/config/src/v4.rs:186
↓ 2 callersMethodrecv_metrics
records metrics for recvd DHCP message
dora-core/src/server/context.rs:378
↓ 2 callersFunctionremove_test_net_namespace
(netns: &str)
bin/tests/common/env.rs:71
↓ 2 callersFunctionremove_test_veth_nics
(veth_cli: &str)
bin/tests/common/env.rs:95
↓ 2 callersMethodrequest
(&self, hostname: IpAddr, req: &EchoRequest<'a>)
libs/icmp-ping/src/lib.rs:51
↓ 2 callersMethodrequest
( &self, ctx: &mut MsgContext<Message>, chaddr: &[u8], classes: Option<&[Strin
plugins/static-addr/src/lib.rs:127
↓ 2 callersMethodresp_addr
determine the response addr based on request. Sets response giaddr if we are talking to a relay. Injects into ARP cache if response will be unicast to
dora-core/src/server/context.rs:312
↓ 2 callersFunctionreverse_ip
(ip: I)
libs/ddns/src/update.rs:252
↓ 2 callersMethodrun_handlers
if Some(()) - an encoded `MsgContext::decoded_resp_msg` will be sent to client if None - No response
dora-core/src/server/mod.rs:144
↓ 2 callersMethodrun_post_response_handler
(&self, mut ctx: MsgContext<T>)
dora-core/src/server/mod.rs:165
↓ 2 callersMethodselect_all
select all leases in array, returning as a vec
libs/ip-manager/src/lib.rs:425
↓ 2 callersMethodsent_metrics
records metrics for sent DHCP message
dora-core/src/server/context.rs:413
↓ 2 callersMethodserve
Start the `ExternalApiRunner`
external-api/src/lib.rs:161
↓ 2 callersMethodserver_id
Returns: - `server_id` of `Network` belonging to `ip` - OR interface at index `iface`
libs/config/src/v4.rs:142
↓ 2 callersMethodset_dst_addr
Overrides the `dst_addr` with a new address/port.
dora-core/src/server/context.rs:181
↓ 2 callersMethodset_interface
set the interface for the message
dora-core/src/server/context.rs:271
↓ 2 callersMethodset_ping_check
(&mut self, ping_check: bool)
libs/config/src/v4.rs:357
↓ 2 callersFunctionsplit
expects `n` to start at 1
libs/client-classification/src/lib.rs:305
↓ 2 callersMethodstart
( config: &str, db: &str, netns: &str, veth_cli: &str, veth_srv: &str,
bin/tests/common/env.rs:18
↓ 2 callersMethodtimeout
Create new timeout as `Duration`
dora-core/src/config.rs:99
↓ 2 callersMethodtopological_sort
Topologically sort the items in our adjecency map, producing a list of items in order they need be run according to their dependencies. Ex. A <- B <-
libs/topo_sort/src/lib.rs:202
↓ 2 callersFunctiontsigner
(key_name: &str, config: &Ddns)
libs/ddns/src/lib.rs:249
↓ 2 callersFunctionupdate
( zone_origin: Name, name: Name, duid: DhcId, leased: Ipv4Addr, ttl: u32, use_edns: bo
libs/ddns/src/update.rs:111
↓ 2 callersMethodupdate
( &self, ctx: &mut MsgContext<v4::Message>, duid: DhcId, cfg: Option<&Ddns>,
libs/ddns/src/lib.rs:57
↓ 2 callersMethodupdate_unexpired
( &self, ip: IpAddr, state: IpState, id: &[u8], expires_at: SystemTime
libs/ip-manager/src/sqlite.rs:175
↓ 2 callersFunctionwrite_opt
(enc: &mut Encoder<'_>, code: u16, opt: Opt)
libs/config/src/wire/v6.rs:197
↓ 1 callersFunctionadd_trait_bounds
Add a bound `T: Send + Sync + 'static` to every type parameter T.
libs/register_derive_impl/src/lib.rs:113
↓ 1 callersMethodaddr_in_use
Check to see if the address is in use. If `Network` has `ping_check` set to `true`, we will test to see if the IP is already being used by another cli
libs/ip-manager/src/lib.rs:213
↓ 1 callersFunctionarp_set
calls ioctl(fd, SIOCSARP, arpreq) to set `arpreq` in ARP cache # Safety fd must be a valid v4 socket.
dora-core/src/server/ioctl.rs:15
↓ 1 callersFunctionblank_health
()
external-api/src/lib.rs:417
↓ 1 callersMethodbootp
( &self, ctx: &mut MsgContext<Message>, client_id: &[u8], network: &Network,
plugins/leases/src/lib.rs:170
↓ 1 callersMethodbootp
populate BOOTP response. Some clients only accept messages with a min size of 300 bytes, that is not handled here. We would need to insert PAD opts un
plugins/static-addr/src/lib.rs:108
↓ 1 callersMethodcache_insert
(&self, id: &[u8], lease_time: Duration)
plugins/leases/src/lib.rs:86
↓ 1 callersMethodchaddr_only
Whether the server is configured to use `chaddr` only or look at Client ID
libs/config/src/v4.rs:176
↓ 1 callersMethodclear
Clear the `TypeMap` of all inserted values. ``` # use dora_core::server::typemap::TypeMap; let mut map = TypeMap::new(); map.insert(10_usize); map.cl
dora-core/src/server/typemap.rs:145
↓ 1 callersFunctionclient_classes
(cfg: &Config, ctx: &MsgContext<Message>)
plugins/message-type/src/lib.rs:318
↓ 1 callersMethodcollect_opts
take matched client classes, return merge DhcpOptions that contains all classes options merged together with precedence given based on original positi
libs/config/src/client_classes.rs:130
↓ 1 callersMethodcondition
get the match condition the reservation is configured to use
libs/config/src/v4.rs:627
↓ 1 callersMethodcontains_class
contains the IP and matches a class
libs/config/src/v4.rs:514
↓ 1 callersFunctioncount
return a count of all rows where leased & probation & un-expired
libs/ip-manager/src/sqlite.rs:452
↓ 1 callersMethodcount
(self)
libs/config/src/v4.rs:576
↓ 1 callersFunctioncreate_test_net_namespace
(netns: &str)
bin/tests/common/env.rs:65
↓ 1 callersFunctioncreate_test_veth_nics
(netns: &str, srv_ip: &str, veth_cli: &str, veth_srv: &str)
bin/tests/common/env.rs:75
↓ 1 callersMethodddns
(&self)
libs/config/src/v4.rs:112
↓ 1 callersMethoddecline
( &self, ctx: &mut MsgContext<Message>, client_id: &[u8], network: &Network,
plugins/leases/src/lib.rs:405
↓ 1 callersFunctiondelete
( zone_origin: Name, name: Name, duid: DhcId, leased: Ipv4Addr, ttl: u32, use_edns: bo
libs/ddns/src/update.rs:184
↓ 1 callersMethoddelete
(&self, ip: IpAddr)
libs/ip-manager/src/sqlite.rs:280
↓ 1 callersFunctiondhcid
If opt 61 (client id) exists return that, otherwise return `chaddr` from the message header.
plugins/leases/src/lib.rs:443
↓ 1 callersMethoddiscover
( &self, ctx: &mut MsgContext<Message>, client_id: &[u8], network: &Network,
plugins/leases/src/lib.rs:275
↓ 1 callersMethodexclusions
returns a set of excluded ipv4 addrs
libs/config/src/v4.rs:538
↓ 1 callersMethodfile_name
(&self)
libs/config/src/v4.rs:368
↓ 1 callersFunctionfind
(pool: &SqlitePool, ip: i64)
libs/ip-manager/src/sqlite.rs:418
↓ 1 callersFunctionfind_by_id
return the info for this client_id and if it's un-expired
libs/ip-manager/src/sqlite.rs:469
↓ 1 callersMethodflood_check
(&self, id: &Vec<u8>)
plugins/message-type/src/lib.rs:50
← previousnext →101–200 of 611, ranked by callers