/smoltcp-0.9.1/src/wire/ |
D | ipv6hopbyhop.rs | 63 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()
|
D | ipv6routing.rs | 156 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 …]
|
D | ipv6option.rs | 101 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()
|
D | ipv6fragment.rs | 49 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()
|
D | ethernet.rs | 113 packet.check_len()?; in new_checked() 119 pub fn check_len(&self) -> Result<()> { in check_len() method 271 frame.check_len()?; in parse()
|
D | sixlowpan.rs | 281 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 …]
|
D | udp.rs | 46 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()
|
D | ipv6.rs | 456 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()
|
D | igmp.rs | 67 packet.check_len()?; in new_checked() 73 pub fn check_len(&self) -> Result<()> { in check_len() method
|
D | arp.rs | 78 packet.check_len()?; in new_checked() 91 pub fn check_len(&self) -> Result<()> { in check_len() method
|
D | mld.rs | 186 packet.check_len()?; in new_checked() 192 pub fn check_len(&self) -> Result<()> { in check_len() method
|
D | ieee802154.rs | 244 packet.check_len()?; in new_checked() 259 pub fn check_len(&self) -> Result<()> { in check_len() method 775 packet.check_len()?; in parse()
|
D | tcp.rs | 126 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()
|
D | icmpv4.rs | 197 packet.check_len()?; in new_checked() 207 pub fn check_len(&self) -> Result<()> { in check_len() method
|
D | ndiscoption.rs | 158 opt.check_len()?; in new_checked() 174 pub fn check_len(&self) -> Result<()> { in check_len() method
|
D | dns.rs | 96 packet.check_len()?; in new_checked() 103 pub fn check_len(&self) -> Result<()> { in check_len() method
|
D | icmpv6.rs | 260 packet.check_len()?; in new_checked() 266 pub fn check_len(&self) -> Result<()> { in check_len() method
|
D | ipv4.rs | 317 packet.check_len()?; in new_checked() 332 pub fn check_len(&self) -> Result<()> { in check_len() method
|
D | dhcpv4.rs | 246 packet.check_len()?; in new_checked() 254 pub fn check_len(&self) -> Result<()> { in check_len() method
|