netstack issueshttps://gitlab.redox-os.org/redox-os/netstack/-/issues2018-06-13T18:35:09Zhttps://gitlab.redox-os.org/redox-os/netstack/-/issues/12Rename Setting::Ttl to Setting::HopLimit2018-06-13T18:35:09ZDan RobertsonRename Setting::Ttl to Setting::HopLimitRename `Setting::Ttl` to `Setting::HopLimit`. [smoltcp] [aims to be an IPv6 first stack] (once IPv6 is supported 😄). We should follow suit and use the IPv6 Hop Limit instead of IPv4's TTL.
[smoltcp]: https://github.com/m-labs/smoltcp
...Rename `Setting::Ttl` to `Setting::HopLimit`. [smoltcp] [aims to be an IPv6 first stack] (once IPv6 is supported 😄). We should follow suit and use the IPv6 Hop Limit instead of IPv4's TTL.
[smoltcp]: https://github.com/m-labs/smoltcp
[aims to be an IPv6 first stack]: https://github.com/m-labs/smoltcp/pull/89#discussion_r155903065
https://gitlab.redox-os.org/redox-os/netstack/-/issues/11Allow binding ICMP sockets to a port for receiving Destination Unreachable me...2018-06-13T18:35:09ZDan RobertsonAllow binding ICMP sockets to a port for receiving Destination Unreachable messagesm-labs/smoltcp#69 allows users to `bind` a icmp socket to a UDP port similar to the second section found at https://www.planet-lab.org/raw_sockets/api_icmp.html. Add `icmp:upd/<port>` to the icmp scheme an allow users to receive ICMP err...m-labs/smoltcp#69 allows users to `bind` a icmp socket to a UDP port similar to the second section found at https://www.planet-lab.org/raw_sockets/api_icmp.html. Add `icmp:upd/<port>` to the icmp scheme an allow users to receive ICMP error responses associated with an open UDP port.https://gitlab.redox-os.org/redox-os/netstack/-/issues/10Use IpEndpoint's FromStr implementation2018-06-13T18:35:09ZDan RobertsonUse IpEndpoint's FromStr implementationm-labs/smoltcp#102 implmented [`FromStr`] for [`IpEndpoint`]. Currently [`parse_endpoint`] parses the port and IP address manually. We should use the [`FromStr`] implementation instead.
~Note: we need to maintain the same defaults. AF...m-labs/smoltcp#102 implmented [`FromStr`] for [`IpEndpoint`]. Currently [`parse_endpoint`] parses the port and IP address manually. We should use the [`FromStr`] implementation instead.
~Note: we need to maintain the same defaults. AFAIK the [current upstream implementation] of the parser will return an error for `:80` while [`parse_endpoint`] will not.~
[`FromStr`]: https://doc.rust-lang.org/std/str/trait.FromStr.html
[`IpEndpoint`]: https://docs.rs/smoltcp/0.4.0/smoltcp/wire/struct.IpEndpoint.html
[`parse_endpoint`]: https://github.com/redox-os/netstack/blob/master/src/smolnetd/scheme/mod.rs#L242-L255
[current upstream implementation]: https://github.com/m-labs/smoltcp/blob/master/src/parsers.rs#L330-L344