Debian Codegraph @

templates/man7/netlink.7.pot

raw
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Free Software Foundation, Inc.
3 # This file is distributed under the same license as the PACKAGE package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5 #
6 #, fuzzy
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: PACKAGE VERSION\n"
10 "POT-Creation-Date: 2026-06-05 06:32+0200\n"
11 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <[email protected]>\n"
14 "Language: \n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18
19 #. type: TH
20 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
21 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
22 #, no-wrap
23 msgid "netlink"
24 msgstr ""
25
26 #. type: TH
27 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
28 #: opensuse-tumbleweed
29 #, no-wrap
30 msgid "2026-02-08"
31 msgstr ""
32
33 #. type: TH
34 #: archlinux debian-unstable
35 #, no-wrap
36 msgid "Linux man-pages 6.18"
37 msgstr ""
38
39 #. type: SH
40 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
41 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
42 #, no-wrap
43 msgid "NAME"
44 msgstr ""
45
46 #. type: Plain text
47 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
48 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
49 msgid "netlink - communication between kernel and user space (AF_NETLINK)"
50 msgstr ""
51
52 #. type: SH
53 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
54 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
55 #, no-wrap
56 msgid "SYNOPSIS"
57 msgstr ""
58
59 #. type: Plain text
60 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
61 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
62 #, no-wrap
63 msgid ""
64 "B<#include E<lt>asm/types.hE<gt>>\n"
65 "B<#include E<lt>sys/socket.hE<gt>>\n"
66 "B<#include E<lt>linux/netlink.hE<gt>>\n"
67 msgstr ""
68
69 #. type: Plain text
70 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
71 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
72 #, no-wrap
73 msgid "B<netlink_socket = socket(AF_NETLINK, >I<socket_type>B<, >I<netlink_family>B<);>\n"
74 msgstr ""
75
76 #. type: SH
77 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
78 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
79 #, no-wrap
80 msgid "DESCRIPTION"
81 msgstr ""
82
83 #. type: Plain text
84 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
85 #: opensuse-tumbleweed
86 msgid ""
87 "Netlink is used to transfer information between the kernel and user-space "
88 "processes. It consists of a standard sockets-based interface for user space "
89 "processes and an internal kernel API for kernel modules. The internal "
90 "kernel interface is not documented in this manual page. There is also an "
91 "obsolete netlink interface via netlink character devices; this interface is "
92 "not documented here, and is provided only for backward compatibility."
93 msgstr ""
94
95 #. type: Plain text
96 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
97 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
98 msgid ""
99 "Netlink is a datagram-oriented service. Both B<SOCK_RAW> and B<SOCK_DGRAM> "
100 "are valid values for I<socket_type>. However, the netlink protocol does not "
101 "distinguish between datagram and raw sockets."
102 msgstr ""
103
104 #. type: Plain text
105 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
106 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
107 msgid ""
108 "I<netlink_family> selects the kernel module or netlink group to communicate "
109 "with. The currently assigned netlink families are:"
110 msgstr ""
111
112 #. type: TP
113 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
114 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
115 #, no-wrap
116 msgid "B<NETLINK_ROUTE>"
117 msgstr ""
118
119 #. type: Plain text
120 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
121 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
122 msgid ""
123 "Receives routing and link updates and may be used to modify the routing "
124 "tables (both IPv4 and IPv6), IP addresses, link parameters, neighbor setups, "
125 "queueing disciplines, traffic classes, and packet classifiers (see "
126 "B<rtnetlink>(7))."
127 msgstr ""
128
129 #. type: TP
130 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
131 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
132 #, no-wrap
133 msgid "B<NETLINK_W1> (Linux 2.6.13 to Linux 2.16.17)"
134 msgstr ""
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 "Messages from 1-wire subsystem."
140 msgstr ""
141
142 #. type: TP
143 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
144 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
145 #, no-wrap
146 msgid "B<NETLINK_USERSOCK>"
147 msgstr ""
148
149 #. type: Plain text
150 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
151 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
152 msgid "Reserved for user-mode socket protocols."
153 msgstr ""
154
155 #. type: TP
156 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
157 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
158 #, no-wrap
159 msgid "B<NETLINK_FIREWALL> (up to and including Linux 3.4)"
160 msgstr ""
161
162 #. removed by commit d16cf20e2f2f13411eece7f7fb72c17d141c4a84
163 #. type: Plain text
164 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
165 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
166 msgid ""
167 "Transport IPv4 packets from netfilter to user space. Used by I<ip_queue> "
168 "kernel module. After a long period of being declared obsolete (in favor of "
169 "the more advanced I<nfnetlink_queue> feature), B<NETLINK_FIREWALL> was "
170 "removed in Linux 3.5."
171 msgstr ""
172
173 #. type: TP
174 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
175 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
176 #, no-wrap
177 msgid "B<NETLINK_SOCK_DIAG> (since Linux 3.3)"
178 msgstr ""
179
180 #. commit 7f1fb60c4fc9fb29fbb406ac8c4cfb4e59e168d6
181 #. type: Plain text
182 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
183 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
184 msgid ""
185 "Query information about sockets of various protocol families from the kernel "
186 "(see B<sock_diag>(7))."
187 msgstr ""
188
189 #. type: TP
190 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
191 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
192 #, no-wrap
193 msgid "B<NETLINK_INET_DIAG> (since Linux 2.6.14)"
194 msgstr ""
195
196 #. type: Plain text
197 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
198 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
199 msgid "An obsolete synonym for B<NETLINK_SOCK_DIAG>."
200 msgstr ""
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_NFLOG> (up to and including Linux 3.16)"
207 msgstr ""
208
209 #. type: Plain text
210 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
211 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
212 msgid "Netfilter/iptables ULOG."
213 msgstr ""
214
215 #. type: TP
216 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
217 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
218 #, no-wrap
219 msgid "B<NETLINK_XFRM>"
220 msgstr ""
221
222 #. FIXME More details on NETLINK_XFRM needed.
223 #. type: Plain text
224 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
225 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
226 msgid "IPsec."
227 msgstr ""
228
229 #. type: TP
230 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
231 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
232 #, no-wrap
233 msgid "B<NETLINK_SELINUX> (since Linux 2.6.4)"
234 msgstr ""
235
236 #. type: Plain text
237 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
238 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
239 msgid "SELinux event notifications."
240 msgstr ""
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_ISCSI> (since Linux 2.6.15)"
247 msgstr ""
248
249 #. FIXME More details on NETLINK_ISCSI needed.
250 #. type: Plain text
251 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
252 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
253 msgid "Open-iSCSI."
254 msgstr ""
255
256 #. type: TP
257 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
258 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
259 #, no-wrap
260 msgid "B<NETLINK_AUDIT> (since Linux 2.6.6)"
261 msgstr ""
262
263 #. FIXME More details on NETLINK_AUDIT needed.
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 "Auditing."
268 msgstr ""
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_FIB_LOOKUP> (since Linux 2.6.13)"
275 msgstr ""
276
277 #. FIXME More details on NETLINK_FIB_LOOKUP 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 "Access to FIB lookup from user space."
282 msgstr ""
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_CONNECTOR> (since Linux 2.6.14)"
289 msgstr ""
290
291 #. commit baa293e9544bea71361950d071579f0e4d5713ed
292 #. type: Plain text
293 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
294 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
295 msgid ""
296 "Kernel connector. See I<Documentation/driver-api/connector.rst> (or I</"
297 "Documentation/connector/connector.*> in Linux 5.2 and earlier) in the Linux "
298 "kernel source tree for further information."
299 msgstr ""
300
301 #. type: TP
302 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
303 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
304 #, no-wrap
305 msgid "B<NETLINK_NETFILTER> (since Linux 2.6.14)"
306 msgstr ""
307
308 #. FIXME More details on NETLINK_NETFILTER needed.
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 "Netfilter subsystem."
313 msgstr ""
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 "B<NETLINK_SCSITRANSPORT> (since Linux 2.6.19)"
320 msgstr ""
321
322 #. commit 84314fd4740ad73550c76dee4a9578979d84af48
323 #. FIXME More details on NETLINK_SCSITRANSPORT needed.
324 #. type: Plain text
325 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
326 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
327 msgid "SCSI Transports."
328 msgstr ""
329
330 #. type: TP
331 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
332 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
333 #, no-wrap
334 msgid "B<NETLINK_RDMA> (since Linux 3.0)"
335 msgstr ""
336
337 #. commit b2cbae2c248776d81cc265ff7d48405b6a4cc463
338 #. FIXME More details on NETLINK_RDMA needed.
339 #. type: Plain text
340 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
341 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
342 msgid "Infiniband RDMA."
343 msgstr ""
344
345 #. type: TP
346 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
347 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
348 #, no-wrap
349 msgid "B<NETLINK_IP6_FW> (up to and including Linux 3.4)"
350 msgstr ""
351
352 #. type: Plain text
353 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
354 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
355 msgid ""
356 "Transport IPv6 packets from netfilter to user space. Used by I<ip6_queue> "
357 "kernel module."
358 msgstr ""
359
360 #. type: TP
361 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
362 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
363 #, no-wrap
364 msgid "B<NETLINK_DNRTMSG>"
365 msgstr ""
366
367 #. type: Plain text
368 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
369 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
370 msgid "DECnet routing messages."
371 msgstr ""
372
373 #. type: TP
374 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
375 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
376 #, no-wrap
377 msgid "B<NETLINK_KOBJECT_UEVENT> (since Linux 2.6.10)"
378 msgstr ""
379
380 #. FIXME More details on NETLINK_KOBJECT_UEVENT needed.
381 #. type: Plain text
382 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
383 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
384 msgid "Kernel messages to user space."
385 msgstr ""
386
387 #. type: TP
388 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
389 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
390 #, no-wrap
391 msgid "B<NETLINK_GENERIC> (since Linux 2.6.15)"
392 msgstr ""
393
394 #. type: Plain text
395 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
396 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
397 msgid "Generic netlink family for simplified netlink usage."
398 msgstr ""
399
400 #. type: TP
401 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
402 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
403 #, no-wrap
404 msgid "B<NETLINK_CRYPTO> (since Linux 3.2)"
405 msgstr ""
406
407 #. commit a38f7907b926e4c6c7d389ad96cc38cec2e5a9e9
408 #. Author: Steffen Klassert <[email protected]>
409 #. type: Plain text
410 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
411 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
412 msgid ""
413 "Netlink interface to request information about ciphers registered with the "
414 "kernel crypto API as well as allow configuration of the kernel crypto API."
415 msgstr ""
416
417 #. type: Plain text
418 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
419 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
420 msgid ""
421 "Netlink messages consist of a byte stream with one or multiple I<nlmsghdr> "
422 "headers and associated payload. The byte stream should be accessed only "
423 "with the standard B<NLMSG_*> macros. See B<netlink>(3) for further "
424 "information."
425 msgstr ""
426
427 #. type: Plain text
428 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
429 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
430 msgid ""
431 "In multipart messages (multiple I<nlmsghdr> headers with associated payload "
432 "in one byte stream) the first and all following headers have the "
433 "B<NLM_F_MULTI> flag set, except for the last header which has the type "
434 "B<NLMSG_DONE>."
435 msgstr ""
436
437 #. type: Plain text
438 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
439 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
440 msgid "After each I<nlmsghdr> the payload follows."
441 msgstr ""
442
443 #. type: Plain text
444 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
445 #: opensuse-leap-16-1 opensuse-tumbleweed
446 #, no-wrap
447 msgid ""
448 "struct nlmsghdr {\n"
449 " __u32 nlmsg_len; /* Size of message including header */\n"
450 " __u16 nlmsg_type; /* Type of message content */\n"
451 " __u16 nlmsg_flags; /* Additional flags */\n"
452 " __u32 nlmsg_seq; /* Sequence number */\n"
453 " __u32 nlmsg_pid; /* Sender port ID */\n"
454 "};\n"
455 msgstr ""
456
457 #. type: Plain text
458 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
459 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
460 msgid ""
461 "I<nlmsg_type> can be one of the standard message types: B<NLMSG_NOOP> "
462 "message is to be ignored, B<NLMSG_ERROR> message signals an error and the "
463 "payload contains an I<nlmsgerr> structure, B<NLMSG_DONE> message terminates "
464 "a multipart message. Error messages get the original request appended, "
465 "unless the user requests to cap the error message, and get extra error data "
466 "if requested."
467 msgstr ""
468
469 #. type: Plain text
470 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
471 #: opensuse-leap-16-1 opensuse-tumbleweed
472 #, no-wrap
473 msgid ""
474 "struct nlmsgerr {\n"
475 " int error; /* Negative errno or 0 for acknowledgements */\n"
476 " struct nlmsghdr msg; /* Message header that caused the error */\n"
477 " /*\n"
478 " * followed by the message contents\n"
479 " * unless NETLINK_CAP_ACK was set\n"
480 " * or the ACK indicates success (error == 0).\n"
481 " * For example Generic Netlink message with attributes.\n"
482 " * message size is aligned with NLMSG_ALIGN()\n"
483 " */\n"
484 " /*\n"
485 " * followed by TLVs defined in enum nlmsgerr_attrs\n"
486 " * if NETLINK_EXT_ACK was set\n"
487 " */\n"
488 "};\n"
489 msgstr ""
490
491 #. type: Plain text
492 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
493 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
494 msgid ""
495 "A netlink family usually specifies more message types, see the appropriate "
496 "manual pages for that, for example, B<rtnetlink>(7) for B<NETLINK_ROUTE>."
497 msgstr ""
498
499 #. type: tbl table
500 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
501 #: opensuse-tumbleweed
502 #, no-wrap
503 msgid "Standard flag bits in \\f[I]nlmsg_flags\\fR"
504 msgstr ""
505
506 #. type: tbl table
507 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
508 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
509 #, no-wrap
510 msgid "_"
511 msgstr ""
512
513 #. type: tbl table
514 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
515 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
516 #, no-wrap
517 msgid "NLM_F_REQUEST"
518 msgstr ""
519
520 #. type: tbl table
521 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
522 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
523 #, no-wrap
524 msgid "Must be set on all request messages."
525 msgstr ""
526
527 #. type: tbl table
528 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
529 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
530 #, no-wrap
531 msgid "NLM_F_MULTI"
532 msgstr ""
533
534 #. type: tbl table
535 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
536 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
537 #, no-wrap
538 msgid ""
539 "The message is part of a multipart message terminated by\n"
540 "B<NLMSG_DONE>."
541 msgstr ""
542
543 #. type: tbl table
544 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
545 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
546 #, no-wrap
547 msgid "NLM_F_ACK"
548 msgstr ""
549
550 #. type: tbl table
551 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
552 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
553 #, no-wrap
554 msgid "Request for an acknowledgement on success."
555 msgstr ""
556
557 #. type: tbl table
558 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
559 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
560 #, no-wrap
561 msgid "NLM_F_ECHO"
562 msgstr ""
563
564 #. type: tbl table
565 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
566 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
567 #, no-wrap
568 msgid "Echo this request."
569 msgstr ""
570
571 #. type: tbl table
572 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
573 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
574 #, no-wrap
575 msgid "Additional flag bits for GET requests"
576 msgstr ""
577
578 #. type: tbl table
579 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
580 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
581 #, no-wrap
582 msgid "NLM_F_ROOT"
583 msgstr ""
584
585 #. type: tbl table
586 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
587 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
588 #, no-wrap
589 msgid "Return the complete table instead of a single entry."
590 msgstr ""
591
592 #. type: tbl table
593 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
594 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
595 #, no-wrap
596 msgid "NLM_F_MATCH"
597 msgstr ""
598
599 #. type: tbl table
600 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
601 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
602 #, no-wrap
603 msgid ""
604 "Return all entries matching criteria passed in message content.\n"
605 "Not implemented yet."
606 msgstr ""
607
608 #. type: tbl table
609 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
610 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
611 #, no-wrap
612 msgid "NLM_F_ATOMIC"
613 msgstr ""
614
615 #. type: tbl table
616 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
617 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
618 #, no-wrap
619 msgid "Return an atomic snapshot of the table."
620 msgstr ""
621
622 #. type: tbl table
623 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
624 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
625 #, no-wrap
626 msgid "NLM_F_DUMP"
627 msgstr ""
628
629 #. type: tbl table
630 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
631 #: opensuse-tumbleweed
632 #, no-wrap
633 msgid ""
634 "Convenience macro;\n"
635 "equivalent to\n"
636 "(NLM_F_ROOT|NLM_F_MATCH)."
637 msgstr ""
638
639 #. type: Plain text
640 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
641 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
642 msgid ""
643 "Note that B<NLM_F_ATOMIC> requires the B<CAP_NET_ADMIN> capability or an "
644 "effective UID of 0."
645 msgstr ""
646
647 #. type: tbl table
648 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
649 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
650 #, no-wrap
651 msgid "Additional flag bits for NEW requests"
652 msgstr ""
653
654 #. type: tbl table
655 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
656 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
657 #, no-wrap
658 msgid "NLM_F_REPLACE"
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 "Replace existing matching object."
666 msgstr ""
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 "NLM_F_EXCL"
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 "Don't replace if the object already exists."
680 msgstr ""
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_CREATE"
687 msgstr ""
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 "Create object if it doesn't already exist."
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_APPEND"
701 msgstr ""
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 "Add to the end of the object list."
708 msgstr ""
709
710 #. type: Plain text
711 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
712 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
713 msgid ""
714 "I<nlmsg_seq> and I<nlmsg_pid> are used to track messages. I<nlmsg_pid> "
715 "shows the origin of the message. Note that there isn't a 1:1 relationship "
716 "between I<nlmsg_pid> and the PID of the process if the message originated "
717 "from a netlink socket. See the B<ADDRESS FORMATS> section for further "
718 "information."
719 msgstr ""
720
721 #. FIXME Explain more about nlmsg_seq and nlmsg_pid.
722 #. type: Plain text
723 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
724 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
725 msgid "Both I<nlmsg_seq> and I<nlmsg_pid> are opaque to netlink core."
726 msgstr ""
727
728 #. type: Plain text
729 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
730 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
731 msgid ""
732 "Netlink is not a reliable protocol. It tries its best to deliver a message "
733 "to its destination(s), but may drop messages when an out-of-memory condition "
734 "or other error occurs. For reliable transfer the sender can request an "
735 "acknowledgement from the receiver by setting the B<NLM_F_ACK> flag. An "
736 "acknowledgement is an B<NLMSG_ERROR> packet with the error field set to 0. "
737 "The application must generate acknowledgements for received messages "
738 "itself. The kernel tries to send an B<NLMSG_ERROR> message for every failed "
739 "packet. A user process should follow this convention too."
740 msgstr ""
741
742 #. type: Plain text
743 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
744 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
745 msgid ""
746 "However, reliable transmissions from kernel to user are impossible in any "
747 "case. The kernel can't send a netlink message if the socket buffer is full: "
748 "the message will be dropped and the kernel and the user-space process will "
749 "no longer have the same view of kernel state. It is up to the application "
750 "to detect when this happens (via the B<ENOBUFS> error returned by "
751 "B<recvmsg>(2)) and resynchronize."
752 msgstr ""
753
754 #. type: SS
755 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
756 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
757 #, no-wrap
758 msgid "Address formats"
759 msgstr ""
760
761 #. type: Plain text
762 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
763 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
764 msgid ""
765 "The I<sockaddr_nl> structure describes a netlink client in user space or in "
766 "the kernel. A I<sockaddr_nl> can be either unicast (only sent to one peer) "
767 "or sent to netlink multicast groups (I<nl_groups> not equal 0)."
768 msgstr ""
769
770 #. type: Plain text
771 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
772 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
773 #, no-wrap
774 msgid ""
775 "struct sockaddr_nl {\n"
776 " sa_family_t nl_family; /* AF_NETLINK */\n"
777 " unsigned short nl_pad; /* Zero */\n"
778 " pid_t nl_pid; /* Port ID */\n"
779 " __u32 nl_groups; /* Multicast groups mask */\n"
780 "};\n"
781 msgstr ""
782
783 #. type: Plain text
784 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
785 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
786 msgid ""
787 "I<nl_pid> is the unicast address of netlink socket. It's always 0 if the "
788 "destination is in the kernel. For a user-space process, I<nl_pid> is "
789 "usually the PID of the process owning the destination socket. However, "
790 "I<nl_pid> identifies a netlink socket, not a process. If a process owns "
791 "several netlink sockets, then I<nl_pid> can be equal to the process ID only "
792 "for at most one socket. There are two ways to assign I<nl_pid> to a netlink "
793 "socket. If the application sets I<nl_pid> before calling B<bind>(2), then "
794 "it is up to the application to make sure that I<nl_pid> is unique. If the "
795 "application sets it to 0, the kernel takes care of assigning it. The kernel "
796 "assigns the process ID to the first netlink socket the process opens and "
797 "assigns a unique I<nl_pid> to every netlink socket that the process "
798 "subsequently creates."
799 msgstr ""
800
801 #. commit d629b836d151d43332492651dd841d32e57ebe3b
802 #. type: Plain text
803 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
804 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
805 msgid ""
806 "I<nl_groups> is a bit mask with every bit representing a netlink group "
807 "number. Each netlink family has a set of 32 multicast groups. When "
808 "B<bind>(2) is called on the socket, the I<nl_groups> field in the "
809 "I<sockaddr_nl> should be set to a bit mask of the groups which it wishes to "
810 "listen to. The default value for this field is zero which means that no "
811 "multicasts will be received. A socket may multicast messages to any of the "
812 "multicast groups by setting I<nl_groups> to a bit mask of the groups it "
813 "wishes to send to when it calls B<sendmsg>(2) or does a B<connect>(2). "
814 "Only processes with an effective UID of 0 or the B<CAP_NET_ADMIN> capability "
815 "may send or listen to a netlink multicast group. Since Linux 2.6.13, "
816 "messages can't be broadcast to multiple groups. Any replies to a message "
817 "received for a multicast group should be sent back to the sending PID and "
818 "the multicast group. Some Linux kernel subsystems may additionally allow "
819 "other users to send and/or receive messages. As at Linux 3.0, the "
820 "B<NETLINK_KOBJECT_UEVENT>, B<NETLINK_GENERIC>, B<NETLINK_ROUTE>, and "
821 "B<NETLINK_SELINUX> groups allow other users to receive messages. No groups "
822 "allow other users to send messages."
823 msgstr ""
824
825 #. type: SS
826 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
827 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
828 #, no-wrap
829 msgid "Socket options"
830 msgstr ""
831
832 #. type: Plain text
833 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
834 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
835 msgid ""
836 "To set or get a netlink socket option, call B<getsockopt>(2) to read or "
837 "B<setsockopt>(2) to write the option with the option level argument set to "
838 "B<SOL_NETLINK>. Unless otherwise noted, I<optval> is a pointer to an I<int>."
839 msgstr ""
840
841 #. type: TP
842 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
843 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
844 #, no-wrap
845 msgid "B<NETLINK_PKTINFO> (since Linux 2.6.14)"
846 msgstr ""
847
848 #. commit 9a4595bc7e67962f13232ee55a64e063062c3a99
849 #. Author: Patrick McHardy <[email protected]>
850 #. type: Plain text
851 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
852 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
853 msgid ""
854 "Enable B<nl_pktinfo> control messages for received packets to get the "
855 "extended destination group number."
856 msgstr ""
857
858 #. type: TP
859 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
860 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
861 #, no-wrap
862 msgid "B<NETLINK_ADD_MEMBERSHIP>"
863 msgstr ""
864
865 #. type: TQ
866 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
867 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
868 #, no-wrap
869 msgid "B<NETLINK_DROP_MEMBERSHIP> (since Linux 2.6.14)"
870 msgstr ""
871
872 #. commit 9a4595bc7e67962f13232ee55a64e063062c3a99
873 #. Author: Patrick McHardy <[email protected]>
874 #. type: Plain text
875 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
876 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
877 msgid "Join/leave a group specified by I<optval>."
878 msgstr ""
879
880 #. type: TP
881 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
882 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
883 #, no-wrap
884 msgid "B<NETLINK_LIST_MEMBERSHIPS> (since Linux 4.2)"
885 msgstr ""
886
887 #. commit b42be38b2778eda2237fc759e55e3b698b05b315
888 #. Author: David Herrmann <[email protected]>
889 #. type: Plain text
890 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
891 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
892 msgid ""
893 "Retrieve all groups a socket is a member of. I<optval> is a pointer to "
894 "B<__u32> and I<optlen> is the size of the array. The array is filled with "
895 "the full membership set of the socket, and the required array size is "
896 "returned in I<optlen>."
897 msgstr ""
898
899 #. type: TP
900 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
901 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
902 #, no-wrap
903 msgid "B<NETLINK_BROADCAST_ERROR> (since Linux 2.6.30)"
904 msgstr ""
905
906 #. commit be0c22a46cfb79ab2342bb28fde99afa94ef868e
907 #. Author: Pablo Neira Ayuso <[email protected]>
908 #. type: Plain text
909 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
910 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
911 msgid ""
912 "When not set, B<netlink_broadcast()> only reports B<ESRCH> errors and "
913 "silently ignore B<ENOBUFS> errors."
914 msgstr ""
915
916 #. type: TP
917 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
918 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
919 #, no-wrap
920 msgid "B<NETLINK_NO_ENOBUFS> (since Linux 2.6.30)"
921 msgstr ""
922
923 #. commit 38938bfe3489394e2eed5e40c9bb8f66a2ce1405
924 #. Author: Pablo Neira Ayuso <[email protected]>
925 #. type: Plain text
926 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
927 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
928 msgid ""
929 "This flag can be used by unicast and broadcast listeners to avoid receiving "
930 "B<ENOBUFS> errors."
931 msgstr ""
932
933 #. type: TP
934 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
935 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
936 #, no-wrap
937 msgid "B<NETLINK_LISTEN_ALL_NSID> (since Linux 4.2)"
938 msgstr ""
939
940 #. commit 59324cf35aba5336b611074028777838a963d03b
941 #. Author: Nicolas Dichtel <[email protected]>
942 #. type: Plain text
943 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
944 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
945 msgid ""
946 "When set, this socket will receive netlink notifications from all network "
947 "namespaces that have an I<nsid> assigned into the network namespace where "
948 "the socket has been opened. The I<nsid> is sent to user space via an "
949 "ancillary data."
950 msgstr ""
951
952 #. type: TP
953 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
954 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
955 #, no-wrap
956 msgid "B<NETLINK_CAP_ACK> (since Linux 4.3)"
957 msgstr ""
958
959 #. commit 0a6a3a23ea6efde079a5b77688541a98bf202721
960 #. Author: Christophe Ricard <[email protected]>
961 #. type: Plain text
962 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
963 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
964 msgid ""
965 "The kernel may fail to allocate the necessary room for the acknowledgement "
966 "message back to user space. This option trims off the payload of the "
967 "original netlink message. The netlink message header is still included, so "
968 "the user can guess from the sequence number which message triggered the "
969 "acknowledgement."
970 msgstr ""
971
972 #. type: SH
973 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
974 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
975 #, no-wrap
976 msgid "VERSIONS"
977 msgstr ""
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 socket interface to netlink first appeared Linux 2.2."
983 msgstr ""
984
985 #. type: Plain text
986 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
987 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
988 msgid ""
989 "Linux 2.0 supported a more primitive device-based netlink interface (which "
990 "is still available as a compatibility option). This obsolete interface is "
991 "not described here."
992 msgstr ""
993
994 #. type: SH
995 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
996 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
997 #, no-wrap
998 msgid "NOTES"
999 msgstr ""
1000
1001 #. type: Plain text
1002 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1003 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1004 msgid ""
1005 "It is often better to use netlink via I<libnetlink> or I<libnl> than via the "
1006 "low-level kernel interface."
1007 msgstr ""
1008
1009 #. type: SH
1010 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1011 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1012 #, no-wrap
1013 msgid "BUGS"
1014 msgstr ""
1015
1016 #. type: Plain text
1017 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1018 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1019 msgid "This manual page is not complete."
1020 msgstr ""
1021
1022 #. type: SH
1023 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1024 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1025 #, no-wrap
1026 msgid "EXAMPLES"
1027 msgstr ""
1028
1029 #. type: Plain text
1030 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1031 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1032 msgid ""
1033 "The following example creates a B<NETLINK_ROUTE> netlink socket which will "
1034 "listen to the B<RTMGRP_LINK> (network interface create/delete/up/down "
1035 "events) and B<RTMGRP_IPV4_IFADDR> (IPv4 addresses add/delete events) "
1036 "multicast groups."
1037 msgstr ""
1038
1039 #. type: Plain text
1040 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1041 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1042 #, no-wrap
1043 msgid ""
1044 "struct sockaddr_nl sa;\n"
1045 "\\&\n"
1046 "memset(&sa, 0, sizeof(sa));\n"
1047 "sa.nl_family = AF_NETLINK;\n"
1048 "sa.nl_groups = RTMGRP_LINK | RTMGRP_IPV4_IFADDR;\n"
1049 "\\&\n"
1050 "fd = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE);\n"
1051 "bind(fd, (struct sockaddr *) &sa, sizeof(sa));\n"
1052 msgstr ""
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 next example demonstrates how to send a netlink message to the kernel "
1059 "(pid 0). Note that the application must take care of message sequence "
1060 "numbers in order to reliably track acknowledgements."
1061 msgstr ""
1062
1063 #. type: Plain text
1064 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1065 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1066 #, no-wrap
1067 msgid ""
1068 "struct nlmsghdr *nh; /* The nlmsghdr with payload to send */\n"
1069 "struct sockaddr_nl sa;\n"
1070 "struct iovec iov = { nh, nh-E<gt>nlmsg_len };\n"
1071 "struct msghdr msg;\n"
1072 "\\&\n"
1073 "msg = { &sa, sizeof(sa), &iov, 1, NULL, 0, 0 };\n"
1074 "memset(&sa, 0, sizeof(sa));\n"
1075 "sa.nl_family = AF_NETLINK;\n"
1076 "nh-E<gt>nlmsg_pid = 0;\n"
1077 "nh-E<gt>nlmsg_seq = ++sequence_number;\n"
1078 "/* Request an ack from kernel by setting NLM_F_ACK */\n"
1079 "nh-E<gt>nlmsg_flags |= NLM_F_ACK;\n"
1080 "\\&\n"
1081 "sendmsg(fd, &msg, 0);\n"
1082 msgstr ""
1083
1084 #. type: Plain text
1085 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1086 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1087 msgid "And the last example is about reading netlink message."
1088 msgstr ""
1089
1090 #. type: Plain text
1091 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1092 #: opensuse-leap-16-1 opensuse-tumbleweed
1093 #, no-wrap
1094 msgid ""
1095 "int size;\n"
1096 "/* 8192 to avoid message truncation on platforms with\n"
1097 " page size E<gt> 4096 */\n"
1098 "struct nlmsghdr buf[8192/sizeof(struct nlmsghdr)];\n"
1099 "struct iovec iov = { buf, sizeof(buf) };\n"
1100 "struct sockaddr_nl sa;\n"
1101 "struct msghdr msg;\n"
1102 "struct nlmsghdr *nh;\n"
1103 "\\&\n"
1104 "msg = { &sa, sizeof(sa), &iov, 1, NULL, 0, 0 };\n"
1105 "size = recvmsg(fd, &msg, 0);\n"
1106 "\\&\n"
1107 "for (nh = (struct nlmsghdr *) buf; NLMSG_OK (nh, size);\n"
1108 " nh = NLMSG_NEXT (nh, size)) {\n"
1109 " /* The end of multipart message */\n"
1110 " if (nh-E<gt>nlmsg_type == NLMSG_DONE)\n"
1111 " return;\n"
1112 "\\&\n"
1113 " if (nh-E<gt>nlmsg_type == NLMSG_ERROR)\n"
1114 " /* Do some error handling */\n"
1115 " ...\n"
1116 "\\&\n"
1117 " /* Continue with parsing payload */\n"
1118 " ...\n"
1119 "}\n"
1120 msgstr ""
1121
1122 #. type: SH
1123 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1124 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1125 #, no-wrap
1126 msgid "SEE ALSO"
1127 msgstr ""
1128
1129 #. type: Plain text
1130 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1131 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1132 msgid ""
1133 "B<cmsg>(3), B<netlink>(3), B<capabilities>(7), B<rtnetlink>(7), "
1134 "B<sock_diag>(7)"
1135 msgstr ""
1136
1137 #. type: Plain text
1138 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
1139 #: opensuse-tumbleweed
1140 msgid ""
1141 "E<.UR ftp:\\://ftp.inr.ac.ru\\:/ip-routing\\:/iproute2*> information about "
1142 "libnetlink E<.UE>"
1143 msgstr ""
1144
1145 #. type: Plain text
1146 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
1147 #: opensuse-tumbleweed
1148 msgid ""
1149 "E<.UR http:\\://www.infradead.org\\:/\\[ti]tgr\\:/libnl/> information about "
1150 "libnl E<.UE>"
1151 msgstr ""
1152
1153 #. type: Plain text
1154 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1155 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1156 msgid "RFC 3549 \"Linux Netlink as an IP Services Protocol\""
1157 msgstr ""
1158
1159 #. type: TH
1160 #: debian-trixie
1161 #, no-wrap
1162 msgid "2024-05-02"
1163 msgstr ""
1164
1165 #. type: TH
1166 #: debian-trixie
1167 #, no-wrap
1168 msgid "Linux man-pages 6.9.1"
1169 msgstr ""
1170
1171 #. type: Plain text
1172 #: debian-trixie fedora-44 fedora-rawhide
1173 msgid ""
1174 "Netlink is used to transfer information between the kernel and user-space "
1175 "processes. It consists of a standard sockets-based interface for user space "
1176 "processes and an internal kernel API for kernel modules. The internal "
1177 "kernel interface is not documented in this manual page. There is also an "
1178 "obsolete netlink interface via netlink character devices; this interface is "
1179 "not documented here and is provided only for backward compatibility."
1180 msgstr ""
1181
1182 #. type: Plain text
1183 #: debian-trixie
1184 #, no-wrap
1185 msgid ""
1186 "struct nlmsghdr {\n"
1187 " __u32 nlmsg_len; /* Length of message including header */\n"
1188 " __u16 nlmsg_type; /* Type of message content */\n"
1189 " __u16 nlmsg_flags; /* Additional flags */\n"
1190 " __u32 nlmsg_seq; /* Sequence number */\n"
1191 " __u32 nlmsg_pid; /* Sender port ID */\n"
1192 "};\n"
1193 msgstr ""
1194
1195 #. type: Plain text
1196 #: debian-trixie
1197 #, no-wrap
1198 msgid ""
1199 "struct nlmsgerr {\n"
1200 " int error; /* Negative errno or 0 for acknowledgements */\n"
1201 " struct nlmsghdr msg; /* Message header that caused the error */\n"
1202 " /*\n"
1203 " * followed by the message contents\n"
1204 " * unless NETLINK_CAP_ACK was set\n"
1205 " * or the ACK indicates success (error == 0).\n"
1206 " * For example Generic Netlink message with attributes.\n"
1207 " * message length is aligned with NLMSG_ALIGN()\n"
1208 " */\n"
1209 " /*\n"
1210 " * followed by TLVs defined in enum nlmsgerr_attrs\n"
1211 " * if NETLINK_EXT_ACK was set\n"
1212 " */\n"
1213 "};\n"
1214 msgstr ""
1215
1216 #. type: tbl table
1217 #: debian-trixie fedora-44 fedora-rawhide
1218 #, no-wrap
1219 msgid "Standard flag bits in I<nlmsg_flags>"
1220 msgstr ""
1221
1222 #. type: tbl table
1223 #: debian-trixie fedora-44 fedora-rawhide
1224 #, no-wrap
1225 msgid ""
1226 "Convenience macro; equivalent to\n"
1227 "(NLM_F_ROOT|NLM_F_MATCH)."
1228 msgstr ""
1229
1230 #. type: Plain text
1231 #: debian-trixie
1232 #, no-wrap
1233 msgid ""
1234 "int len;\n"
1235 "/* 8192 to avoid message truncation on platforms with\n"
1236 " page size E<gt> 4096 */\n"
1237 "struct nlmsghdr buf[8192/sizeof(struct nlmsghdr)];\n"
1238 "struct iovec iov = { buf, sizeof(buf) };\n"
1239 "struct sockaddr_nl sa;\n"
1240 "struct msghdr msg;\n"
1241 "struct nlmsghdr *nh;\n"
1242 "\\&\n"
1243 "msg = { &sa, sizeof(sa), &iov, 1, NULL, 0, 0 };\n"
1244 "len = recvmsg(fd, &msg, 0);\n"
1245 "\\&\n"
1246 "for (nh = (struct nlmsghdr *) buf; NLMSG_OK (nh, len);\n"
1247 " nh = NLMSG_NEXT (nh, len)) {\n"
1248 " /* The end of multipart message */\n"
1249 " if (nh-E<gt>nlmsg_type == NLMSG_DONE)\n"
1250 " return;\n"
1251 "\\&\n"
1252 " if (nh-E<gt>nlmsg_type == NLMSG_ERROR)\n"
1253 " /* Do some error handling */\n"
1254 " ...\n"
1255 "\\&\n"
1256 " /* Continue with parsing payload */\n"
1257 " ...\n"
1258 "}\n"
1259 msgstr ""
1260
1261 #. type: Plain text
1262 #: debian-trixie fedora-44 fedora-rawhide
1263 msgid ""
1264 "E<.UR ftp://ftp.inr.ac.ru\\:/ip-routing\\:/iproute2*> information about "
1265 "libnetlink E<.UE>"
1266 msgstr ""
1267
1268 #. type: Plain text
1269 #: debian-trixie fedora-44 fedora-rawhide
1270 msgid ""
1271 "E<.UR http://www.infradead.org\\:/\\[ti]tgr\\:/libnl/> information about "
1272 "libnl E<.UE>"
1273 msgstr ""
1274
1275 #. type: TH
1276 #: fedora-44 fedora-rawhide
1277 #, no-wrap
1278 msgid "2024-11-17"
1279 msgstr ""
1280
1281 #. type: TH
1282 #: fedora-44 fedora-rawhide
1283 #, no-wrap
1284 msgid "Linux man-pages 6.13"
1285 msgstr ""
1286
1287 #. type: TH
1288 #: mageia-cauldron
1289 #, no-wrap
1290 msgid "Linux man-pages 6.17"
1291 msgstr ""
1292
1293 #. type: TH
1294 #: opensuse-leap-16-1 opensuse-tumbleweed
1295 #, no-wrap
1296 msgid "Linux man-pages (unreleased)"
1297 msgstr ""