* Break out control message parsing by IP version
* Add shims for Darwin packet info
* Add shims for Linux packet info
* Add channel option for receiving datagram packet info
* Add NIOPacketInfo to AddressedEnvelope.Metadata
* Pipe up packet info channel option to receive path
* Add NIOPacketInfo info and fix backwards compatability
* Document packet info socket options
* Cleanup packet info control message parsing
* Add packet info and ECN combined tests
* Find real interface index during NIOPacketInfo tests
* Add PacketInfo tests to Linux tests
Motivation:
This needs to be possible so users can specify what
ECN status they wish to send. The auto-generated
initialiser is internal.
Modifications:
Add public initialiser to AddressedEnvelope.Metadata
Add public initialiser to AddressedEnvelope taking Metadata
Result:
Users will be able to construct AddressedEnvelopes with Metadata set.
Add Optional ECN MetaData to Addressed Envelope
Motivation:
This is a very small step along the path to #1472
Modifications:
Add an optional metadata field to addressed envelope. Currently the only possible data is ECN information. This is not currently populated anywhere.
Result:
Metadata in place for future work.
Co-authored-by: Cory Benfield <lukasa@apple.com>
Motivation:
NIOAny is used extensively across SwiftNIO but can't be reasonably debugged. Users may want to simply call String(describing: CustomStringConvertible) to inspect what is the data they are working with at the moment instead of seeing an output that has no debug value.
Modifications:
Conform NIOAny to CustomStringConvertible, along with other types it currently uses that lacked string representation.
Result:
Users can perform simple debugging by printing their NIOAny object.