Debian Codegraph @

templates/man7/socket.7.pot

raw
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Free Software Foundation, Inc.
3 # This file is distributed under the same license as the PACKAGE package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5 #
6 #, fuzzy
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: PACKAGE VERSION\n"
10 "POT-Creation-Date: 2026-06-05 06:44+0200\n"
11 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <[email protected]>\n"
14 "Language: \n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18
19 #. type: TH
20 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
21 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
22 #, no-wrap
23 msgid "socket"
24 msgstr ""
25
26 #. type: TH
27 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
28 #: opensuse-tumbleweed
29 #, no-wrap
30 msgid "2026-02-08"
31 msgstr ""
32
33 #. type: TH
34 #: archlinux debian-unstable
35 #, no-wrap
36 msgid "Linux man-pages 6.18"
37 msgstr ""
38
39 #. type: SH
40 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
41 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
42 #, no-wrap
43 msgid "NAME"
44 msgstr ""
45
46 #. type: Plain text
47 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
48 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
49 msgid "socket - Linux socket interface"
50 msgstr ""
51
52 #. type: SH
53 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
54 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
55 #, no-wrap
56 msgid "SYNOPSIS"
57 msgstr ""
58
59 #. type: Plain text
60 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
61 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
62 #, no-wrap
63 msgid "B<#include E<lt>sys/socket.hE<gt>>\n"
64 msgstr ""
65
66 #. type: Plain text
67 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
68 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
69 #, no-wrap
70 msgid "I<sockfd>B< = socket(int >I<socket_family>B<, int >I<socket_type>B<, int >I<protocol>B<);>\n"
71 msgstr ""
72
73 #. type: SH
74 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
75 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
76 #, no-wrap
77 msgid "DESCRIPTION"
78 msgstr ""
79
80 #. type: Plain text
81 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
82 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
83 msgid ""
84 "This manual page describes the Linux networking socket layer user "
85 "interface. The BSD compatible sockets are the uniform interface between the "
86 "user process and the network protocol stacks in the kernel. The protocol "
87 "modules are grouped into I<protocol families> such as B<AF_INET>, B<AF_IPX>, "
88 "and B<AF_PACKET>, and I<socket types> such as B<SOCK_STREAM> or "
89 "B<SOCK_DGRAM>. See B<socket>(2) for more information on families and types."
90 msgstr ""
91
92 #. type: SS
93 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
94 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
95 #, no-wrap
96 msgid "Socket-layer functions"
97 msgstr ""
98
99 #. type: Plain text
100 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
101 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
102 msgid ""
103 "These functions are used by the user process to send or receive packets and "
104 "to do other socket operations. For more information, see their respective "
105 "manual pages."
106 msgstr ""
107
108 #. type: Plain text
109 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
110 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
111 msgid ""
112 "B<socket>(2) creates a socket, B<connect>(2) connects a socket to a remote "
113 "socket address, the B<bind>(2) function binds a socket to a local socket "
114 "address, B<listen>(2) tells the socket that new connections shall be "
115 "accepted, and B<accept>(2) is used to get a new socket with a new incoming "
116 "connection. B<socketpair>(2) returns two connected anonymous sockets "
117 "(implemented only for a few local families like B<AF_UNIX>)"
118 msgstr ""
119
120 #. type: Plain text
121 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
122 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
123 msgid ""
124 "B<send>(2), B<sendto>(2), and B<sendmsg>(2) send data over a socket, and "
125 "B<recv>(2), B<recvfrom>(2), B<recvmsg>(2) receive data from a socket. "
126 "B<poll>(2) and B<select>(2) wait for arriving data or a readiness to send "
127 "data. In addition, the standard I/O operations like B<write>(2), "
128 "B<writev>(2), B<sendfile>(2), B<read>(2), and B<readv>(2) can be used to "
129 "read and write data."
130 msgstr ""
131
132 #. type: Plain text
133 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
134 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
135 msgid ""
136 "B<getsockname>(2) returns the local socket address and B<getpeername>(2) "
137 "returns the remote socket address. B<getsockopt>(2) and B<setsockopt>(2) "
138 "are used to set or get socket layer or protocol options. B<ioctl>(2) can "
139 "be used to set or read some other options."
140 msgstr ""
141
142 #. type: Plain text
143 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
144 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
145 msgid ""
146 "B<close>(2) is used to close a socket. B<shutdown>(2) closes parts of a "
147 "full-duplex socket connection."
148 msgstr ""
149
150 #. type: Plain text
151 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
152 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
153 msgid ""
154 "Seeking, or calling B<pread>(2) or B<pwrite>(2) with a nonzero position is "
155 "not supported on sockets."
156 msgstr ""
157
158 #. type: Plain text
159 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
160 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
161 msgid ""
162 "It is possible to do nonblocking I/O on sockets by setting the B<O_NONBLOCK> "
163 "flag on a socket file descriptor using B<fcntl>(2). Then all operations "
164 "that would block will (usually) return with B<EAGAIN> (operation should be "
165 "retried later); B<connect>(2) will return B<EINPROGRESS> error. The user "
166 "can then wait for various events via B<poll>(2) or B<select>(2)."
167 msgstr ""
168
169 #. type: tbl table
170 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
171 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
172 #, no-wrap
173 msgid "I/O events"
174 msgstr ""
175
176 #. type: tbl table
177 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
178 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
179 #, no-wrap
180 msgid "Event"
181 msgstr ""
182
183 #. type: tbl table
184 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
185 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
186 #, no-wrap
187 msgid "Poll flag"
188 msgstr ""
189
190 #. type: tbl table
191 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
192 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
193 #, no-wrap
194 msgid "Occurrence"
195 msgstr ""
196
197 #. type: tbl table
198 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
199 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
200 #, no-wrap
201 msgid "Read"
202 msgstr ""
203
204 #. type: tbl table
205 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
206 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
207 #, no-wrap
208 msgid "POLLIN"
209 msgstr ""
210
211 #. type: tbl table
212 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
213 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
214 #, no-wrap
215 msgid "New data arrived."
216 msgstr ""
217
218 #. type: tbl table
219 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
220 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
221 #, no-wrap
222 msgid ""
223 "A connection setup has been completed\n"
224 "(for connection-oriented sockets)"
225 msgstr ""
226
227 #. type: tbl table
228 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
229 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
230 #, no-wrap
231 msgid "POLLHUP"
232 msgstr ""
233
234 #. type: tbl table
235 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
236 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
237 #, no-wrap
238 msgid "A disconnection request has been initiated by the other end."
239 msgstr ""
240
241 #. type: tbl table
242 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
243 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
244 #, no-wrap
245 msgid ""
246 "A connection is broken (only for connection-oriented protocols).\n"
247 "When the socket is written\n"
248 "B<SIGPIPE>\n"
249 "is also sent."
250 msgstr ""
251
252 #. type: tbl table
253 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
254 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
255 #, no-wrap
256 msgid "Write"
257 msgstr ""
258
259 #. type: tbl table
260 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
261 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
262 #, no-wrap
263 msgid "POLLOUT"
264 msgstr ""
265
266 #. type: tbl table
267 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
268 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
269 #, no-wrap
270 msgid "Socket has enough send buffer space for writing new data."
271 msgstr ""
272
273 #. type: tbl table
274 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
275 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
276 #, no-wrap
277 msgid "Read/Write"
278 msgstr ""
279
280 #. type: tbl table
281 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
282 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
283 #, no-wrap
284 msgid "POLLIN |\n"
285 msgstr ""
286
287 #. type: tbl table
288 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
289 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
290 #, no-wrap
291 msgid ".br\n"
292 msgstr ""
293
294 #. type: tbl table
295 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
296 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
297 #, no-wrap
298 msgid ""
299 "An outgoing\n"
300 "B<connect>(2)\n"
301 "finished."
302 msgstr ""
303
304 #. type: tbl table
305 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
306 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
307 #, no-wrap
308 msgid "POLLERR"
309 msgstr ""
310
311 #. type: tbl table
312 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
313 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
314 #, no-wrap
315 msgid "An asynchronous error occurred."
316 msgstr ""
317
318 #. type: tbl table
319 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
320 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
321 #, no-wrap
322 msgid "The other end has shut down one direction."
323 msgstr ""
324
325 #. type: tbl table
326 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
327 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
328 #, no-wrap
329 msgid "Exception"
330 msgstr ""
331
332 #. type: tbl table
333 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
334 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
335 #, no-wrap
336 msgid "POLLPRI"
337 msgstr ""
338
339 #. type: tbl table
340 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
341 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
342 #, no-wrap
343 msgid ""
344 "Urgent data arrived.\n"
345 "B<SIGURG>\n"
346 "is sent then."
347 msgstr ""
348
349 #. type: Plain text
350 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
351 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
352 msgid ""
353 "An alternative to B<poll>(2) and B<select>(2) is to let the kernel inform "
354 "the application about events via a B<SIGIO> signal. For that the B<O_ASYNC> "
355 "flag must be set on a socket file descriptor via B<fcntl>(2) and a valid "
356 "signal handler for B<SIGIO> must be installed via B<sigaction>(2). See the "
357 "I<Signals> discussion below."
358 msgstr ""
359
360 #. type: SS
361 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
362 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
363 #, no-wrap
364 msgid "Socket address structures"
365 msgstr ""
366
367 #. type: Plain text
368 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
369 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
370 msgid ""
371 "Each socket domain has its own format for socket addresses, with a domain-"
372 "specific address structure. Each of these structures begins with an integer "
373 "\"family\" field (typed as I<sa_family_t>) that indicates the type of the "
374 "address structure. This allows the various system calls (e.g., "
375 "B<connect>(2), B<bind>(2), B<accept>(2), B<getsockname>(2), "
376 "B<getpeername>(2)), which are generic to all socket domains, to determine "
377 "the domain of a particular socket address."
378 msgstr ""
379
380 #. type: Plain text
381 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
382 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
383 msgid ""
384 "To allow any type of socket address to be passed to interfaces in the "
385 "sockets API, the type I<struct sockaddr> is defined. The purpose of this "
386 "type is purely to allow casting of domain-specific socket address types to a "
387 "\"generic\" type, so as to avoid compiler warnings about type mismatches in "
388 "calls to the sockets API."
389 msgstr ""
390
391 #. type: Plain text
392 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
393 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
394 msgid ""
395 "In addition, the sockets API provides the data type I<struct "
396 "sockaddr_storage>. This type is suitable to accommodate all supported "
397 "domain-specific socket address structures; it is large enough and is aligned "
398 "properly. (In particular, it is large enough to hold IPv6 socket "
399 "addresses.) The structure includes the following field, which can be used "
400 "to identify the type of socket address actually stored in the structure:"
401 msgstr ""
402
403 #. type: Plain text
404 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
405 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
406 #, no-wrap
407 msgid " sa_family_t ss_family;\n"
408 msgstr ""
409
410 #. type: Plain text
411 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
412 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
413 msgid ""
414 "The I<sockaddr_storage> structure is useful in programs that must handle "
415 "socket addresses in a generic way (e.g., programs that must deal with both "
416 "IPv4 and IPv6 socket addresses)."
417 msgstr ""
418
419 #. type: SS
420 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
421 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
422 #, no-wrap
423 msgid "Socket options"
424 msgstr ""
425
426 #
427 #. FIXME .
428 #. In the list below, the text used to describe argument types
429 #. for each socket option should be more consistent
430 #. SO_ACCEPTCONN is in POSIX.1-2001, and its origin is explained in
431 #. W R Stevens, UNPv1
432 #. type: Plain text
433 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
434 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
435 msgid ""
436 "The socket options listed below can be set by using B<setsockopt>(2) and "
437 "read with B<getsockopt>(2) with the socket level set to B<SOL_SOCKET> for "
438 "all sockets. Unless otherwise noted, I<optval> is a pointer to an I<int>."
439 msgstr ""
440
441 #. type: TP
442 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
443 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
444 #, no-wrap
445 msgid "B<SO_ACCEPTCONN>"
446 msgstr ""
447
448 #. type: Plain text
449 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
450 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
451 msgid ""
452 "Returns a value indicating whether or not this socket has been marked to "
453 "accept connections with B<listen>(2). The value 0 indicates that this is "
454 "not a listening socket, the value 1 indicates that this is a listening "
455 "socket. This socket option is read-only."
456 msgstr ""
457
458 #. type: TP
459 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
460 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
461 #, no-wrap
462 msgid "B<SO_ATTACH_FILTER> (since Linux 2.2)"
463 msgstr ""
464
465 #. type: TQ
466 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
467 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
468 #, no-wrap
469 msgid "B<SO_ATTACH_BPF> (since Linux 3.19)"
470 msgstr ""
471
472 #. type: Plain text
473 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
474 #: opensuse-leap-16-1 opensuse-tumbleweed
475 msgid ""
476 "Attach a classic BPF (B<SO_ATTACH_FILTER>) or an extended BPF "
477 "(B<SO_ATTACH_BPF>) program to the socket for use as a filter of incoming "
478 "packets. A packet will be dropped if the filter program returns zero. If "
479 "the filter program returns a nonzero value which is less than the packet's "
480 "data size, the packet will be truncated to the size returned. If the value "
481 "returned by the filter is greater than or equal to the packet's data size, "
482 "the packet is allowed to proceed unmodified."
483 msgstr ""
484
485 #. type: Plain text
486 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
487 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
488 msgid ""
489 "The argument for B<SO_ATTACH_FILTER> is a I<sock_fprog> structure, defined "
490 "in I<E<lt>linux/filter.hE<gt>>:"
491 msgstr ""
492
493 #. type: Plain text
494 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
495 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
496 #, no-wrap
497 msgid ""
498 "struct sock_fprog {\n"
499 " unsigned short len;\n"
500 " struct sock_filter *filter;\n"
501 "};\n"
502 msgstr ""
503
504 #. type: Plain text
505 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
506 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
507 msgid ""
508 "The argument for B<SO_ATTACH_BPF> is a file descriptor returned by the "
509 "B<bpf>(2) system call and must refer to a program of type "
510 "B<BPF_PROG_TYPE_SOCKET_FILTER>."
511 msgstr ""
512
513 #. type: Plain text
514 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
515 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
516 msgid ""
517 "These options may be set multiple times for a given socket, each time "
518 "replacing the previous filter program. The classic and extended versions "
519 "may be called on the same socket, but the previous filter will always be "
520 "replaced such that a socket never has more than one filter defined."
521 msgstr ""
522
523 #. type: Plain text
524 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
525 #: opensuse-tumbleweed
526 msgid ""
527 "Both classic and extended BPF are explained in the kernel source file "
528 "I<Documentation/networking/filter.rst>"
529 msgstr ""
530
531 #. type: TP
532 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
533 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
534 #, no-wrap
535 msgid "B<SO_ATTACH_REUSEPORT_CBPF>"
536 msgstr ""
537
538 #. type: TQ
539 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
540 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
541 #, no-wrap
542 msgid "B<SO_ATTACH_REUSEPORT_EBPF>"
543 msgstr ""
544
545 #. type: Plain text
546 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
547 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
548 msgid ""
549 "For use with the B<SO_REUSEPORT> option, these options allow the user to set "
550 "a classic BPF (B<SO_ATTACH_REUSEPORT_CBPF>) or an extended BPF "
551 "(B<SO_ATTACH_REUSEPORT_EBPF>) program which defines how packets are "
552 "assigned to the sockets in the reuseport group (that is, all sockets which "
553 "have B<SO_REUSEPORT> set and are using the same local address to receive "
554 "packets)."
555 msgstr ""
556
557 #. type: Plain text
558 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
559 #: opensuse-tumbleweed
560 msgid ""
561 "The classic BPF program must return an index between 0 and N-1 representing "
562 "the socket which should receive the packet (where N is the number of sockets "
563 "in the group). If the BPF program returns an invalid index, socket "
564 "selection will fall back to the plain B<SO_REUSEPORT> mechanism."
565 msgstr ""
566
567 #. type: Plain text
568 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
569 #: opensuse-tumbleweed
570 msgid ""
571 "Sockets are numbered in the order in which they are added to the group (that "
572 "is, the order of B<bind>(2) calls for UDP sockets or the order of "
573 "B<listen>(2) calls for TCP sockets)."
574 msgstr ""
575
576 #. type: Plain text
577 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
578 #: opensuse-tumbleweed
579 msgid "The extended BPF program can be of two types:"
580 msgstr ""
581
582 #. type: TP
583 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
584 #: opensuse-tumbleweed
585 #, no-wrap
586 msgid "B<BPF_PROG_TYPE_SOCKET_FILTER>"
587 msgstr ""
588
589 #. type: Plain text
590 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
591 #: opensuse-tumbleweed
592 msgid ""
593 "In this case, the extended BPF program must return an index between 0 and "
594 "N-1, like a classic BPF program."
595 msgstr ""
596
597 #. type: TP
598 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
599 #: opensuse-tumbleweed
600 #, no-wrap
601 msgid "B<BPF_PROG_TYPE_SK_REUSEPORT> (since Linux 4.19)"
602 msgstr ""
603
604 #. type: Plain text
605 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
606 #: opensuse-tumbleweed
607 msgid ""
608 "In this case, it must return an action (B<SK_PASS> or B<SK_DROP>) and the "
609 "B<bpf_sk_select_reuseport> helper can be used to select the socket which "
610 "should receive the packet."
611 msgstr ""
612
613 #. type: Plain text
614 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
615 #: opensuse-tumbleweed
616 msgid ""
617 "New sockets added to a reuseport group will inherit the BPF program. When a "
618 "socket is removed from a reuseport group (via B<close>(2)), the last socket "
619 "in the group will be moved into the closed socket's position."
620 msgstr ""
621
622 #. type: Plain text
623 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
624 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
625 msgid ""
626 "These options may be set repeatedly at any time on any socket in the group "
627 "to replace the current BPF program used by all sockets in the group."
628 msgstr ""
629
630 #. type: Plain text
631 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
632 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
633 msgid ""
634 "B<SO_ATTACH_REUSEPORT_CBPF> takes the same argument type as "
635 "B<SO_ATTACH_FILTER> and B<SO_ATTACH_REUSEPORT_EBPF> takes the same argument "
636 "type as B<SO_ATTACH_BPF>."
637 msgstr ""
638
639 #. type: Plain text
640 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
641 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
642 msgid ""
643 "UDP support for this feature is available since Linux 4.5; TCP support is "
644 "available since Linux 4.6."
645 msgstr ""
646
647 #. type: TP
648 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
649 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
650 #, no-wrap
651 msgid "B<SO_BINDTODEVICE>"
652 msgstr ""
653
654 #. type: Plain text
655 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
656 #: opensuse-leap-16-1 opensuse-tumbleweed
657 msgid ""
658 "Bind this socket to a particular device like \\[lq]eth0\\[rq], as specified "
659 "in the passed interface name. If the name is an empty string or the option "
660 "size is zero, the socket device binding is removed. The passed option is a "
661 "variable-size null-terminated interface name string with the maximum size of "
662 "B<IFNAMSIZ>. If a socket is bound to an interface, only packets received "
663 "from that particular interface are processed by the socket. Note that this "
664 "works only for some socket types, particularly B<AF_INET> sockets. It is "
665 "not supported for packet sockets (use normal B<bind>(2) there)."
666 msgstr ""
667
668 #. type: Plain text
669 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
670 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
671 msgid ""
672 "Before Linux 3.8, this socket option could be set, but could not retrieved "
673 "with B<getsockopt>(2). Since Linux 3.8, it is readable. The I<optlen> "
674 "argument should contain the buffer size available to receive the device name "
675 "and is recommended to be B<IFNAMSIZ> bytes. The real device name length is "
676 "reported back in the I<optlen> argument."
677 msgstr ""
678
679 #. type: TP
680 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
681 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
682 #, no-wrap
683 msgid "B<SO_BROADCAST>"
684 msgstr ""
685
686 #. type: Plain text
687 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
688 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
689 msgid ""
690 "Set or get the broadcast flag. When enabled, datagram sockets are allowed "
691 "to send packets to a broadcast address. This option has no effect on stream-"
692 "oriented sockets."
693 msgstr ""
694
695 #. type: TP
696 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
697 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
698 #, no-wrap
699 msgid "B<SO_BSDCOMPAT>"
700 msgstr ""
701
702 #. type: Plain text
703 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
704 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
705 msgid ""
706 "Enable BSD bug-to-bug compatibility. This is used by the UDP protocol "
707 "module in Linux 2.0 and 2.2. If enabled, ICMP errors received for a UDP "
708 "socket will not be passed to the user program. In later kernel versions, "
709 "support for this option has been phased out: Linux 2.4 silently ignores it, "
710 "and Linux 2.6 generates a kernel warning (printk()) if a program uses this "
711 "option. Linux 2.0 also enabled BSD bug-to-bug compatibility options (random "
712 "header changing, skipping of the broadcast flag) for raw sockets with this "
713 "option, but that was removed in Linux 2.2."
714 msgstr ""
715
716 #. type: TP
717 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
718 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
719 #, no-wrap
720 msgid "B<SO_DEBUG>"
721 msgstr ""
722
723 #. type: Plain text
724 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
725 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
726 msgid ""
727 "Enable socket debugging. Allowed only for processes with the "
728 "B<CAP_NET_ADMIN> capability or an effective user ID of 0."
729 msgstr ""
730
731 #. type: TP
732 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
733 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
734 #, no-wrap
735 msgid "B<SO_DETACH_FILTER> (since Linux 2.2)"
736 msgstr ""
737
738 #. type: TQ
739 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
740 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
741 #, no-wrap
742 msgid "B<SO_DETACH_BPF> (since Linux 3.19)"
743 msgstr ""
744
745 #. type: Plain text
746 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
747 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
748 msgid ""
749 "These two options, which are synonyms, may be used to remove the classic or "
750 "extended BPF program attached to a socket with either B<SO_ATTACH_FILTER> or "
751 "B<SO_ATTACH_BPF>. The option value is ignored."
752 msgstr ""
753
754 #. type: TP
755 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
756 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
757 #, no-wrap
758 msgid "B<SO_DOMAIN> (since Linux 2.6.32)"
759 msgstr ""
760
761 #. type: Plain text
762 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
763 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
764 msgid ""
765 "Retrieves the socket domain as an integer, returning a value such as "
766 "B<AF_INET6>. See B<socket>(2) for details. This socket option is read-"
767 "only."
768 msgstr ""
769
770 #. type: TP
771 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
772 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
773 #, no-wrap
774 msgid "B<SO_ERROR>"
775 msgstr ""
776
777 #. type: Plain text
778 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
779 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
780 msgid ""
781 "Get and clear the pending socket error. This socket option is read-only. "
782 "Expects an integer."
783 msgstr ""
784
785 #. type: TP
786 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
787 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
788 #, no-wrap
789 msgid "B<SO_DONTROUTE>"
790 msgstr ""
791
792 #. type: Plain text
793 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
794 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
795 msgid ""
796 "Don't send via a gateway, send only to directly connected hosts. The same "
797 "effect can be achieved by setting the B<MSG_DONTROUTE> flag on a socket "
798 "B<send>(2) operation. Expects an integer boolean flag."
799 msgstr ""
800
801 #. type: TP
802 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
803 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
804 #, no-wrap
805 msgid "B<SO_INCOMING_CPU> (gettable since Linux 3.19, settable since Linux 4.4)"
806 msgstr ""
807
808 #. getsockopt 2c8c56e15df3d4c2af3d656e44feb18789f75837
809 #. setsockopt 70da268b569d32a9fddeea85dc18043de9d89f89
810 #. type: Plain text
811 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
812 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
813 msgid "Sets or gets the CPU affinity of a socket. Expects an integer flag."
814 msgstr ""
815
816 #. type: Plain text
817 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
818 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
819 #, no-wrap
820 msgid ""
821 "int cpu = 1;\n"
822 "setsockopt(fd, SOL_SOCKET, SO_INCOMING_CPU, &cpu,\n"
823 " sizeof(cpu));\n"
824 msgstr ""
825
826 #
827 #
828 #
829 #. #-#-#-#-# archlinux: socket.7.pot (PACKAGE VERSION) #-#-#-#-#
830 #. From an email conversation with Eric Dumazet:
831 #. >> Note that setting the option is not supported if SO_REUSEPORT is used.
832 #. >
833 #. > Please define "not supported". Does this yield an API diagnostic?
834 #. > If so, what is it?
835 #. >
836 #. >> Socket will be selected from an array, either by a hash or BPF program
837 #. >> that has no access to this information.
838 #. >
839 #. > Sorry -- I'm lost here. How does this comment relate to the proposed
840 #. > man page text above?
841 #. Simply that :
842 #. If an application uses both SO_INCOMING_CPU and SO_REUSEPORT, then
843 #. SO_REUSEPORT logic, selecting the socket to receive the packet, ignores
844 #. SO_INCOMING_CPU setting.
845 #. type: Plain text
846 #. #-#-#-#-# debian-trixie: socket.7.pot (PACKAGE VERSION) #-#-#-#-#
847 #. From an email conversation with Eric Dumazet:
848 #. >> Note that setting the option is not supported if SO_REUSEPORT is used.
849 #. >
850 #. > Please define "not supported". Does this yield an API diagnostic?
851 #. > If so, what is it?
852 #. >
853 #. >> Socket will be selected from an array, either by a hash or BPF program
854 #. >> that has no access to this information.
855 #. >
856 #. > Sorry -- I'm lost here. How does this comment relate to the proposed
857 #. > man page text above?
858 #. Simply that :
859 #. If an application uses both SO_INCOMING_CPU and SO_REUSEPORT, then
860 #. SO_REUSEPORT logic, selecting the socket to receive the packet, ignores
861 #. SO_INCOMING_CPU setting.
862 #. type: Plain text
863 #. #-#-#-#-# debian-unstable: socket.7.pot (PACKAGE VERSION) #-#-#-#-#
864 #. From an email conversation with Eric Dumazet:
865 #. >> Note that setting the option is not supported if SO_REUSEPORT is used.
866 #. >
867 #. > Please define "not supported". Does this yield an API diagnostic?
868 #. > If so, what is it?
869 #. >
870 #. >> Socket will be selected from an array, either by a hash or BPF program
871 #. >> that has no access to this information.
872 #. >
873 #. > Sorry -- I'm lost here. How does this comment relate to the proposed
874 #. > man page text above?
875 #. Simply that :
876 #. If an application uses both SO_INCOMING_CPU and SO_REUSEPORT, then
877 #. SO_REUSEPORT logic, selecting the socket to receive the packet, ignores
878 #. SO_INCOMING_CPU setting.
879 #. type: Plain text
880 #. #-#-#-#-# fedora-44: socket.7.pot (PACKAGE VERSION) #-#-#-#-#
881 #. From an email conversation with Eric Dumazet:
882 #. >> Note that setting the option is not supported if SO_REUSEPORT is used.
883 #. >
884 #. > Please define "not supported". Does this yield an API diagnostic?
885 #. > If so, what is it?
886 #. >
887 #. >> Socket will be selected from an array, either by a hash or BPF program
888 #. >> that has no access to this information.
889 #. >
890 #. > Sorry -- I'm lost here. How does this comment relate to the proposed
891 #. > man page text above?
892 #. Simply that :
893 #. If an application uses both SO_INCOMING_CPU and SO_REUSEPORT, then
894 #. SO_REUSEPORT logic, selecting the socket to receive the packet, ignores
895 #. SO_INCOMING_CPU setting.
896 #. type: Plain text
897 #. #-#-#-#-# fedora-rawhide: socket.7.pot (PACKAGE VERSION) #-#-#-#-#
898 #. From an email conversation with Eric Dumazet:
899 #. >> Note that setting the option is not supported if SO_REUSEPORT is used.
900 #. >
901 #. > Please define "not supported". Does this yield an API diagnostic?
902 #. > If so, what is it?
903 #. >
904 #. >> Socket will be selected from an array, either by a hash or BPF program
905 #. >> that has no access to this information.
906 #. >
907 #. > Sorry -- I'm lost here. How does this comment relate to the proposed
908 #. > man page text above?
909 #. Simply that :
910 #. If an application uses both SO_INCOMING_CPU and SO_REUSEPORT, then
911 #. SO_REUSEPORT logic, selecting the socket to receive the packet, ignores
912 #. SO_INCOMING_CPU setting.
913 #. type: Plain text
914 #. #-#-#-#-# mageia-cauldron: socket.7.pot (PACKAGE VERSION) #-#-#-#-#
915 #. From an email conversation with Eric Dumazet:
916 #. >> Note that setting the option is not supported if SO_REUSEPORT is used.
917 #. >
918 #. > Please define "not supported". Does this yield an API diagnostic?
919 #. > If so, what is it?
920 #. >
921 #. >> Socket will be selected from an array, either by a hash or BPF program
922 #. >> that has no access to this information.
923 #. >
924 #. > Sorry -- I'm lost here. How does this comment relate to the proposed
925 #. > man page text above?
926 #. Simply that :
927 #. If an application uses both SO_INCOMING_CPU and SO_REUSEPORT, then
928 #. SO_REUSEPORT logic, selecting the socket to receive the packet, ignores
929 #. SO_INCOMING_CPU setting.
930 #. type: Plain text
931 #. #-#-#-#-# opensuse-leap-16-1: socket.7.pot (PACKAGE VERSION) #-#-#-#-#
932 #. From an email conversation with Eric Dumazet:
933 #. >> Note that setting the option is not supported if SO_REUSEPORT is used.
934 #. >
935 #. > Please define "not supported". Does this yield an API diagnostic?
936 #. > If so, what is it?
937 #. >
938 #. >> Socket will be selected from an array, either by a hash or BPF program
939 #. >> that has no access to this information.
940 #. >
941 #. > Sorry -- I'm lost here. How does this comment relate to the proposed
942 #. > man page text above?
943 #. Simply that :
944 #. If an application uses both SO_INCOMING_CPU and SO_REUSEPORT, then
945 #. SO_REUSEPORT logic, selecting the socket to receive the packet, ignores
946 #. SO_INCOMING_CPU setting.
947 #. type: Plain text
948 #. #-#-#-#-# opensuse-tumbleweed: socket.7.pot (PACKAGE VERSION) #-#-#-#-#
949 #. From an email conversation with Eric Dumazet:
950 #. >> Note that setting the option is not supported if SO_REUSEPORT is used.
951 #. >
952 #. > Please define "not supported". Does this yield an API diagnostic?
953 #. > If so, what is it?
954 #. >
955 #. >> Socket will be selected from an array, either by a hash or BPF program
956 #. >> that has no access to this information.
957 #. >
958 #. > Sorry -- I'm lost here. How does this comment relate to the proposed
959 #. > man page text above?
960 #. Simply that :
961 #. If an application uses both SO_INCOMING_CPU and SO_REUSEPORT, then
962 #. SO_REUSEPORT logic, selecting the socket to receive the packet, ignores
963 #. SO_INCOMING_CPU setting.
964 #. type: Plain text
965 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
966 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
967 msgid ""
968 "Because all of the packets for a single stream (i.e., all packets for the "
969 "same 4-tuple) arrive on the single RX queue that is associated with a "
970 "particular CPU, the typical use case is to employ one listening process per "
971 "RX queue, with the incoming flow being handled by a listener on the same CPU "
972 "that is handling the RX queue. This provides optimal NUMA behavior and "
973 "keeps CPU caches hot."
974 msgstr ""
975
976 #. type: TP
977 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
978 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
979 #, no-wrap
980 msgid "B<SO_INCOMING_NAPI_ID> (gettable since Linux 4.12)"
981 msgstr ""
982
983 #. getsockopt 6d4339028b350efbf87c61e6d9e113e5373545c9
984 #. type: Plain text
985 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
986 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
987 msgid ""
988 "Returns a system-level unique ID called NAPI ID that is associated with a RX "
989 "queue on which the last packet associated with that socket is received."
990 msgstr ""
991
992 #. type: Plain text
993 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
994 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
995 msgid ""
996 "This can be used by an application to split the incoming flows among worker "
997 "threads based on the RX queue on which the packets associated with the flows "
998 "are received. It allows each worker thread to be associated with a NIC HW "
999 "receive queue and service all the connection requests received on that RX "
1000 "queue. This mapping between an app thread and a HW NIC queue streamlines "
1001 "the flow of data from the NIC to the application."
1002 msgstr ""
1003
1004 #. type: TP
1005 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1006 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1007 #, no-wrap
1008 msgid "B<SO_KEEPALIVE>"
1009 msgstr ""
1010
1011 #. type: Plain text
1012 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1013 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1014 msgid ""
1015 "Enable sending of keep-alive messages on connection-oriented sockets. "
1016 "Expects an integer boolean flag."
1017 msgstr ""
1018
1019 #. type: TP
1020 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1021 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1022 #, no-wrap
1023 msgid "B<SO_LINGER>"
1024 msgstr ""
1025
1026 #. type: Plain text
1027 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1028 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1029 msgid ""
1030 "Sets or gets the B<SO_LINGER> option. The argument is a I<linger> structure."
1031 msgstr ""
1032
1033 #. type: Plain text
1034 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1035 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1036 #, no-wrap
1037 msgid ""
1038 "struct linger {\n"
1039 " int l_onoff; /* linger active */\n"
1040 " int l_linger; /* how many seconds to linger for */\n"
1041 "};\n"
1042 msgstr ""
1043
1044 #. type: Plain text
1045 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1046 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1047 msgid ""
1048 "When enabled, a B<close>(2) or B<shutdown>(2) will not return until all "
1049 "queued messages for the socket have been successfully sent or the linger "
1050 "timeout has been reached. Otherwise, the call returns immediately and the "
1051 "closing is done in the background. When the socket is closed as part of "
1052 "B<exit>(2), it always lingers in the background."
1053 msgstr ""
1054
1055 #. type: TP
1056 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1057 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1058 #, no-wrap
1059 msgid "B<SO_LOCK_FILTER>"
1060 msgstr ""
1061
1062 #. commit d59577b6ffd313d0ab3be39cb1ab47e29bdc9182
1063 #. type: Plain text
1064 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1065 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1066 msgid ""
1067 "When set, this option will prevent changing the filters associated with the "
1068 "socket. These filters include any set using the socket options "
1069 "B<SO_ATTACH_FILTER>, B<SO_ATTACH_BPF>, B<SO_ATTACH_REUSEPORT_CBPF>, and "
1070 "B<SO_ATTACH_REUSEPORT_EBPF>."
1071 msgstr ""
1072
1073 #. type: Plain text
1074 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1075 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1076 msgid ""
1077 "The typical use case is for a privileged process to set up a raw socket (an "
1078 "operation that requires the B<CAP_NET_RAW> capability), apply a restrictive "
1079 "filter, set the B<SO_LOCK_FILTER> option, and then either drop its "
1080 "privileges or pass the socket file descriptor to an unprivileged process via "
1081 "a UNIX domain socket."
1082 msgstr ""
1083
1084 #. type: Plain text
1085 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1086 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1087 msgid ""
1088 "Once the B<SO_LOCK_FILTER> option has been enabled, attempts to change or "
1089 "remove the filter attached to a socket, or to disable the B<SO_LOCK_FILTER> "
1090 "option will fail with the error B<EPERM>."
1091 msgstr ""
1092
1093 #. type: TP
1094 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1095 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1096 #, no-wrap
1097 msgid "B<SO_MARK> (since Linux 2.6.25)"
1098 msgstr ""
1099
1100 #. commit 4a19ec5800fc3bb64e2d87c4d9fdd9e636086fe0
1101 #. and 914a9ab386a288d0f22252fc268ecbc048cdcbd5
1102 #. type: Plain text
1103 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1104 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1105 msgid ""
1106 "Set the mark for each packet sent through this socket (similar to the "
1107 "netfilter MARK target but socket-based). Changing the mark can be used for "
1108 "mark-based routing without netfilter or for packet filtering. Setting this "
1109 "option requires the B<CAP_NET_ADMIN> or B<CAP_NET_RAW> (since Linux 5.17) "
1110 "capability."
1111 msgstr ""
1112
1113 #. type: TP
1114 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1115 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1116 #, no-wrap
1117 msgid "B<SO_OOBINLINE>"
1118 msgstr ""
1119
1120 #. don't document it because it can do too much harm.
1121 #. .B SO_NO_CHECK
1122 #. The kernel has support for the SO_NO_CHECK socket
1123 #. option (boolean: 0 == default, calculate checksum on xmit,
1124 #. 1 == do not calculate checksum on xmit).
1125 #. Additional note from Andi Kleen on SO_NO_CHECK (2010-08-30)
1126 #. On Linux UDP checksums are essentially free and there's no reason
1127 #. to turn them off and it would disable another safety line.
1128 #. That is why I didn't document the option.
1129 #. type: Plain text
1130 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1131 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1132 msgid ""
1133 "If this option is enabled, out-of-band data is directly placed into the "
1134 "receive data stream. Otherwise, out-of-band data is passed only when the "
1135 "B<MSG_OOB> flag is set during receiving."
1136 msgstr ""
1137
1138 #. type: TP
1139 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1140 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1141 #, no-wrap
1142 msgid "B<SO_PASSCRED>"
1143 msgstr ""
1144
1145 #. type: Plain text
1146 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1147 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1148 msgid ""
1149 "Enable or disable the receiving of the B<SCM_CREDENTIALS> control message. "
1150 "For more information, see B<unix>(7)."
1151 msgstr ""
1152
1153 #. type: TP
1154 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1155 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1156 #, no-wrap
1157 msgid "B<SO_PASSSEC>"
1158 msgstr ""
1159
1160 #. type: Plain text
1161 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1162 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1163 msgid ""
1164 "Enable or disable the receiving of the B<SCM_SECURITY> control message. For "
1165 "more information, see B<unix>(7)."
1166 msgstr ""
1167
1168 #. type: TP
1169 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1170 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1171 #, no-wrap
1172 msgid "B<SO_PEEK_OFF> (since Linux 3.4)"
1173 msgstr ""
1174
1175 #. commit ef64a54f6e558155b4f149bb10666b9e914b6c54
1176 #. type: Plain text
1177 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1178 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1179 msgid ""
1180 "This option, which is currently supported only for B<unix>(7) sockets, sets "
1181 "the value of the \"peek offset\" for the B<recv>(2) system call when used "
1182 "with B<MSG_PEEK> flag."
1183 msgstr ""
1184
1185 #. type: Plain text
1186 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1187 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1188 msgid ""
1189 "When this option is set to a negative value (it is set to -1 for all new "
1190 "sockets), traditional behavior is provided: B<recv>(2) with the B<MSG_PEEK> "
1191 "flag will peek data from the front of the queue."
1192 msgstr ""
1193
1194 #. type: Plain text
1195 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1196 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1197 msgid ""
1198 "When the option is set to a value greater than or equal to zero, then the "
1199 "next peek at data queued in the socket will occur at the byte offset "
1200 "specified by the option value. At the same time, the \"peek offset\" will "
1201 "be incremented by the number of bytes that were peeked from the queue, so "
1202 "that a subsequent peek will return the next data in the queue."
1203 msgstr ""
1204
1205 #. type: Plain text
1206 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1207 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1208 msgid ""
1209 "If data is removed from the front of the queue via a call to B<recv>(2) (or "
1210 "similar) without the B<MSG_PEEK> flag, the \"peek offset\" will be decreased "
1211 "by the number of bytes removed. In other words, receiving data without the "
1212 "B<MSG_PEEK> flag will cause the \"peek offset\" to be adjusted to maintain "
1213 "the correct relative position in the queued data, so that a subsequent peek "
1214 "will retrieve the data that would have been retrieved had the data not been "
1215 "removed."
1216 msgstr ""
1217
1218 #. type: Plain text
1219 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1220 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1221 msgid ""
1222 "For datagram sockets, if the \"peek offset\" points to the middle of a "
1223 "packet, the data returned will be marked with the B<MSG_TRUNC> flag."
1224 msgstr ""
1225
1226 #. type: Plain text
1227 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1228 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1229 msgid ""
1230 "The following example serves to illustrate the use of B<SO_PEEK_OFF>. "
1231 "Suppose a stream socket has the following queued input data:"
1232 msgstr ""
1233
1234 #. type: Plain text
1235 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1236 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1237 #, no-wrap
1238 msgid "aabbccddeeff\n"
1239 msgstr ""
1240
1241 #. type: Plain text
1242 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1243 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1244 msgid ""
1245 "The following sequence of B<recv>(2) calls would have the effect noted in "
1246 "the comments:"
1247 msgstr ""
1248
1249 #. type: Plain text
1250 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1251 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1252 #, no-wrap
1253 msgid ""
1254 "int ov = 4; // Set peek offset to 4\n"
1255 "setsockopt(fd, SOL_SOCKET, SO_PEEK_OFF, &ov, sizeof(ov));\n"
1256 "\\&\n"
1257 "recv(fd, buf, 2, MSG_PEEK); // Peeks \"cc\"; offset set to 6\n"
1258 "recv(fd, buf, 2, MSG_PEEK); // Peeks \"dd\"; offset set to 8\n"
1259 "recv(fd, buf, 2, 0); // Reads \"aa\"; offset set to 6\n"
1260 "recv(fd, buf, 2, MSG_PEEK); // Peeks \"ee\"; offset set to 8\n"
1261 msgstr ""
1262
1263 #. type: TP
1264 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1265 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1266 #, no-wrap
1267 msgid "B<SO_PEERCRED>"
1268 msgstr ""
1269
1270 #. type: Plain text
1271 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1272 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1273 msgid ""
1274 "Return the credentials of the peer process connected to this socket. For "
1275 "further details, see B<unix>(7)."
1276 msgstr ""
1277
1278 #. type: TP
1279 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
1280 #: opensuse-tumbleweed
1281 #, no-wrap
1282 msgid "B<SO_PEERSEC>(2const)"
1283 msgstr ""
1284
1285 #. type: TP
1286 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1287 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1288 #, no-wrap
1289 msgid "B<SO_PRIORITY>"
1290 msgstr ""
1291
1292 #. For
1293 #. .BR ip (7),
1294 #. this also sets the IP type-of-service (TOS) field for outgoing packets.
1295 #. type: Plain text
1296 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1297 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1298 msgid ""
1299 "Set the protocol-defined priority for all packets to be sent on this "
1300 "socket. Linux uses this value to order the networking queues: packets with "
1301 "a higher priority may be processed first depending on the selected device "
1302 "queueing discipline. Setting a priority outside the range 0 to 6 requires "
1303 "the B<CAP_NET_ADMIN> capability."
1304 msgstr ""
1305
1306 #. type: TP
1307 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1308 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1309 #, no-wrap
1310 msgid "B<SO_PROTOCOL> (since Linux 2.6.32)"
1311 msgstr ""
1312
1313 #. type: Plain text
1314 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1315 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1316 msgid ""
1317 "Retrieves the socket protocol as an integer, returning a value such as "
1318 "B<IPPROTO_SCTP>. See B<socket>(2) for details. This socket option is read-"
1319 "only."
1320 msgstr ""
1321
1322 #. type: TP
1323 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1324 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1325 #, no-wrap
1326 msgid "B<SO_RCVBUF>"
1327 msgstr ""
1328
1329 #. Most (all?) other implementations do not do this -- MTK, Dec 05
1330 #. The following thread on LMKL is quite informative:
1331 #. getsockopt/setsockopt with SO_RCVBUF and SO_SNDBUF "non-standard" behavior
1332 #. 17 July 2012
1333 #. http://thread.gmane.org/gmane.linux.kernel/1328935
1334 #. type: Plain text
1335 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1336 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1337 msgid ""
1338 "Sets or gets the maximum socket receive buffer in bytes. The kernel doubles "
1339 "this value (to allow space for bookkeeping overhead) when it is set using "
1340 "B<setsockopt>(2), and this doubled value is returned by B<getsockopt>(2). "
1341 "The default value is set by the I</proc/sys/net/core/rmem_default> file, and "
1342 "the maximum allowed value is set by the I</proc/sys/net/core/rmem_max> "
1343 "file. The minimum (doubled) value for this option is 256."
1344 msgstr ""
1345
1346 #. type: TP
1347 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1348 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1349 #, no-wrap
1350 msgid "B<SO_RCVBUFFORCE> (since Linux 2.6.14)"
1351 msgstr ""
1352
1353 #. type: Plain text
1354 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1355 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1356 msgid ""
1357 "Using this socket option, a privileged (B<CAP_NET_ADMIN>) process can "
1358 "perform the same task as B<SO_RCVBUF>, but the I<rmem_max> limit can be "
1359 "overridden."
1360 msgstr ""
1361
1362 #. type: TP
1363 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1364 #: opensuse-leap-16-1 opensuse-tumbleweed
1365 #, no-wrap
1366 msgid "B<SO_RCVLOWAT>"
1367 msgstr ""
1368
1369 #. type: TQ
1370 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1371 #: opensuse-leap-16-1 opensuse-tumbleweed
1372 #, no-wrap
1373 msgid "B<SO_SNDLOWAT>"
1374 msgstr ""
1375
1376 #. type: Plain text
1377 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1378 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1379 msgid ""
1380 "Specify the minimum number of bytes in the buffer until the socket layer "
1381 "will pass the data to the protocol (B<SO_SNDLOWAT>) or the user on "
1382 "receiving (B<SO_RCVLOWAT>). These two values are initialized to 1. "
1383 "B<SO_SNDLOWAT> is not changeable on Linux (B<setsockopt>(2) fails with the "
1384 "error B<ENOPROTOOPT>). B<SO_RCVLOWAT> is changeable only since Linux 2.4."
1385 msgstr ""
1386
1387 #. Tested on kernel 2.6.14 -- mtk, 30 Nov 05
1388 #. commit c7004482e8dcb7c3c72666395cfa98a216a4fb70
1389 #. type: Plain text
1390 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1391 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1392 msgid ""
1393 "Before Linux 2.6.28 B<select>(2), B<poll>(2), and B<epoll>(7) did not "
1394 "respect the B<SO_RCVLOWAT> setting on Linux, and indicated a socket as "
1395 "readable when even a single byte of data was available. A subsequent read "
1396 "from the socket would then block until B<SO_RCVLOWAT> bytes are available. "
1397 "Since Linux 2.6.28, B<select>(2), B<poll>(2), and B<epoll>(7) indicate a "
1398 "socket as readable only if at least B<SO_RCVLOWAT> bytes are available."
1399 msgstr ""
1400
1401 #. type: TP
1402 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1403 #: opensuse-leap-16-1 opensuse-tumbleweed
1404 #, no-wrap
1405 msgid "B<SO_RCVTIMEO>"
1406 msgstr ""
1407
1408 #. type: TQ
1409 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1410 #: opensuse-leap-16-1 opensuse-tumbleweed
1411 #, no-wrap
1412 msgid "B<SO_SNDTIMEO>"
1413 msgstr ""
1414
1415 #. Not implemented in Linux 2.0.
1416 #. Implemented in Linux 2.1.11 for getsockopt: always return a zero struct.
1417 #. Implemented in Linux 2.3.41 for setsockopt, and actually used.
1418 #. in fact to EAGAIN
1419 #. type: Plain text
1420 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1421 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1422 msgid ""
1423 "Specify the receiving or sending timeouts until reporting an error. The "
1424 "argument is a I<struct timeval>. If an input or output function blocks for "
1425 "this period of time, and data has been sent or received, the return value of "
1426 "that function will be the amount of data transferred; if no data has been "
1427 "transferred and the timeout has been reached, then -1 is returned with "
1428 "I<errno> set to B<EAGAIN> or B<EWOULDBLOCK>, or B<EINPROGRESS> (for "
1429 "B<connect>(2)) just as if the socket was specified to be nonblocking. If "
1430 "the timeout is set to zero (the default), then the operation will never "
1431 "timeout. Timeouts only have effect for system calls that perform socket I/O "
1432 "(e.g., B<accept>(2), B<connect>(2), B<read>(2), B<recvmsg>(2), B<send>(2), "
1433 "B<sendmsg>(2)); timeouts have no effect for B<select>(2), B<poll>(2), "
1434 "B<epoll_wait>(2), and so on."
1435 msgstr ""
1436
1437 #. type: TP
1438 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1439 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1440 #, no-wrap
1441 msgid "B<SO_REUSEADDR>"
1442 msgstr ""
1443
1444 #. commit c617f398edd4db2b8567a28e899a88f8f574798d
1445 #. https://lwn.net/Articles/542629/
1446 #. type: Plain text
1447 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1448 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1449 msgid ""
1450 "Indicates that the rules used in validating addresses supplied in a "
1451 "B<bind>(2) call should allow reuse of local addresses. For B<AF_INET> "
1452 "sockets this means that a socket may bind, except when there is an active "
1453 "listening socket bound to the address. When the listening socket is bound "
1454 "to B<INADDR_ANY> with a specific port then it is not possible to bind to "
1455 "this port for any local address. Argument is an integer boolean flag."
1456 msgstr ""
1457
1458 #. type: TP
1459 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1460 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1461 #, no-wrap
1462 msgid "B<SO_REUSEPORT> (since Linux 3.9)"
1463 msgstr ""
1464
1465 #. type: Plain text
1466 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1467 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1468 msgid ""
1469 "Permits multiple B<AF_INET> or B<AF_INET6> sockets to be bound to an "
1470 "identical socket address. This option must be set on each socket (including "
1471 "the first socket) prior to calling B<bind>(2) on the socket. To prevent "
1472 "port hijacking, all of the processes binding to the same address must have "
1473 "the same effective UID. This option can be employed with both TCP and UDP "
1474 "sockets."
1475 msgstr ""
1476
1477 #. type: Plain text
1478 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1479 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1480 msgid ""
1481 "For TCP sockets, this option allows B<accept>(2) load distribution in a "
1482 "multi-threaded server to be improved by using a distinct listener socket for "
1483 "each thread. This provides improved load distribution as compared to "
1484 "traditional techniques such using a single B<accept>(2)ing thread that "
1485 "distributes connections, or having multiple threads that compete to "
1486 "B<accept>(2) from the same socket."
1487 msgstr ""
1488
1489 #. type: Plain text
1490 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1491 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1492 msgid ""
1493 "For UDP sockets, the use of this option can provide better distribution of "
1494 "incoming datagrams to multiple processes (or threads) as compared to the "
1495 "traditional technique of having multiple processes compete to receive "
1496 "datagrams on the same socket."
1497 msgstr ""
1498
1499 #. type: TP
1500 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1501 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1502 #, no-wrap
1503 msgid "B<SO_RXQ_OVFL> (since Linux 2.6.33)"
1504 msgstr ""
1505
1506 #. commit 3b885787ea4112eaa80945999ea0901bf742707f
1507 #. type: Plain text
1508 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1509 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1510 msgid ""
1511 "Indicates that an unsigned 32-bit value ancillary message (cmsg) should be "
1512 "attached to received skbs indicating the number of packets dropped by the "
1513 "socket since its creation."
1514 msgstr ""
1515
1516 #. type: TP
1517 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1518 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1519 #, no-wrap
1520 msgid "B<SO_SELECT_ERR_QUEUE> (since Linux 3.10)"
1521 msgstr ""
1522
1523 #. commit 7d4c04fc170087119727119074e72445f2bb192b
1524 #. Author: Keller, Jacob E <[email protected]>
1525 #. It does not affect wake up.
1526 #. type: Plain text
1527 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1528 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1529 msgid ""
1530 "When this option is set on a socket, an error condition on a socket causes "
1531 "notification not only via the I<exceptfds> set of B<select>(2). Similarly, "
1532 "B<poll>(2) also returns a B<POLLPRI> whenever an B<POLLERR> event is "
1533 "returned."
1534 msgstr ""
1535
1536 #. commit 6e5d58fdc9bedd0255a8
1537 #. ("skbuff: Fix not waking applications when errors are enqueued")
1538 #. type: Plain text
1539 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1540 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1541 msgid ""
1542 "Background: this option was added when waking up on an error condition "
1543 "occurred only via the I<readfds> and I<writefds> sets of B<select>(2). The "
1544 "option was added to allow monitoring for error conditions via the "
1545 "I<exceptfds> argument without simultaneously having to receive notifications "
1546 "(via I<readfds>) for regular data that can be read from the socket. After "
1547 "changes in Linux 4.16, the use of this flag to achieve the desired "
1548 "notifications is no longer necessary. This option is nevertheless retained "
1549 "for backwards compatibility."
1550 msgstr ""
1551
1552 #. type: TP
1553 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1554 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1555 #, no-wrap
1556 msgid "B<SO_SNDBUF>"
1557 msgstr ""
1558
1559 #. Most (all?) other implementations do not do this -- MTK, Dec 05
1560 #. See also the comment to SO_RCVBUF (17 Jul 2012 LKML mail)
1561 #. type: Plain text
1562 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1563 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1564 msgid ""
1565 "Sets or gets the maximum socket send buffer in bytes. The kernel doubles "
1566 "this value (to allow space for bookkeeping overhead) when it is set using "
1567 "B<setsockopt>(2), and this doubled value is returned by B<getsockopt>(2). "
1568 "The default value is set by the I</proc/sys/net/core/wmem_default> file and "
1569 "the maximum allowed value is set by the I</proc/sys/net/core/wmem_max> "
1570 "file. The minimum (doubled) value for this option is 2048."
1571 msgstr ""
1572
1573 #. type: TP
1574 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1575 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1576 #, no-wrap
1577 msgid "B<SO_SNDBUFFORCE> (since Linux 2.6.14)"
1578 msgstr ""
1579
1580 #. type: Plain text
1581 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1582 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1583 msgid ""
1584 "Using this socket option, a privileged (B<CAP_NET_ADMIN>) process can "
1585 "perform the same task as B<SO_SNDBUF>, but the I<wmem_max> limit can be "
1586 "overridden."
1587 msgstr ""
1588
1589 #. type: TP
1590 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1591 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1592 #, no-wrap
1593 msgid "B<SO_TIMESTAMP>"
1594 msgstr ""
1595
1596 #. type: Plain text
1597 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1598 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1599 msgid ""
1600 "Enable or disable the receiving of the B<SO_TIMESTAMP> control message. The "
1601 "timestamp control message is sent with level B<SOL_SOCKET> and a "
1602 "I<cmsg_type> of B<SCM_TIMESTAMP>. The I<cmsg_data> field is a I<struct "
1603 "timeval> indicating the reception time of the last packet passed to the user "
1604 "in this call. See B<cmsg>(3) for details on control messages."
1605 msgstr ""
1606
1607 #. type: TP
1608 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1609 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1610 #, no-wrap
1611 msgid "B<SO_TIMESTAMPNS> (since Linux 2.6.22)"
1612 msgstr ""
1613
1614 #. commit 92f37fd2ee805aa77925c1e64fd56088b46094fc
1615 #. type: Plain text
1616 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1617 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1618 msgid ""
1619 "Enable or disable the receiving of the B<SO_TIMESTAMPNS> control message. "
1620 "The timestamp control message is sent with level B<SOL_SOCKET> and a "
1621 "I<cmsg_type> of B<SCM_TIMESTAMPNS>. The I<cmsg_data> field is a I<struct "
1622 "timespec> indicating the reception time of the last packet passed to the "
1623 "user in this call. The clock used for the timestamp is B<CLOCK_REALTIME>. "
1624 "See B<cmsg>(3) for details on control messages."
1625 msgstr ""
1626
1627 #. type: Plain text
1628 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1629 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1630 msgid ""
1631 "A socket cannot mix B<SO_TIMESTAMP> and B<SO_TIMESTAMPNS>: the two modes are "
1632 "mutually exclusive."
1633 msgstr ""
1634
1635 #. type: TP
1636 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1637 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1638 #, no-wrap
1639 msgid "B<SO_TYPE>"
1640 msgstr ""
1641
1642 #. type: Plain text
1643 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1644 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1645 msgid ""
1646 "Gets the socket type as an integer (e.g., B<SOCK_STREAM>). This socket "
1647 "option is read-only."
1648 msgstr ""
1649
1650 #. type: TP
1651 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1652 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1653 #, no-wrap
1654 msgid "B<SO_BUSY_POLL> (since Linux 3.11)"
1655 msgstr ""
1656
1657 #. type: Plain text
1658 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1659 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1660 msgid ""
1661 "Sets the approximate time in microseconds to busy poll on a blocking receive "
1662 "when there is no data. Increasing this value requires B<CAP_NET_ADMIN>. "
1663 "The default for this option is controlled by the I</proc/sys/net/core/"
1664 "busy_read> file."
1665 msgstr ""
1666
1667 #. type: Plain text
1668 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1669 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1670 msgid ""
1671 "The value in the I</proc/sys/net/core/busy_poll> file determines how long "
1672 "B<select>(2) and B<poll>(2) will busy poll when they operate on sockets "
1673 "with B<SO_BUSY_POLL> set and no events to report are found."
1674 msgstr ""
1675
1676 #. type: Plain text
1677 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1678 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1679 msgid ""
1680 "In both cases, busy polling will only be done when the socket last received "
1681 "data from a network device that supports this option."
1682 msgstr ""
1683
1684 #. type: Plain text
1685 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1686 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1687 msgid ""
1688 "While busy polling may improve latency of some applications, care must be "
1689 "taken when using it since this will increase both CPU utilization and power "
1690 "usage."
1691 msgstr ""
1692
1693 #. type: SS
1694 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1695 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1696 #, no-wrap
1697 msgid "Signals"
1698 msgstr ""
1699
1700 #. type: Plain text
1701 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1702 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1703 msgid ""
1704 "When writing onto a connection-oriented socket that has been shut down (by "
1705 "the local or the remote end) B<SIGPIPE> is sent to the writing process and "
1706 "B<EPIPE> is returned. The signal is not sent when the write call specified "
1707 "the B<MSG_NOSIGNAL> flag."
1708 msgstr ""
1709
1710 #. type: Plain text
1711 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1712 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1713 msgid ""
1714 "When requested with the B<FIOSETOWN> B<fcntl>(2) or B<SIOCSPGRP> "
1715 "B<ioctl>(2), B<SIGIO> is sent when an I/O event occurs. It is possible to "
1716 "use B<poll>(2) or B<select>(2) in the signal handler to find out which "
1717 "socket the event occurred on. An alternative (in Linux 2.2) is to set a "
1718 "real-time signal using the B<F_SETSIG> B<fcntl>(2); the handler of the real "
1719 "time signal will be called with the file descriptor in the I<si_fd> field of "
1720 "its I<siginfo_t>. See B<fcntl>(2) for more information."
1721 msgstr ""
1722
1723 #. .SS Ancillary messages
1724 #. type: Plain text
1725 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1726 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1727 msgid ""
1728 "Under some circumstances (e.g., multiple processes accessing a single "
1729 "socket), the condition that caused the B<SIGIO> may have already disappeared "
1730 "when the process reacts to the signal. If this happens, the process should "
1731 "wait again because Linux will resend the signal later."
1732 msgstr ""
1733
1734 #. type: SS
1735 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1736 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1737 #, no-wrap
1738 msgid "/proc interfaces"
1739 msgstr ""
1740
1741 #. type: Plain text
1742 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1743 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1744 msgid ""
1745 "The core socket networking parameters can be accessed via files in the "
1746 "directory I</proc/sys/net/core/>."
1747 msgstr ""
1748
1749 #. type: TP
1750 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1751 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1752 #, no-wrap
1753 msgid "I<rmem_default>"
1754 msgstr ""
1755
1756 #. type: Plain text
1757 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1758 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1759 msgid "contains the default setting in bytes of the socket receive buffer."
1760 msgstr ""
1761
1762 #. type: TP
1763 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1764 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1765 #, no-wrap
1766 msgid "I<rmem_max>"
1767 msgstr ""
1768
1769 #. type: Plain text
1770 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1771 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1772 msgid ""
1773 "contains the maximum socket receive buffer size in bytes which a user may "
1774 "set by using the B<SO_RCVBUF> socket option."
1775 msgstr ""
1776
1777 #. type: TP
1778 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1779 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1780 #, no-wrap
1781 msgid "I<wmem_default>"
1782 msgstr ""
1783
1784 #. type: Plain text
1785 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1786 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1787 msgid "contains the default setting in bytes of the socket send buffer."
1788 msgstr ""
1789
1790 #. type: TP
1791 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1792 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1793 #, no-wrap
1794 msgid "I<wmem_max>"
1795 msgstr ""
1796
1797 #. type: Plain text
1798 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1799 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1800 msgid ""
1801 "contains the maximum socket send buffer size in bytes which a user may set "
1802 "by using the B<SO_SNDBUF> socket option."
1803 msgstr ""
1804
1805 #. type: TP
1806 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1807 #: opensuse-leap-16-1 opensuse-tumbleweed
1808 #, no-wrap
1809 msgid "I<message_cost>"
1810 msgstr ""
1811
1812 #. type: TQ
1813 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1814 #: opensuse-leap-16-1 opensuse-tumbleweed
1815 #, no-wrap
1816 msgid "I<message_burst>"
1817 msgstr ""
1818
1819 #. type: Plain text
1820 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1821 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1822 msgid ""
1823 "configure the token bucket filter used to load limit warning messages caused "
1824 "by external network events."
1825 msgstr ""
1826
1827 #. type: TP
1828 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1829 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1830 #, no-wrap
1831 msgid "I<netdev_max_backlog>"
1832 msgstr ""
1833
1834 #. type: Plain text
1835 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1836 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1837 msgid "Maximum number of packets in the global input queue."
1838 msgstr ""
1839
1840 #. type: TP
1841 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1842 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1843 #, no-wrap
1844 msgid "I<optmem_max>"
1845 msgstr ""
1846
1847 #. netdev_fastroute is not documented because it is experimental
1848 #. type: Plain text
1849 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1850 #: opensuse-leap-16-1 opensuse-tumbleweed
1851 msgid ""
1852 "Maximum size of ancillary data and user control data like the iovecs per "
1853 "socket."
1854 msgstr ""
1855
1856 #. type: SS
1857 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1858 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1859 #, no-wrap
1860 msgid "Ioctls"
1861 msgstr ""
1862
1863 #. type: Plain text
1864 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1865 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1866 msgid "These operations can be accessed using B<ioctl>(2):"
1867 msgstr ""
1868
1869 #. type: Plain text
1870 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1871 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1872 #, no-wrap
1873 msgid "I<error>B< = ioctl(>I<ip_socket>B<, >I<ioctl_type>B<, >I<&value_result>B<);>\n"
1874 msgstr ""
1875
1876 #. type: TP
1877 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1878 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1879 #, no-wrap
1880 msgid "B<SIOCGSTAMP>"
1881 msgstr ""
1882
1883 #. type: Plain text
1884 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1885 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1886 msgid ""
1887 "Return a I<struct timeval> with the receive timestamp of the last packet "
1888 "passed to the user. This is useful for accurate round trip time "
1889 "measurements. See B<setitimer>(2) for a description of I<struct timeval>. "
1890 "This ioctl should be used only if the socket options B<SO_TIMESTAMP> and "
1891 "B<SO_TIMESTAMPNS> are not set on the socket. Otherwise, it returns the "
1892 "timestamp of the last packet that was received while B<SO_TIMESTAMP> and "
1893 "B<SO_TIMESTAMPNS> were not set, or it fails if no such packet has been "
1894 "received, (i.e., B<ioctl>(2) returns -1 with I<errno> set to B<ENOENT>)."
1895 msgstr ""
1896
1897 #. type: TP
1898 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1899 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1900 #, no-wrap
1901 msgid "B<SIOCSPGRP>"
1902 msgstr ""
1903
1904 #. type: Plain text
1905 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1906 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1907 msgid ""
1908 "Set the process or process group that is to receive B<SIGIO> or B<SIGURG> "
1909 "signals when I/O becomes possible or urgent data is available. The argument "
1910 "is a pointer to a I<pid_t>. For further details, see the description of "
1911 "B<F_SETOWN> in B<fcntl>(2)."
1912 msgstr ""
1913
1914 #. type: TP
1915 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1916 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1917 #, no-wrap
1918 msgid "B<FIOASYNC>"
1919 msgstr ""
1920
1921 #. type: Plain text
1922 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1923 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1924 msgid ""
1925 "Change the B<O_ASYNC> flag to enable or disable asynchronous I/O mode of the "
1926 "socket. Asynchronous I/O mode means that the B<SIGIO> signal or the signal "
1927 "set with B<F_SETSIG> is raised when a new I/O event occurs."
1928 msgstr ""
1929
1930 #. type: Plain text
1931 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1932 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1933 msgid ""
1934 "Argument is an integer boolean flag. (This operation is synonymous with the "
1935 "use of B<fcntl>(2) to set the B<O_ASYNC> flag.)"
1936 msgstr ""
1937
1938 #. type: TP
1939 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1940 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1941 #, no-wrap
1942 msgid "B<SIOCGPGRP>"
1943 msgstr ""
1944
1945 #. type: Plain text
1946 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1947 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1948 msgid ""
1949 "Get the current process or process group that receives B<SIGIO> or B<SIGURG> "
1950 "signals, or 0 when none is set."
1951 msgstr ""
1952
1953 #. type: Plain text
1954 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1955 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1956 msgid "Valid B<fcntl>(2) operations:"
1957 msgstr ""
1958
1959 #. type: TP
1960 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1961 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1962 #, no-wrap
1963 msgid "B<FIOGETOWN>"
1964 msgstr ""
1965
1966 #. type: Plain text
1967 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1968 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1969 msgid "The same as the B<SIOCGPGRP> B<ioctl>(2)."
1970 msgstr ""
1971
1972 #. type: TP
1973 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1974 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1975 #, no-wrap
1976 msgid "B<FIOSETOWN>"
1977 msgstr ""
1978
1979 #. type: Plain text
1980 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1981 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1982 msgid "The same as the B<SIOCSPGRP> B<ioctl>(2)."
1983 msgstr ""
1984
1985 #. type: SH
1986 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1987 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1988 #, no-wrap
1989 msgid "VERSIONS"
1990 msgstr ""
1991
1992 #. type: Plain text
1993 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1994 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1995 msgid ""
1996 "B<SO_BINDTODEVICE> was introduced in Linux 2.0.30. B<SO_PASSCRED> is new in "
1997 "Linux 2.2. The I</proc> interfaces were introduced in Linux 2.2. "
1998 "B<SO_RCVTIMEO> and B<SO_SNDTIMEO> are supported since Linux 2.3.41. "
1999 "Earlier, timeouts were fixed to a protocol-specific setting, and could not "
2000 "be read or written."
2001 msgstr ""
2002
2003 #. type: SH
2004 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2005 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2006 #, no-wrap
2007 msgid "NOTES"
2008 msgstr ""
2009
2010 #. type: Plain text
2011 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2012 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2013 msgid ""
2014 "Linux assumes that half of the send/receive buffer is used for internal "
2015 "kernel structures; thus the values in the corresponding I</proc> files are "
2016 "twice what can be observed on the wire."
2017 msgstr ""
2018
2019 #. .SH AUTHORS
2020 #. This man page was written by Andi Kleen.
2021 #. type: Plain text
2022 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2023 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2024 msgid ""
2025 "Linux will allow port reuse only with the B<SO_REUSEADDR> option when this "
2026 "option was set both in the previous program that performed a B<bind>(2) to "
2027 "the port and in the program that wants to reuse the port. This differs from "
2028 "some implementations (e.g., FreeBSD) where only the later program needs to "
2029 "set the B<SO_REUSEADDR> option. Typically this difference is invisible, "
2030 "since, for example, a server program is designed to always set this option."
2031 msgstr ""
2032
2033 #. type: SH
2034 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2035 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2036 #, no-wrap
2037 msgid "SEE ALSO"
2038 msgstr ""
2039
2040 #. type: Plain text
2041 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2042 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2043 msgid ""
2044 "B<wireshark>(1), B<bpf>(2), B<connect>(2), B<getsockopt>(2), "
2045 "B<setsockopt>(2), B<socket>(2), B<pcap>(3), B<address_families>(7), "
2046 "B<capabilities>(7), B<ddp>(7), B<ip>(7), B<ipv6>(7), B<packet>(7), "
2047 "B<tcp>(7), B<udp>(7), B<unix>(7), B<tcpdump>(8)"
2048 msgstr ""
2049
2050 #. type: TH
2051 #: debian-trixie
2052 #, no-wrap
2053 msgid "2024-05-02"
2054 msgstr ""
2055
2056 #. type: TH
2057 #: debian-trixie
2058 #, no-wrap
2059 msgid "Linux man-pages 6.9.1"
2060 msgstr ""
2061
2062 #. type: Plain text
2063 #: debian-trixie
2064 msgid ""
2065 "Attach a classic BPF (B<SO_ATTACH_FILTER>) or an extended BPF "
2066 "(B<SO_ATTACH_BPF>) program to the socket for use as a filter of incoming "
2067 "packets. A packet will be dropped if the filter program returns zero. If "
2068 "the filter program returns a nonzero value which is less than the packet's "
2069 "data length, the packet will be truncated to the length returned. If the "
2070 "value returned by the filter is greater than or equal to the packet's data "
2071 "length, the packet is allowed to proceed unmodified."
2072 msgstr ""
2073
2074 #. type: Plain text
2075 #: debian-trixie fedora-44 fedora-rawhide
2076 msgid ""
2077 "Both classic and extended BPF are explained in the kernel source file "
2078 "I<Documentation/networking/filter.txt>"
2079 msgstr ""
2080
2081 #. type: Plain text
2082 #: debian-trixie fedora-44 fedora-rawhide
2083 msgid ""
2084 "The BPF program must return an index between 0 and N-1 representing the "
2085 "socket which should receive the packet (where N is the number of sockets in "
2086 "the group). If the BPF program returns an invalid index, socket selection "
2087 "will fall back to the plain B<SO_REUSEPORT> mechanism."
2088 msgstr ""
2089
2090 #. type: Plain text
2091 #: debian-trixie fedora-44 fedora-rawhide
2092 msgid ""
2093 "Sockets are numbered in the order in which they are added to the group (that "
2094 "is, the order of B<bind>(2) calls for UDP sockets or the order of "
2095 "B<listen>(2) calls for TCP sockets). New sockets added to a reuseport "
2096 "group will inherit the BPF program. When a socket is removed from a "
2097 "reuseport group (via B<close>(2)), the last socket in the group will be "
2098 "moved into the closed socket's position."
2099 msgstr ""
2100
2101 #. type: Plain text
2102 #: debian-trixie
2103 msgid ""
2104 "Bind this socket to a particular device like \\[lq]eth0\\[rq], as specified "
2105 "in the passed interface name. If the name is an empty string or the option "
2106 "length is zero, the socket device binding is removed. The passed option is "
2107 "a variable-length null-terminated interface name string with the maximum "
2108 "size of B<IFNAMSIZ>. If a socket is bound to an interface, only packets "
2109 "received from that particular interface are processed by the socket. Note "
2110 "that this works only for some socket types, particularly B<AF_INET> "
2111 "sockets. It is not supported for packet sockets (use normal B<bind>(2) "
2112 "there)."
2113 msgstr ""
2114
2115 #. type: TP
2116 #: debian-trixie fedora-44 fedora-rawhide
2117 #, no-wrap
2118 msgid "B<SO_PEERSEC> (since Linux 2.6.2)"
2119 msgstr ""
2120
2121 #. type: Plain text
2122 #: debian-trixie fedora-44 fedora-rawhide
2123 msgid ""
2124 "Return the security context of the peer socket connected to this socket. "
2125 "For further details, see B<unix>(7) and B<ip>(7)."
2126 msgstr ""
2127
2128 #. type: TP
2129 #: debian-trixie
2130 #, no-wrap
2131 msgid "B<SO_RCVLOWAT> and B<SO_SNDLOWAT>"
2132 msgstr ""
2133
2134 #. type: TP
2135 #: debian-trixie
2136 #, no-wrap
2137 msgid "B<SO_RCVTIMEO> and B<SO_SNDTIMEO>"
2138 msgstr ""
2139
2140 #. type: TP
2141 #: debian-trixie
2142 #, no-wrap
2143 msgid "I<message_cost> and I<message_burst>"
2144 msgstr ""
2145
2146 #. netdev_fastroute is not documented because it is experimental
2147 #. type: Plain text
2148 #: debian-trixie
2149 msgid ""
2150 "Maximum length of ancillary data and user control data like the iovecs per "
2151 "socket."
2152 msgstr ""
2153
2154 #. type: TH
2155 #: fedora-44 fedora-rawhide
2156 #, no-wrap
2157 msgid "2024-11-17"
2158 msgstr ""
2159
2160 #. type: TH
2161 #: fedora-44 fedora-rawhide
2162 #, no-wrap
2163 msgid "Linux man-pages 6.13"
2164 msgstr ""
2165
2166 #. type: TH
2167 #: mageia-cauldron
2168 #, no-wrap
2169 msgid "Linux man-pages 6.17"
2170 msgstr ""
2171
2172 #. type: TH
2173 #: opensuse-leap-16-1 opensuse-tumbleweed
2174 #, no-wrap
2175 msgid "Linux man-pages (unreleased)"
2176 msgstr ""