Lzu Tao
|
e8ea6e59f0
|
prefer pattern matching over indexing
|
2020-08-11 16:07:39 +00:00 |
|
Lzu Tao
|
0210fd3d73
|
Transmute between big endian s6_addr and [u16; 8].
The old code already made the assumption to reinterpret
`Ipv6Addr` as `[u16; 8]`.
Glibc, Linux, FreeBSD, Win32 all makes this assumption.
The main motivation of using union it to better optimize code.
ref:
* https://docs.microsoft.com/en-us/windows/win32/api/in6addr/ns-in6addr-in6_addr
* https://github.com/freebsd/freebsd/blob/1d6e4247415d264485ee94b59fdbc12e0c566fd0/contrib/ntp/lib/isc/include/isc/ipv6.h#L63
* https://github.com/zephyrproject-rtos/zephyr/blob/8b531aa996bba254c03129658490af59597acd78/include/net/net_ip.h#L137
* https://sourceware.org/git/?p=glibc.git;a=blob;f=inet/netinet/in.h;h=f6355c7efe5192b88337b136ef687fe9a5ed648c;hb=HEAD#l216
Co-authored-by: Josh Stone <cuviper@gmail.com>
Co-authored-by: Peter Atashian <retep998@gmail.com>
|
2020-08-10 00:50:26 +00:00 |
|
Yuki Okushi
|
1b61fd3ccf
|
Rollup merge of #75179 - lzutao:unsed-ipv4-frominner, r=alexcrichton
Remove unused FromInner impl for Ipv4Addr
The removed is a unused unstable implementation.
|
2020-08-07 09:35:16 +09:00 |
|
Yuki Okushi
|
c9c7048038
|
Rollup merge of #75175 - lzutao:doctest-ipv4-fromu32, r=cuviper
Make doctests of Ipv4Addr::from(u32) easier to read
There are many zeroes in `0x0d0c0b0au32` which makes it hard to read.
|
2020-08-07 09:35:14 +09:00 |
|
Lzu Tao
|
d9f260e95e
|
Remove unused FromInner impl for Ipv4Addr
|
2020-08-05 05:53:07 +00:00 |
|
Lzu Tao
|
725d37cae0
|
Make doctests of Ipv4Addr::from(u32) easier to read
|
2020-08-05 05:31:17 +00:00 |
|
Lzu Tao
|
30a1455c8d
|
Use u32::from_ne_bytes to fix a FIXME
Co-authored-by: Weiyi Wang <wwylele@gmail.com>
Co-authored-by: Adam Reichold <adam.reichold@t-online.de>
Co-authored-by: Josh Stone <cuviper@gmail.com>
Co-authored-by: Scott McMurray <scottmcm@users.noreply.github.com>
Co-authored-by: tmiasko <tomasz.miasko@gmail.com>
|
2020-08-05 02:49:26 +00:00 |
|
Alexis Bourget
|
90d00527d1
|
Add note to clearly mark the RFC as rejected
|
2020-07-28 18:53:35 +02:00 |
|
Alexis Bourget
|
dcce6cb511
|
Remove links to rejected errata 4406 for RFC 4291
|
2020-07-28 18:53:35 +02:00 |
|
mark
|
2c31b45ae8
|
mv std libs to library/
|
2020-07-27 19:51:13 -05:00 |
|