diff options
author | Micael Karlberg <[email protected]> | 2018-08-03 18:55:30 +0200 |
---|---|---|
committer | Micael Karlberg <[email protected]> | 2018-09-18 14:50:18 +0200 |
commit | ee2eadd1c61d4237ee4044260665c82edf559228 (patch) | |
tree | f9f8a55a9cd149ec6d61080137a07d99a6ed57ed /erts/preloaded/src | |
parent | 01601a4db44b3adccfbcc07129a4584649252736 (diff) | |
download | otp-ee2eadd1c61d4237ee4044260665c82edf559228.tar.gz otp-ee2eadd1c61d4237ee4044260665c82edf559228.tar.bz2 otp-ee2eadd1c61d4237ee4044260665c82edf559228.zip |
[socket-nif] Add support for (recvmsg) control message ipv6_pktinfo
Added support for (recvmsg) control message ipv6_pktinfo, for
level = ipv6 and type = pktinfo. This is enabled by setting the
socket option: recvpktinfo for level ipv6.
Not yet tested!
OTP-14831
Diffstat (limited to 'erts/preloaded/src')
-rw-r--r-- | erts/preloaded/src/socket.erl | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/erts/preloaded/src/socket.erl b/erts/preloaded/src/socket.erl index 3d65f52a2b..8af052e149 100644 --- a/erts/preloaded/src/socket.erl +++ b/erts/preloaded/src/socket.erl @@ -228,6 +228,12 @@ -type ipv6_pmtudisc() :: ip_pmtudisc(). +-type ipv6_pktinfo() :: #{ + addr := ip6_address(), + ifindex := integer() + }. + + -type sctp_assoc_id() :: int32(). -type sctp_sndrcvinfo() :: #{ stream := uint16(), @@ -560,6 +566,7 @@ integer(). -type cmsghdr_data() :: timeval() | % if level = socket and type = timstamp ip_pktinfo() | % if level = ip and type = pktinfo + ipv6_pktinfo() | % if level = ipv6 and type = pktinfo ip_tos() | % if level = ip and type = tos integer() | % if level = ip and type = ttl sockaddr_in4() | % if level = ip and type = origdstaddr |