<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/library/std/src/net/ip.rs, branch 1.53.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.53.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.53.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2021-04-16T20:18:04+00:00</updated>
<entry>
<title>Add documentation to help people find `Ipv4Addr::UNSPECIFIED`</title>
<updated>2021-04-16T20:18:04+00:00</updated>
<author>
<name>Josh Triplett</name>
<email>josh@joshtriplett.org</email>
</author>
<published>2021-04-16T19:57:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=9aa4d068a10ea03dffc349485456ae342667a142'/>
<id>urn:sha1:9aa4d068a10ea03dffc349485456ae342667a142</id>
<content type='text'>
People looking for `INADDR_ANY` don't always find
`Ipv4Addr::UNSPECIFIED`; add some documentation and an alias to help.
</content>
</entry>
<entry>
<title>Add `#[inline]` to IpAddr methods</title>
<updated>2021-04-03T23:42:56+00:00</updated>
<author>
<name>AngelicosPhosphoros</name>
<email>xuzin.timur@gmail.com</email>
</author>
<published>2021-04-03T23:42:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=a3d0fa8008c75c543c37d6f5af6414ae83874974'/>
<id>urn:sha1:a3d0fa8008c75c543c37d6f5af6414ae83874974</id>
<content type='text'>
Add some inlines to trivial methods of IpAddr
Closes https://github.com/rust-lang/rust/issues/77583
</content>
</entry>
<entry>
<title>Disallow octal format in Ipv4 string</title>
<updated>2021-03-30T02:24:23+00:00</updated>
<author>
<name>Cheng XU</name>
<email>git@xuc.me</email>
</author>
<published>2021-03-30T02:24:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=974192cd98b3efca8e5cd293f641f561e7487b30'/>
<id>urn:sha1:974192cd98b3efca8e5cd293f641f561e7487b30</id>
<content type='text'>
In its original specification, leading zero in Ipv4 string is interpreted
as octal literals. So a IP address 0127.0.0.1 actually means 87.0.0.1.

This confusion can lead to many security vulnerabilities. Therefore, in
[IETF RFC 6943], it suggests to disallow octal/hexadecimal format in Ipv4
string all together.

Existing implementation already disallows hexadecimal numbers. This commit
makes Parser reject octal numbers.

Fixes #83648.

[IETF RFC 6943]: https://tools.ietf.org/html/rfc6943#section-3.1.1
</content>
</entry>
<entry>
<title>add #[inline] to all the public IpAddr functions</title>
<updated>2021-02-03T15:53:25+00:00</updated>
<author>
<name>Ben Kimock</name>
<email>kimockb@gmail.com</email>
</author>
<published>2021-02-03T15:53:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d3d0fb7b45ea88c7e97b63612347da067ee3b65d'/>
<id>urn:sha1:d3d0fb7b45ea88c7e97b63612347da067ee3b65d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #81549 - est31:wording_fix, r=jonas-schievink</title>
<updated>2021-01-31T15:36:47+00:00</updated>
<author>
<name>Jonas Schievink</name>
<email>jonasschievink@gmail.com</email>
</author>
<published>2021-01-31T15:36:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=47a5312c301490589cde1275adfde600bf769c79'/>
<id>urn:sha1:47a5312c301490589cde1275adfde600bf769c79</id>
<content type='text'>
Misc ip documentation fixes
</content>
</entry>
<entry>
<title>Misc ip documentation fixes</title>
<updated>2021-01-30T11:06:06+00:00</updated>
<author>
<name>est31</name>
<email>MTest31@outlook.com</email>
</author>
<published>2021-01-30T10:57:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=cddeb5e47b18f78fa6ea83ea118d7aceac98a42f'/>
<id>urn:sha1:cddeb5e47b18f78fa6ea83ea118d7aceac98a42f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Dont prefix 0x when `dbg!(ipv6)`</title>
<updated>2021-01-20T04:31:34+00:00</updated>
<author>
<name>Lzu Tao</name>
<email>taolzu@gmail.com</email>
</author>
<published>2021-01-20T03:06:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=116b66ad491b3f0a5a809e49a6377d2697d0ed1b'/>
<id>urn:sha1:116b66ad491b3f0a5a809e49a6377d2697d0ed1b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Use slice::split_first instead of manuall slicing</title>
<updated>2021-01-20T04:31:34+00:00</updated>
<author>
<name>Lzu Tao</name>
<email>taolzu@gmail.com</email>
</author>
<published>2021-01-20T01:33:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=6b66749e171e8a9c6718c0107f4ec2e3f47b28ed'/>
<id>urn:sha1:6b66749e171e8a9c6718c0107f4ec2e3f47b28ed</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Stabilize all stable methods of `Ipv4Addr`, `Ipv6Addr` and `IpAddr` as const</title>
<updated>2020-11-27T19:36:47+00:00</updated>
<author>
<name>Christiaan Dirkx</name>
<email>christiaan@dirkx.email</email>
</author>
<published>2020-11-23T12:09:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=4fcef4b1571a4909041fb6e8f304d33df611b1dc'/>
<id>urn:sha1:4fcef4b1571a4909041fb6e8f304d33df611b1dc</id>
<content type='text'>
`Ipv4Addr`
 - `octets`
 - `is_loopback`
 - `is_private`
 - `is_link_local`
 - `is_multicast`
 - `is_broadcast`
 - `is_docmentation`
 - `to_ipv6_compatible`
 - `to_ipv6_mapped`

`Ipv6Addr`
 - `segments`
 - `is_unspecified`
 - `is_loopback`
 - `is_multicast`
 - `to_ipv4`

`IpAddr`
 - `is_unspecified`
 - `is_loopback`
 - `is_multicast`
</content>
</entry>
<entry>
<title>Auto merge of #76226 - CDirkx:const-ipaddr, r=dtolnay</title>
<updated>2020-11-23T04:47:25+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2020-11-23T04:47:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=1823a87986c6acf0765c0101d75bca5328416a60'/>
<id>urn:sha1:1823a87986c6acf0765c0101d75bca5328416a60</id>
<content type='text'>
Stabilize `IpAddr::is_ipv4` and `is_ipv6` as const

Insta-stabilize the methods `is_ipv4` and `is_ipv6` of `std::net::IpAddr` as const, in the same way as [PR#76198](https://github.com/rust-lang/rust/pull/76198).

Possible because of the recent stabilization of const control flow.

Part of #76225 and #76205.
</content>
</entry>
</feed>
