aboutsummaryrefslogtreecommitdiffstats
path: root/erts
AgeCommit message (Collapse)Author
2018-09-18[socket-nif] Add support for socket (level sctp) option initmsgMicael Karlberg
Added support for the SCTP option INITMSG. OTP-14831
2018-09-18[socket-nif] Add preliminary bind/3 for sctpMicael Karlberg
Added a preliminary bind/3 that shall map to sctp_bindx. We need similar functions for sctp_connectx, and maybe a bunch of other specific sctp function(s).
2018-09-18[socket-nif] Add support for socket (level sctp) option maxsegMicael Karlberg
Added support for the SCTP option MAXSEG. OTP-14831
2018-09-18[socket-nif] Add (partial) support for socket (level sctp) option rtoinfoMicael Karlberg
Added support for the SCTP option RTOINFO. We have the same questions for this option as for ASSOCINFO. Maybe the assoc field shall be made 'out' only (that is, it will be ignored for setopt). The assoc id used will be that which is stored in the descriptor (how do we get it to begin with?). Questions, questions... OTP-14831
2018-09-18[socket-nif] Add (partial) support for socket (level sctp) option associnfoMicael Karlberg
Added support for the SCTP option ASSOCINFO. This option is a bit tricky. As the underlying structure (sctp_assocparams) contains the assoc_id, it begs the question what happens if this option is fetched for: * The own assoc (which means that we might have the assoc id in the descriptor and can initiate that part of the struct accordningly). * Another assoc: From assoc A asks for info with assoc_id set to that of assoc B. * The "owning" endpoint. * Another endpoint (an endpoint to which the assoc does not belong). So, if the user calls socket:[getopt|setopt] for an association socket, shall we require that the assoc_id field is set to -1? Or not set at all and therefor filled in automatically by the nif-code? And, if the user calls socket:[getopt|setopt] for an endpoint socket, shall we require that the assoc_id field is set to a valid id? Or shall it not be allowed? Questions, questions... OTP-14831
2018-09-18[socket-nif] Add support for socket (level sctp) option disable_fragmentsMicael Karlberg
Added support for the SCTP option DISABLE_FRAGMENTS. OTP-14831
2018-09-18[socket-nif] Add support for socket (level sctp) option eventsMicael Karlberg
Added support for the SCTP option EVENTS. OTP-14831
2018-09-18[socket-nif] Add support for socket (level ipv6) option mtu_discoverMicael Karlberg
Added support for the VPv6 socket option MTU_DISCOVER. OTP-14831.
2018-09-18[socket-nif] Add support for socket (level ipv6) option mtuMicael Karlberg
Added support for the VPv6 socket option MTU. OTP-14831.
2018-09-18[socket-nif] Add support for socket (level ipv6) option v6onlyMicael Karlberg
Added support for the IPv6 option V6ONLY. OTP-14831
2018-09-18[socket-nif] Preliminary (tcp) socket option updatesMicael Karlberg
Added default for code un-implemented TCP socket options. OTP-14831
2018-09-18[socket-doc-nif] Add preliminary users guideMicael Karlberg
Added a very preliminary users guide. Currently where we place the socket option tables. OTP-14831
2018-09-18[socket-nif] Add support for multiple acceptor processesMicael Karlberg
Its now possible to have multiple (simultaneous) acceptor processes for the same listening socket. OTP-14831
2018-09-18[socket-nif] Add support for socket (level socket) option reuseportMicael Karlberg
Added support for socket level socket option REUSEPORT. OTP-14831
2018-09-18[socket-nif] Add support for socket (level socket) option bindtodeviceMicael Karlberg
Added support for socket level socket option BINDTODEVICE. OTP-14831
2018-09-18[net+socket-nif] Updated on_load stuffMicael Karlberg
The net nif-module had debug on by default. Fixed this and also made it an option, just as for the socket nif-module. OTP-14831
2018-09-18[socket-nif] Add support for socket (level ipv6) option(s) [add|drop]_membershipMicael Karlberg
Added support for the IPv6 options ADD_MEMBERSHIP, DROP_MEMBERSHIP OTP-14831
2018-09-18[socket-nif] Add support for socket (level ip) option minttlMicael Karlberg
Added support for the IP option MINTTL. OTP-14831
2018-09-18[socket-nif] Add support for socket (level ip) open recvifMicael Karlberg
Added support for the IP option RECVIF. OTP-14831
2018-09-18[socket-nif] Add support for socket (level ip) option(s) sourcesMicael Karlberg
Added support for the IP options: ADD_SOURCE_MEMBERSHIP, DROP_SOURCE_MEMBERSHIP, BLOCK_SOURCE and UNBLOCK_SOURCE. OTP-14831
2018-09-18[socket-nif] Add support for socket (level ip) option recvttlMicael Karlberg
Added support for the IP option RECVTTL. OTP-14831
2018-09-18[socket-nif] Add support for socket (level ip) option nodefragMicael Karlberg
Added support for the IP option NODEFRAG. OTP-14831
2018-09-18[socket-nif] Add support for socket (level ip) option multicast_allMicael Karlberg
Added support for the IP option MULTICAST_ALL. OTP-14831
2018-09-18[socket-nif] Add support for socket (level ip) option mtu_discoverMicael Karlberg
Added support for the IP option MTU_DISCOVER. OTP-14831
2018-09-18[socket-nif] Add support for socket (level ip) option mtuMicael Karlberg
Added support for the IP option MTU. OTP-14831
2018-09-18[socket-nif] Add value type check for the dontroute (socket) optionMicael Karlberg
2018-09-18[socket-doc-nif] Preliminary socket option tableMicael Karlberg
Added a commented out (preliminary) table in the getopt function for the socket level. The table is not included (atleast) in the man page, so there is no point in including it yet. But since its table(s) of all socket options (one for each level) we need comprehensive tables "somewhere", but where... OTP-14831
2018-09-18[socket-nif] Add support for socket (level ip) options [add|drop]_membershipMicael Karlberg
Added support for the socket options (level ip) add_membership and drop_membership. OTP-14831
2018-09-18[socket-nif] Add support for socket (level ip) option multicast_ifMicael Karlberg
Added support for the IP option MULTICAST_IF. OTP-14831
2018-09-18[socket-nif] Add support for socket (level ip) option multicast_ttlMicael Karlberg
Added support for the IP option MULTICAST_TTL. OTP-14831
2018-09-18[socket-nif] Add support for socket (level ip) option multicast_loopMicael Karlberg
Added support for the IP option MULTICAST_LOOP. OTP-14831
2018-09-18[socket-nif] Add support for socket (level socket) option oobinlineMicael Karlberg
Added support for socket level socket option oobinline (both get and set). OTP-14831
2018-09-18[socket-nif] Add support for socket (level socket) option peek_offMicael Karlberg
The socket option (level socket) peek_off is now supported. OTP-14831
2018-09-18[socket-nif] Add support for socket (level socket) option debugMicael Karlberg
The socket option (level socket) debug is now supported. To actually set this option, the user must have the proper "authority" (CAP_NET_ADMIN capability or an effective user ID of 0). OTP-14831
2018-09-18[socket-nif] Add support for socket (level socket) option acceptconnMicael Karlberg
The socket (level socket) option acceptconn is now supported (for getopt). OTP-14831
2018-09-18[socket-nif] Add support for socket (level socket) options domain and protocolMicael Karlberg
Make it possible to *get* the socket options domain and protocol (in addition to type). OTP-14831
2018-09-18[net-nif] Changed return type of getaddrinfoMicael Karlberg
The returned address info was supposed to be a map, by was instead (still) a record. OTP-14831
2018-09-18[socket-nif] Add doc for net module and some cleanupMicael Karlberg
Added doc for the net module. Also some socket-nif cleanup. OTP-14831
2018-09-18[socket-doc-nif] Updated documentationMicael Karlberg
Updated the documentation of recv, recvfrom, send and sendto. Also added doc for functions peername and sockname. OTP-14831
2018-09-18[socket-nif] Fixed (dgram) recvMicael Karlberg
Fixed handling of recvfrom (used by dgram sockets). Had forgot to do select(read) when we got block from the call to recvfrom. Argh! Also updated the (simple) test server and client to to be able to use udp (dgram+udp). OTP-14831
2018-09-18[socket-nif] Fixed (stream) recvMicael Karlberg
Fixed handling of closed in the recv function. We still need to properly handle when we get 0 bytes of data for other types ock sockets then stream (its valid for dgram for instance). OTP-14831
2018-09-18[socket-nif] Fixed acceptMicael Karlberg
The pid compare test was incorrect. OTP-14831
2018-09-18[socket+net-nif] Moved common functions into util filesMicael Karlberg
The common stuff, like decode and encode of common types (soch as socket address), has been moved into a util file (socket_util). The debug stuff has also been moved into its own file. Also introduced a common include file for common macros and types. OTP-14831
2018-09-18[socket+net-nif] BackupMicael Karlberg
2018-09-18[socket+net-nif] Introduced a couple of common filesMicael Karlberg
Started to move the common stuff, such as common utility functions, debug and encode / decode of basic types. OTP-14831
2018-09-18[net-nif] Fixed getnameinfoMicael Karlberg
And now fixed the getnameinfo function. OTP-14831
2018-09-18[net-nif] Fixed things...Micael Karlberg
Fixed functions getaddrinfo, if_index2name, if_name2index and if_names. OTP-14831
2018-09-18[net-nif] Implemented gethostnameMicael Karlberg
2018-09-18[net-nif] Removed the old net moduleMicael Karlberg
The old net module (in kernel) (deprecated) was removed and its function(s) has been moved into the new module. Also a minor updated to the info function. OTP-14831
2018-09-18[net-nif] Added debuggingMicael Karlberg
Added a command function, which is currently only used to enable and disable debug, which is also added.