/smoltcp-0.9.1/src/wire/ |
D | tcp.rs | 189 let raw = NetworkEndian::read_u16(&data[field::FLAGS]); in fin() localVariable 190 raw & field::FLG_FIN != 0 in fin() 197 let raw = NetworkEndian::read_u16(&data[field::FLAGS]); in syn() localVariable 198 raw & field::FLG_SYN != 0 in syn() 205 let raw = NetworkEndian::read_u16(&data[field::FLAGS]); in rst() localVariable 206 raw & field::FLG_RST != 0 in rst() 213 let raw = NetworkEndian::read_u16(&data[field::FLAGS]); in psh() localVariable 214 raw & field::FLG_PSH != 0 in psh() 221 let raw = NetworkEndian::read_u16(&data[field::FLAGS]); in ack() localVariable 222 raw & field::FLG_ACK != 0 in ack() [all …]
|
D | ieee802154.rs | 212 let raw = LittleEndian::read_u16(&data[field::FRAMECONTROL]); localVariable 214 ((raw >> $bit) & 0b1) == 0b1 224 let mut raw = LittleEndian::read_u16(data); localVariable 225 raw |= ((val as u16) << $bit); 227 data.copy_from_slice(&raw.to_le_bytes()); 291 let raw = LittleEndian::read_u16(&data[field::FRAMECONTROL]); in frame_type() localVariable 292 let ft = (raw & 0b11) as u8; in frame_type() 308 let raw = LittleEndian::read_u16(&data[field::FRAMECONTROL]); in dst_addressing_mode() localVariable 309 let am = ((raw >> 10) & 0b11) as u8; in dst_addressing_mode() 317 let raw = LittleEndian::read_u16(&data[field::FRAMECONTROL]); in frame_version() localVariable [all …]
|
D | sixlowpan.rs | 187 let raw = buffer.as_ref(); in dispatch() localVariable 189 if raw.is_empty() { in dispatch() 193 if raw[0] >> 3 == DISPATCH_FIRST_FRAGMENT_HEADER || raw[0] >> 3 == DISPATCH_FRAGMENT_HEADER in dispatch() 196 } else if raw[0] >> 5 == DISPATCH_IPHC_HEADER { in dispatch() 320 let raw = self.buffer.as_ref(); in dispatch() localVariable 321 raw[field::DISPATCH] >> 3 in dispatch() 326 let raw = self.buffer.as_ref(); in datagram_size() localVariable 327 NetworkEndian::read_u16(&raw[field::DATAGRAM_SIZE]) & 0b111_1111_1111 in datagram_size() 332 let raw = self.buffer.as_ref(); in datagram_tag() localVariable 333 NetworkEndian::read_u16(&raw[field::DATAGRAM_TAG]) in datagram_tag() [all …]
|
D | ipv4.rs | 527 let raw = NetworkEndian::read_u16(&data[field::FLG_OFF]); in clear_flags() localVariable 528 let raw = raw & !0xe000; in clear_flags() localVariable 529 NetworkEndian::write_u16(&mut data[field::FLG_OFF], raw); in clear_flags() 536 let raw = NetworkEndian::read_u16(&data[field::FLG_OFF]); in set_dont_frag() localVariable 537 let raw = if value { raw | 0x4000 } else { raw & !0x4000 }; in set_dont_frag() localVariable 538 NetworkEndian::write_u16(&mut data[field::FLG_OFF], raw); in set_dont_frag() 545 let raw = NetworkEndian::read_u16(&data[field::FLG_OFF]); in set_more_frags() localVariable 546 let raw = if value { raw | 0x2000 } else { raw & !0x2000 }; in set_more_frags() localVariable 547 NetworkEndian::write_u16(&mut data[field::FLG_OFF], raw); in set_more_frags() 554 let raw = NetworkEndian::read_u16(&data[field::FLG_OFF]); in set_frag_offset() localVariable [all …]
|
D | arp.rs | 111 let raw = NetworkEndian::read_u16(&data[field::HTYPE]); in hardware_type() localVariable 112 Hardware::from(raw) in hardware_type() 119 let raw = NetworkEndian::read_u16(&data[field::PTYPE]); in protocol_type() localVariable 120 Protocol::from(raw) in protocol_type() 141 let raw = NetworkEndian::read_u16(&data[field::OPER]); in operation() localVariable 142 Operation::from(raw) in operation()
|
D | ipv6fragment.rs | 127 let raw = ((value & 0x1fff) << 3) | ((data[3] & 0x7) as u16); in set_frag_offset() localVariable 128 NetworkEndian::write_u16(&mut data[field::FR_OF_M], raw); in set_frag_offset() 136 let raw = (data[3] & 0xfe) | (value as u8 & 0x1); in set_more_frags() localVariable 137 data[3] = raw; in set_more_frags()
|
D | ipv6routing.rs | 350 let raw = (value << 4) | (data[field::CMPR] & 0xF); in set_cmpr_i() localVariable 351 data[field::CMPR] = raw; in set_cmpr_i() 360 let raw = (value & 0xF) | (data[field::CMPR] & 0xF0); in set_cmpr_e() localVariable 361 data[field::CMPR] = raw; in set_cmpr_e()
|
D | ethernet.rs | 162 let raw = NetworkEndian::read_u16(&data[field::ETHERTYPE]); in ethertype() localVariable 163 EtherType::from(raw) in ethertype()
|
D | ipv6option.rs | 54 let raw: u8 = other.into(); in from() localVariable 55 Self::from(raw & 0b11000000u8) in from()
|
D | ipv6.rs | 590 let raw = (((data[1] & 0xf0) as u32) << 16) | (value & 0x0fffff); in set_flow_label() localVariable 591 NetworkEndian::write_u24(&mut data[1..4], raw); in set_flow_label()
|
/smoltcp-0.9.1/examples/ |
D | multicast.rs | 7 use smoltcp::socket::{raw, udp}; 62 let raw_rx_buffer = raw::PacketBuffer::new(vec![raw::PacketMetadata::EMPTY; 2], vec![0; 512]); in main() 64 let raw_tx_buffer = raw::PacketBuffer::new(vec![], vec![]); in main() 65 let raw_socket = raw::Socket::new( in main() 93 let socket = sockets.get_mut::<raw::Socket>(raw_handle); in main()
|
/smoltcp-0.9.1/.github/workflows/ |
D | test.yml | 37 - std medium-ethernet proto-ipv4 proto-ipv4-fragmentation socket-raw socket-dns 38 - std medium-ethernet proto-ipv4 proto-igmp socket-raw socket-dns 50 …- std medium-ethernet medium-ip medium-ieee802154 proto-ipv4 proto-ipv6 socket-raw socket-udp sock… 55 … features: alloc medium-ethernet proto-ipv4 proto-ipv6 socket-raw socket-udp socket-tcp socket-icmp 77 …net medium-ieee802154 proto-ipv6 proto-ipv6 proto-igmp proto-dhcpv4 socket-raw socket-udp socket-t… 78 …um-ip medium-ethernet proto-ipv6 proto-ipv6 proto-igmp proto-dhcpv4 socket-raw socket-udp socket-t… 79 …um-ip medium-ethernet proto-ipv6 proto-ipv6 proto-igmp proto-dhcpv4 socket-raw socket-udp socket-t…
|
/smoltcp-0.9.1/src/socket/ |
D | mod.rs | 24 pub mod raw; module 61 Raw(raw::Socket<'a>), 131 from_socket!(raw::Socket<'a>, Raw);
|
/smoltcp-0.9.1/src/iface/interface/ |
D | tests.rs | 1208 raw::PacketBuffer::new(vec![raw::PacketMetadata::EMPTY; packets], vec![0; 48 * 1]); in test_raw_socket_no_reply() 1209 let tx_buffer = raw::PacketBuffer::new( in test_raw_socket_no_reply() 1210 vec![raw::PacketMetadata::EMPTY; packets], in test_raw_socket_no_reply() 1213 let raw_socket = raw::Socket::new(IpVersion::Ipv4, IpProtocol::Udp, rx_buffer, tx_buffer); in test_raw_socket_no_reply() 1291 raw::PacketBuffer::new(vec![raw::PacketMetadata::EMPTY; packets], vec![0; 48 * 1]); in test_raw_socket_with_udp_socket() 1292 let raw_tx_buffer = raw::PacketBuffer::new( in test_raw_socket_with_udp_socket() 1293 vec![raw::PacketMetadata::EMPTY; packets], in test_raw_socket_with_udp_socket() 1296 let raw_socket = raw::Socket::new( in test_raw_socket_with_udp_socket()
|
D | mod.rs | 1319 .filter_map(|i| raw::Socket::downcast_mut(&mut i.socket)) in raw_socket_filter()
|
/smoltcp-0.9.1/ |
D | Cargo.toml | 57 "socket-raw" = ["socket"] 73 …"socket-raw", "socket-icmp", "socket-udp", "socket-tcp", "socket-dhcpv4", "socket-dns", "socket-md… 253 …, "medium-ethernet", "medium-ip", "phy-tuntap_interface", "proto-ipv4", "socket-raw", "socket-udp"] 257 …"medium-ethernet", "medium-ip", "phy-tuntap_interface", "proto-ipv4", "proto-dhcpv4", "socket-raw"]
|
D | README.md | 200 ### Features `socket-raw`, `socket-udp`, `socket-tcp`, `socket-icmp`, `socket-dhcpv4`, `socket-dns` 283 raw frames. For testing purposes, we will use a regular OS, and run _smoltcp_ in 286 On \*nix OSes, transmitting and receiving raw frames normally requires superuser privileges, but 388 Unlike the rest of the examples, it uses raw sockets, and so it can be used on regular interfaces, 427 _examples/ping.rs_ implements a minimal version of the `ping` utility using raw sockets.
|
D | CHANGELOG.md | 37 - socket: Add send_with to udp, raw, and icmp sockets. These methods enable reserving a packet buff… 48 - socket/raw: Add `peek` and `peek_slice` methods (#734) 49 - socket/raw: When sending packets, send the source IP address unmodified (it was previously replac… 179 - udp,raw,icmp: Fix packet buffer panic caused by large payload ([332](https://github.com/smoltcp-r…
|