Home
last modified time | relevance | path

Searched refs:check_len (Results 1 – 19 of 19) sorted by relevance

/smoltcp-0.9.1/src/wire/
Dipv6hopbyhop.rs63 header.check_len()?; in new_checked()
73 pub fn check_len(&self) -> Result<()> { in check_len() method
230 Header::new_unchecked(&REPR_PACKET_PAD4[..0]).check_len() in test_check_len()
235 Header::new_unchecked(&REPR_PACKET_PAD4[..1]).check_len() in test_check_len()
240 Header::new_unchecked(&REPR_PACKET_PAD4[..7]).check_len() in test_check_len()
243 assert_eq!(Ok(()), Header::new_unchecked(&REPR_PACKET_PAD4).check_len()); in test_check_len()
247 Header::new_unchecked(&REPR_PACKET_PAD12).check_len() in test_check_len()
251 assert_eq!(Err(Error), Header::new_unchecked(&header).check_len()); in test_check_len()
Dipv6routing.rs156 header.check_len()?; in new_checked()
166 pub fn check_len(&self) -> Result<()> { in check_len() method
598 assert_eq!(Err(Error), Header::new(&BYTES_TYPE2[..3]).check_len()); in test_check_len()
599 assert_eq!(Err(Error), Header::new(&BYTES_SRH_FULL[..3]).check_len()); in test_check_len()
600 assert_eq!(Err(Error), Header::new(&BYTES_SRH_ELIDED[..3]).check_len()); in test_check_len()
602 assert_eq!(Err(Error), Header::new(&BYTES_TYPE2[..23]).check_len()); in test_check_len()
603 assert_eq!(Err(Error), Header::new(&BYTES_SRH_FULL[..39]).check_len()); in test_check_len()
604 assert_eq!(Err(Error), Header::new(&BYTES_SRH_ELIDED[..11]).check_len()); in test_check_len()
606 assert_eq!(Ok(()), Header::new(&BYTES_TYPE2[..]).check_len()); in test_check_len()
607 assert_eq!(Ok(()), Header::new(&BYTES_SRH_FULL[..]).check_len()); in test_check_len()
[all …]
Dipv6option.rs101 opt.check_len()?; in new_checked()
111 pub fn check_len(&self) -> Result<()> { in check_len() method
366 Ipv6Option::new_unchecked(&bytes[..0]).check_len() in test_check_len()
371 Ipv6Option::new_unchecked(&IPV6OPTION_BYTES_PAD1).check_len() in test_check_len()
377 Ipv6Option::new_unchecked(&IPV6OPTION_BYTES_PADN[..2]).check_len() in test_check_len()
382 Ipv6Option::new_unchecked(&IPV6OPTION_BYTES_PADN).check_len() in test_check_len()
388 Ipv6Option::new_unchecked(&IPV6OPTION_BYTES_UNKNOWN[..4]).check_len() in test_check_len()
392 Ipv6Option::new_unchecked(&IPV6OPTION_BYTES_UNKNOWN[..1]).check_len() in test_check_len()
397 Ipv6Option::new_unchecked(&IPV6OPTION_BYTES_UNKNOWN).check_len() in test_check_len()
Dipv6fragment.rs49 header.check_len()?; in new_checked()
55 pub fn check_len(&self) -> Result<()> { in check_len() method
230 Header::new_unchecked(&BYTES_HEADER_MORE_FRAG[..7]).check_len() in test_check_len()
235 Header::new_unchecked(&BYTES_HEADER_MORE_FRAG).check_len() in test_check_len()
Dethernet.rs113 packet.check_len()?; in new_checked()
119 pub fn check_len(&self) -> Result<()> { in check_len() method
271 frame.check_len()?; in parse()
Dsixlowpan.rs281 packet.check_len()?; in new_checked()
294 pub fn check_len(&self) -> Result<()> { in check_len() method
555 packet.check_len()?; in new_checked()
561 pub fn check_len(&self) -> Result<()> { in check_len() method
1174 packet.check_len()?; in parse()
1525 packet.check_len()?; in new_checked()
1536 pub fn check_len(&self) -> Result<()> { in check_len() method
1676 packet.check_len()?; in parse()
1744 packet.check_len()?; in new_checked()
1750 pub fn check_len(&self) -> Result<()> { in check_len() method
[all …]
Dudp.rs46 packet.check_len()?; in new_checked()
58 pub fn check_len(&self) -> Result<()> { in check_len() method
384 assert_eq!(packet.check_len(), Err(Error)); in test_impossible_len()
Dipv6.rs456 packet.check_len()?; in new_checked()
467 pub fn check_len(&self) -> Result<()> { in check_len() method
676 packet.check_len()?; in parse()
1091 assert_eq!(packet.check_len(), Ok(())); in test_packet_deconstruction()
1141 assert_eq!(packet.check_len(), Ok(())); in test_packet_construction()
Digmp.rs67 packet.check_len()?; in new_checked()
73 pub fn check_len(&self) -> Result<()> { in check_len() method
Darp.rs78 packet.check_len()?; in new_checked()
91 pub fn check_len(&self) -> Result<()> { in check_len() method
Dmld.rs186 packet.check_len()?; in new_checked()
192 pub fn check_len(&self) -> Result<()> { in check_len() method
Dieee802154.rs244 packet.check_len()?; in new_checked()
259 pub fn check_len(&self) -> Result<()> { in check_len() method
775 packet.check_len()?; in parse()
Dtcp.rs126 packet.check_len()?; in new_checked()
138 pub fn check_len(&self) -> Result<()> { in check_len() method
1158 assert_eq!(packet.check_len(), Err(Error)); in test_truncated()
1166 assert_eq!(packet.check_len(), Err(Error)); in test_impossible_len()
Dicmpv4.rs197 packet.check_len()?; in new_checked()
207 pub fn check_len(&self) -> Result<()> { in check_len() method
Dndiscoption.rs158 opt.check_len()?; in new_checked()
174 pub fn check_len(&self) -> Result<()> { in check_len() method
Ddns.rs96 packet.check_len()?; in new_checked()
103 pub fn check_len(&self) -> Result<()> { in check_len() method
Dicmpv6.rs260 packet.check_len()?; in new_checked()
266 pub fn check_len(&self) -> Result<()> { in check_len() method
Dipv4.rs317 packet.check_len()?; in new_checked()
332 pub fn check_len(&self) -> Result<()> { in check_len() method
Ddhcpv4.rs246 packet.check_len()?; in new_checked()
254 pub fn check_len(&self) -> Result<()> { in check_len() method