Lines Matching +full:multi +full:- +full:socket
1 .. SPDX-License-Identifier: GPL-2.0
11 --------------
26 Passes the ``@asoc`` and ``@chunk->skb`` of the association INIT packet to the
30 @asoc - pointer to sctp association structure.
31 @skb - pointer to skbuff of association packet.
42 @sk - Pointer to sock structure.
43 @optname - Name of the option to validate.
44 @address - One or more ipv4 / ipv6 addresses.
45 @addrlen - The total length of address(s). This is calculated on each
49 ------------------------------------------------------------------
52 |----------------------------|-----------------------------------|
56 ------------------------------------------------------------------
58 ------------------------------------------------------------------
61 |----------------------------|-----------------------------------|
66 ------------------------------------------------------------------
70 SCTP_SOCKOPT_BINDX_ADD - Allows additional bind addresses to be
74 addresses on a socket.
76 SCTP_SOCKOPT_CONNECTX - Allows the allocation of multiple
78 (multi-homed).
80 on an SCTP socket using multiple
83 SCTP_SENDMSG_CONNECT - Initiate a connection that is generated by a
86 SCTP_PRIMARY_ADDR - Set local primary address.
88 SCTP_SET_PEER_PRIMARY_ADDR - Request peer sets address as
91 SCTP_PARAM_ADD_IP - These are used when Dynamic Address
92 SCTP_PARAM_SET_PRIMARY - Reconfiguration is enabled as explained below.
105 ---------- ------------------
106 SCTP_SOCKOPT_BINDX_ADD -> SCTP_PARAM_ADD_IP
107 SCTP_SET_PEER_PRIMARY_ADDR -> SCTP_PARAM_SET_PRIMARY
112 Called whenever a new socket is created by **accept**\(2)
113 (i.e. a TCP style socket) or when a socket is 'peeled off' e.g userspace
117 @asoc - pointer to current sctp association structure.
118 @sk - pointer to current sock structure.
119 @newsk - pointer to new sock structure.
125 saved into ``@asoc->peer_secid`` for client::
127 @asoc - pointer to sctp association structure.
128 @skb - pointer to skbuff of the COOKIE ACK packet.
132 -------------------------------------------------
149 INIT --------------------------------------------->
159 <----------------------------------------------- INIT ACK
163 COOKIE ECHO ------------------------------------------>
170 <------------------------------------------- COOKIE ACK
177 | socket security_sctp_sk_clone() is
178 | called to clone the new socket.
182 ------------------------------------------------------------------
184 ------------------------------------------------------------------
191 --------------
204 Passes the ``@asoc`` and ``@chunk->skb`` of the association INIT packet to the
208 @asoc - pointer to sctp association structure.
209 @skb - pointer to skbuff of association packet.
212 IF this is the first association on ``@asoc->base.sk``, then set the peer
214 assigned to ``@asoc->base.sk`` that may support multiple associations.
216 ELSE validate the ``@asoc->base.sk peer_sid`` against the ``@skb peer sid``
219 Set the sctp ``@asoc sid`` to socket's sid (from ``asoc->base.sk``) with
221 TCP style sockets and peeled off connections as they cause a new socket
225 options are set on the socket.
233 ------------------------------------------------------------------
236 |----------------------------|-----------------------------------|
240 ------------------------------------------------------------------
242 ------------------------------------------------------------------
245 |----------------------------|-----------------------------------|
250 ------------------------------------------------------------------
260 Called whenever a new socket is created by **accept**\(2) (i.e. a TCP style
261 socket) or when a socket is 'peeled off' e.g userspace calls
267 @asoc - pointer to current sctp association structure.
268 @sk - pointer to current sock structure.
269 @newsk - pointer to new sock structure.
277 @asoc - pointer to sctp association structure.
278 @skb - pointer to skbuff of the COOKIE ACK packet.
282 -----------------
286 class sctp_socket inherits socket { node_bind }
299 portcon sctp 1024-1036 system_u:object_r:sctp_ports_t:s0
303 ------------------
304 An SCTP socket will only have one peer label assigned to it. This will be
306 associations on this socket will have their packet peer label compared to
309 socket peer sid against the received packets peer sid to determine whether
317 (multi-homing) on a single socket, it is possible to configure policy
319 socket peer label is determined by the first associations transport
329 label (see **netlabel-config**\(8) helper script for details).
332 set of posts tagged "netlabel" at: https://www.paul-moore.com/blog/t.
334 6) CIPSO is only supported for IPv4 addressing: ``socket(AF_INET, ...)``
335 CALIPSO is only supported for IPv6 addressing: ``socket(AF_INET6, ...)``
342 7) IPSEC is not supported as RFC 3554 - sctp/ipsec support has not been