Debian Codegraph @

po/ru/man7/sock_diag.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 "sock_diag"
33 msgstr "sock_diag"
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 "sock_diag - obtaining information about sockets"
60 msgstr "sock_diag - возвращает информацию о сокетах"
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 ""
74 "B<#include E<lt>sys/socket.hE<gt>>\n"
75 "B<#include E<lt>linux/sock_diag.hE<gt>>\n"
76 "B<#include E<lt>linux/unix_diag.hE<gt>> /* for UNIX domain sockets */\n"
77 "B<#include E<lt>linux/inet_diag.hE<gt>> /* for IPv4 and IPv6 sockets */\n"
78 msgstr ""
79 "B<#include E<lt>sys/socket.hE<gt>>\n"
80 "B<#include E<lt>linux/sock_diag.hE<gt>>\n"
81 "B<#include E<lt>linux/unix_diag.hE<gt>> /* для доменных сокетов UNIX */\n"
82 "B<#include E<lt>linux/inet_diag.hE<gt>> /* для сокетов IPv4 и IPv6 */\n"
83
84 #. type: Plain text
85 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
86 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
87 #, no-wrap
88 msgid "B<diag_socket = socket(AF_NETLINK, >I<socket_type>B<, NETLINK_SOCK_DIAG);>\n"
89 msgstr "B<diag_socket = socket(AF_NETLINK, >I<socket_type>B<, NETLINK_SOCK_DIAG);>\n"
90
91 #. type: SH
92 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
93 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
94 #, no-wrap
95 msgid "DESCRIPTION"
96 msgstr "ОПИСАНИЕ"
97
98 #. type: Plain text
99 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
100 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
101 msgid ""
102 "The sock_diag netlink subsystem provides a mechanism for obtaining "
103 "information about sockets of various address families from the kernel. This "
104 "subsystem can be used to obtain information about individual sockets or "
105 "request a list of sockets."
106 msgstr ""
107 "Подсистема sock_diag netlink предоставляет механизм получения информации о "
108 "сокетах различных семейств адресов из ядра. Данная подсистема может "
109 "использоваться для получения информации об отдельных сокетах или запрашивать "
110 "список сокетов."
111
112 #. type: Plain text
113 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
114 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
115 msgid ""
116 "In the request, the caller can specify additional information it would like "
117 "to obtain about the socket, for example, memory information or information "
118 "specific to the address family."
119 msgstr ""
120 "В запросе вызывающий может указать дополнительную информацию, которую "
121 "хочется узнать о сокетах, например, информацию о памяти или характерную "
122 "семейству адресов."
123
124 #. type: Plain text
125 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
126 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
127 msgid ""
128 "When requesting a list of sockets, the caller can specify filters that would "
129 "be applied by the kernel to select a subset of sockets to report. For now, "
130 "there is only the ability to filter sockets by state (connected, listening, "
131 "and so on.)"
132 msgstr ""
133 "Когда запрашивается список сокетов вызывающий может задать фильтры, которые "
134 "будут применены ядром для выбора возвращаемого набора сокетов. В настоящее "
135 "время, фильтровать сокеты можно только по состоянию (соединён, слушает и т. "
136 "д.)."
137
138 #. type: Plain text
139 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
140 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
141 msgid ""
142 "Note that sock_diag reports only those sockets that have a name; that is, "
143 "either sockets bound explicitly with B<bind>(2) or sockets that were "
144 "automatically bound to an address (e.g., by B<connect>(2)). This is the "
145 "same set of sockets that is available via I</proc/net/unix>, I</proc/net/"
146 "tcp>, I</proc/net/udp>, and so on."
147 msgstr ""
148 "Заметим, что sock_diag возвращает только сокеты с именем; то есть, явно "
149 "привязанные сокеты с помощью B<bind>(2) или автоматически привязанные к "
150 "адресу сокеты (например, с помощью B<connect>(2)). Данный набор сокетов "
151 "совпадает со списком в I</proc/net/unix>, I</proc/net/tcp>, I</proc/net/udp> "
152 "и т. п."
153
154 #. type: SS
155 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
156 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
157 #, no-wrap
158 msgid "Request"
159 msgstr "Запрос"
160
161 #. type: Plain text
162 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
163 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
164 msgid ""
165 "The request starts with a I<struct nlmsghdr> header described in "
166 "B<netlink>(7) with I<nlmsg_type> field set to B<SOCK_DIAG_BY_FAMILY>. It "
167 "is followed by a header specific to the address family that starts with a "
168 "common part shared by all address families:"
169 msgstr ""
170 "Запрос начинается с заголовка I<struct nlmsghdr>, описанного в "
171 "B<netlink>(7), в котором поле I<nlmsg_type> равно B<SOCK_DIAG_BY_FAMILY>. За "
172 "ним следует заголовок, соответствующий семейству адресов, начинающийся с "
173 "общей части, используемой для всех семейств адресов:"
174
175 #. type: Plain text
176 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
177 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
178 #, no-wrap
179 msgid ""
180 "struct sock_diag_req {\n"
181 " __u8 sdiag_family;\n"
182 " __u8 sdiag_protocol;\n"
183 "};\n"
184 msgstr ""
185 "struct sock_diag_req {\n"
186 " __u8 sdiag_family;\n"
187 " __u8 sdiag_protocol;\n"
188 "};\n"
189
190 #. type: Plain text
191 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
192 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
193 msgid "The fields of this structure are as follows:"
194 msgstr "Поля этой структуры имеют следующее назначение:"
195
196 #. type: TP
197 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
198 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
199 #, no-wrap
200 msgid "I<sdiag_family>"
201 msgstr "I<sdiag_family>"
202
203 #. type: Plain text
204 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
205 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
206 msgid ""
207 "An address family. It should be set to the appropriate B<AF_*> constant."
208 msgstr ""
209 "Семейство адресов. Должна быть указана соответствующая константа B<AF_*>."
210
211 #. type: TP
212 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
213 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
214 #, no-wrap
215 msgid "I<sdiag_protocol>"
216 msgstr "I<sdiag_protocol>"
217
218 #. type: Plain text
219 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
220 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
221 msgid ""
222 "Depends on I<sdiag_family>. It should be set to the appropriate "
223 "B<IPPROTO_*> constant for B<AF_INET> and B<AF_INET6>, and to 0 otherwise."
224 msgstr ""
225 "Зависит от I<sdiag_family>. Должна быть указана соответствующая константа "
226 "B<IPPROTO_*> при B<AF_INET> и B<AF_INET6>, и 0 в остальных случаях."
227
228 #. type: Plain text
229 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
230 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
231 msgid ""
232 "If the I<nlmsg_flags> field of the I<struct nlmsghdr> header has the "
233 "B<NLM_F_DUMP> flag set, it means that a list of sockets is being requested; "
234 "otherwise it is a query about an individual socket."
235 msgstr ""
236 "Если в поле I<nlmsg_flags> заголовка I<struct nlmsghdr> установлен флаг "
237 "B<NLM_F_DUMP>, то это означает, что запрашивается список сокетов; в "
238 "противном случае запрашивается информация об конкретном сокете."
239
240 #. type: SS
241 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
242 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
243 #, no-wrap
244 msgid "Response"
245 msgstr "Ответ"
246
247 #. type: Plain text
248 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
249 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
250 msgid ""
251 "The response starts with a I<struct nlmsghdr> header and is followed by an "
252 "array of objects specific to the address family. The array is to be "
253 "accessed with the standard B<NLMSG_*> macros from the B<netlink>(3) API."
254 msgstr ""
255 "Ответ начинается с заголовка I<struct nlmsghdr>, за которым следует массив "
256 "объектов, соответствующих семейству адресов. Массив доступен через "
257 "стандартные макросы из B<NLMSG_*> программного интерфейса B<netlink>(3)."
258
259 #. type: Plain text
260 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
261 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
262 msgid ""
263 "Each object is the NLA (netlink attributes) list that is to be accessed with "
264 "the B<RTA_*> macros from B<rtnetlink>(3) API."
265 msgstr ""
266 "Каждый объект представляет собой список NLA (атрибутов netlink), которые "
267 "доступны через макросы B<RTA_*> программного интерфейса B<rtnetlink>(3)."
268
269 #. type: SS
270 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
271 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
272 #, no-wrap
273 msgid "UNIX domain sockets"
274 msgstr "Доменные сокеты UNIX"
275
276 #. type: Plain text
277 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
278 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
279 msgid ""
280 "For UNIX domain sockets the request is represented in the following "
281 "structure:"
282 msgstr "Запрос доменных сокетов UNIX описывается в следующей структуре:"
283
284 #. type: Plain text
285 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
286 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
287 #, no-wrap
288 msgid ""
289 "struct unix_diag_req {\n"
290 " __u8 sdiag_family;\n"
291 " __u8 sdiag_protocol;\n"
292 " __u16 pad;\n"
293 " __u32 udiag_states;\n"
294 " __u32 udiag_ino;\n"
295 " __u32 udiag_show;\n"
296 " __u32 udiag_cookie[2];\n"
297 "};\n"
298 msgstr ""
299 "struct unix_diag_req {\n"
300 " __u8 sdiag_family;\n"
301 " __u8 sdiag_protocol;\n"
302 " __u16 pad;\n"
303 " __u32 udiag_states;\n"
304 " __u32 udiag_ino;\n"
305 " __u32 udiag_show;\n"
306 " __u32 udiag_cookie[2];\n"
307 "};\n"
308
309 #. type: Plain text
310 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
311 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
312 msgid "The address family; it should be set to B<AF_UNIX>."
313 msgstr "Семейство адресов; должно быть равно B<AF_UNIX>."
314
315 #. type: TP
316 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
317 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
318 #, no-wrap
319 msgid "I<pad>"
320 msgstr "I<pad>"
321
322 #. type: Plain text
323 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
324 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
325 msgid "These fields should be set to 0."
326 msgstr "Эти поля должны быть равны 0."
327
328 #. type: TP
329 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
330 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
331 #, no-wrap
332 msgid "I<udiag_states>"
333 msgstr "I<udiag_states>"
334
335 #. type: Plain text
336 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
337 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
338 msgid ""
339 "This is a bit mask that defines a filter of sockets states. Only those "
340 "sockets whose states are in this mask will be reported. Ignored when "
341 "querying for an individual socket. Supported values are:"
342 msgstr ""
343 "Битовая маска, описывающая фильтр состояний сокетов. Будут возвращены только "
344 "сокеты с состояниями из этой маски. Игнорируется, если запрашивается "
345 "конкретный сокет. Поддерживаемые значения:"
346
347 #. type: Plain text
348 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
349 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
350 msgid "1 E<lt>E<lt> B<TCP_ESTABLISHED>"
351 msgstr "1 E<lt>E<lt> B<TCP_ESTABLISHED>"
352
353 #. type: Plain text
354 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
355 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
356 msgid "1 E<lt>E<lt> B<TCP_LISTEN>"
357 msgstr "1 E<lt>E<lt> B<TCP_LISTEN>"
358
359 #. type: TP
360 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
361 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
362 #, no-wrap
363 msgid "I<udiag_ino>"
364 msgstr "I<udiag_ino>"
365
366 #. type: Plain text
367 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
368 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
369 msgid ""
370 "This is an inode number when querying for an individual socket. Ignored "
371 "when querying for a list of sockets."
372 msgstr ""
373 "Номер иноды при запросе конкретного сокета. Игнорируется, если запрашивается "
374 "список сокетов."
375
376 #. type: TP
377 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
378 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
379 #, no-wrap
380 msgid "I<udiag_show>"
381 msgstr "I<udiag_show>"
382
383 #. type: Plain text
384 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
385 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
386 msgid ""
387 "This is a set of flags defining what kind of information to report. Each "
388 "requested kind of information is reported back as a netlink attribute as "
389 "described below:"
390 msgstr ""
391 "Набор флагов, определяющий тип возвращаемой информации. Каждый запрашиваемый "
392 "тип информации возвращается в виде атрибута netlink, описанного ниже:"
393
394 #. type: TP
395 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
396 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
397 #, no-wrap
398 msgid "B<UDIAG_SHOW_NAME>"
399 msgstr "B<UDIAG_SHOW_NAME>"
400
401 #. type: Plain text
402 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
403 #: opensuse-leap-16-1 opensuse-tumbleweed
404 #, fuzzy
405 #| msgid ""
406 #| "The attribute reported in answer to this request is B<UNIX_DIAG_NAME>. "
407 #| "The payload associated with this attribute is the pathname to which the "
408 #| "socket was bound (a sequence of bytes up to B<UNIX_PATH_MAX> length)."
409 msgid ""
410 "The attribute reported in answer to this request is B<UNIX_DIAG_NAME>. The "
411 "payload associated with this attribute is the pathname to which the socket "
412 "was bound (a sequence of bytes up to B<UNIX_PATH_MAX> size)."
413 msgstr ""
414 "Атрибут, возвращаемый в ответе на этот запрос — B<UNIX_DIAG_NAME>. Полезные "
415 "данные, связанные с этим атрибутом — путь, с которым был связан сокет "
416 "(последовательность байт длиной до B<UNIX_PATH_MAX>)."
417
418 #. type: TP
419 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
420 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
421 #, no-wrap
422 msgid "B<UDIAG_SHOW_VFS>"
423 msgstr "B<UDIAG_SHOW_VFS>"
424
425 #. type: Plain text
426 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
427 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
428 msgid ""
429 "The attribute reported in answer to this request is B<UNIX_DIAG_VFS>. The "
430 "payload associated with this attribute is represented in the following "
431 "structure:"
432 msgstr ""
433 "Атрибут, возвращаемый в ответе на этот запрос — B<UNIX_DIAG_VFS>. Полезные "
434 "данные, связанные с этим атрибутом представляются следующей структурой:"
435
436 #. type: Plain text
437 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
438 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
439 #, no-wrap
440 msgid ""
441 "struct unix_diag_vfs {\n"
442 " __u32 udiag_vfs_dev;\n"
443 " __u32 udiag_vfs_ino;\n"
444 "};\n"
445 msgstr ""
446 "struct unix_diag_vfs {\n"
447 " __u32 udiag_vfs_dev;\n"
448 " __u32 udiag_vfs_ino;\n"
449 "};\n"
450
451 #. type: TP
452 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
453 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
454 #, no-wrap
455 msgid "I<udiag_vfs_dev>"
456 msgstr "I<udiag_vfs_dev>"
457
458 #. type: Plain text
459 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
460 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
461 msgid "The device number of the corresponding on-disk socket inode."
462 msgstr "Номер устройства, соответствующего иноде сокета на диске."
463
464 #. type: TP
465 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
466 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
467 #, no-wrap
468 msgid "I<udiag_vfs_ino>"
469 msgstr "I<udiag_vfs_ino>"
470
471 #. type: Plain text
472 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
473 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
474 msgid "The inode number of the corresponding on-disk socket inode."
475 msgstr "Номер иноды, соответствующей иноде сокета на диске."
476
477 #. type: TP
478 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
479 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
480 #, no-wrap
481 msgid "B<UDIAG_SHOW_PEER>"
482 msgstr "B<UDIAG_SHOW_PEER>"
483
484 #. type: Plain text
485 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
486 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
487 msgid ""
488 "The attribute reported in answer to this request is B<UNIX_DIAG_PEER>. The "
489 "payload associated with this attribute is a __u32 value which is the peer's "
490 "inode number. This attribute is reported for connected sockets only."
491 msgstr ""
492 "Атрибут, возвращаемый в ответе на этот запрос — B<UNIX_DIAG_PEER>. Полезные "
493 "данные, связанные с этим атрибутом — значение __u32, представляющее номер "
494 "иноды ответной стороны. Данный атрибут возвращается только для соединённых "
495 "сокетов."
496
497 #. type: TP
498 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
499 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
500 #, no-wrap
501 msgid "B<UDIAG_SHOW_ICONS>"
502 msgstr "B<UDIAG_SHOW_ICONS>"
503
504 #. type: Plain text
505 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
506 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
507 msgid ""
508 "The attribute reported in answer to this request is B<UNIX_DIAG_ICONS>. The "
509 "payload associated with this attribute is an array of __u32 values which are "
510 "inode numbers of sockets that has passed the B<connect>(2) call, but hasn't "
511 "been processed with B<accept>(2) yet. This attribute is reported for "
512 "listening sockets only."
513 msgstr ""
514 "Атрибут, возвращаемый в ответе на этот запрос — B<UNIX_DIAG_ICONS>. Полезные "
515 "данные, связанные с этим атрибутом — значения __u32, представляющие номера "
516 "инод сокетов, которые переданы вызову B<connect>(2), но ещё не были "
517 "обработаны B<accept>(2). Данный атрибут возвращается, если запрашивается "
518 "список сокетов."
519
520 #. type: TP
521 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
522 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
523 #, no-wrap
524 msgid "B<UDIAG_SHOW_RQLEN>"
525 msgstr "B<UDIAG_SHOW_RQLEN>"
526
527 #. type: Plain text
528 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
529 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
530 msgid ""
531 "The attribute reported in answer to this request is B<UNIX_DIAG_RQLEN>. The "
532 "payload associated with this attribute is represented in the following "
533 "structure:"
534 msgstr ""
535 "Атрибут, возвращаемый в ответе на этот запрос — B<UNIX_DIAG_RQLEN>. Полезные "
536 "данные, связанные с этим атрибутом представляются следующей структурой:"
537
538 #. type: Plain text
539 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
540 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
541 #, no-wrap
542 msgid ""
543 "struct unix_diag_rqlen {\n"
544 " __u32 udiag_rqueue;\n"
545 " __u32 udiag_wqueue;\n"
546 "};\n"
547 msgstr ""
548 "struct unix_diag_rqlen {\n"
549 " __u32 udiag_rqueue;\n"
550 " __u32 udiag_wqueue;\n"
551 "};\n"
552
553 #. type: TP
554 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
555 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
556 #, no-wrap
557 msgid "I<udiag_rqueue>"
558 msgstr "I<udiag_rqueue>"
559
560 #. type: Plain text
561 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
562 #: opensuse-leap-16-1 opensuse-tumbleweed
563 #, fuzzy
564 #| msgid ""
565 #| "For listening sockets: the number of pending connections. The length of "
566 #| "the array associated with the B<UNIX_DIAG_ICONS> response attribute is "
567 #| "equal to this value."
568 msgid ""
569 "For listening sockets: the number of pending connections. The size of the "
570 "array associated with the B<UNIX_DIAG_ICONS> response attribute is equal to "
571 "this value."
572 msgstr ""
573 "Для слушающих сокетов: количество ожидающих подключений. Этому значению "
574 "равна длина массива, связанного с атрибутом ответа B<UNIX_DIAG_ICONS>."
575
576 #. type: Plain text
577 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
578 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
579 msgid "For established sockets: the amount of data in incoming queue."
580 msgstr ""
581 "Для сокетов с установленным соединением: количество данных во входящей "
582 "очереди."
583
584 #. type: TP
585 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
586 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
587 #, no-wrap
588 msgid "I<udiag_wqueue>"
589 msgstr "I<udiag_wqueue>"
590
591 #. type: Plain text
592 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
593 #: opensuse-leap-16-1 opensuse-tumbleweed
594 #, fuzzy
595 #| msgid ""
596 #| "For listening sockets: the backlog length which equals to the value "
597 #| "passed as the second argument to B<listen>(2)."
598 msgid ""
599 "For listening sockets: the backlog size which equals to the value passed as "
600 "the second argument to B<listen>(2)."
601 msgstr ""
602 "Для слушающих сокетов: длина недодела (backlog), равная значению, "
603 "переданному во втором аргументе B<listen>(2)."
604
605 #. type: Plain text
606 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
607 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
608 msgid "For established sockets: the amount of memory available for sending."
609 msgstr ""
610 "Для сокетов с установленным соединением: количество памяти, доступной при "
611 "отправке."
612
613 #. type: TP
614 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
615 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
616 #, no-wrap
617 msgid "B<UDIAG_SHOW_MEMINFO>"
618 msgstr "B<UDIAG_SHOW_MEMINFO>"
619
620 #. type: Plain text
621 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
622 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
623 msgid ""
624 "The attribute reported in answer to this request is B<UNIX_DIAG_MEMINFO>. "
625 "The payload associated with this attribute is an array of __u32 values "
626 "described below in the subsection \"Socket memory information\"."
627 msgstr ""
628 "Атрибут, возвращаемый в ответе на этот запрос — B<UNIX_DIAG_MEMINFO>. "
629 "Полезные данные, связанные с этим атрибутом представляют собой массив "
630 "значений с типом __u32,описанный далее в подразделе «Информация о памяти "
631 "сокетов»."
632
633 #. type: Plain text
634 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
635 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
636 msgid ""
637 "The following attributes are reported back without any specific request:"
638 msgstr "Следующие атрибуты возвращаются для любого запроса:"
639
640 #. type: TP
641 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
642 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
643 #, no-wrap
644 msgid "B<UNIX_DIAG_SHUTDOWN>"
645 msgstr "B<UNIX_DIAG_SHUTDOWN>"
646
647 #. type: Plain text
648 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
649 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
650 msgid ""
651 "The payload associated with this attribute is __u8 value which represents "
652 "bits of B<shutdown>(2) state."
653 msgstr ""
654 "Полезные данные, связанные с этим атрибутом, имеют тип __u8 и представляют "
655 "биты состояния из B<shutdown>(2)."
656
657 #. type: TP
658 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
659 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
660 #, no-wrap
661 msgid "I<udiag_cookie>"
662 msgstr "I<udiag_cookie>"
663
664 #. type: Plain text
665 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
666 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
667 msgid ""
668 "This is an array of opaque identifiers that could be used along with "
669 "I<udiag_ino> to specify an individual socket. It is ignored when querying "
670 "for a list of sockets, as well as when all its elements are set to -1."
671 msgstr ""
672 "Массив скрытых идентификаторов, которые можно использовать вместе с "
673 "I<udiag_ino> для указания определённого сокета. Игнорируется при запросе "
674 "списка сокетов, а также когда все его элементы равны -1."
675
676 #. type: Plain text
677 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
678 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
679 msgid ""
680 "The response to a query for UNIX domain sockets is represented as an array of"
681 msgstr "Ответ на запрос о доменных сокетах UNIX представляется в виде массива"
682
683 #. type: Plain text
684 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
685 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
686 #, no-wrap
687 msgid ""
688 "struct unix_diag_msg {\n"
689 " __u8 udiag_family;\n"
690 " __u8 udiag_type;\n"
691 " __u8 udiag_state;\n"
692 " __u8 pad;\n"
693 " __u32 udiag_ino;\n"
694 " __u32 udiag_cookie[2];\n"
695 "};\n"
696 msgstr ""
697 "struct unix_diag_msg {\n"
698 " __u8 udiag_family;\n"
699 " __u8 udiag_type;\n"
700 " __u8 udiag_state;\n"
701 " __u8 pad;\n"
702 " __u32 udiag_ino;\n"
703 " __u32 udiag_cookie[2];\n"
704 "};\n"
705
706 #. type: Plain text
707 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
708 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
709 msgid "followed by netlink attributes."
710 msgstr "и следует за атрибутами netlink."
711
712 #. type: TP
713 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
714 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
715 #, no-wrap
716 msgid "I<udiag_family>"
717 msgstr "I<udiag_family>"
718
719 #. type: Plain text
720 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
721 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
722 msgid "This field has the same meaning as in I<struct unix_diag_req>."
723 msgstr "Данное поле имеет то же значение что в I<struct unix_diag_req>."
724
725 #. type: TP
726 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
727 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
728 #, no-wrap
729 msgid "I<udiag_type>"
730 msgstr "I<udiag_type>"
731
732 #. type: Plain text
733 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
734 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
735 msgid ""
736 "This is set to one of B<SOCK_PACKET>, B<SOCK_STREAM>, or B<SOCK_SEQPACKET>."
737 msgstr "Может быть B<SOCK_PACKET>, B<SOCK_STREAM> или B<SOCK_SEQPACKET>."
738
739 #. type: TP
740 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
741 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
742 #, no-wrap
743 msgid "I<udiag_state>"
744 msgstr "I<udiag_state>"
745
746 #. type: Plain text
747 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
748 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
749 msgid "This is set to one of B<TCP_LISTEN> or B<TCP_ESTABLISHED>."
750 msgstr "Может быть B<TCP_LISTEN> или B<TCP_ESTABLISHED>."
751
752 #. type: Plain text
753 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
754 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
755 msgid "This field is set to 0."
756 msgstr "Это поле равно 0."
757
758 #. type: Plain text
759 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
760 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
761 msgid "This is the socket inode number."
762 msgstr "Номер иноды сокета."
763
764 #. type: Plain text
765 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
766 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
767 msgid ""
768 "This is an array of opaque identifiers that could be used in subsequent "
769 "queries."
770 msgstr ""
771 "Массив скрытых идентификаторов, которые можно использовать в последующих "
772 "запросах."
773
774 #. type: SS
775 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
776 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
777 #, no-wrap
778 msgid "IPv4 and IPv6 sockets"
779 msgstr "Сокеты IPv4 и IPv6"
780
781 #. type: Plain text
782 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
783 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
784 msgid ""
785 "For IPv4 and IPv6 sockets, the request is represented in the following "
786 "structure:"
787 msgstr "Запрос сокетов IPv4 и IPv6 описывается в следующей структуре:"
788
789 #. type: Plain text
790 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
791 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
792 #, no-wrap
793 msgid ""
794 "struct inet_diag_req_v2 {\n"
795 " __u8 sdiag_family;\n"
796 " __u8 sdiag_protocol;\n"
797 " __u8 idiag_ext;\n"
798 " __u8 pad;\n"
799 " __u32 idiag_states;\n"
800 " struct inet_diag_sockid id;\n"
801 "};\n"
802 msgstr ""
803 "struct inet_diag_req_v2 {\n"
804 " __u8 sdiag_family;\n"
805 " __u8 sdiag_protocol;\n"
806 " __u8 idiag_ext;\n"
807 " __u8 pad;\n"
808 " __u32 idiag_states;\n"
809 " struct inet_diag_sockid id;\n"
810 "};\n"
811
812 #. type: Plain text
813 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
814 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
815 msgid "where I<struct inet_diag_sockid> is defined as follows:"
816 msgstr "где I<struct inet_diag_sockid> определена как:"
817
818 #. type: Plain text
819 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
820 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
821 #, no-wrap
822 msgid ""
823 "struct inet_diag_sockid {\n"
824 " __be16 idiag_sport;\n"
825 " __be16 idiag_dport;\n"
826 " __be32 idiag_src[4];\n"
827 " __be32 idiag_dst[4];\n"
828 " __u32 idiag_if;\n"
829 " __u32 idiag_cookie[2];\n"
830 "};\n"
831 msgstr ""
832 "struct inet_diag_sockid {\n"
833 " __be16 idiag_sport;\n"
834 " __be16 idiag_dport;\n"
835 " __be32 idiag_src[4];\n"
836 " __be32 idiag_dst[4];\n"
837 " __u32 idiag_if;\n"
838 " __u32 idiag_cookie[2];\n"
839 "};\n"
840
841 #. type: Plain text
842 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
843 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
844 msgid "The fields of I<struct inet_diag_req_v2> are as follows:"
845 msgstr "Поля I<struct inet_diag_req_v2>:"
846
847 #. type: Plain text
848 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
849 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
850 msgid ""
851 "This should be set to either B<AF_INET> or B<AF_INET6> for IPv4 or IPv6 "
852 "sockets respectively."
853 msgstr ""
854 "Должно быть равно B<AF_INET> или B<AF_INET6> для сокетов IPv4 или IPv6, "
855 "соответственно."
856
857 #. type: Plain text
858 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
859 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
860 msgid ""
861 "This should be set to one of B<IPPROTO_TCP>, B<IPPROTO_UDP>, or "
862 "B<IPPROTO_UDPLITE>."
863 msgstr ""
864 "Должно быть равно B<IPPROTO_TCP>, B<IPPROTO_UDP> или B<IPPROTO_UDPLITE>."
865
866 #. type: TP
867 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
868 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
869 #, no-wrap
870 msgid "I<idiag_ext>"
871 msgstr "I<idiag_ext>"
872
873 #. type: Plain text
874 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
875 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
876 msgid ""
877 "This is a set of flags defining what kind of extended information to "
878 "report. Each requested kind of information is reported back as a netlink "
879 "attribute as described below:"
880 msgstr ""
881 "Набор флагов, определяющий тип возвращаемой расширенной информации. Каждый "
882 "запрашиваемый тип информации возвращается в виде атрибута netlink, "
883 "описанного ниже:"
884
885 #. type: TP
886 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
887 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
888 #, no-wrap
889 msgid "B<INET_DIAG_TOS>"
890 msgstr "B<INET_DIAG_TOS>"
891
892 #. type: Plain text
893 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
894 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
895 msgid ""
896 "The payload associated with this attribute is a __u8 value which is the TOS "
897 "of the socket."
898 msgstr ""
899 "Полезные данные, связанные с этим атрибутом, имеют тип __u8 и представляют "
900 "TOS сокета."
901
902 #. type: TP
903 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
904 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
905 #, no-wrap
906 msgid "B<INET_DIAG_TCLASS>"
907 msgstr "B<INET_DIAG_TCLASS>"
908
909 #. type: Plain text
910 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
911 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
912 msgid ""
913 "The payload associated with this attribute is a __u8 value which is the "
914 "TClass of the socket. IPv6 sockets only. For LISTEN and CLOSE sockets, "
915 "this is followed by B<INET_DIAG_SKV6ONLY> attribute with associated __u8 "
916 "payload value meaning whether the socket is IPv6-only or not."
917 msgstr ""
918 "Полезные данные, связанные с этим атрибутом, имеют тип __u8 и представляют "
919 "TClass сокета. Только для сокетов IPv6. Для сокетов LISTEN и CLOSE эти "
920 "данные следуют за атрибутом B<INET_DIAG_SKV6ONLY> с значением полезных "
921 "данных (тип __u8), описывающим является ли сокет только IPv6 или нет."
922
923 #. type: TP
924 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
925 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
926 #, no-wrap
927 msgid "B<INET_DIAG_MEMINFO>"
928 msgstr "B<INET_DIAG_MEMINFO>"
929
930 #. type: Plain text
931 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
932 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
933 msgid ""
934 "The payload associated with this attribute is represented in the following "
935 "structure:"
936 msgstr ""
937 "Полезные данные, связанные с этим атрибутом представляются следующей "
938 "структурой:"
939
940 #. type: Plain text
941 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
942 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
943 #, no-wrap
944 msgid ""
945 "struct inet_diag_meminfo {\n"
946 " __u32 idiag_rmem;\n"
947 " __u32 idiag_wmem;\n"
948 " __u32 idiag_fmem;\n"
949 " __u32 idiag_tmem;\n"
950 "};\n"
951 msgstr ""
952 "struct inet_diag_meminfo {\n"
953 " __u32 idiag_rmem;\n"
954 " __u32 idiag_wmem;\n"
955 " __u32 idiag_fmem;\n"
956 " __u32 idiag_tmem;\n"
957 "};\n"
958
959 #. type: TP
960 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
961 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
962 #, no-wrap
963 msgid "I<idiag_rmem>"
964 msgstr "I<idiag_rmem>"
965
966 #. type: Plain text
967 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
968 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
969 msgid "The amount of data in the receive queue."
970 msgstr "Количество данных в приёмной очереди."
971
972 #. type: TP
973 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
974 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
975 #, no-wrap
976 msgid "I<idiag_wmem>"
977 msgstr "I<idiag_wmem>"
978
979 #. type: Plain text
980 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
981 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
982 msgid "The amount of data that is queued by TCP but not yet sent."
983 msgstr "Количество данных, помещённых в очередь TCP и ещё не отправленных."
984
985 #. type: TP
986 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
987 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
988 #, no-wrap
989 msgid "I<idiag_fmem>"
990 msgstr "I<idiag_fmem>"
991
992 #. type: Plain text
993 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
994 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
995 msgid "The amount of memory scheduled for future use (TCP only)."
996 msgstr ""
997 "Объём памяти, запланированной для использования в будущем (только TCP)."
998
999 #. type: TP
1000 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1001 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1002 #, no-wrap
1003 msgid "I<idiag_tmem>"
1004 msgstr "I<idiag_tmem>"
1005
1006 #. type: Plain text
1007 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1008 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1009 msgid "The amount of data in send queue."
1010 msgstr "Количество данных в очереди отправки."
1011
1012 #. type: TP
1013 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1014 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1015 #, no-wrap
1016 msgid "B<INET_DIAG_SKMEMINFO>"
1017 msgstr "B<INET_DIAG_SKMEMINFO>"
1018
1019 #. type: Plain text
1020 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1021 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1022 msgid ""
1023 "The payload associated with this attribute is an array of __u32 values "
1024 "described below in the subsection \"Socket memory information\"."
1025 msgstr ""
1026 "Полезные данные, связанные с этим атрибутом представляют собой массив "
1027 "значений с типом __u32,описанный далее в подразделе «Информация о памяти "
1028 "сокетов»."
1029
1030 #. type: TP
1031 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1032 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1033 #, no-wrap
1034 msgid "B<INET_DIAG_INFO>"
1035 msgstr "B<INET_DIAG_INFO>"
1036
1037 #. type: Plain text
1038 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1039 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1040 msgid ""
1041 "The payload associated with this attribute is specific to the address "
1042 "family. For TCP sockets, it is an object of type I<struct tcp_info>."
1043 msgstr ""
1044 "Полезные данные, связанные с этим атрибутом, относятся к определённому "
1045 "семейству адресов. Для сокетов TCP объект имеет тип I<struct tcp_info>."
1046
1047 #. type: TP
1048 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1049 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1050 #, no-wrap
1051 msgid "B<INET_DIAG_CONG>"
1052 msgstr "B<INET_DIAG_CONG>"
1053
1054 #. type: Plain text
1055 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1056 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1057 msgid ""
1058 "The payload associated with this attribute is a string that describes the "
1059 "congestion control algorithm used. For TCP sockets only."
1060 msgstr ""
1061 "Полезные данные, связанные с этим атрибутом, представляют собой строку, "
1062 "описывающую используемый алгоритм контроля перегрузки. Только для сокетов "
1063 "TCP."
1064
1065 #. type: Plain text
1066 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1067 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1068 msgid "This should be set to 0."
1069 msgstr "Должно равняться 0."
1070
1071 #. type: TP
1072 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1073 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1074 #, no-wrap
1075 msgid "I<idiag_states>"
1076 msgstr "I<idiag_states>"
1077
1078 #. type: Plain text
1079 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1080 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1081 msgid ""
1082 "This is a bit mask that defines a filter of socket states. Only those "
1083 "sockets whose states are in this mask will be reported. Ignored when "
1084 "querying for an individual socket."
1085 msgstr ""
1086 "Битовая маска, описывающая фильтр состояний сокета. Будут возвращены только "
1087 "сокеты с состояниями из этой маски. Игнорируется, если запрашивается "
1088 "конкретный сокет."
1089
1090 #. type: TP
1091 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1092 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1093 #, no-wrap
1094 msgid "I<id>"
1095 msgstr "I<id>"
1096
1097 #. type: Plain text
1098 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1099 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1100 msgid ""
1101 "This is a socket ID object that is used in dump requests, in queries about "
1102 "individual sockets, and is reported back in each response. Unlike UNIX "
1103 "domain sockets, IPv4 and IPv6 sockets are identified using addresses and "
1104 "ports. All values are in network byte order."
1105 msgstr ""
1106 "Идентификатор объекта сокета, использующийся при запросах дампа, в опросах "
1107 "отдельных сокетов и возвращается в каждом ответе. В отличие от доменных "
1108 "сокетов UNIX, сокеты IPv4 и IPv6 опознаются по адресам и портам. Все "
1109 "значения указываются в сетевом порядке байт."
1110
1111 #. type: Plain text
1112 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1113 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1114 msgid "The fields of I<struct inet_diag_sockid> are as follows:"
1115 msgstr "Поля I<struct inet_diag_sockid>:"
1116
1117 #. type: TP
1118 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1119 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1120 #, no-wrap
1121 msgid "I<idiag_sport>"
1122 msgstr "I<idiag_sport>"
1123
1124 #. type: Plain text
1125 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1126 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1127 msgid "The source port."
1128 msgstr "Порт отправителя."
1129
1130 #. type: TP
1131 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1132 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1133 #, no-wrap
1134 msgid "I<idiag_dport>"
1135 msgstr "I<idiag_dport>"
1136
1137 #. type: Plain text
1138 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1139 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1140 msgid "The destination port."
1141 msgstr "Порт получателя."
1142
1143 #. type: TP
1144 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1145 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1146 #, no-wrap
1147 msgid "I<idiag_src>"
1148 msgstr "I<idiag_src>"
1149
1150 #. type: Plain text
1151 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1152 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1153 msgid "The source address."
1154 msgstr "Адрес отправителя."
1155
1156 #. type: TP
1157 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1158 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1159 #, no-wrap
1160 msgid "I<idiag_dst>"
1161 msgstr "I<idiag_dst>"
1162
1163 #. type: Plain text
1164 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1165 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1166 msgid "The destination address."
1167 msgstr "Адрес получателя."
1168
1169 #. type: TP
1170 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1171 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1172 #, no-wrap
1173 msgid "I<idiag_if>"
1174 msgstr "I<idiag_if>"
1175
1176 #. type: Plain text
1177 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1178 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1179 msgid "The interface number the socket is bound to."
1180 msgstr "Интерфейсный номер к которому привязан сокет."
1181
1182 #. type: TP
1183 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1184 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1185 #, no-wrap
1186 msgid "I<idiag_cookie>"
1187 msgstr "I<idiag_cookie>"
1188
1189 #. type: Plain text
1190 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1191 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1192 msgid ""
1193 "This is an array of opaque identifiers that could be used along with other "
1194 "fields of this structure to specify an individual socket. It is ignored "
1195 "when querying for a list of sockets, as well as when all its elements are "
1196 "set to -1."
1197 msgstr ""
1198 "Массив скрытых идентификаторов, которые можно использовать вместе с другими "
1199 "полями этой структуры для указания определённого сокета. Игнорируется при "
1200 "запросе списка сокетов, а также когда все его элементы равны -1."
1201
1202 #. type: Plain text
1203 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1204 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1205 msgid ""
1206 "The response to a query for IPv4 or IPv6 sockets is represented as an array "
1207 "of"
1208 msgstr "Ответ на запрос о сокетах IPv4 или IPv6 представляется в виде массива"
1209
1210 #. type: Plain text
1211 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1212 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1213 #, fuzzy, no-wrap
1214 #| msgid ""
1215 #| "struct unix_diag_req {\n"
1216 #| " __u8 sdiag_family;\n"
1217 #| " __u8 sdiag_protocol;\n"
1218 #| " __u16 pad;\n"
1219 #| " __u32 udiag_states;\n"
1220 #| " __u32 udiag_ino;\n"
1221 #| " __u32 udiag_show;\n"
1222 #| " __u32 udiag_cookie[2];\n"
1223 #| "};\n"
1224 msgid ""
1225 "struct inet_diag_msg {\n"
1226 " __u8 idiag_family;\n"
1227 " __u8 idiag_state;\n"
1228 " __u8 idiag_timer;\n"
1229 " __u8 idiag_retrans;\n"
1230 "\\&\n"
1231 " struct inet_diag_sockid id;\n"
1232 "\\&\n"
1233 " __u32 idiag_expires;\n"
1234 " __u32 idiag_rqueue;\n"
1235 " __u32 idiag_wqueue;\n"
1236 " __u32 idiag_uid;\n"
1237 " __u32 idiag_inode;\n"
1238 "};\n"
1239 msgstr ""
1240 "struct unix_diag_req {\n"
1241 " __u8 sdiag_family;\n"
1242 " __u8 sdiag_protocol;\n"
1243 " __u16 pad;\n"
1244 " __u32 udiag_states;\n"
1245 " __u32 udiag_ino;\n"
1246 " __u32 udiag_show;\n"
1247 " __u32 udiag_cookie[2];\n"
1248 "};\n"
1249
1250 #. type: TP
1251 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1252 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1253 #, no-wrap
1254 msgid "I<idiag_family>"
1255 msgstr "I<idiag_family>"
1256
1257 #. type: Plain text
1258 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1259 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1260 msgid "This is the same field as in I<struct inet_diag_req_v2>."
1261 msgstr "Это тоже поле что и в I<struct inet_diag_req_v2>."
1262
1263 #. type: TP
1264 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1265 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1266 #, no-wrap
1267 msgid "I<idiag_state>"
1268 msgstr "I<idiag_state>"
1269
1270 #. type: Plain text
1271 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1272 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1273 msgid "This denotes socket state as in I<struct inet_diag_req_v2>."
1274 msgstr "Обозначает состояние сокета как в I<struct inet_diag_req_v2>."
1275
1276 #. type: TP
1277 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1278 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1279 #, no-wrap
1280 msgid "I<idiag_timer>"
1281 msgstr "I<idiag_timer>"
1282
1283 #. type: Plain text
1284 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1285 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1286 msgid ""
1287 "For TCP sockets, this field describes the type of timer that is currently "
1288 "active for the socket. It is set to one of the following constants:"
1289 msgstr ""
1290 "Для сокетов TCP это поле описывает тип активного в данный момент таймера "
1291 "сокета. Задаётся одной из следующих констант:"
1292
1293 #. type: TP
1294 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1295 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1296 #, no-wrap
1297 msgid "B<0>"
1298 msgstr "B<0>"
1299
1300 #. type: Plain text
1301 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1302 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1303 msgid "no timer is active"
1304 msgstr "таймер не активен"
1305
1306 #. type: TP
1307 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1308 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1309 #, no-wrap
1310 msgid "B<1>"
1311 msgstr "B<1>"
1312
1313 #. type: Plain text
1314 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1315 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1316 msgid "a retransmit timer"
1317 msgstr "таймер повторной передачи"
1318
1319 #. type: TP
1320 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1321 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1322 #, no-wrap
1323 msgid "B<2>"
1324 msgstr "B<2>"
1325
1326 #. type: Plain text
1327 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1328 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1329 msgid "a keep-alive timer"
1330 msgstr "таймер поддержания соединения"
1331
1332 #. type: TP
1333 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1334 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1335 #, no-wrap
1336 msgid "B<3>"
1337 msgstr "B<3>"
1338
1339 #. type: Plain text
1340 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1341 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1342 msgid "a TIME_WAIT timer"
1343 msgstr "таймер TIME_WAIT"
1344
1345 #. type: TP
1346 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1347 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1348 #, no-wrap
1349 msgid "B<4>"
1350 msgstr "B<4>"
1351
1352 #. type: Plain text
1353 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1354 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1355 msgid "a zero window probe timer"
1356 msgstr "таймер проверки нулевым окном"
1357
1358 #. type: Plain text
1359 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1360 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1361 msgid "For non-TCP sockets, this field is set to 0."
1362 msgstr "Для сокетов не TCP, значение этого поля равно 0."
1363
1364 #. type: TP
1365 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1366 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1367 #, no-wrap
1368 msgid "I<idiag_retrans>"
1369 msgstr "I<idiag_retrans>"
1370
1371 #. type: Plain text
1372 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1373 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1374 msgid ""
1375 "For I<idiag_timer> values 1, 2, and 4, this field contains the number of "
1376 "retransmits. For other I<idiag_timer> values, this field is set to 0."
1377 msgstr ""
1378 "Если I<idiag_timer> содержит 1, 2 и 4, то это поле содержит количество "
1379 "повторных передач. При других значениях I<idiag_timer> это поле равно 0."
1380
1381 #. type: TP
1382 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1383 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1384 #, no-wrap
1385 msgid "I<idiag_expires>"
1386 msgstr "I<idiag_expires>"
1387
1388 #. type: Plain text
1389 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1390 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1391 msgid ""
1392 "For TCP sockets that have an active timer, this field describes its "
1393 "expiration time in milliseconds. For other sockets, this field is set to 0."
1394 msgstr ""
1395 "Для сокетов TCP, имеющих активный таймер, это поле описывает его время "
1396 "окончания в миллисекундах. Для других сокетов значение этого поля равно 0."
1397
1398 #. type: TP
1399 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1400 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1401 #, no-wrap
1402 msgid "I<idiag_rqueue>"
1403 msgstr "I<idiag_rqueue>"
1404
1405 #. type: Plain text
1406 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1407 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1408 msgid "For listening sockets: the number of pending connections."
1409 msgstr "Для слушающих сокетов: количество ожидающих подключений."
1410
1411 #. type: Plain text
1412 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1413 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1414 msgid "For other sockets: the amount of data in the incoming queue."
1415 msgstr "Для других сокетов: количество данных во входящей очереди."
1416
1417 #. type: TP
1418 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1419 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1420 #, no-wrap
1421 msgid "I<idiag_wqueue>"
1422 msgstr "I<idiag_wqueue>"
1423
1424 #. type: Plain text
1425 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1426 #: opensuse-leap-16-1 opensuse-tumbleweed
1427 #, fuzzy
1428 #| msgid "For listening sockets: the backlog length."
1429 msgid "For listening sockets: the backlog size."
1430 msgstr "Для слушающих сокетов: длина недодела (backlog)."
1431
1432 #. type: Plain text
1433 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1434 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1435 msgid "For other sockets: the amount of memory available for sending."
1436 msgstr "Для других сокетов: количество памяти, доступной при отправке."
1437
1438 #. type: TP
1439 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1440 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1441 #, no-wrap
1442 msgid "I<idiag_uid>"
1443 msgstr "I<idiag_uid>"
1444
1445 #. type: Plain text
1446 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1447 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1448 msgid "This is the socket owner UID."
1449 msgstr "Идентификатор пользователя, владеющего сокетом."
1450
1451 #. type: TP
1452 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1453 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1454 #, no-wrap
1455 msgid "I<idiag_inode>"
1456 msgstr "I<idiag_inode>"
1457
1458 #. type: SS
1459 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1460 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1461 #, no-wrap
1462 msgid "Socket memory information"
1463 msgstr "Информация о памяти сокетов"
1464
1465 #. type: Plain text
1466 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1467 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1468 msgid ""
1469 "The payload associated with B<UNIX_DIAG_MEMINFO> and B<INET_DIAG_SKMEMINFO> "
1470 "netlink attributes is an array of the following __u32 values:"
1471 msgstr ""
1472 "Полезные данные, связанные с атрибутами netlink B<UNIX_DIAG_MEMINFO> и "
1473 "B<INET_DIAG_SKMEMINFO>, представляют собой массив следующих значений с типом "
1474 "__u32:"
1475
1476 #. type: TP
1477 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1478 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1479 #, no-wrap
1480 msgid "B<SK_MEMINFO_RMEM_ALLOC>"
1481 msgstr "B<SK_MEMINFO_RMEM_ALLOC>"
1482
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 "The amount of data in receive queue."
1487 msgstr "Количество данных в приёмной очереди."
1488
1489 #. type: TP
1490 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1491 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1492 #, no-wrap
1493 msgid "B<SK_MEMINFO_RCVBUF>"
1494 msgstr "B<SK_MEMINFO_RCVBUF>"
1495
1496 #. type: Plain text
1497 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1498 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1499 msgid "The receive socket buffer as set by B<SO_RCVBUF>."
1500 msgstr "Приёмный буфер сокета, заданный B<SO_RCVBUF>."
1501
1502 #. type: TP
1503 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1504 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1505 #, no-wrap
1506 msgid "B<SK_MEMINFO_WMEM_ALLOC>"
1507 msgstr "B<SK_MEMINFO_WMEM_ALLOC>"
1508
1509 #. type: TP
1510 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1511 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1512 #, no-wrap
1513 msgid "B<SK_MEMINFO_SNDBUF>"
1514 msgstr "B<SK_MEMINFO_SNDBUF>"
1515
1516 #. type: Plain text
1517 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1518 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1519 msgid "The send socket buffer as set by B<SO_SNDBUF>."
1520 msgstr "Буфер отправки сокета, заданный B<SO_SNDBUF>."
1521
1522 #. type: TP
1523 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1524 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1525 #, no-wrap
1526 msgid "B<SK_MEMINFO_FWD_ALLOC>"
1527 msgstr "B<SK_MEMINFO_FWD_ALLOC>"
1528
1529 #. type: TP
1530 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1531 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1532 #, no-wrap
1533 msgid "B<SK_MEMINFO_WMEM_QUEUED>"
1534 msgstr "B<SK_MEMINFO_WMEM_QUEUED>"
1535
1536 #. type: Plain text
1537 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1538 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1539 msgid "The amount of data queued by TCP, but not yet sent."
1540 msgstr "Количество данных, помещённых в очередь TCP, но ещё не отправленных."
1541
1542 #. type: TP
1543 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1544 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1545 #, no-wrap
1546 msgid "B<SK_MEMINFO_OPTMEM>"
1547 msgstr "B<SK_MEMINFO_OPTMEM>"
1548
1549 #. type: Plain text
1550 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1551 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1552 msgid ""
1553 "The amount of memory allocated for the socket's service needs (e.g., socket "
1554 "filter)."
1555 msgstr ""
1556 "Объем памяти, выделенный для служебных нужд сокета (например, для сокетного "
1557 "фильтра)."
1558
1559 #. type: TP
1560 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1561 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1562 #, no-wrap
1563 msgid "B<SK_MEMINFO_BACKLOG>"
1564 msgstr "B<SK_MEMINFO_BACKLOG>"
1565
1566 #. type: Plain text
1567 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1568 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1569 msgid "The amount of packets in the backlog (not yet processed)."
1570 msgstr "Количество пакетов в памяти недодела (не обработанных)."
1571
1572 #. type: SH
1573 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1574 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1575 #, no-wrap
1576 msgid "VERSIONS"
1577 msgstr "ВЕРСИИ"
1578
1579 #. type: Plain text
1580 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1581 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1582 msgid ""
1583 "B<NETLINK_INET_DIAG> was introduced in Linux 2.6.14 and supported B<AF_INET> "
1584 "and B<AF_INET6> sockets only. In Linux 3.3, it was renamed to "
1585 "B<NETLINK_SOCK_DIAG> and extended to support B<AF_UNIX> sockets."
1586 msgstr ""
1587 "Программный интерфейс B<NETLINK_INET_DIAG> появился в Linux 2.6.14 и "
1588 "поддерживал только сокеты B<AF_INET> и B<AF_INET6>. В Linux 3.3 он был "
1589 "переименован в B<NETLINK_SOCK_DIAG> и появилась поддержка сокетов B<AF_UNIX>."
1590
1591 #. type: Plain text
1592 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1593 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1594 msgid ""
1595 "B<UNIX_DIAG_MEMINFO> and B<INET_DIAG_SKMEMINFO> were introduced in Linux 3.6."
1596 msgstr ""
1597 "Программный интерфейс B<UNIX_DIAG_MEMINFO> и B<INET_DIAG_SKMEMINFO> появился "
1598 "в Linux 3.6."
1599
1600 #. type: SH
1601 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1602 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1603 #, no-wrap
1604 msgid "STANDARDS"
1605 msgstr "СТАНДАРТЫ"
1606
1607 #. type: Plain text
1608 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1609 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1610 msgid "Linux."
1611 msgstr "Linux."
1612
1613 #. type: SH
1614 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1615 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1616 #, no-wrap
1617 msgid "EXAMPLES"
1618 msgstr "ПРИМЕРЫ"
1619
1620 #. type: Plain text
1621 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1622 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1623 msgid ""
1624 "The following example program prints inode number, peer's inode number, and "
1625 "name of all UNIX domain sockets in the current namespace."
1626 msgstr ""
1627 "Следующий пример программы печатает номер иноды, номер иноды противоположной "
1628 "стороны и имена всех доменных сокетов UNIX в текущем пространстве имён."
1629
1630 #. type: Plain text
1631 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1632 #: opensuse-leap-16-1 opensuse-tumbleweed
1633 #, no-wrap
1634 msgid ""
1635 "#include E<lt>errno.hE<gt>\n"
1636 "#include E<lt>stdio.hE<gt>\n"
1637 "#include E<lt>string.hE<gt>\n"
1638 "#include E<lt>unistd.hE<gt>\n"
1639 "#include E<lt>sys/socket.hE<gt>\n"
1640 "#include E<lt>sys/un.hE<gt>\n"
1641 "#include E<lt>linux/netlink.hE<gt>\n"
1642 "#include E<lt>linux/rtnetlink.hE<gt>\n"
1643 "#include E<lt>linux/sock_diag.hE<gt>\n"
1644 "#include E<lt>linux/unix_diag.hE<gt>\n"
1645 "\\&\n"
1646 "static int\n"
1647 "send_query(int fd)\n"
1648 "{\n"
1649 " struct sockaddr_nl nladdr = {\n"
1650 " .nl_family = AF_NETLINK\n"
1651 " };\n"
1652 " struct\n"
1653 " {\n"
1654 " struct nlmsghdr nlh;\n"
1655 " struct unix_diag_req udr;\n"
1656 " } req = {\n"
1657 " .nlh = {\n"
1658 " .nlmsg_len = sizeof(req),\n"
1659 " .nlmsg_type = SOCK_DIAG_BY_FAMILY,\n"
1660 " .nlmsg_flags = NLM_F_REQUEST | NLM_F_DUMP\n"
1661 " },\n"
1662 " .udr = {\n"
1663 " .sdiag_family = AF_UNIX,\n"
1664 " .udiag_states = -1,\n"
1665 " .udiag_show = UDIAG_SHOW_NAME | UDIAG_SHOW_PEER\n"
1666 " }\n"
1667 " };\n"
1668 " struct iovec iov = {\n"
1669 " .iov_base = &req,\n"
1670 " .iov_len = sizeof(req)\n"
1671 " };\n"
1672 " struct msghdr msg = {\n"
1673 " .msg_name = &nladdr,\n"
1674 " .msg_namelen = sizeof(nladdr),\n"
1675 " .msg_iov = &iov,\n"
1676 " .msg_iovlen = 1\n"
1677 " };\n"
1678 "\\&\n"
1679 " for (;;) {\n"
1680 " if (sendmsg(fd, &msg, 0) E<lt> 0) {\n"
1681 " if (errno == EINTR)\n"
1682 " continue;\n"
1683 "\\&\n"
1684 " perror(\"sendmsg\");\n"
1685 " return -1;\n"
1686 " }\n"
1687 "\\&\n"
1688 " return 0;\n"
1689 " }\n"
1690 "}\n"
1691 "\\&\n"
1692 "static int\n"
1693 "print_diag(const struct unix_diag_msg *diag, unsigned int size)\n"
1694 "{\n"
1695 " if (size E<lt> NLMSG_LENGTH(sizeof(*diag))) {\n"
1696 " fputs(\"short response\\[rs]n\", stderr);\n"
1697 " return -1;\n"
1698 " }\n"
1699 " if (diag-E<gt>udiag_family != AF_UNIX) {\n"
1700 " fprintf(stderr, \"unexpected family %u\\[rs]n\", diag-E<gt>udiag_family);\n"
1701 " return -1;\n"
1702 " }\n"
1703 "\\&\n"
1704 " unsigned int rta_len = size - NLMSG_LENGTH(sizeof(*diag));\n"
1705 " unsigned int peer = 0;\n"
1706 " size_t path_len = 0;\n"
1707 " char path[sizeof(((struct sockaddr_un *) 0)-E<gt>sun_path) + 1];\n"
1708 "\\&\n"
1709 " for (struct rtattr *attr = (struct rtattr *) (diag + 1);\n"
1710 " RTA_OK(attr, rta_len); attr = RTA_NEXT(attr, rta_len)) {\n"
1711 " switch (attr-E<gt>rta_type) {\n"
1712 " case UNIX_DIAG_NAME:\n"
1713 " if (!path_len) {\n"
1714 " path_len = RTA_PAYLOAD(attr);\n"
1715 " if (path_len E<gt> sizeof(path) - 1)\n"
1716 " path_len = sizeof(path) - 1;\n"
1717 " memcpy(path, RTA_DATA(attr), path_len);\n"
1718 " path[path_len] = \\[aq]\\[rs]0\\[aq];\n"
1719 " }\n"
1720 " break;\n"
1721 "\\&\n"
1722 " case UNIX_DIAG_PEER:\n"
1723 " if (RTA_PAYLOAD(attr) E<gt>= sizeof(peer))\n"
1724 " peer = *(unsigned int *) RTA_DATA(attr);\n"
1725 " break;\n"
1726 " }\n"
1727 " }\n"
1728 "\\&\n"
1729 " printf(\"inode=%u\", diag-E<gt>udiag_ino);\n"
1730 "\\&\n"
1731 " if (peer)\n"
1732 " printf(\", peer=%u\", peer);\n"
1733 "\\&\n"
1734 " if (path_len)\n"
1735 " printf(\", name=%s%s\", *path ? \"\" : \"@\",\n"
1736 " *path ? path : path + 1);\n"
1737 "\\&\n"
1738 " putchar(\\[aq]\\[rs]n\\[aq]);\n"
1739 " return 0;\n"
1740 "}\n"
1741 "\\&\n"
1742 "static int\n"
1743 "receive_responses(int fd)\n"
1744 "{\n"
1745 " long buf[8192 / sizeof(long)];\n"
1746 " struct sockaddr_nl nladdr;\n"
1747 " struct iovec iov = {\n"
1748 " .iov_base = buf,\n"
1749 " .iov_len = sizeof(buf)\n"
1750 " };\n"
1751 " int flags = 0;\n"
1752 "\\&\n"
1753 " for (;;) {\n"
1754 " struct msghdr msg = {\n"
1755 " .msg_name = &nladdr,\n"
1756 " .msg_namelen = sizeof(nladdr),\n"
1757 " .msg_iov = &iov,\n"
1758 " .msg_iovlen = 1\n"
1759 " };\n"
1760 "\\&\n"
1761 " ssize_t ret = recvmsg(fd, &msg, flags);\n"
1762 "\\&\n"
1763 " if (ret E<lt> 0) {\n"
1764 " if (errno == EINTR)\n"
1765 " continue;\n"
1766 "\\&\n"
1767 " perror(\"recvmsg\");\n"
1768 " return -1;\n"
1769 " }\n"
1770 " if (ret == 0)\n"
1771 " return 0;\n"
1772 "\\&\n"
1773 " if (nladdr.nl_family != AF_NETLINK) {\n"
1774 " fputs(\"!AF_NETLINK\\[rs]n\", stderr);\n"
1775 " return -1;\n"
1776 " }\n"
1777 "\\&\n"
1778 " const struct nlmsghdr *h = (struct nlmsghdr *) buf;\n"
1779 "\\&\n"
1780 " if (!NLMSG_OK(h, ret)) {\n"
1781 " fputs(\"!NLMSG_OK\\[rs]n\", stderr);\n"
1782 " return -1;\n"
1783 " }\n"
1784 "\\&\n"
1785 " for (; NLMSG_OK(h, ret); h = NLMSG_NEXT(h, ret)) {\n"
1786 " if (h-E<gt>nlmsg_type == NLMSG_DONE)\n"
1787 " return 0;\n"
1788 "\\&\n"
1789 " if (h-E<gt>nlmsg_type == NLMSG_ERROR) {\n"
1790 " const struct nlmsgerr *err = NLMSG_DATA(h);\n"
1791 "\\&\n"
1792 " if (h-E<gt>nlmsg_len E<lt> NLMSG_LENGTH(sizeof(*err))) {\n"
1793 " fputs(\"NLMSG_ERROR\\[rs]n\", stderr);\n"
1794 " } else {\n"
1795 " errno = -err-E<gt>error;\n"
1796 " perror(\"NLMSG_ERROR\");\n"
1797 " }\n"
1798 "\\&\n"
1799 " return -1;\n"
1800 " }\n"
1801 "\\&\n"
1802 " if (h-E<gt>nlmsg_type != SOCK_DIAG_BY_FAMILY) {\n"
1803 " fprintf(stderr, \"unexpected nlmsg_type %u\\[rs]n\",\n"
1804 " (unsigned) h-E<gt>nlmsg_type);\n"
1805 " return -1;\n"
1806 " }\n"
1807 "\\&\n"
1808 " if (print_diag(NLMSG_DATA(h), h-E<gt>nlmsg_len))\n"
1809 " return -1;\n"
1810 " }\n"
1811 " }\n"
1812 "}\n"
1813 "\\&\n"
1814 "int\n"
1815 "main(void)\n"
1816 "{\n"
1817 " int fd = socket(AF_NETLINK, SOCK_RAW, NETLINK_SOCK_DIAG);\n"
1818 "\\&\n"
1819 " if (fd E<lt> 0) {\n"
1820 " perror(\"socket\");\n"
1821 " return 1;\n"
1822 " }\n"
1823 "\\&\n"
1824 " int ret = send_query(fd) || receive_responses(fd);\n"
1825 "\\&\n"
1826 " close(fd);\n"
1827 " return ret;\n"
1828 "}\n"
1829 msgstr ""
1830
1831 #. type: SH
1832 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1833 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1834 #, no-wrap
1835 msgid "SEE ALSO"
1836 msgstr "СМОТРИТЕ ТАКЖЕ"
1837
1838 #. type: Plain text
1839 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1840 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1841 msgid "B<netlink>(3), B<rtnetlink>(3), B<netlink>(7), B<tcp>(7)"
1842 msgstr "B<netlink>(3), B<rtnetlink>(3), B<netlink>(7), B<tcp>(7)"
1843
1844 #. type: TH
1845 #: debian-trixie
1846 #, no-wrap
1847 msgid "2024-06-15"
1848 msgstr "15 июня 2024 г."
1849
1850 #. type: TH
1851 #: debian-trixie
1852 #, no-wrap
1853 msgid "Linux man-pages 6.9.1"
1854 msgstr "Страницы руководства Linux 6.9.1"
1855
1856 #. type: Plain text
1857 #: debian-trixie
1858 msgid ""
1859 "The attribute reported in answer to this request is B<UNIX_DIAG_NAME>. The "
1860 "payload associated with this attribute is the pathname to which the socket "
1861 "was bound (a sequence of bytes up to B<UNIX_PATH_MAX> length)."
1862 msgstr ""
1863 "Атрибут, возвращаемый в ответе на этот запрос — B<UNIX_DIAG_NAME>. Полезные "
1864 "данные, связанные с этим атрибутом — путь, с которым был связан сокет "
1865 "(последовательность байт длиной до B<UNIX_PATH_MAX>)."
1866
1867 #. type: Plain text
1868 #: debian-trixie
1869 msgid ""
1870 "For listening sockets: the number of pending connections. The length of the "
1871 "array associated with the B<UNIX_DIAG_ICONS> response attribute is equal to "
1872 "this value."
1873 msgstr ""
1874 "Для слушающих сокетов: количество ожидающих подключений. Этому значению "
1875 "равна длина массива, связанного с атрибутом ответа B<UNIX_DIAG_ICONS>."
1876
1877 #. type: Plain text
1878 #: debian-trixie
1879 msgid ""
1880 "For listening sockets: the backlog length which equals to the value passed "
1881 "as the second argument to B<listen>(2)."
1882 msgstr ""
1883 "Для слушающих сокетов: длина недодела (backlog), равная значению, "
1884 "переданному во втором аргументе B<listen>(2)."
1885
1886 #. type: Plain text
1887 #: debian-trixie
1888 msgid "For listening sockets: the backlog length."
1889 msgstr "Для слушающих сокетов: длина недодела (backlog)."
1890
1891 #. type: Plain text
1892 #: debian-trixie
1893 #, no-wrap
1894 msgid ""
1895 "#include E<lt>errno.hE<gt>\n"
1896 "#include E<lt>stdio.hE<gt>\n"
1897 "#include E<lt>string.hE<gt>\n"
1898 "#include E<lt>unistd.hE<gt>\n"
1899 "#include E<lt>sys/socket.hE<gt>\n"
1900 "#include E<lt>sys/un.hE<gt>\n"
1901 "#include E<lt>linux/netlink.hE<gt>\n"
1902 "#include E<lt>linux/rtnetlink.hE<gt>\n"
1903 "#include E<lt>linux/sock_diag.hE<gt>\n"
1904 "#include E<lt>linux/unix_diag.hE<gt>\n"
1905 "\\&\n"
1906 "static int\n"
1907 "send_query(int fd)\n"
1908 "{\n"
1909 " struct sockaddr_nl nladdr = {\n"
1910 " .nl_family = AF_NETLINK\n"
1911 " };\n"
1912 " struct\n"
1913 " {\n"
1914 " struct nlmsghdr nlh;\n"
1915 " struct unix_diag_req udr;\n"
1916 " } req = {\n"
1917 " .nlh = {\n"
1918 " .nlmsg_len = sizeof(req),\n"
1919 " .nlmsg_type = SOCK_DIAG_BY_FAMILY,\n"
1920 " .nlmsg_flags = NLM_F_REQUEST | NLM_F_DUMP\n"
1921 " },\n"
1922 " .udr = {\n"
1923 " .sdiag_family = AF_UNIX,\n"
1924 " .udiag_states = -1,\n"
1925 " .udiag_show = UDIAG_SHOW_NAME | UDIAG_SHOW_PEER\n"
1926 " }\n"
1927 " };\n"
1928 " struct iovec iov = {\n"
1929 " .iov_base = &req,\n"
1930 " .iov_len = sizeof(req)\n"
1931 " };\n"
1932 " struct msghdr msg = {\n"
1933 " .msg_name = &nladdr,\n"
1934 " .msg_namelen = sizeof(nladdr),\n"
1935 " .msg_iov = &iov,\n"
1936 " .msg_iovlen = 1\n"
1937 " };\n"
1938 "\\&\n"
1939 " for (;;) {\n"
1940 " if (sendmsg(fd, &msg, 0) E<lt> 0) {\n"
1941 " if (errno == EINTR)\n"
1942 " continue;\n"
1943 "\\&\n"
1944 " perror(\"sendmsg\");\n"
1945 " return -1;\n"
1946 " }\n"
1947 "\\&\n"
1948 " return 0;\n"
1949 " }\n"
1950 "}\n"
1951 "\\&\n"
1952 "static int\n"
1953 "print_diag(const struct unix_diag_msg *diag, unsigned int len)\n"
1954 "{\n"
1955 " if (len E<lt> NLMSG_LENGTH(sizeof(*diag))) {\n"
1956 " fputs(\"short response\\[rs]n\", stderr);\n"
1957 " return -1;\n"
1958 " }\n"
1959 " if (diag-E<gt>udiag_family != AF_UNIX) {\n"
1960 " fprintf(stderr, \"unexpected family %u\\[rs]n\", diag-E<gt>udiag_family);\n"
1961 " return -1;\n"
1962 " }\n"
1963 "\\&\n"
1964 " unsigned int rta_len = len - NLMSG_LENGTH(sizeof(*diag));\n"
1965 " unsigned int peer = 0;\n"
1966 " size_t path_len = 0;\n"
1967 " char path[sizeof(((struct sockaddr_un *) 0)-E<gt>sun_path) + 1];\n"
1968 "\\&\n"
1969 " for (struct rtattr *attr = (struct rtattr *) (diag + 1);\n"
1970 " RTA_OK(attr, rta_len); attr = RTA_NEXT(attr, rta_len)) {\n"
1971 " switch (attr-E<gt>rta_type) {\n"
1972 " case UNIX_DIAG_NAME:\n"
1973 " if (!path_len) {\n"
1974 " path_len = RTA_PAYLOAD(attr);\n"
1975 " if (path_len E<gt> sizeof(path) - 1)\n"
1976 " path_len = sizeof(path) - 1;\n"
1977 " memcpy(path, RTA_DATA(attr), path_len);\n"
1978 " path[path_len] = \\[aq]\\[rs]0\\[aq];\n"
1979 " }\n"
1980 " break;\n"
1981 "\\&\n"
1982 " case UNIX_DIAG_PEER:\n"
1983 " if (RTA_PAYLOAD(attr) E<gt>= sizeof(peer))\n"
1984 " peer = *(unsigned int *) RTA_DATA(attr);\n"
1985 " break;\n"
1986 " }\n"
1987 " }\n"
1988 "\\&\n"
1989 " printf(\"inode=%u\", diag-E<gt>udiag_ino);\n"
1990 "\\&\n"
1991 " if (peer)\n"
1992 " printf(\", peer=%u\", peer);\n"
1993 "\\&\n"
1994 " if (path_len)\n"
1995 " printf(\", name=%s%s\", *path ? \"\" : \"@\",\n"
1996 " *path ? path : path + 1);\n"
1997 "\\&\n"
1998 " putchar(\\[aq]\\[rs]n\\[aq]);\n"
1999 " return 0;\n"
2000 "}\n"
2001 "\\&\n"
2002 "static int\n"
2003 "receive_responses(int fd)\n"
2004 "{\n"
2005 " long buf[8192 / sizeof(long)];\n"
2006 " struct sockaddr_nl nladdr;\n"
2007 " struct iovec iov = {\n"
2008 " .iov_base = buf,\n"
2009 " .iov_len = sizeof(buf)\n"
2010 " };\n"
2011 " int flags = 0;\n"
2012 "\\&\n"
2013 " for (;;) {\n"
2014 " struct msghdr msg = {\n"
2015 " .msg_name = &nladdr,\n"
2016 " .msg_namelen = sizeof(nladdr),\n"
2017 " .msg_iov = &iov,\n"
2018 " .msg_iovlen = 1\n"
2019 " };\n"
2020 "\\&\n"
2021 " ssize_t ret = recvmsg(fd, &msg, flags);\n"
2022 "\\&\n"
2023 " if (ret E<lt> 0) {\n"
2024 " if (errno == EINTR)\n"
2025 " continue;\n"
2026 "\\&\n"
2027 " perror(\"recvmsg\");\n"
2028 " return -1;\n"
2029 " }\n"
2030 " if (ret == 0)\n"
2031 " return 0;\n"
2032 "\\&\n"
2033 " if (nladdr.nl_family != AF_NETLINK) {\n"
2034 " fputs(\"!AF_NETLINK\\[rs]n\", stderr);\n"
2035 " return -1;\n"
2036 " }\n"
2037 "\\&\n"
2038 " const struct nlmsghdr *h = (struct nlmsghdr *) buf;\n"
2039 "\\&\n"
2040 " if (!NLMSG_OK(h, ret)) {\n"
2041 " fputs(\"!NLMSG_OK\\[rs]n\", stderr);\n"
2042 " return -1;\n"
2043 " }\n"
2044 "\\&\n"
2045 " for (; NLMSG_OK(h, ret); h = NLMSG_NEXT(h, ret)) {\n"
2046 " if (h-E<gt>nlmsg_type == NLMSG_DONE)\n"
2047 " return 0;\n"
2048 "\\&\n"
2049 " if (h-E<gt>nlmsg_type == NLMSG_ERROR) {\n"
2050 " const struct nlmsgerr *err = NLMSG_DATA(h);\n"
2051 "\\&\n"
2052 " if (h-E<gt>nlmsg_len E<lt> NLMSG_LENGTH(sizeof(*err))) {\n"
2053 " fputs(\"NLMSG_ERROR\\[rs]n\", stderr);\n"
2054 " } else {\n"
2055 " errno = -err-E<gt>error;\n"
2056 " perror(\"NLMSG_ERROR\");\n"
2057 " }\n"
2058 "\\&\n"
2059 " return -1;\n"
2060 " }\n"
2061 "\\&\n"
2062 " if (h-E<gt>nlmsg_type != SOCK_DIAG_BY_FAMILY) {\n"
2063 " fprintf(stderr, \"unexpected nlmsg_type %u\\[rs]n\",\n"
2064 " (unsigned) h-E<gt>nlmsg_type);\n"
2065 " return -1;\n"
2066 " }\n"
2067 "\\&\n"
2068 " if (print_diag(NLMSG_DATA(h), h-E<gt>nlmsg_len))\n"
2069 " return -1;\n"
2070 " }\n"
2071 " }\n"
2072 "}\n"
2073 "\\&\n"
2074 "int\n"
2075 "main(void)\n"
2076 "{\n"
2077 " int fd = socket(AF_NETLINK, SOCK_RAW, NETLINK_SOCK_DIAG);\n"
2078 "\\&\n"
2079 " if (fd E<lt> 0) {\n"
2080 " perror(\"socket\");\n"
2081 " return 1;\n"
2082 " }\n"
2083 "\\&\n"
2084 " int ret = send_query(fd) || receive_responses(fd);\n"
2085 "\\&\n"
2086 " close(fd);\n"
2087 " return ret;\n"
2088 "}\n"
2089 msgstr ""
2090
2091 #. type: TH
2092 #: fedora-44 fedora-rawhide
2093 #, no-wrap
2094 msgid "2024-11-17"
2095 msgstr "17 ноября 2024 г."
2096
2097 #. type: TH
2098 #: fedora-44 fedora-rawhide
2099 #, no-wrap
2100 msgid "Linux man-pages 6.13"
2101 msgstr "Страницы руководства Linux 6.13"
2102
2103 #. type: TH
2104 #: mageia-cauldron
2105 #, no-wrap
2106 msgid "Linux man-pages 6.17"
2107 msgstr "Страницы руководства Linux 6.17"
2108
2109 #. type: TH
2110 #: opensuse-leap-16-1 opensuse-tumbleweed
2111 #, no-wrap
2112 msgid "Linux man-pages (unreleased)"
2113 msgstr "Страницы руководства Linux (не выпущены)"