about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2024-10-16 09:34:34 -0400
committerNick Mathewson <nickm@torproject.org>2024-10-24 08:56:32 -0400
commit0e5c5a25961a94d866a65bb956d5ae9bf7c84eef (patch)
treec4b5d65789d68de563c83eeffc6d6661195543bd /compiler/rustc_codegen_llvm/src
parentd829780c4e4ef11f5e09c1c5ed9684c12aad7236 (diff)
downloadrust-0e5c5a25961a94d866a65bb956d5ae9bf7c84eef.tar.gz
rust-0e5c5a25961a94d866a65bb956d5ae9bf7c84eef.zip
Document textual format of SocketAddrV{4,6}
This commit adds new "Textual representation" documentation sections to
SocketAddrV4 and SocketAddrV6, by analogy to the existing
"textual representation" sections of Ipv4Addr and Ipv6Addr.

Rationale: Without documentation about which formats are actually
accepted, it's hard for a programmer to be sure that their code
will actually behave as expected when implementing protocols that
require support (or rejection) for particular representations.
This lack of clarity can in turn can lead to ambiguities and
security problems like those discussed in RFC 6942.

(I've tried to describe the governing RFCs or standards where I
could, but it's possible that the actual implementers had something
else in mind.  I could not find any standards that corresponded
_exactly_ to the one implemented in SocketAddrv6, but I have linked
the relevant documents that I could find.)
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions