Debian Codegraph @

po/ru/man7/netlink.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 # Alex Nik <[email protected]>, 2013.
5 # Azamat Hackimov <[email protected]>, 2013, 2016.
6 # Dmitry Bolkhovskikh <[email protected]>, 2017.
7 # Yuri Kozlov <[email protected]>, 2011-2019.
8 # Иван Павлов <[email protected]>, 2017.
9 msgid ""
10 msgstr ""
11 "Project-Id-Version: manpages-l10n\n"
12 "POT-Creation-Date: 2026-06-05 06:32+0200\n"
13 "PO-Revision-Date: 2024-12-21 19:50+0300\n"
14 "Last-Translator: Yuri Kozlov <[email protected]>\n"
15 "Language-Team: Russian <[email protected]>\n"
16 "Language: ru\n"
17 "MIME-Version: 1.0\n"
18 "Content-Type: text/plain; charset=UTF-8\n"
19 "Content-Transfer-Encoding: 8bit\n"
20 "Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
21 "n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || "
22 "(n%100>=11 && n%100<=14)? 2 : 3);\n"
23 "X-Generator: Lokalize 2.0\n"
24
25 #. type: TH
26 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
27 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
28 #, no-wrap
29 msgid "netlink"
30 msgstr "netlink"
31
32 #. type: TH
33 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
34 #: opensuse-tumbleweed
35 #, no-wrap
36 msgid "2026-02-08"
37 msgstr "8 февраля 2026 г."
38
39 #. type: TH
40 #: archlinux debian-unstable
41 #, fuzzy, no-wrap
42 #| msgid "Linux man-pages 6.17"
43 msgid "Linux man-pages 6.18"
44 msgstr "Справочные страницы Linux 6.17"
45
46 #. type: SH
47 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
48 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
49 #, no-wrap
50 msgid "NAME"
51 msgstr "НАИМЕНОВАНИЕ"
52
53 #. type: Plain text
54 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
55 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
56 msgid "netlink - communication between kernel and user space (AF_NETLINK)"
57 msgstr ""
58 "netlink - обмен информацией между ядром и пользовательским пространством "
59 "(AF_NETLINK)"
60
61 #. type: SH
62 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
63 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
64 #, no-wrap
65 msgid "SYNOPSIS"
66 msgstr "СИНТАКСИС"
67
68 #. type: Plain text
69 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
70 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
71 #, no-wrap
72 msgid ""
73 "B<#include E<lt>asm/types.hE<gt>>\n"
74 "B<#include E<lt>sys/socket.hE<gt>>\n"
75 "B<#include E<lt>linux/netlink.hE<gt>>\n"
76 msgstr ""
77 "B<#include E<lt>asm/types.hE<gt>>\n"
78 "B<#include E<lt>sys/socket.hE<gt>>\n"
79 "B<#include E<lt>linux/netlink.hE<gt>>\n"
80
81 #. type: Plain text
82 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
83 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
84 #, no-wrap
85 msgid "B<netlink_socket = socket(AF_NETLINK, >I<socket_type>B<, >I<netlink_family>B<);>\n"
86 msgstr "B<netlink_socket = socket(AF_NETLINK, >I<socket_type>B<, >I<netlink_family>B<);>\n"
87
88 #. type: SH
89 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
90 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
91 #, no-wrap
92 msgid "DESCRIPTION"
93 msgstr "ОПИСАНИЕ"
94
95 #. type: Plain text
96 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
97 #: opensuse-tumbleweed
98 #, fuzzy
99 #| msgid ""
100 #| "Netlink is used to transfer information between the kernel and user-space "
101 #| "processes. It consists of a standard sockets-based interface for user "
102 #| "space processes and an internal kernel API for kernel modules. The "
103 #| "internal kernel interface is not documented in this manual page. There "
104 #| "is also an obsolete netlink interface via netlink character devices; this "
105 #| "interface is not documented here and is provided only for backward "
106 #| "compatibility."
107 msgid ""
108 "Netlink is used to transfer information between the kernel and user-space "
109 "processes. It consists of a standard sockets-based interface for user space "
110 "processes and an internal kernel API for kernel modules. The internal "
111 "kernel interface is not documented in this manual page. There is also an "
112 "obsolete netlink interface via netlink character devices; this interface is "
113 "not documented here, and is provided only for backward compatibility."
114 msgstr ""
115 "Протокол netlink используется для передачи информации между ядром и "
116 "процессами в пользовательском пространстве. Он состоит из стандартного, "
117 "основанного на сокетах, интерфейса для процессов пользователя и внутреннего "
118 "API ядра, предназначенного для модулей ядра. Внутренний интерфейс ядра в "
119 "этой странице не описан. Кроме того, существует устаревший интерфейс "
120 "netlink, работающий через символьные устройства netlink. Этот интерфейс "
121 "здесь также не описан; он предназначен только для обратной совместимости."
122
123 #. type: Plain text
124 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
125 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
126 msgid ""
127 "Netlink is a datagram-oriented service. Both B<SOCK_RAW> and B<SOCK_DGRAM> "
128 "are valid values for I<socket_type>. However, the netlink protocol does not "
129 "distinguish between datagram and raw sockets."
130 msgstr ""
131 "Netlink обеспечивает для приложений сервис передачи датаграмм. В качестве "
132 "I<socket_type> могут использоваться типы сокетов как B<SOCK_RAW>, так и "
133 "B<SOCK_DGRAM>. Несмотря на это, протокол netlink не различает датаграмные и "
134 "неструктурированные (raw) сокеты."
135
136 #. type: Plain text
137 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
138 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
139 msgid ""
140 "I<netlink_family> selects the kernel module or netlink group to communicate "
141 "with. The currently assigned netlink families are:"
142 msgstr ""
143 "По значению I<netlink_family> выбирается модуль ядра или группа netlink для "
144 "связи. В данный момент определены следующие семейства netlink:"
145
146 #. type: TP
147 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
148 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
149 #, no-wrap
150 msgid "B<NETLINK_ROUTE>"
151 msgstr "B<NETLINK_ROUTE>"
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 #, fuzzy
157 #| msgid ""
158 #| "Receives routing and link updates and may be used to modify the routing "
159 #| "tables (both IPv4 and IPv6), IP addresses, link parameters, neighbor "
160 #| "setups, queueing disciplines, traffic classes and packet classifiers (see "
161 #| "B<rtnetlink>(7))."
162 msgid ""
163 "Receives routing and link updates and may be used to modify the routing "
164 "tables (both IPv4 and IPv6), IP addresses, link parameters, neighbor setups, "
165 "queueing disciplines, traffic classes, and packet classifiers (see "
166 "B<rtnetlink>(7))."
167 msgstr ""
168 "Получает обновления маршрутов и состояние подключений (link); может "
169 "использоваться для изменения таблицы маршрутизации (IPv4 и IPv6), IP-"
170 "адресов, параметров подключения, настроек взаимодействия с ответной стороной "
171 "(neighbor), параметров работы очереди, классов трафика и классификаторов "
172 "пакетов (см.B< rtnetlink>(7))."
173
174 #. type: TP
175 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
176 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
177 #, fuzzy, no-wrap
178 #| msgid "B<NETLINK_W1> (Linux 2.6.13 to 2.16.17)"
179 msgid "B<NETLINK_W1> (Linux 2.6.13 to Linux 2.16.17)"
180 msgstr "B<NETLINK_W1> (начиная с Linux 2.6.13 до 2.16.17)"
181
182 #. type: Plain text
183 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
184 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
185 msgid "Messages from 1-wire subsystem."
186 msgstr "Сообщения из однопроводной подсистемы."
187
188 #. type: TP
189 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
190 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
191 #, no-wrap
192 msgid "B<NETLINK_USERSOCK>"
193 msgstr "B<NETLINK_USERSOCK>"
194
195 #. type: Plain text
196 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
197 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
198 msgid "Reserved for user-mode socket protocols."
199 msgstr ""
200 "Зарезервировано для будущих протоколов сокетов пространства пользователя."
201
202 #. type: TP
203 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
204 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
205 #, no-wrap
206 msgid "B<NETLINK_FIREWALL> (up to and including Linux 3.4)"
207 msgstr "B<NETLINK_FIREWALL> (существует до Linux 3.4 включительно)"
208
209 #. removed by commit d16cf20e2f2f13411eece7f7fb72c17d141c4a84
210 #. type: Plain text
211 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
212 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
213 msgid ""
214 "Transport IPv4 packets from netfilter to user space. Used by I<ip_queue> "
215 "kernel module. After a long period of being declared obsolete (in favor of "
216 "the more advanced I<nfnetlink_queue> feature), B<NETLINK_FIREWALL> was "
217 "removed in Linux 3.5."
218 msgstr ""
219 "Переправляет пакеты IPv4 из netfilter в пространство пользователя. "
220 "Используется модулем ядра I<ip_queue>. После долгого времени объявления "
221 "устаревшим (предлагается использовать улучшенное свойство "
222 "I<nfnetlink_queue>), B<NETLINK_FIREWALL> был удалён к Linux 3.5."
223
224 #. type: TP
225 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
226 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
227 #, no-wrap
228 msgid "B<NETLINK_SOCK_DIAG> (since Linux 3.3)"
229 msgstr "B<NETLINK_SOCK_DIAG> (начиная с Linux 3.3)"
230
231 #. commit 7f1fb60c4fc9fb29fbb406ac8c4cfb4e59e168d6
232 #. type: Plain text
233 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
234 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
235 msgid ""
236 "Query information about sockets of various protocol families from the kernel "
237 "(see B<sock_diag>(7))."
238 msgstr ""
239 "Запрашивает информации о сокетах различных семейств протоколов из ядра "
240 "(смотрите B<sock_diag>(7))."
241
242 #. type: TP
243 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
244 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
245 #, no-wrap
246 msgid "B<NETLINK_INET_DIAG> (since Linux 2.6.14)"
247 msgstr "B<NETLINK_INET_DIAG> (начиная с Linux 2.6.14)"
248
249 #. type: Plain text
250 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
251 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
252 #, fuzzy
253 #| msgid "A synonym for B<NETLINK_INET_DIAG>."
254 msgid "An obsolete synonym for B<NETLINK_SOCK_DIAG>."
255 msgstr "Синоним для B<NETLINK_INET_DIAG>."
256
257 #. type: TP
258 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
259 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
260 #, no-wrap
261 msgid "B<NETLINK_NFLOG> (up to and including Linux 3.16)"
262 msgstr "B<NETLINK_NFLOG> (существует до Linux 3.16 включительно)"
263
264 #. type: Plain text
265 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
266 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
267 msgid "Netfilter/iptables ULOG."
268 msgstr "Netfilter/iptables ULOG."
269
270 #. type: TP
271 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
272 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
273 #, no-wrap
274 msgid "B<NETLINK_XFRM>"
275 msgstr "B<NETLINK_XFRM>"
276
277 #. FIXME More details on NETLINK_XFRM needed.
278 #. type: Plain text
279 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
280 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
281 msgid "IPsec."
282 msgstr "IPsec."
283
284 #. type: TP
285 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
286 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
287 #, no-wrap
288 msgid "B<NETLINK_SELINUX> (since Linux 2.6.4)"
289 msgstr "B<NETLINK_SELINUX> (начиная с Linux 2.6.4)"
290
291 #. type: Plain text
292 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
293 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
294 msgid "SELinux event notifications."
295 msgstr "Уведомляет о событиях SELinux."
296
297 #. type: TP
298 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
299 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
300 #, no-wrap
301 msgid "B<NETLINK_ISCSI> (since Linux 2.6.15)"
302 msgstr "B<NETLINK_ISCSI> (начиная с Linux 2.6.15)"
303
304 #. FIXME More details on NETLINK_ISCSI needed.
305 #. type: Plain text
306 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
307 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
308 msgid "Open-iSCSI."
309 msgstr "Open-iSCSI."
310
311 #. type: TP
312 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
313 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
314 #, no-wrap
315 msgid "B<NETLINK_AUDIT> (since Linux 2.6.6)"
316 msgstr "B<NETLINK_AUDIT> (начиная с Linux 2.6.6)"
317
318 #. FIXME More details on NETLINK_AUDIT needed.
319 #. type: Plain text
320 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
321 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
322 msgid "Auditing."
323 msgstr "Ведёт контроль за системой."
324
325 #. type: TP
326 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
327 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
328 #, no-wrap
329 msgid "B<NETLINK_FIB_LOOKUP> (since Linux 2.6.13)"
330 msgstr "B<NETLINK_FIB_LOOKUP> (начиная с Linux 2.6.13)"
331
332 #. FIXME More details on NETLINK_FIB_LOOKUP needed.
333 #. type: Plain text
334 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
335 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
336 msgid "Access to FIB lookup from user space."
337 msgstr "Доступ к таблице FIB из пользовательского пространства."
338
339 #. type: TP
340 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
341 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
342 #, no-wrap
343 msgid "B<NETLINK_CONNECTOR> (since Linux 2.6.14)"
344 msgstr "B<NETLINK_CONNECTOR> (начиная с Linux 2.6.14)"
345
346 #. commit baa293e9544bea71361950d071579f0e4d5713ed
347 #. type: Plain text
348 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
349 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
350 #, fuzzy
351 #| msgid ""
352 #| "Kernel connector. See I<Documentation/connector/*> in the Linux kernel "
353 #| "source tree for further information."
354 msgid ""
355 "Kernel connector. See I<Documentation/driver-api/connector.rst> (or I</"
356 "Documentation/connector/connector.*> in Linux 5.2 and earlier) in the Linux "
357 "kernel source tree for further information."
358 msgstr ""
359 "Точка связи с ядром. Дополнительную информацию смотрите в файле "
360 "I<Documentation/connector/*> дерева исходного кода ядра Linux."
361
362 #. type: TP
363 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
364 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
365 #, no-wrap
366 msgid "B<NETLINK_NETFILTER> (since Linux 2.6.14)"
367 msgstr "B<NETLINK_NETFILTER> (начиная с Linux 2.6.14)"
368
369 #. FIXME More details on NETLINK_NETFILTER needed.
370 #. type: Plain text
371 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
372 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
373 msgid "Netfilter subsystem."
374 msgstr "Подсистема netfilter."
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 "B<NETLINK_SCSITRANSPORT> (since Linux 2.6.19)"
381 msgstr "B<NETLINK_SCSITRANSPORT> (начиная с Linux 2.6.19)"
382
383 #. commit 84314fd4740ad73550c76dee4a9578979d84af48
384 #. FIXME More details on NETLINK_SCSITRANSPORT needed.
385 #. type: Plain text
386 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
387 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
388 msgid "SCSI Transports."
389 msgstr "Транспорты SCSI."
390
391 #. type: TP
392 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
393 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
394 #, no-wrap
395 msgid "B<NETLINK_RDMA> (since Linux 3.0)"
396 msgstr "B<NETLINK_RDMA> (начиная с Linux 3.0)"
397
398 #. commit b2cbae2c248776d81cc265ff7d48405b6a4cc463
399 #. FIXME More details on NETLINK_RDMA needed.
400 #. type: Plain text
401 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
402 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
403 msgid "Infiniband RDMA."
404 msgstr "Infiniband RDMA."
405
406 #. type: TP
407 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
408 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
409 #, no-wrap
410 msgid "B<NETLINK_IP6_FW> (up to and including Linux 3.4)"
411 msgstr "B<NETLINK_IP6_FW> (существует до Linux 3.4 включительно)"
412
413 #. type: Plain text
414 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
415 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
416 msgid ""
417 "Transport IPv6 packets from netfilter to user space. Used by I<ip6_queue> "
418 "kernel module."
419 msgstr ""
420 "Переправляет пакеты IPv6 из netfilter в пространство пользователя. "
421 "Используется модулем ядра I<ip6_queue>."
422
423 #. type: TP
424 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
425 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
426 #, no-wrap
427 msgid "B<NETLINK_DNRTMSG>"
428 msgstr "B<NETLINK_DNRTMSG>"
429
430 #. type: Plain text
431 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
432 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
433 msgid "DECnet routing messages."
434 msgstr "Сообщения маршрутизации DECnet."
435
436 #. type: TP
437 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
438 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
439 #, no-wrap
440 msgid "B<NETLINK_KOBJECT_UEVENT> (since Linux 2.6.10)"
441 msgstr "B<NETLINK_KOBJECT_UEVENT> (начиная с Linux 2.6.10)"
442
443 #. FIXME More details on NETLINK_KOBJECT_UEVENT needed.
444 #. type: Plain text
445 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
446 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
447 msgid "Kernel messages to user space."
448 msgstr "Сообщения ядра в пользовательском пространстве."
449
450 #. type: TP
451 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
452 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
453 #, no-wrap
454 msgid "B<NETLINK_GENERIC> (since Linux 2.6.15)"
455 msgstr "B<NETLINK_GENERIC> (начиная с Linux 2.6.15)"
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 "Generic netlink family for simplified netlink usage."
461 msgstr "Обобщённое семейство netlink для использования netlink."
462
463 #. type: TP
464 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
465 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
466 #, no-wrap
467 msgid "B<NETLINK_CRYPTO> (since Linux 3.2)"
468 msgstr "B<NETLINK_CRYPTO> (начиная с Linux 3.2)"
469
470 #. commit a38f7907b926e4c6c7d389ad96cc38cec2e5a9e9
471 #. Author: Steffen Klassert <[email protected]>
472 #. type: Plain text
473 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
474 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
475 msgid ""
476 "Netlink interface to request information about ciphers registered with the "
477 "kernel crypto API as well as allow configuration of the kernel crypto API."
478 msgstr ""
479 "Интерфейс netlink для запроса информации о зарегистрированных алгоритмах "
480 "шифрования с помощью программного интерфейса ядра шифрования, а также "
481 "настройки программного интерфейса ядра шифрования."
482
483 #. type: Plain text
484 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
485 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
486 msgid ""
487 "Netlink messages consist of a byte stream with one or multiple I<nlmsghdr> "
488 "headers and associated payload. The byte stream should be accessed only "
489 "with the standard B<NLMSG_*> macros. See B<netlink>(3) for further "
490 "information."
491 msgstr ""
492 "Сообщения netlink состоят из потока байтов с одним или несколькими "
493 "заголовками I<nlmsghdr> и присоединённой полезной нагрузкой. Доступ к потоку "
494 "байтов нужно осуществлять только с помощью стандартных макросов B<NLMSG_*>. "
495 "Подробности смотрите в B<netlink>(3)."
496
497 #. type: Plain text
498 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
499 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
500 msgid ""
501 "In multipart messages (multiple I<nlmsghdr> headers with associated payload "
502 "in one byte stream) the first and all following headers have the "
503 "B<NLM_F_MULTI> flag set, except for the last header which has the type "
504 "B<NLMSG_DONE>."
505 msgstr ""
506 "В первом и всех последующих заголовках сообщений, состоящих из нескольких "
507 "частей (несколько заголовков I<nlmsghdr> с полезной нагрузкой в одном потоке "
508 "байт), установлен флаг B<NLM_F_MULTI>. Последний заголовок имеет тип "
509 "B<NLMSG_DONE> и этот флаг не устанавливается."
510
511 #. type: Plain text
512 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
513 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
514 msgid "After each I<nlmsghdr> the payload follows."
515 msgstr "После каждого I<nlmsghdr> следует полезная нагрузка:"
516
517 #. type: Plain text
518 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
519 #: opensuse-leap-16-1 opensuse-tumbleweed
520 #, fuzzy, no-wrap
521 #| msgid ""
522 #| "struct nlmsghdr {\n"
523 #| " __u32 nlmsg_len; /* Length of message including header */\n"
524 #| " __u16 nlmsg_type; /* Type of message content */\n"
525 #| " __u16 nlmsg_flags; /* Additional flags */\n"
526 #| " __u32 nlmsg_seq; /* Sequence number */\n"
527 #| " __u32 nlmsg_pid; /* Sender port ID */\n"
528 #| "};\n"
529 msgid ""
530 "struct nlmsghdr {\n"
531 " __u32 nlmsg_len; /* Size of message including header */\n"
532 " __u16 nlmsg_type; /* Type of message content */\n"
533 " __u16 nlmsg_flags; /* Additional flags */\n"
534 " __u32 nlmsg_seq; /* Sequence number */\n"
535 " __u32 nlmsg_pid; /* Sender port ID */\n"
536 "};\n"
537 msgstr ""
538 "struct nlmsghdr {\n"
539 " __u32 nlmsg_len; /* длина сообщения, включая заголовок */\n"
540 " __u16 nlmsg_type; /* тип содержимого сообщения */\n"
541 " __u16 nlmsg_flags; /* дополнительные флаги */\n"
542 " __u32 nlmsg_seq; /* номер в последовательности */\n"
543 " __u32 nlmsg_pid; /* ID порта отправителя */\n"
544 "};\n"
545
546 #. type: Plain text
547 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
548 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
549 #, fuzzy
550 #| msgid ""
551 #| "I<nlmsg_type> can be one of the standard message types: B<NLMSG_NOOP> "
552 #| "message is to be ignored, B<NLMSG_ERROR> message signals an error and the "
553 #| "payload contains an I<nlmsgerr> structure, B<NLMSG_DONE> message "
554 #| "terminates a multipart message."
555 msgid ""
556 "I<nlmsg_type> can be one of the standard message types: B<NLMSG_NOOP> "
557 "message is to be ignored, B<NLMSG_ERROR> message signals an error and the "
558 "payload contains an I<nlmsgerr> structure, B<NLMSG_DONE> message terminates "
559 "a multipart message. Error messages get the original request appended, "
560 "unless the user requests to cap the error message, and get extra error data "
561 "if requested."
562 msgstr ""
563 "Значение I<nlmsg_type> может быть одним из стандартных типов сообщения: "
564 "сообщения B<NLMSG_NOOP> должны игнорироваться, сообщение B<NLMSG_ERROR> "
565 "сообщает об ошибке и в нагрузке содержится структура I<nlmsgerr>, сообщение "
566 "B<NLMSG_DONE> заканчивает сообщение, состоящее из нескольких частей."
567
568 #. type: Plain text
569 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
570 #: opensuse-leap-16-1 opensuse-tumbleweed
571 #, no-wrap
572 msgid ""
573 "struct nlmsgerr {\n"
574 " int error; /* Negative errno or 0 for acknowledgements */\n"
575 " struct nlmsghdr msg; /* Message header that caused the error */\n"
576 " /*\n"
577 " * followed by the message contents\n"
578 " * unless NETLINK_CAP_ACK was set\n"
579 " * or the ACK indicates success (error == 0).\n"
580 " * For example Generic Netlink message with attributes.\n"
581 " * message size is aligned with NLMSG_ALIGN()\n"
582 " */\n"
583 " /*\n"
584 " * followed by TLVs defined in enum nlmsgerr_attrs\n"
585 " * if NETLINK_EXT_ACK was set\n"
586 " */\n"
587 "};\n"
588 msgstr ""
589
590 #. type: Plain text
591 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
592 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
593 msgid ""
594 "A netlink family usually specifies more message types, see the appropriate "
595 "manual pages for that, for example, B<rtnetlink>(7) for B<NETLINK_ROUTE>."
596 msgstr ""
597 "Семейство netlink обычно определяет и другие типы сообщений (см. "
598 "соответствующие справочные страницы, например, B<rtnetlink>(7) о "
599 "B<NETLINK_ROUTE>)."
600
601 #. type: tbl table
602 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
603 #: opensuse-tumbleweed
604 #, fuzzy, no-wrap
605 #| msgid "Standard flag bits in I<nlmsg_flags>"
606 msgid "Standard flag bits in \\f[I]nlmsg_flags\\fR"
607 msgstr "Стандартные биты флагов в I<nlmsg_flags>"
608
609 #. type: tbl table
610 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
611 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
612 #, no-wrap
613 msgid "_"
614 msgstr "_"
615
616 #. type: tbl table
617 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
618 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
619 #, no-wrap
620 msgid "NLM_F_REQUEST"
621 msgstr "NLM_F_REQUEST"
622
623 #. type: tbl table
624 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
625 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
626 #, no-wrap
627 msgid "Must be set on all request messages."
628 msgstr "Должен быть установлен у всех сообщений с запросами."
629
630 #. type: tbl table
631 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
632 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
633 #, no-wrap
634 msgid "NLM_F_MULTI"
635 msgstr "NLM_F_MULTI"
636
637 #. type: tbl table
638 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
639 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
640 #, no-wrap
641 msgid ""
642 "The message is part of a multipart message terminated by\n"
643 "B<NLMSG_DONE>."
644 msgstr "Сообщение является одной из частей длинного сообщения, которое заканчивается B<NLMSG_DONE>."
645
646 #. type: tbl table
647 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
648 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
649 #, no-wrap
650 msgid "NLM_F_ACK"
651 msgstr "NLM_F_ACK"
652
653 #. type: tbl table
654 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
655 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
656 #, fuzzy, no-wrap
657 #| msgid "Request for an acknowledgment on success."
658 msgid "Request for an acknowledgement on success."
659 msgstr "Запрашивать подтверждение при успешном выполнении."
660
661 #. type: tbl table
662 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
663 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
664 #, no-wrap
665 msgid "NLM_F_ECHO"
666 msgstr "NLM_F_ECHO"
667
668 #. type: tbl table
669 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
670 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
671 #, no-wrap
672 msgid "Echo this request."
673 msgstr "Послать эхо этого запроса."
674
675 #. type: tbl table
676 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
677 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
678 #, no-wrap
679 msgid "Additional flag bits for GET requests"
680 msgstr "Дополнительные биты флагов для запросов GET"
681
682 #. type: tbl table
683 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
684 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
685 #, no-wrap
686 msgid "NLM_F_ROOT"
687 msgstr "NLM_F_ROOT"
688
689 #. type: tbl table
690 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
691 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
692 #, no-wrap
693 msgid "Return the complete table instead of a single entry."
694 msgstr "Вернуть полную таблицу вместо одной записи."
695
696 #. type: tbl table
697 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
698 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
699 #, no-wrap
700 msgid "NLM_F_MATCH"
701 msgstr "NLM_F_MATCH"
702
703 #. type: tbl table
704 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
705 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
706 #, no-wrap
707 msgid ""
708 "Return all entries matching criteria passed in message content.\n"
709 "Not implemented yet."
710 msgstr ""
711 "Вернуть все записи, подходящие под критерий, переданный в содержимом\n"
712 "сообщения. Пока не реализовано."
713
714 #. type: tbl table
715 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
716 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
717 #, no-wrap
718 msgid "NLM_F_ATOMIC"
719 msgstr "NLM_F_ATOMIC"
720
721 #. type: tbl table
722 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
723 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
724 #, no-wrap
725 msgid "Return an atomic snapshot of the table."
726 msgstr "Вернуть атомарный образ (snapshot) таблицы."
727
728 #. type: tbl table
729 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
730 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
731 #, no-wrap
732 msgid "NLM_F_DUMP"
733 msgstr "NLM_F_DUMP"
734
735 #. type: tbl table
736 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
737 #: opensuse-tumbleweed
738 #, fuzzy, no-wrap
739 #| msgid "Convenience macro; equivalent to\n"
740 msgid ""
741 "Convenience macro;\n"
742 "equivalent to\n"
743 "(NLM_F_ROOT|NLM_F_MATCH)."
744 msgstr "Макрос для удобства; эквивалентен\n"
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 ""
750 "Note that B<NLM_F_ATOMIC> requires the B<CAP_NET_ADMIN> capability or an "
751 "effective UID of 0."
752 msgstr ""
753 "Заметим, что B<NLM_F_ATOMIC> требует мандата B<CAP_NET_ADMIN> или "
754 "эффективного UID 0."
755
756 #. type: tbl table
757 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
758 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
759 #, no-wrap
760 msgid "Additional flag bits for NEW requests"
761 msgstr "Дополнительные биты флагов для запросов NEW"
762
763 #. type: tbl table
764 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
765 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
766 #, no-wrap
767 msgid "NLM_F_REPLACE"
768 msgstr "NLM_F_REPLACE"
769
770 #. type: tbl table
771 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
772 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
773 #, no-wrap
774 msgid "Replace existing matching object."
775 msgstr "Переписать существующий подходящий объект."
776
777 #. type: tbl table
778 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
779 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
780 #, no-wrap
781 msgid "NLM_F_EXCL"
782 msgstr "NLM_F_EXCL"
783
784 #. type: tbl table
785 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
786 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
787 #, no-wrap
788 msgid "Don't replace if the object already exists."
789 msgstr "Не перезаписывать, если объект уже существует."
790
791 #. type: tbl table
792 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
793 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
794 #, no-wrap
795 msgid "NLM_F_CREATE"
796 msgstr "NLM_F_CREATE"
797
798 #. type: tbl table
799 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
800 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
801 #, no-wrap
802 msgid "Create object if it doesn't already exist."
803 msgstr "Создать объект, если он ещё не существует."
804
805 #. type: tbl table
806 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
807 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
808 #, no-wrap
809 msgid "NLM_F_APPEND"
810 msgstr "NLM_F_APPEND"
811
812 #. type: tbl table
813 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
814 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
815 #, no-wrap
816 msgid "Add to the end of the object list."
817 msgstr "Добавить в конец списка объектов."
818
819 #. type: Plain text
820 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
821 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
822 msgid ""
823 "I<nlmsg_seq> and I<nlmsg_pid> are used to track messages. I<nlmsg_pid> "
824 "shows the origin of the message. Note that there isn't a 1:1 relationship "
825 "between I<nlmsg_pid> and the PID of the process if the message originated "
826 "from a netlink socket. See the B<ADDRESS FORMATS> section for further "
827 "information."
828 msgstr ""
829 "Поля I<nlmsg_seq> и I<nlmsg_pid> используются для отслеживания передачи "
830 "сообщений. В I<nlmsg_pid> указывается источник сообщения. Заметим, что нет "
831 "связи 1:1 между I<nlmsg_pid> и PID процесса, если сообщение возникло из "
832 "сокета netlink. Дополнительную информацию ищите в разделе B<ФОРМАТЫ АДРЕСА>."
833
834 #. FIXME Explain more about nlmsg_seq and nlmsg_pid.
835 #. type: Plain text
836 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
837 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
838 msgid "Both I<nlmsg_seq> and I<nlmsg_pid> are opaque to netlink core."
839 msgstr "Тип поля I<nlmsg_seq> и I<nlmsg_pid> скрыт в ядре netlink."
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 #, fuzzy
845 #| msgid ""
846 #| "Netlink is not a reliable protocol. It tries its best to deliver a "
847 #| "message to its destination(s), but may drop messages when an out-of-"
848 #| "memory condition or other error occurs. For reliable transfer the sender "
849 #| "can request an acknowledgement from the receiver by setting the "
850 #| "B<NLM_F_ACK> flag. An acknowledgment is an B<NLMSG_ERROR> packet with "
851 #| "the error field set to 0. The application must generate acknowledgements "
852 #| "for received messages itself. The kernel tries to send an B<NLMSG_ERROR> "
853 #| "message for every failed packet. A user process should follow this "
854 #| "convention too."
855 msgid ""
856 "Netlink is not a reliable protocol. It tries its best to deliver a message "
857 "to its destination(s), but may drop messages when an out-of-memory condition "
858 "or other error occurs. For reliable transfer the sender can request an "
859 "acknowledgement from the receiver by setting the B<NLM_F_ACK> flag. An "
860 "acknowledgement is an B<NLMSG_ERROR> packet with the error field set to 0. "
861 "The application must generate acknowledgements for received messages "
862 "itself. The kernel tries to send an B<NLMSG_ERROR> message for every failed "
863 "packet. A user process should follow this convention too."
864 msgstr ""
865 "Netlink не является надежным протоколом. Он делает всё возможное для "
866 "доставки сообщения по адресу (адресам), но может отбрасывать пакеты при "
867 "нехватке памяти или возникновении других ошибок в работе. Для повышения "
868 "надёжности передачи отправитель может запросить подтверждение от получателя, "
869 "установив флаг B<NLM_F_ACK>. Подтверждающим является пакет B<NLMSG_ERROR> с "
870 "полем ошибки, равным нулю. Приложение должно само создавать подтверждения "
871 "полученным сообщениям. Ядро пытается послать сообщение B<NLMSG_ERROR> всем "
872 "ошибочным пакетам. Процесс пользователя также должен следовать этому "
873 "соглашению."
874
875 #. type: Plain text
876 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
877 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
878 msgid ""
879 "However, reliable transmissions from kernel to user are impossible in any "
880 "case. The kernel can't send a netlink message if the socket buffer is full: "
881 "the message will be dropped and the kernel and the user-space process will "
882 "no longer have the same view of kernel state. It is up to the application "
883 "to detect when this happens (via the B<ENOBUFS> error returned by "
884 "B<recvmsg>(2)) and resynchronize."
885 msgstr ""
886 "Однако, надёжная передача от ядра пользователю в любом случае невозможна. "
887 "Ядро не может послать сообщение netlink, если заполнен буфер сокета: "
888 "сообщение будет отброшено и ядро и пользовательский процесс будут иметь "
889 "разное понятие о состоянии ядра. В обязанность приложения входит обнаружение "
890 "такой ситуации (посредством ошибки B<ENOBUFS>, возвращаемой B<recvmsg>(2)) и "
891 "выполнение восстановления синхронизации."
892
893 #. type: SS
894 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
895 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
896 #, no-wrap
897 msgid "Address formats"
898 msgstr "Форматы адресов"
899
900 #. type: Plain text
901 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
902 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
903 msgid ""
904 "The I<sockaddr_nl> structure describes a netlink client in user space or in "
905 "the kernel. A I<sockaddr_nl> can be either unicast (only sent to one peer) "
906 "or sent to netlink multicast groups (I<nl_groups> not equal 0)."
907 msgstr ""
908 "Структура I<sockaddr_nl> описывает клиент netlink в пространстве "
909 "пользователя или в ядре. Она может быть как одноадресной (передача "
910 "информации только на один адрес), так и посылаться многоадресной группе "
911 "netlink (значение I<nl_groups> не равно нулю)."
912
913 #. type: Plain text
914 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
915 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
916 #, no-wrap
917 msgid ""
918 "struct sockaddr_nl {\n"
919 " sa_family_t nl_family; /* AF_NETLINK */\n"
920 " unsigned short nl_pad; /* Zero */\n"
921 " pid_t nl_pid; /* Port ID */\n"
922 " __u32 nl_groups; /* Multicast groups mask */\n"
923 "};\n"
924 msgstr ""
925 "struct sockaddr_nl {\n"
926 " sa_family_t nl_family; /* AF_NETLINK */\n"
927 " unsigned short nl_pad; /* ноль */\n"
928 " pid_t nl_pid; /* ID порта */\n"
929 " __u32 nl_groups; /* маска многоадресных групп */\n"
930 "};\n"
931
932 #. type: Plain text
933 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
934 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
935 msgid ""
936 "I<nl_pid> is the unicast address of netlink socket. It's always 0 if the "
937 "destination is in the kernel. For a user-space process, I<nl_pid> is "
938 "usually the PID of the process owning the destination socket. However, "
939 "I<nl_pid> identifies a netlink socket, not a process. If a process owns "
940 "several netlink sockets, then I<nl_pid> can be equal to the process ID only "
941 "for at most one socket. There are two ways to assign I<nl_pid> to a netlink "
942 "socket. If the application sets I<nl_pid> before calling B<bind>(2), then "
943 "it is up to the application to make sure that I<nl_pid> is unique. If the "
944 "application sets it to 0, the kernel takes care of assigning it. The kernel "
945 "assigns the process ID to the first netlink socket the process opens and "
946 "assigns a unique I<nl_pid> to every netlink socket that the process "
947 "subsequently creates."
948 msgstr ""
949 "I<nl_pid> — одиночный адрес сокета netlink. Он всегда равен 0, если местом "
950 "назначения является ядро. Для процесса пользовательского пространства "
951 "значение I<nl_pid>, обычно, равно PID процесса, которому принадлежит сокет "
952 "назначения. Однако, значением I<nl_pid> определяется сокет netlink, а не "
953 "процесс. Если процессу принадлежит несколько сокетов netlink, то значение "
954 "I<nl_pid> может быть равно ID процесса только у одного сокета. Есть два "
955 "способа назначить I<nl_pid> сокету netlink. Если приложение задаёт I<nl_pid> "
956 "до вызова B<bind>(2), то приложение само должно убедиться, что значение "
957 "I<nl_pid> уникально. Если приложение устанавливает его равным 0, то "
958 "присвоение уникального значения выполняется ядром. Первому сокету netlink "
959 "ядро назначает ID процесса, который его открыл, а всем последующим "
960 "создаваемым процессом сокетам netlink, будет назначено уникальное значение "
961 "I<nl_pid>."
962
963 #. commit d629b836d151d43332492651dd841d32e57ebe3b
964 #. type: Plain text
965 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
966 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
967 msgid ""
968 "I<nl_groups> is a bit mask with every bit representing a netlink group "
969 "number. Each netlink family has a set of 32 multicast groups. When "
970 "B<bind>(2) is called on the socket, the I<nl_groups> field in the "
971 "I<sockaddr_nl> should be set to a bit mask of the groups which it wishes to "
972 "listen to. The default value for this field is zero which means that no "
973 "multicasts will be received. A socket may multicast messages to any of the "
974 "multicast groups by setting I<nl_groups> to a bit mask of the groups it "
975 "wishes to send to when it calls B<sendmsg>(2) or does a B<connect>(2). "
976 "Only processes with an effective UID of 0 or the B<CAP_NET_ADMIN> capability "
977 "may send or listen to a netlink multicast group. Since Linux 2.6.13, "
978 "messages can't be broadcast to multiple groups. Any replies to a message "
979 "received for a multicast group should be sent back to the sending PID and "
980 "the multicast group. Some Linux kernel subsystems may additionally allow "
981 "other users to send and/or receive messages. As at Linux 3.0, the "
982 "B<NETLINK_KOBJECT_UEVENT>, B<NETLINK_GENERIC>, B<NETLINK_ROUTE>, and "
983 "B<NETLINK_SELINUX> groups allow other users to receive messages. No groups "
984 "allow other users to send messages."
985 msgstr ""
986 "Значение I<nl_groups> — это битовая маска, где каждый бит представляет номер "
987 "группы netlink. Каждое семейство netlink имеет набор из 32-х многоадресных "
988 "групп. Когда для сокета вызывается B<bind>(2), то поле I<nl_groups> "
989 "структуры I<sockaddr_nl> должно содержать битовую маску групп, которые оно "
990 "хочет прослушивать. По умолчанию значение этого поля равно нулю, что "
991 "означает, что многоадресные передачи не будут приниматься. Сокет может "
992 "передавать многоадресные сообщения любой из многоадресных групп, присвоив "
993 "I<nl_groups> битовую маску групп, которым он желает передавать данные "
994 "вызовом B<sendmsg>(2) или при выполнении B<connect>(2). Принимать или "
995 "посылать сообщения многоадресной группы netlink могут только процессы с "
996 "эффективным UID, равным 0, или имеющие мандат B<CAP_NET_ADMIN>. Начиная с "
997 "Linux 2.6.13, сообщения не могут вещаться в многоадресные группы. Любые "
998 "ответы на сообщение, полученное многоадресной группой, должны быть "
999 "отправлены посылающему процессу с PID и многоадресной группе. Некоторые "
1000 "подсистемы ядра Linux могут разрешать отправку и/или приём сообщений другим "
1001 "пользователям. Начиная с Linux 3.0, в группах B<NETLINK_KOBJECT_UEVENT>, "
1002 "B<NETLINK_GENERIC>, B<NETLINK_ROUTE> и B<NETLINK_SELINUX> разрешено "
1003 "принимать сообщения от других пользователей. Отправлять сообщения другим "
1004 "пользователям запрещено."
1005
1006 #. type: SS
1007 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1008 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1009 #, no-wrap
1010 msgid "Socket options"
1011 msgstr "Параметры сокета"
1012
1013 #. type: Plain text
1014 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1015 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1016 msgid ""
1017 "To set or get a netlink socket option, call B<getsockopt>(2) to read or "
1018 "B<setsockopt>(2) to write the option with the option level argument set to "
1019 "B<SOL_NETLINK>. Unless otherwise noted, I<optval> is a pointer to an I<int>."
1020 msgstr ""
1021 "Для получения и задания параметров сокета netlink используйте вызовы "
1022 "B<getsockopt>(2) и B<setsockopt>(2), соответственно. Значение аргумента "
1023 "уровня параметров должно быть равно B<SOL_NETLINK>. Если не указано "
1024 "обратного, значение I<optval> является указателем на I<int>."
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<NETLINK_PKTINFO> (since Linux 2.6.14)"
1031 msgstr "B<NETLINK_PKTINFO> (начиная с Linux 2.6.14)"
1032
1033 #. commit 9a4595bc7e67962f13232ee55a64e063062c3a99
1034 #. Author: Patrick McHardy <[email protected]>
1035 #. type: Plain text
1036 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1037 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1038 msgid ""
1039 "Enable B<nl_pktinfo> control messages for received packets to get the "
1040 "extended destination group number."
1041 msgstr ""
1042 "Включить управляющие сообщения B<nl_pktinfo> для приёма пакетов, чтобы "
1043 "получать расширенный номер группы назначения."
1044
1045 #. type: TP
1046 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1047 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1048 #, fuzzy, no-wrap
1049 #| msgid "B<NETLINK_DNRTMSG>"
1050 msgid "B<NETLINK_ADD_MEMBERSHIP>"
1051 msgstr "B<NETLINK_DNRTMSG>"
1052
1053 #. type: TQ
1054 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1055 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1056 #, fuzzy, no-wrap
1057 #| msgid "B<NETLINK_LIST_MEMBERSHIPS> (since Linux 4.2)"
1058 msgid "B<NETLINK_DROP_MEMBERSHIP> (since Linux 2.6.14)"
1059 msgstr "B<NETLINK_LIST_MEMBERSHIPS> (начиная с Linux 4.2)"
1060
1061 #. commit 9a4595bc7e67962f13232ee55a64e063062c3a99
1062 #. Author: Patrick McHardy <[email protected]>
1063 #. type: Plain text
1064 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1065 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1066 msgid "Join/leave a group specified by I<optval>."
1067 msgstr "Присоединиться/покинуть группу, заданную в I<optval>."
1068
1069 #. type: TP
1070 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1071 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1072 #, no-wrap
1073 msgid "B<NETLINK_LIST_MEMBERSHIPS> (since Linux 4.2)"
1074 msgstr "B<NETLINK_LIST_MEMBERSHIPS> (начиная с Linux 4.2)"
1075
1076 #. commit b42be38b2778eda2237fc759e55e3b698b05b315
1077 #. Author: David Herrmann <[email protected]>
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 "Retrieve all groups a socket is a member of. I<optval> is a pointer to "
1083 "B<__u32> and I<optlen> is the size of the array. The array is filled with "
1084 "the full membership set of the socket, and the required array size is "
1085 "returned in I<optlen>."
1086 msgstr ""
1087 "Получить все группы, в которых сокет является членом В аргументе I<optval> "
1088 "передаётся указатель на B<__u32>, а в I<optlen> — размер массива. Массив "
1089 "заполняется полным набором членства сокета, а требуемый размер массива "
1090 "возвращается в I<optlen>."
1091
1092 #. type: TP
1093 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1094 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1095 #, no-wrap
1096 msgid "B<NETLINK_BROADCAST_ERROR> (since Linux 2.6.30)"
1097 msgstr "B<NETLINK_BROADCAST_ERROR> (начиная с Linux 2.6.30)"
1098
1099 #. commit be0c22a46cfb79ab2342bb28fde99afa94ef868e
1100 #. Author: Pablo Neira Ayuso <[email protected]>
1101 #. type: Plain text
1102 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1103 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1104 #, fuzzy
1105 #| msgid ""
1106 #| "When not set, B<netlink_broadcast()> only reports B<ESRCH> errors and "
1107 #| "silently ignore B<NOBUFS> errors."
1108 msgid ""
1109 "When not set, B<netlink_broadcast()> only reports B<ESRCH> errors and "
1110 "silently ignore B<ENOBUFS> errors."
1111 msgstr ""
1112 "Если не установлен, то B<netlink_broadcast()> сообщает только об ошибках "
1113 "B<ESRCH> и игнорирует ошибки B<NOBUFS>."
1114
1115 #. type: TP
1116 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1117 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1118 #, no-wrap
1119 msgid "B<NETLINK_NO_ENOBUFS> (since Linux 2.6.30)"
1120 msgstr "B<NETLINK_NO_ENOBUFS> (начиная с Linux 2.6.30)"
1121
1122 #. commit 38938bfe3489394e2eed5e40c9bb8f66a2ce1405
1123 #. Author: Pablo Neira Ayuso <[email protected]>
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 ""
1128 "This flag can be used by unicast and broadcast listeners to avoid receiving "
1129 "B<ENOBUFS> errors."
1130 msgstr ""
1131 "Данный флаг могут использовать слушающие одноадресные и широковещательные "
1132 "передачи, чтобы избежать ошибок B<ENOBUFS>."
1133
1134 #. type: TP
1135 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1136 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1137 #, no-wrap
1138 msgid "B<NETLINK_LISTEN_ALL_NSID> (since Linux 4.2)"
1139 msgstr "B<NETLINK_LISTEN_ALL_NSID> (начиная с Linux 4.2)"
1140
1141 #. commit 59324cf35aba5336b611074028777838a963d03b
1142 #. Author: Nicolas Dichtel <[email protected]>
1143 #. type: Plain text
1144 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1145 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1146 msgid ""
1147 "When set, this socket will receive netlink notifications from all network "
1148 "namespaces that have an I<nsid> assigned into the network namespace where "
1149 "the socket has been opened. The I<nsid> is sent to user space via an "
1150 "ancillary data."
1151 msgstr ""
1152 "Если установлен, то этот сокет будет принимать уведомления netlink из всех "
1153 "сетевых пространств имён, имеющих назначенный I<nsid> сетевого пространства "
1154 "имён, в котором был открыт сокет. Значение I<nsid> посылается в "
1155 "пользовательское пространство во вспомогательных данных."
1156
1157 #. type: TP
1158 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1159 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1160 #, fuzzy, no-wrap
1161 #| msgid "B<NETLINK_CAP_ACK> (since Linux 4.2)"
1162 msgid "B<NETLINK_CAP_ACK> (since Linux 4.3)"
1163 msgstr "B<NETLINK_CAP_ACK> (начиная с Linux 4.2)"
1164
1165 #. commit 0a6a3a23ea6efde079a5b77688541a98bf202721
1166 #. Author: Christophe Ricard <[email protected]>
1167 #. type: Plain text
1168 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1169 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1170 #, fuzzy
1171 #| msgid ""
1172 #| "The kernel may fail to allocate the necessary room for the acknowledgment "
1173 #| "message back to user space. This option trims off the payload of the "
1174 #| "original netlink message. The netlink message header is still included, "
1175 #| "so the user can guess from the sequence number which message triggered "
1176 #| "the acknowledgment."
1177 msgid ""
1178 "The kernel may fail to allocate the necessary room for the acknowledgement "
1179 "message back to user space. This option trims off the payload of the "
1180 "original netlink message. The netlink message header is still included, so "
1181 "the user can guess from the sequence number which message triggered the "
1182 "acknowledgement."
1183 msgstr ""
1184 "В ядре может возникнуть ошибка при выделении необходимого места в "
1185 "пользовательском пространстве для подтверждающего сообщения. При установке "
1186 "этого параметра обрезаются данные оригинального сообщения netlink. Заголовок "
1187 "сообщения netlink остаётся, поэтому пользователь может узнать номер "
1188 "последовательности сообщения, на которое пришло подтверждение."
1189
1190 #. type: SH
1191 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1192 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1193 #, no-wrap
1194 msgid "VERSIONS"
1195 msgstr "ВЕРСИИ"
1196
1197 #. type: Plain text
1198 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1199 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1200 msgid "The socket interface to netlink first appeared Linux 2.2."
1201 msgstr "Сокетный интерфейс для netlink впервые появился в Linux 2.2."
1202
1203 #. type: Plain text
1204 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1205 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1206 msgid ""
1207 "Linux 2.0 supported a more primitive device-based netlink interface (which "
1208 "is still available as a compatibility option). This obsolete interface is "
1209 "not described here."
1210 msgstr ""
1211 "Linux 2.0 поддерживал более примитивный интерфейс на основе устройств "
1212 "(который всё ещё доступен для совместимости). Этот устаревший интерфейс "
1213 "здесь не описывается."
1214
1215 #. type: SH
1216 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1217 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1218 #, no-wrap
1219 msgid "NOTES"
1220 msgstr "ПРИМЕЧАНИЯ"
1221
1222 #. type: Plain text
1223 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1224 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1225 msgid ""
1226 "It is often better to use netlink via I<libnetlink> or I<libnl> than via the "
1227 "low-level kernel interface."
1228 msgstr ""
1229 "В большинстве случаев лучше использовать netlink с помощью функций библиотек "
1230 "I<libnetlink> или I<libnl>, а не через низкоуровневый интерфейс ядра."
1231
1232 #. type: SH
1233 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1234 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1235 #, no-wrap
1236 msgid "BUGS"
1237 msgstr "ПРОГРАММНЫЕ ОШИБКИ"
1238
1239 #. type: Plain text
1240 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1241 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1242 msgid "This manual page is not complete."
1243 msgstr "Эта справочной странице не содержится всей необходимой информации."
1244
1245 #. type: SH
1246 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1247 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1248 #, no-wrap
1249 msgid "EXAMPLES"
1250 msgstr "ПРИМЕРЫ"
1251
1252 #. type: Plain text
1253 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1254 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1255 msgid ""
1256 "The following example creates a B<NETLINK_ROUTE> netlink socket which will "
1257 "listen to the B<RTMGRP_LINK> (network interface create/delete/up/down "
1258 "events) and B<RTMGRP_IPV4_IFADDR> (IPv4 addresses add/delete events) "
1259 "multicast groups."
1260 msgstr ""
1261 "В следующем примере создаётся сокет netlink семейства B<NETLINK_ROUTE>, "
1262 "который будет прослушивать многоадресные группы B<RTMGRP_LINK> (события о "
1263 "создании/удалении/включении/выключении сетевых интерфейсов) и "
1264 "B<RTMGRP_IPV4_IFADDR> (события о добавлении/удалении адресов IPv4)."
1265
1266 #. type: Plain text
1267 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1268 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1269 #, fuzzy, no-wrap
1270 #| msgid ""
1271 #| "memset(&sa, 0, sizeof(sa));\n"
1272 #| "sa.nl_family = AF_NETLINK;\n"
1273 #| "sa.nl_groups = RTMGRP_LINK | RTMGRP_IPV4_IFADDR;\n"
1274 msgid ""
1275 "struct sockaddr_nl sa;\n"
1276 "\\&\n"
1277 "memset(&sa, 0, sizeof(sa));\n"
1278 "sa.nl_family = AF_NETLINK;\n"
1279 "sa.nl_groups = RTMGRP_LINK | RTMGRP_IPV4_IFADDR;\n"
1280 "\\&\n"
1281 "fd = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE);\n"
1282 "bind(fd, (struct sockaddr *) &sa, sizeof(sa));\n"
1283 msgstr ""
1284 "memset(&sa, 0, sizeof(sa));\n"
1285 "sa.nl_family = AF_NETLINK;\n"
1286 "sa.nl_groups = RTMGRP_LINK | RTMGRP_IPV4_IFADDR;\n"
1287
1288 #. type: Plain text
1289 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1290 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1291 msgid ""
1292 "The next example demonstrates how to send a netlink message to the kernel "
1293 "(pid 0). Note that the application must take care of message sequence "
1294 "numbers in order to reliably track acknowledgements."
1295 msgstr ""
1296 "В следующем примере показано как отправить сообщение netlink ядру (pid 0). "
1297 "Заметим, что приложение должно управлять нумерацией сообщений, чтобы "
1298 "отслеживать подтверждения о доставке."
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 #, fuzzy, no-wrap
1304 #| msgid ""
1305 #| "msg = { &sa, sizeof(sa), &iov, 1, NULL, 0, 0 };\n"
1306 #| "memset(&sa, 0, sizeof(sa));\n"
1307 #| "sa.nl_family = AF_NETLINK;\n"
1308 #| "nh-E<gt>nlmsg_pid = 0;\n"
1309 #| "nh-E<gt>nlmsg_seq = ++sequence_number;\n"
1310 #| "/* Request an ack from kernel by setting NLM_F_ACK */\n"
1311 #| "nh-E<gt>nlmsg_flags |= NLM_F_ACK;\n"
1312 msgid ""
1313 "struct nlmsghdr *nh; /* The nlmsghdr with payload to send */\n"
1314 "struct sockaddr_nl sa;\n"
1315 "struct iovec iov = { nh, nh-E<gt>nlmsg_len };\n"
1316 "struct msghdr msg;\n"
1317 "\\&\n"
1318 "msg = { &sa, sizeof(sa), &iov, 1, NULL, 0, 0 };\n"
1319 "memset(&sa, 0, sizeof(sa));\n"
1320 "sa.nl_family = AF_NETLINK;\n"
1321 "nh-E<gt>nlmsg_pid = 0;\n"
1322 "nh-E<gt>nlmsg_seq = ++sequence_number;\n"
1323 "/* Request an ack from kernel by setting NLM_F_ACK */\n"
1324 "nh-E<gt>nlmsg_flags |= NLM_F_ACK;\n"
1325 "\\&\n"
1326 "sendmsg(fd, &msg, 0);\n"
1327 msgstr ""
1328 "msg = { &sa, sizeof(sa), &iov, 1, NULL, 0, 0 };\n"
1329 "memset(&sa, 0, sizeof(sa));\n"
1330 "sanl_family = AF_NETLINK;\n"
1331 "nh-E<gt>nlmsg_pid = 0;\n"
1332 "nh-E<gt>nlmsg_seq = ++sequence_number;\n"
1333 "/* для запроса подтверждения от ядра, устанавливаем NLM_F_ACK */\n"
1334 "nh-E<gt>nlmsg_flags |= NLM_F_ACK;\n"
1335
1336 #. type: Plain text
1337 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1338 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1339 msgid "And the last example is about reading netlink message."
1340 msgstr "И последний пример о том, как выполнять чтение сообщения netlink."
1341
1342 #. type: Plain text
1343 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1344 #: opensuse-leap-16-1 opensuse-tumbleweed
1345 #, no-wrap
1346 msgid ""
1347 "int size;\n"
1348 "/* 8192 to avoid message truncation on platforms with\n"
1349 " page size E<gt> 4096 */\n"
1350 "struct nlmsghdr buf[8192/sizeof(struct nlmsghdr)];\n"
1351 "struct iovec iov = { buf, sizeof(buf) };\n"
1352 "struct sockaddr_nl sa;\n"
1353 "struct msghdr msg;\n"
1354 "struct nlmsghdr *nh;\n"
1355 "\\&\n"
1356 "msg = { &sa, sizeof(sa), &iov, 1, NULL, 0, 0 };\n"
1357 "size = recvmsg(fd, &msg, 0);\n"
1358 "\\&\n"
1359 "for (nh = (struct nlmsghdr *) buf; NLMSG_OK (nh, size);\n"
1360 " nh = NLMSG_NEXT (nh, size)) {\n"
1361 " /* The end of multipart message */\n"
1362 " if (nh-E<gt>nlmsg_type == NLMSG_DONE)\n"
1363 " return;\n"
1364 "\\&\n"
1365 " if (nh-E<gt>nlmsg_type == NLMSG_ERROR)\n"
1366 " /* Do some error handling */\n"
1367 " ...\n"
1368 "\\&\n"
1369 " /* Continue with parsing payload */\n"
1370 " ...\n"
1371 "}\n"
1372 msgstr ""
1373
1374 #. type: SH
1375 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1376 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1377 #, no-wrap
1378 msgid "SEE ALSO"
1379 msgstr "СМОТРИТЕ ТАКЖЕ"
1380
1381 #. type: Plain text
1382 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1383 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1384 msgid ""
1385 "B<cmsg>(3), B<netlink>(3), B<capabilities>(7), B<rtnetlink>(7), "
1386 "B<sock_diag>(7)"
1387 msgstr ""
1388 "B<cmsg>(3), B<netlink>(3), B<capabilities>(7), B<rtnetlink>(7), "
1389 "B<sock_diag>(7)"
1390
1391 #. type: Plain text
1392 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
1393 #: opensuse-tumbleweed
1394 #, fuzzy
1395 #| msgid ""
1396 #| "E<.UR ftp://ftp.inr.ac.ru\\:/ip-routing\\:/iproute2*> information about "
1397 #| "libnetlink E<.UE>"
1398 msgid ""
1399 "E<.UR ftp:\\://ftp.inr.ac.ru\\:/ip-routing\\:/iproute2*> information about "
1400 "libnetlink E<.UE>"
1401 msgstr ""
1402 "E<.UR ftp://ftp.inr.ac.ru\\:/ip-routing\\:/iproute2*> Информация о "
1403 "libnetlink E<.UE>"
1404
1405 #. type: Plain text
1406 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
1407 #: opensuse-tumbleweed
1408 #, fuzzy
1409 #| msgid ""
1410 #| "E<.UR http://www.infradead.org\\:/~tgr\\:/libnl/> information about libnl "
1411 #| "E<.UE>"
1412 msgid ""
1413 "E<.UR http:\\://www.infradead.org\\:/\\[ti]tgr\\:/libnl/> information about "
1414 "libnl E<.UE>"
1415 msgstr ""
1416 "E<.UR http://www.infradead.org\\:/~tgr\\:/libnl/> Информация о libnl E<.UE>"
1417
1418 #. type: Plain text
1419 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1420 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1421 msgid "RFC 3549 \"Linux Netlink as an IP Services Protocol\""
1422 msgstr "RFC 3549 «Linux Netlink as an IP Services Protocol»"
1423
1424 #. type: TH
1425 #: debian-trixie
1426 #, no-wrap
1427 msgid "2024-05-02"
1428 msgstr "2 мая 2024 г."
1429
1430 #. type: TH
1431 #: debian-trixie
1432 #, no-wrap
1433 msgid "Linux man-pages 6.9.1"
1434 msgstr "Страницы руководства Linux 6.9.1"
1435
1436 #. type: Plain text
1437 #: debian-trixie fedora-44 fedora-rawhide
1438 msgid ""
1439 "Netlink is used to transfer information between the kernel and user-space "
1440 "processes. It consists of a standard sockets-based interface for user space "
1441 "processes and an internal kernel API for kernel modules. The internal "
1442 "kernel interface is not documented in this manual page. There is also an "
1443 "obsolete netlink interface via netlink character devices; this interface is "
1444 "not documented here and is provided only for backward compatibility."
1445 msgstr ""
1446 "Протокол netlink используется для передачи информации между ядром и "
1447 "процессами в пользовательском пространстве. Он состоит из стандартного, "
1448 "основанного на сокетах, интерфейса для процессов пользователя и внутреннего "
1449 "API ядра, предназначенного для модулей ядра. Внутренний интерфейс ядра в "
1450 "этой странице не описан. Кроме того, существует устаревший интерфейс "
1451 "netlink, работающий через символьные устройства netlink. Этот интерфейс "
1452 "здесь также не описан; он предназначен только для обратной совместимости."
1453
1454 #. type: Plain text
1455 #: debian-trixie
1456 #, no-wrap
1457 msgid ""
1458 "struct nlmsghdr {\n"
1459 " __u32 nlmsg_len; /* Length of message including header */\n"
1460 " __u16 nlmsg_type; /* Type of message content */\n"
1461 " __u16 nlmsg_flags; /* Additional flags */\n"
1462 " __u32 nlmsg_seq; /* Sequence number */\n"
1463 " __u32 nlmsg_pid; /* Sender port ID */\n"
1464 "};\n"
1465 msgstr ""
1466 "struct nlmsghdr {\n"
1467 " __u32 nlmsg_len; /* длина сообщения, включая заголовок */\n"
1468 " __u16 nlmsg_type; /* тип содержимого сообщения */\n"
1469 " __u16 nlmsg_flags; /* дополнительные флаги */\n"
1470 " __u32 nlmsg_seq; /* номер в последовательности */\n"
1471 " __u32 nlmsg_pid; /* ID порта отправителя */\n"
1472 "};\n"
1473
1474 #. type: Plain text
1475 #: debian-trixie
1476 #, no-wrap
1477 msgid ""
1478 "struct nlmsgerr {\n"
1479 " int error; /* Negative errno or 0 for acknowledgements */\n"
1480 " struct nlmsghdr msg; /* Message header that caused the error */\n"
1481 " /*\n"
1482 " * followed by the message contents\n"
1483 " * unless NETLINK_CAP_ACK was set\n"
1484 " * or the ACK indicates success (error == 0).\n"
1485 " * For example Generic Netlink message with attributes.\n"
1486 " * message length is aligned with NLMSG_ALIGN()\n"
1487 " */\n"
1488 " /*\n"
1489 " * followed by TLVs defined in enum nlmsgerr_attrs\n"
1490 " * if NETLINK_EXT_ACK was set\n"
1491 " */\n"
1492 "};\n"
1493 msgstr ""
1494
1495 #. type: tbl table
1496 #: debian-trixie fedora-44 fedora-rawhide
1497 #, no-wrap
1498 msgid "Standard flag bits in I<nlmsg_flags>"
1499 msgstr "Стандартные биты флагов в I<nlmsg_flags>"
1500
1501 #. type: tbl table
1502 #: debian-trixie fedora-44 fedora-rawhide
1503 #, fuzzy, no-wrap
1504 #| msgid "Convenience macro; equivalent to\n"
1505 msgid ""
1506 "Convenience macro; equivalent to\n"
1507 "(NLM_F_ROOT|NLM_F_MATCH)."
1508 msgstr "Макрос для удобства; эквивалентен\n"
1509
1510 #. type: Plain text
1511 #: debian-trixie
1512 #, no-wrap
1513 msgid ""
1514 "int len;\n"
1515 "/* 8192 to avoid message truncation on platforms with\n"
1516 " page size E<gt> 4096 */\n"
1517 "struct nlmsghdr buf[8192/sizeof(struct nlmsghdr)];\n"
1518 "struct iovec iov = { buf, sizeof(buf) };\n"
1519 "struct sockaddr_nl sa;\n"
1520 "struct msghdr msg;\n"
1521 "struct nlmsghdr *nh;\n"
1522 "\\&\n"
1523 "msg = { &sa, sizeof(sa), &iov, 1, NULL, 0, 0 };\n"
1524 "len = recvmsg(fd, &msg, 0);\n"
1525 "\\&\n"
1526 "for (nh = (struct nlmsghdr *) buf; NLMSG_OK (nh, len);\n"
1527 " nh = NLMSG_NEXT (nh, len)) {\n"
1528 " /* The end of multipart message */\n"
1529 " if (nh-E<gt>nlmsg_type == NLMSG_DONE)\n"
1530 " return;\n"
1531 "\\&\n"
1532 " if (nh-E<gt>nlmsg_type == NLMSG_ERROR)\n"
1533 " /* Do some error handling */\n"
1534 " ...\n"
1535 "\\&\n"
1536 " /* Continue with parsing payload */\n"
1537 " ...\n"
1538 "}\n"
1539 msgstr ""
1540
1541 #. type: Plain text
1542 #: debian-trixie fedora-44 fedora-rawhide
1543 msgid ""
1544 "E<.UR ftp://ftp.inr.ac.ru\\:/ip-routing\\:/iproute2*> information about "
1545 "libnetlink E<.UE>"
1546 msgstr ""
1547 "E<.UR ftp://ftp.inr.ac.ru\\:/ip-routing\\:/iproute2*> Информация о "
1548 "libnetlink E<.UE>"
1549
1550 #. type: Plain text
1551 #: debian-trixie fedora-44 fedora-rawhide
1552 #, fuzzy
1553 #| msgid ""
1554 #| "E<.UR http://www.infradead.org\\:/~tgr\\:/libnl/> information about libnl "
1555 #| "E<.UE>"
1556 msgid ""
1557 "E<.UR http://www.infradead.org\\:/\\[ti]tgr\\:/libnl/> information about "
1558 "libnl E<.UE>"
1559 msgstr ""
1560 "E<.UR http://www.infradead.org\\:/~tgr\\:/libnl/> Информация о libnl E<.UE>"
1561
1562 #. type: TH
1563 #: fedora-44 fedora-rawhide
1564 #, no-wrap
1565 msgid "2024-11-17"
1566 msgstr "17 ноября 2024 г."
1567
1568 #. type: TH
1569 #: fedora-44 fedora-rawhide
1570 #, no-wrap
1571 msgid "Linux man-pages 6.13"
1572 msgstr "Страницы руководства Linux 6.13"
1573
1574 #. type: TH
1575 #: mageia-cauldron
1576 #, no-wrap
1577 msgid "Linux man-pages 6.17"
1578 msgstr "Страницы руководства Linux 6.17"
1579
1580 #. type: TH
1581 #: opensuse-leap-16-1 opensuse-tumbleweed
1582 #, no-wrap
1583 msgid "Linux man-pages (unreleased)"
1584 msgstr "Страницы руководства Linux (не выпущены)"