Debian Codegraph @

po/fr/man3/rtnetlink.3.po

raw
1 # French translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Christophe Blaess <https://www.blaess.fr/christophe/>, 1996-2003.
5 # Stéphan Rafin <[email protected]>, 2002.
6 # Thierry Vignaud <[email protected]>, 1999, 2002.
7 # François Micaux, 2002.
8 # Alain Portal <[email protected]>, 2003-2008.
9 # Jean-Philippe Guérard <[email protected]>, 2005-2006.
10 # Jean-Luc Coulon (f5ibh) <[email protected]>, 2006-2007.
11 # Julien Cristau <[email protected]>, 2006-2007.
12 # Thomas Huriaux <[email protected]>, 2006-2008.
13 # Nicolas François <[email protected]>, 2006-2008.
14 # Florentin Duneau <[email protected]>, 2006-2010.
15 # Simon Paillard <[email protected]>, 2006.
16 # Denis Barbier <[email protected]>, 2006, 2010.
17 # David Prévot <[email protected]>, 2010, 2012.
18 # Jean-Pierre Giraud <[email protected]>, 2023-2025.
19 msgid ""
20 msgstr ""
21 "Project-Id-Version: manpages-l10n 4.22.0\n"
22 "POT-Creation-Date: 2026-06-05 06:40+0200\n"
23 "PO-Revision-Date: 2025-04-14 18:57+0200\n"
24 "Last-Translator: Jean-Pierre Giraud <[email protected]>\n"
25 "Language-Team: French <[email protected]>\n"
26 "Language: fr\n"
27 "MIME-Version: 1.0\n"
28 "Content-Type: text/plain; charset=UTF-8\n"
29 "Content-Transfer-Encoding: 8bit\n"
30 "Plural-Forms: nplurals=2; plural=n > 1;\n"
31 "X-Generator: Lokalize 22.12.3\n"
32
33 #. type: TH
34 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
35 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
36 #, no-wrap
37 msgid "rtnetlink"
38 msgstr "rtnetlink"
39
40 #. type: TH
41 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
42 #: opensuse-tumbleweed
43 #, no-wrap
44 msgid "2026-02-08"
45 msgstr "8 février 2026"
46
47 #. type: TH
48 #: archlinux debian-unstable
49 #, no-wrap
50 msgid "Linux man-pages 6.18"
51 msgstr "Pages du manuel de Linux 6.18"
52
53 #. type: SH
54 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
55 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
56 #, no-wrap
57 msgid "NAME"
58 msgstr "NOM"
59
60 #. type: Plain text
61 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
62 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
63 msgid "rtnetlink - macros to manipulate rtnetlink messages"
64 msgstr "rtnetlink - Macros manipulant des messages rtnetlink"
65
66 #. type: SH
67 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
68 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
69 #, no-wrap
70 msgid "LIBRARY"
71 msgstr "BIBLIOTHÈQUE"
72
73 #. type: Plain text
74 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
75 #: opensuse-leap-16-1 opensuse-tumbleweed
76 msgid "Standard C library (I<libc>,\\ I<-lc>)"
77 msgstr "Bibliothèque C standard (I<libc>,\\ I<-lc>)"
78
79 #. type: SH
80 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
81 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
82 #, no-wrap
83 msgid "SYNOPSIS"
84 msgstr "SYNOPSIS"
85
86 #. type: Plain text
87 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
88 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
89 #, no-wrap
90 msgid ""
91 "B<#include E<lt>asm/types.hE<gt>>\n"
92 "B<#include E<lt>linux/netlink.hE<gt>>\n"
93 "B<#include E<lt>linux/rtnetlink.hE<gt>>\n"
94 "B<#include E<lt>sys/socket.hE<gt>>\n"
95 msgstr ""
96 "B<#include E<lt>asm/types.hE<gt>>\n"
97 "B<#include E<lt>linux/netlink.hE<gt>>\n"
98 "B<#include E<lt>linux/rtnetlink.hE<gt>>\n"
99 "B<#include E<lt>sys/socket.hE<gt>>\n"
100
101 #. type: Plain text
102 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
103 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
104 #, no-wrap
105 msgid "B<rtnetlink_socket = socket(AF_NETLINK, int >I<socket_type>B<, NETLINK_ROUTE);>\n"
106 msgstr "B<rtnetlink_socket = socket(AF_NETLINK, int >I<type_socket>B<, NETLINK_ROUTE);>\n"
107
108 #. type: Plain text
109 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
110 #: opensuse-leap-16-1 opensuse-tumbleweed
111 #, no-wrap
112 msgid "B<int RTA_OK(struct rtattr *>I<rta>B<, int >I<size>B<);>\n"
113 msgstr "B<int RTA_OK(struct rtattr *>I<rta>B<, int >I<size>B<);>\n"
114
115 #. type: Plain text
116 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
117 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
118 #, no-wrap
119 msgid ""
120 "B<void *RTA_DATA(struct rtattr *>I<rta>B<);>\n"
121 "B<unsigned int RTA_PAYLOAD(struct rtattr *>I<rta>B<);>\n"
122 msgstr ""
123 "B<void *RTA_DATA(struct rtattr *>I<rta>B<);>\n"
124 "B<unsigned int RTA_PAYLOAD(struct rtattr *>I<rta>B<);>\n"
125
126 #. type: Plain text
127 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
128 #: opensuse-leap-16-1 opensuse-tumbleweed
129 #, no-wrap
130 msgid "B<struct rtattr *RTA_NEXT(struct rtattr *>I<rta>B<, unsigned int >I<size>B<);>\n"
131 msgstr "B<struct rtattr *RTA_NEXT(struct rtattr *>I<rta>B<, unsigned int >I<size>B<);>\n"
132
133 #. type: Plain text
134 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
135 #: opensuse-leap-16-1 opensuse-tumbleweed
136 #, no-wrap
137 msgid ""
138 "B<unsigned int RTA_LENGTH(unsigned int >I<size>B<);>\n"
139 "B<unsigned int RTA_SPACE(unsigned int >I<size>B<);>\n"
140 msgstr ""
141 "B<unsigned int RTA_LENGTH(unsigned int >I<size>B<);>\n"
142 "B<unsigned int RTA_SPACE(unsigned int >I<size>B<);>\n"
143
144 #. type: SH
145 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
146 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
147 #, no-wrap
148 msgid "DESCRIPTION"
149 msgstr "DESCRIPTION"
150
151 #. type: Plain text
152 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
153 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
154 msgid ""
155 "All B<rtnetlink>(7) messages consist of a B<netlink>(7) message header and "
156 "appended attributes. The attributes should be manipulated only using the "
157 "macros provided here."
158 msgstr ""
159 "Tous les messages B<rtnetlink>(7) consistent en un en-tête de message "
160 "B<netlink>(7) et des attributs. Ceux-ci ne devraient être manipulés que par "
161 "les macros fournies ici."
162
163 #. type: Plain text
164 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
165 #: opensuse-leap-16-1 opensuse-tumbleweed
166 msgid ""
167 "B<RTA_OK(>I<rta>B<, >I<size>B<)> returns true if I<rta> points to a valid "
168 "routing attribute; I<size> is the running size of the attribute buffer. "
169 "When not true then you must assume there are no more attributes in the "
170 "message, even if I<size> is nonzero."
171 msgstr ""
172 "B<RTA_OK(>I<rta>B<, >I<size>B<)> renvoie vrai si I<rta> pointe sur un "
173 "attribut de routage valide\\ ; I<size> est la taille courante du tampon "
174 "d'attributs. Si elle renvoie 0, vous devez supposer qu'il n'y a pas d'autre "
175 "attributs dans le message, même si I<size> n'est pas nulle."
176
177 #. type: Plain text
178 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
179 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
180 msgid ""
181 "B<RTA_DATA(>I<rta>B<)> returns a pointer to the start of this attribute's "
182 "data."
183 msgstr ""
184 "B<RTA_DATA(>I<rta>B<)> renvoie un pointeur sur le début des données de cet "
185 "attribut."
186
187 #. type: Plain text
188 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
189 #: opensuse-leap-16-1 opensuse-tumbleweed
190 msgid "B<RTA_PAYLOAD(>I<rta>B<)> returns the size of this attribute's data."
191 msgstr ""
192 "B<RTA_PAYLOAD(>I<rta>B<)> renvoie la taille des données de cet attribut."
193
194 #. type: Plain text
195 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
196 #: opensuse-leap-16-1 opensuse-tumbleweed
197 msgid ""
198 "B<RTA_NEXT(>I<rta>B<, >I<size>B<)> gets the next attribute after I<rta>. "
199 "Calling this macro will update I<size>. You should use B<RTA_OK> to check "
200 "the validity of the returned pointer."
201 msgstr ""
202 "B<RTA_NEXT(>I<rta>B<, >I<size>B<)> renvoie le premier attribut après I<rta>. "
203 "Un appel à cette macro met à jour I<size>. Vous devriez utiliser B<RTA_OK> "
204 "pour vérifier la validité du pointeur renvoyé."
205
206 #. type: Plain text
207 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
208 #: opensuse-leap-16-1 opensuse-tumbleweed
209 msgid ""
210 "B<RTA_LENGTH(>I<size>B<)> returns the size which is required for I<size> "
211 "bytes of data plus the header."
212 msgstr ""
213 "B<RTA_LENGTH(>I<size>B<)> renvoie la taille requise pour I<size> octets de "
214 "données plus l'en-tête."
215
216 #. type: Plain text
217 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
218 #: opensuse-leap-16-1 opensuse-tumbleweed
219 msgid ""
220 "B<RTA_SPACE(>I<size>B<)> returns the amount of space which will be needed in "
221 "a message with I<size> bytes of data."
222 msgstr ""
223 "B<RTA_SPACE(>I<size>B<)> renvoie la quantité de mémoire nécessaire pour un "
224 "message composé de I<size> octets de données."
225
226 #. type: SH
227 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
228 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
229 #, no-wrap
230 msgid "STANDARDS"
231 msgstr "NORMES"
232
233 #. type: Plain text
234 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
235 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
236 msgid "Linux."
237 msgstr "Linux."
238
239 #. type: SH
240 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
241 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
242 #, no-wrap
243 msgid "BUGS"
244 msgstr "BOGUES"
245
246 #. type: Plain text
247 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
248 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
249 msgid "This manual page is incomplete."
250 msgstr "Cette page de manuel est incomplète."
251
252 #. type: SH
253 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
254 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
255 #, no-wrap
256 msgid "EXAMPLES"
257 msgstr "EXEMPLES"
258
259 #. FIXME . ? would be better to use libnetlink in the EXAMPLE code here
260 #. type: Plain text
261 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
262 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
263 msgid "Creating a rtnetlink message to set the MTU of a device:"
264 msgstr "Créer un message rtnetlink pour choisir le MTU d'un périphérique."
265
266 #. type: Plain text
267 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
268 #: opensuse-leap-16-1 opensuse-tumbleweed
269 #, no-wrap
270 msgid ""
271 "#include E<lt>linux/rtnetlink.hE<gt>\n"
272 "\\&\n"
273 "\\&...\n"
274 "\\&\n"
275 "struct {\n"
276 " struct nlmsghdr nh;\n"
277 " struct ifinfomsg if;\n"
278 " char attrbuf[512];\n"
279 "} req;\n"
280 "\\&\n"
281 "struct rtattr *rta;\n"
282 "unsigned int mtu = 1000;\n"
283 "\\&\n"
284 "int rtnetlink_sk = socket(AF_NETLINK, SOCK_DGRAM, NETLINK_ROUTE);\n"
285 "\\&\n"
286 "memset(&req, 0, sizeof(req));\n"
287 "req.nh.nlmsg_len = NLMSG_LENGTH(sizeof(req.if));\n"
288 "req.nh.nlmsg_flags = NLM_F_REQUEST;\n"
289 "req.nh.nlmsg_type = RTM_NEWLINK;\n"
290 "req.if.ifi_family = AF_UNSPEC;\n"
291 "req.if.ifi_index = INTERFACE_INDEX;\n"
292 "req.if.ifi_change = 0xffffffff; /* ??? */\n"
293 "rta = (struct rtattr *) ((char *) &req +\n"
294 " NLMSG_ALIGN(req.nh.nlmsg_len));\n"
295 "rta-E<gt>rta_type = IFLA_MTU;\n"
296 "rta-E<gt>rta_len = RTA_LENGTH(sizeof(mtu));\n"
297 "req.nh.nlmsg_len = NLMSG_ALIGN(req.nh.nlmsg_len) +\n"
298 " RTA_LENGTH(sizeof(mtu));\n"
299 "memcpy(RTA_DATA(rta), &mtu, sizeof(mtu));\n"
300 "send(rtnetlink_sk, &req, req.nh.nlmsg_len, 0);\n"
301 msgstr ""
302 "#include E<lt>linux/rtnetlink.hE<gt>\n"
303 "\\&\n"
304 "\\&...\n"
305 "\\&\n"
306 "struct {\n"
307 " struct nlmsghdr nh;\n"
308 " struct ifinfomsg if;\n"
309 " char attrbuf[512];\n"
310 "} req;\n"
311 "\\&\n"
312 "struct rtattr *rta;\n"
313 "unsigned int mtu = 1000;\n"
314 "\\&\n"
315 "memset(&req, 0, sizeof(req));\n"
316 "req.nh.nlmsg_len = NLMSG_LENGTH(sizeof(req.if));\n"
317 "req.nh.nlmsg_flags = NLM_F_REQUEST;\n"
318 "req.nh.nlmsg_type = RTM_NEWLINK;\n"
319 "req.if.ifi_family = AF_UNSPEC;\n"
320 "req.if.ifi_index = INTERFACE_INDEX;\n"
321 "req.if.ifi_change = 0xffffffff; /* ??? */\n"
322 "rta = (struct rtattr *) ((char *) &req +\n"
323 " NLMSG_ALIGN(req.nh.nlmsg_len));\n"
324 "rta-E<gt>rta_type = IFLA_MTU;\n"
325 "rta-E<gt>rta_len = RTA_LENGTH(sizeof(mtu));\n"
326 "req.nh.nlmsg_len = NLMSG_ALIGN(req.nh.nlmsg_len) +\n"
327 " RTA_LENGTH(sizeof(mtu));\n"
328 "memcpy(RTA_DATA(rta), &mtu, sizeof(mtu));\n"
329 "send(rtnetlink_sk, &req, req.nh.nlmsg_len, 0);\n"
330
331 #. type: SH
332 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
333 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
334 #, no-wrap
335 msgid "SEE ALSO"
336 msgstr "VOIR AUSSI"
337
338 #. type: Plain text
339 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
340 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
341 msgid "B<netlink>(3), B<netlink>(7), B<rtnetlink>(7)"
342 msgstr "B<netlink>(3), B<netlink>(7), B<rtnetlink>(7)"
343
344 #. type: TH
345 #: debian-trixie
346 #, no-wrap
347 msgid "2024-05-02"
348 msgstr "2 mai 2024"
349
350 #. type: TH
351 #: debian-trixie
352 #, no-wrap
353 msgid "Linux man-pages 6.9.1"
354 msgstr "Pages du manuel de Linux 6.9.1"
355
356 #. type: Plain text
357 #: debian-trixie
358 msgid "Standard C library (I<libc>, I<-lc>)"
359 msgstr "Bibliothèque C standard (I<libc>, I<-lc>)"
360
361 #. type: Plain text
362 #: debian-trixie
363 #, no-wrap
364 msgid "B<int RTA_OK(struct rtattr *>I<rta>B<, int >I<rtabuflen>B<);>\n"
365 msgstr "B<int RTA_OK(struct rtattr *>I<rta>B<, int >I<rtabuflen>B<);>\n"
366
367 #. type: Plain text
368 #: debian-trixie
369 #, no-wrap
370 msgid "B<struct rtattr *RTA_NEXT(struct rtattr *>I<rta>B<, unsigned int >I<rtabuflen>B<);>\n"
371 msgstr "B<struct rtattr *RTA_NEXT(struct rtattr *>I<rta>B<, unsigned int >I<rtabuflen>B<);>\n"
372
373 #. type: Plain text
374 #: debian-trixie
375 #, no-wrap
376 msgid ""
377 "B<unsigned int RTA_LENGTH(unsigned int >I<length>B<);>\n"
378 "B<unsigned int RTA_SPACE(unsigned int >I<length>B<);>\n"
379 msgstr ""
380 "B<unsigned int RTA_LENGTH(unsigned int >I<length>B<);>\n"
381 "B<unsigned int RTA_SPACE(unsigned int >I<length>B<);>\n"
382
383 #. type: Plain text
384 #: debian-trixie
385 msgid ""
386 "B<RTA_OK(>I<rta>B<, >I<attrlen>B<)> returns true if I<rta> points to a valid "
387 "routing attribute; I<attrlen> is the running length of the attribute "
388 "buffer. When not true then you must assume there are no more attributes in "
389 "the message, even if I<attrlen> is nonzero."
390 msgstr ""
391 "B<RTA_OK(>I<rta>B<, >I<attrlen>B<)> renvoie vrai si I<rta> pointe sur un "
392 "attribut de routage valide\\ ; I<attrlen> est la longueur courante du tampon "
393 "d'attributs. Si elle renvoie 0, vous devez supposer qu'il n'y a pas d'autre "
394 "attributs dans le message, même si I<attrlen> n'est pas nulle."
395
396 #. type: Plain text
397 #: debian-trixie
398 msgid "B<RTA_PAYLOAD(>I<rta>B<)> returns the length of this attribute's data."
399 msgstr ""
400 "B<RTA_PAYLOAD(>I<rta>B<)> renvoie la longueur des données de cet attribut."
401
402 #. type: Plain text
403 #: debian-trixie
404 msgid ""
405 "B<RTA_NEXT(>I<rta>B<, >I<attrlen>B<)> gets the next attribute after I<rta>. "
406 "Calling this macro will update I<attrlen>. You should use B<RTA_OK> to "
407 "check the validity of the returned pointer."
408 msgstr ""
409 "B<RTA_NEXT(>I<rta>B<, >I<attrlen>B<)> renvoie le premier attribut après "
410 "I<rta>. Un appel à cette macro met à jour I<attrlen>. Vous devriez utiliser "
411 "B<RTA_OK> pour vérifier la validité du pointeur retourné."
412
413 #. type: Plain text
414 #: debian-trixie
415 msgid ""
416 "B<RTA_LENGTH(>I<len>B<)> returns the length which is required for I<len> "
417 "bytes of data plus the header."
418 msgstr ""
419 "B<RTA_LENGTH(>I<len>B<)> renvoie la longueur requise pour I<len> octets de "
420 "données plus l'en-tête."
421
422 #. type: Plain text
423 #: debian-trixie
424 msgid ""
425 "B<RTA_SPACE(>I<len>B<)> returns the amount of space which will be needed in "
426 "a message with I<len> bytes of data."
427 msgstr ""
428 "B<RTA_SPACE(>I<len>B<)> renvoie la quantité de mémoire nécessaire pour un "
429 "message composé de I<len> octets de données."
430
431 #. type: Plain text
432 #: debian-trixie
433 #, no-wrap
434 msgid ""
435 "#include E<lt>linux/rtnetlink.hE<gt>\n"
436 "\\&\n"
437 "\\&...\n"
438 "\\&\n"
439 "struct {\n"
440 " struct nlmsghdr nh;\n"
441 " struct ifinfomsg if;\n"
442 " char attrbuf[512];\n"
443 "} req;\n"
444 "\\&\n"
445 "struct rtattr *rta;\n"
446 "unsigned int mtu = 1000;\n"
447 "\\&\n"
448 "int rtnetlink_sk = socket(AF_NETLINK, SOCK_DGRAM, NETLINK_ROUTE);\n"
449 "\\&\n"
450 "memset(&req, 0, sizeof(req));\n"
451 "req.nh.nlmsg_len = NLMSG_LENGTH(sizeof(req.if));\n"
452 "req.nh.nlmsg_flags = NLM_F_REQUEST;\n"
453 "req.nh.nlmsg_type = RTM_NEWLINK;\n"
454 "req.if.ifi_family = AF_UNSPEC;\n"
455 "req.if.ifi_index = INTERFACE_INDEX;\n"
456 "req.if.ifi_change = 0xffffffff; /* ??? */\n"
457 "rta = (struct rtattr *)(((char *) &req) +\n"
458 " NLMSG_ALIGN(req.nh.nlmsg_len));\n"
459 "rta-E<gt>rta_type = IFLA_MTU;\n"
460 "rta-E<gt>rta_len = RTA_LENGTH(sizeof(mtu));\n"
461 "req.nh.nlmsg_len = NLMSG_ALIGN(req.nh.nlmsg_len) +\n"
462 " RTA_LENGTH(sizeof(mtu));\n"
463 "memcpy(RTA_DATA(rta), &mtu, sizeof(mtu));\n"
464 "send(rtnetlink_sk, &req, req.nh.nlmsg_len, 0);\n"
465 msgstr ""
466 "#include E<lt>linux/rtnetlink.hE<gt>\n"
467 "\\&\n"
468 "\\&...\n"
469 "\\&\n"
470 "struct {\n"
471 " struct nlmsghdr nh;\n"
472 " struct ifinfomsg if;\n"
473 " char attrbuf[512];\n"
474 "} req;\n"
475 "\\&\n"
476 "struct rtattr *rta;\n"
477 "unsigned int mtu = 1000;\n"
478 "\\&\n"
479 "memset(&req, 0, sizeof(req));\n"
480 "req.nh.nlmsg_len = NLMSG_LENGTH(sizeof(req.if));\n"
481 "req.nh.nlmsg_flags = NLM_F_REQUEST;\n"
482 "req.nh.nlmsg_type = RTM_NEWLINK;\n"
483 "req.if.ifi_family = AF_UNSPEC;\n"
484 "req.if.ifi_index = INTERFACE_INDEX;\n"
485 "req.if.ifi_change = 0xffffffff; /* ??? */\n"
486 "rta = (struct rtattr *)(((char *) &req) +\n"
487 " NLMSG_ALIGN(req.nh.nlmsg_len));\n"
488 "rta-E<gt>rta_type = IFLA_MTU;\n"
489 "rta-E<gt>rta_len = RTA_LENGTH(sizeof(mtu));\n"
490 "req.nh.nlmsg_len = NLMSG_ALIGN(req.nh.nlmsg_len) +\n"
491 " RTA_LENGTH(sizeof(mtu));\n"
492 "memcpy(RTA_DATA(rta), &mtu, sizeof(mtu));\n"
493 "send(rtnetlink_sk, &req, req.nh.nlmsg_len, 0);\n"
494
495 #. type: TH
496 #: fedora-44 fedora-rawhide
497 #, no-wrap
498 msgid "2025-01-05"
499 msgstr "5 janvier 2025"
500
501 #. type: TH
502 #: fedora-44 fedora-rawhide
503 #, no-wrap
504 msgid "Linux man-pages 6.13"
505 msgstr "Pages du manuel de Linux 6.13"
506
507 #. type: TH
508 #: mageia-cauldron
509 #, no-wrap
510 msgid "Linux man-pages 6.17"
511 msgstr "Pages du manuel de Linux 6.17"
512
513 #. type: TH
514 #: opensuse-leap-16-1 opensuse-tumbleweed
515 #, no-wrap
516 msgid "Linux man-pages (unreleased)"
517 msgstr "Pages du manuel de Linux (non publiées)"