Home
last modified time | relevance | path

Searched refs:index (Results 1 – 7 of 7) sorted by relevance

/smoltcp-0.9.1/src/iface/
Dsocket_set.rs61 fn put<'a>(index: usize, slot: &mut SocketStorage<'a>, socket: Socket<'a>) -> SocketHandle { in add()
62 net_trace!("[{}]: adding", index); in add()
63 let handle = SocketHandle(index); in add()
74 for (index, slot) in self.sockets.iter_mut().enumerate() { in add()
76 return put(index, slot, socket); in add()
85 let index = sockets.len() - 1; in add() localVariable
86 put(index, &mut sockets[index], socket) in add()
/smoltcp-0.9.1/src/wire/
Dieee802154.rs466 let mut index = 3; in aux_security_header_start() localVariable
467 index += self.addressing_fields().unwrap().len(); in aux_security_header_start()
468 index in aux_security_header_start()
473 let mut index = self.aux_security_header_start(); in payload_start() localVariable
477 index += 5; in payload_start()
478 index += if let Some(len) = self.key_identifier_length() { in payload_start()
485 index in payload_start()
501 let index = self.aux_security_header_start(); in security_level() localVariable
502 let b = self.buffer.as_ref()[index..][0]; in security_level()
508 let index = self.aux_security_header_start(); in key_identifier_mode() localVariable
[all …]
Dsixlowpan.rs68 let copy_context = |index: usize, bytes: &mut [u8]| -> Result<()> { in resolve()
69 if index >= addr_context.len() { in resolve()
73 let context = addr_context[index]; in resolve()
131 (index, AddressMode::InLine64bits(inline)) => { in resolve()
132 copy_context(index, &mut bytes[..])?; in resolve()
136 (index, AddressMode::InLine16bits(inline)) => { in resolve()
137 copy_context(index, &mut bytes[..])?; in resolve()
141 (index, AddressMode::FullyElided) => { in resolve()
155 copy_context(index, &mut bytes[..])?; in resolve()
1757 let index = 1 + self.ports_size() + self.checksum_size(); in check_len() localVariable
[all …]
/smoltcp-0.9.1/src/storage/
Dassembler.rs302 index: usize, field
312 index: 0, in new()
324 while data_range.is_none() && self.index < self.assembler.contigs.len() { in next()
325 let contig = self.assembler.contigs[self.index]; in next()
335 self.index += 1; in next()
Dring_buffer.rs127 let index = self.get_idx_unchecked(self.length); in enqueue_one_with() localVariable
128 let res = f(&mut self.storage[index]); in enqueue_one_with()
/smoltcp-0.9.1/src/phy/
Dfault_injector.rs46 let index = (xorshift32(&mut self.rng_seed) as usize) % buffer.len(); in corrupt() localVariable
48 buffer[index] ^= bit; in corrupt()
/smoltcp-0.9.1/src/socket/
Ddns.rs187 let index = queries.len() - 1; in find_free_query() localVariable
188 Some(QueryHandle(index)) in find_free_query()