Debian Codegraph @

po/ru/man7/socket.7.po

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