/smoltcp-0.9.1/src/ |
D | parsers.rs | 15 use crate::wire::{Ipv6Address, Ipv6Cidr}; 249 fn accept_ipv6(&mut self) -> Result<Ipv6Address> { in accept_ipv6() argument 280 Ok(Ipv6Address::from_parts(&addr)) in accept_ipv6() 397 impl FromStr for Ipv6Address { implementation 401 fn from_str(s: &str) -> Result<Ipv6Address> { in from_str() argument 553 assert_eq!(Ipv6Address::from_str(""), Err(())); in test_ipv6() 555 Ipv6Address::from_str("fe80:0:0:0:0:0:0:1"), in test_ipv6() 556 Ok(Ipv6Address::new(0xfe80, 0, 0, 0, 0, 0, 0, 1)) in test_ipv6() 558 assert_eq!(Ipv6Address::from_str("::1"), Ok(Ipv6Address::LOOPBACK)); in test_ipv6() 559 assert_eq!(Ipv6Address::from_str("::"), Ok(Ipv6Address::UNSPECIFIED)); in test_ipv6() [all …]
|
/smoltcp-0.9.1/src/wire/ |
D | mld.rs | 11 use crate::wire::Ipv6Address; 50 pub fn mcast_addr(&self) -> Ipv6Address { in mcast_addr() argument 52 Ipv6Address::from_bytes(&data[field::QUERY_MCAST_ADDR]) in mcast_addr() 111 pub fn set_mcast_addr(&mut self, addr: Ipv6Address) { in set_mcast_addr() argument 235 pub fn mcast_addr(&self) -> Ipv6Address { in mcast_addr() argument 237 Ipv6Address::from_bytes(&data[field::RECORD_MCAST_ADDR]) in mcast_addr() 281 pub fn set_mcast_addr(&mut self, addr: Ipv6Address) { in set_mcast_addr() argument 303 mcast_addr: Ipv6Address, 426 mcast_addr: Ipv6Address::LINK_LOCAL_ALL_NODES, in create_repr() 450 assert_eq!(packet.mcast_addr(), Ipv6Address::LINK_LOCAL_ALL_NODES); in test_query_deconstruct() [all …]
|
D | ndisc.rs | 7 use crate::wire::Ipv6Address; 79 pub fn target_addr(&self) -> Ipv6Address { in target_addr() argument 81 Ipv6Address::from_bytes(&data[field::TARGET_ADDR]) in target_addr() 105 pub fn dest_addr(&self) -> Ipv6Address { in dest_addr() argument 107 Ipv6Address::from_bytes(&data[field::DEST_ADDR]) in dest_addr() 160 pub fn set_target_addr(&mut self, value: Ipv6Address) { in set_target_addr() argument 185 pub fn set_dest_addr(&mut self, value: Ipv6Address) { in set_dest_addr() argument 209 target_addr: Ipv6Address, 214 target_addr: Ipv6Address, 218 target_addr: Ipv6Address, [all …]
|
D | ndiscoption.rs | 7 use crate::wire::{Ipv6Address, Ipv6Packet, Ipv6Repr, MAX_HARDWARE_ADDRESS_LEN}; 267 pub fn prefix(&self) -> Ipv6Address { in prefix() argument 269 Ipv6Address::from_bytes(&data[field::PREFIX]) in prefix() 357 pub fn set_prefix(&mut self, addr: Ipv6Address) { in set_prefix() argument 402 pub prefix: Ipv6Address, 637 use crate::wire::Ipv6Address; 662 assert_eq!(opt.prefix(), Ipv6Address::new(0xfe80, 0, 0, 0, 0, 0, 0, 1)); in test_deconstruct() 675 opt.set_prefix(Ipv6Address::new(0xfe80, 0, 0, 0, 0, 0, 0, 1)); in test_construct() 736 prefix: Ipv6Address::new(0xfe80, 0, 0, 0, 0, 0, 0, 1), in test_repr_parse_prefix_info() 752 prefix: Ipv6Address::new(0xfe80, 0, 0, 0, 0, 0, 0, 1), in test_repr_emit_prefix_info()
|
D | ip.rs | 9 use crate::wire::{Ipv6Address, Ipv6Cidr, Ipv6Packet, Ipv6Repr}; 90 Ipv6(Ipv6Address), 104 Address::Ipv6(Ipv6Address::new(a0, a1, a2, a3, a4, a5, a6, a7)) in v6() 238 impl From<Ipv6Address> for Address { 239 fn from(addr: Ipv6Address) -> Self { in from() 882 pub(crate) const MOCK_IP_ADDR_1: IpAddress = IpAddress::Ipv6(Ipv6Address([ 886 pub(crate) const MOCK_IP_ADDR_2: IpAddress = IpAddress::Ipv6(Ipv6Address([ 890 pub(crate) const MOCK_IP_ADDR_3: IpAddress = IpAddress::Ipv6(Ipv6Address([ 894 pub(crate) const MOCK_IP_ADDR_4: IpAddress = IpAddress::Ipv6(Ipv6Address([ 898 pub(crate) const MOCK_UNSPECIFIED: IpAddress = IpAddress::Ipv6(Ipv6Address::UNSPECIFIED); [all …]
|
D | dns.rs | 12 use crate::wire::Ipv6Address; 350 Ok(RecordData::Aaaa(Ipv6Address::from_bytes(data))) in parse() 364 Aaaa(Ipv6Address),
|
D | icmpv6.rs | 752 use crate::wire::{IpProtocol, Ipv6Address, Ipv6Repr}; 790 src_addr: Ipv6Address([ in too_big_packet_repr() 794 dst_addr: Ipv6Address([ in too_big_packet_repr()
|
D | ieee802154.rs | 6 use crate::wire::ipv6::Address as Ipv6Address; 160 pub fn as_link_local_address(&self) -> Option<Ipv6Address> { in as_link_local_address() argument 166 Some(Ipv6Address::from_bytes(&bytes)) in as_link_local_address()
|
D | mod.rs | 178 Address as Ipv6Address, Cidr as Ipv6Cidr, Packet as Ipv6Packet, Repr as Ipv6Repr,
|
D | ipv6routing.rs | 5 use crate::wire::Ipv6Address as Address;
|
/smoltcp-0.9.1/src/iface/ |
D | route.rs | 9 use crate::wire::{Ipv6Address, Ipv6Cidr}; 31 IpCidr::Ipv6(Ipv6Cidr::new(Ipv6Address::new(0, 0, 0, 0, 0, 0, 0, 0), 0)); 47 pub fn new_ipv6_gateway(gateway: Ipv6Address) -> Route { in new_ipv6_gateway() 97 gateway: Ipv6Address, in add_default_ipv6_route() argument 166 pub const ADDR_1A: Ipv6Address = 167 Ipv6Address([0xfe, 0x80, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 1]); 168 pub const ADDR_1B: Ipv6Address = 169 Ipv6Address([0xfe, 0x80, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 13]); 170 pub const ADDR_1C: Ipv6Address = 171 Ipv6Address([0xfe, 0x80, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 42]); [all …]
|
/smoltcp-0.9.1/benches/ |
D | bench.rs | 9 use smoltcp::wire::{Ipv6Address, Ipv6Packet, Ipv6Repr}; 16 const SRC_ADDR: IpAddress = IpAddress::Ipv6(Ipv6Address([ 20 const DST_ADDR: IpAddress = IpAddress::Ipv6(Ipv6Address([ 104 src_addr: Ipv6Address([0xfe, 0x80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1]), in bench_emit_ipv6() 105 dst_addr: Ipv6Address([0xfe, 0x80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2]), in bench_emit_ipv6()
|
/smoltcp-0.9.1/src/iface/interface/ |
D | tests.rs | 189 src_addr: Ipv6Address::new(0xfe80, 0, 0, 0, 0, 0, 0, 1), in test_no_icmp_no_unicast_ipv6() 190 dst_addr: Ipv6Address::LINK_LOCAL_ALL_NODES, in test_no_icmp_no_unicast_ipv6() 440 let src_ip = Ipv6Address::new(0xfe80, 0, 0, 0, 0, 0, 0, 1); in test_handle_udp_broadcast() 452 dst_addr: Ipv6Address::LINK_LOCAL_ALL_NODES, in test_handle_udp_broadcast() 590 let src_addr = Ipv6Address::new(0xfe80, 0, 0, 0, 0, 0, 0, 1); in test_icmp_reply_size() 592 let dst_addr = Ipv6Address::new(0xfe80, 0, 0, 0, 0, 0, 0, 2); in test_icmp_reply_size() 757 let local_ip_addr = Ipv6Address::new(0xfdbe, 0, 0, 0, 0, 0, 0, 1); in test_handle_valid_ndisc_request() 758 let remote_ip_addr = Ipv6Address::new(0xfdbe, 0, 0, 0, 0, 0, 0, 2); in test_handle_valid_ndisc_request() 1031 .has_solicited_node(Ipv6Address::new(0xff02, 0, 0, 0, 0, 1, 0xff00, 0x0002))); in test_solicited_node_addrs() 1034 .has_solicited_node(Ipv6Address::new(0xff02, 0, 0, 0, 0, 1, 0xff00, 0xffff))); in test_solicited_node_addrs() [all …]
|
D | mod.rs | 638 pub fn ipv6_addr(&self) -> Option<Ipv6Address> { in ipv6_addr() argument 1101 _dst_addr: Ipv6Address, in get_source_address_ipv6() argument 1102 ) -> Option<Ipv6Address> { in get_source_address_ipv6() argument 1145 Ipv6Address([0xfe, 0x80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1]), in mock() 1239 pub fn has_solicited_node(&self, addr: Ipv6Address) -> bool { in has_solicited_node() 1242 IpCidr::Ipv6(cidr) if cidr.address() != Ipv6Address::LOOPBACK => { in has_solicited_node() 1270 pub fn ipv6_addr(&self) -> Option<Ipv6Address> { in ipv6_addr() argument
|
/smoltcp-0.9.1/examples/ |
D | dns.rs | 15 use smoltcp::wire::{DnsQueryType, EthernetAddress, IpAddress, IpCidr, Ipv4Address, Ipv6Address}; 58 .add_default_ipv6_route(Ipv6Address::new(0xfe80, 0, 0, 0, 0, 0, 0, 0x100)) in main()
|
D | client.rs | 11 use smoltcp::wire::{EthernetAddress, IpAddress, IpCidr, Ipv4Address, Ipv6Address}; 56 .add_default_ipv6_route(Ipv6Address::new(0xfe80, 0, 0, 0, 0, 0, 0, 0x100)) in main()
|
D | httpclient.rs | 12 use smoltcp::wire::{EthernetAddress, IpAddress, IpCidr, Ipv4Address, Ipv6Address}; 56 .add_default_ipv6_route(Ipv6Address::new(0xfe80, 0, 0, 0, 0, 0, 0, 0x100)) in main()
|
D | multicast.rs | 11 Ipv4Packet, Ipv6Address, 55 .add_default_ipv6_route(Ipv6Address::new(0xfe80, 0, 0, 0, 0, 0, 0, 0x100)) in main()
|
D | server.rs | 11 use smoltcp::wire::{EthernetAddress, IpAddress, IpCidr, Ipv4Address, Ipv6Address}; 51 .add_default_ipv6_route(Ipv6Address::new(0xfe80, 0, 0, 0, 0, 0, 0, 0x100)) in main()
|
D | ping.rs | 16 Ipv4Address, Ipv6Address, 132 .add_default_ipv6_route(Ipv6Address::new(0xfe80, 0, 0, 0, 0, 0, 0, 0x100)) in main()
|
/smoltcp-0.9.1/src/socket/ |
D | icmp.rs | 857 use crate::wire::{Icmpv6DstUnreachable, IpEndpoint, Ipv6Address}; 859 const REMOTE_IPV6: Ipv6Address = 860 Ipv6Address([0xfe, 0x80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2]); 861 const LOCAL_IPV6: Ipv6Address = 862 Ipv6Address([0xfe, 0x80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1]); 893 socket.send_slice(b"abcdef", IpAddress::Ipv6(Ipv6Address::default())), in test_send_unaddressable()
|
D | raw.rs | 419 use crate::wire::{Ipv6Address, Ipv6Repr}; 474 src_addr: Ipv6Address([ 478 dst_addr: Ipv6Address([
|
D | dns.rs | 23 const MDNS_IPV6_ADDR: IpAddress = IpAddress::Ipv6(crate::wire::Ipv6Address([
|
D | udp.rs | 516 use crate::wire::Ipv6Address as IpvXAddress;
|
D | tcp.rs | 2337 use crate::wire::Ipv6Address as IpvXAddress;
|