Debian Codegraph @

po/pt_BR/man3/rtnetlink.3.po

raw
1 # Brazilian Portuguese translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Marcelo M. de Abreu <[email protected]>, 2001.
5 # André Luiz Fassone <[email protected]>, 2001.
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: manpages-l10n\n"
9 "POT-Creation-Date: 2026-06-05 06:40+0200\n"
10 "PO-Revision-Date: 2001-05-31 17:26+0200\n"
11 "Last-Translator: André Luiz Fassone <[email protected]>\n"
12 "Language-Team: Brazilian Portuguese <debian-l10n-"
13 "[email protected]>\n"
14 "Language: pt_BR\n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18 "Plural-Forms: nplurals=2; plural=(n > 1);\n"
19 "X-Generator: Lokalize 20.04.1\n"
20
21 #. type: TH
22 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
23 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
24 #, no-wrap
25 msgid "rtnetlink"
26 msgstr "rtnetlink"
27
28 #. type: TH
29 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
30 #: opensuse-tumbleweed
31 #, no-wrap
32 msgid "2026-02-08"
33 msgstr "8 fevereiro 2026"
34
35 #. type: TH
36 #: archlinux debian-unstable
37 #, fuzzy, no-wrap
38 #| msgid "Linux man-pages 6.17"
39 msgid "Linux man-pages 6.18"
40 msgstr "Linux man-pages 6.17"
41
42 #. type: SH
43 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
44 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
45 #, no-wrap
46 msgid "NAME"
47 msgstr "NOME"
48
49 #. type: Plain text
50 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
51 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
52 msgid "rtnetlink - macros to manipulate rtnetlink messages"
53 msgstr "rtnetlink - macros para manipular messagens rtnetlink"
54
55 #. type: SH
56 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
57 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
58 #, no-wrap
59 msgid "LIBRARY"
60 msgstr "BIBLIOTECA"
61
62 #. type: Plain text
63 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
64 #: opensuse-leap-16-1 opensuse-tumbleweed
65 msgid "Standard C library (I<libc>,\\ I<-lc>)"
66 msgstr "Biblioteca C Padrão (I<libc>,\\ I<-lc>)"
67
68 #. type: SH
69 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
70 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
71 #, no-wrap
72 msgid "SYNOPSIS"
73 msgstr "SINOPSE"
74
75 #. type: Plain text
76 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
77 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
78 #, no-wrap
79 msgid ""
80 "B<#include E<lt>asm/types.hE<gt>>\n"
81 "B<#include E<lt>linux/netlink.hE<gt>>\n"
82 "B<#include E<lt>linux/rtnetlink.hE<gt>>\n"
83 "B<#include E<lt>sys/socket.hE<gt>>\n"
84 msgstr ""
85 "B<#include E<lt>asm/types.hE<gt>>\n"
86 "B<#include E<lt>linux/netlink.hE<gt>>\n"
87 "B<#include E<lt>linux/rtnetlink.hE<gt>>\n"
88 "B<#include E<lt>sys/socket.hE<gt>>\n"
89
90 #. type: Plain text
91 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
92 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
93 #, no-wrap
94 msgid "B<rtnetlink_socket = socket(AF_NETLINK, int >I<socket_type>B<, NETLINK_ROUTE);>\n"
95 msgstr "B<rtnetlink_socket = socket(AF_NETLINK, int >I<socket_type>B<, NETLINK_ROUTE);>\n"
96
97 #. type: Plain text
98 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
99 #: opensuse-leap-16-1 opensuse-tumbleweed
100 #, fuzzy, no-wrap
101 #| msgid "B<int RTA_OK(struct rtattr *>I<rta>B<, int >I<rtabuflen>B<);>"
102 msgid "B<int RTA_OK(struct rtattr *>I<rta>B<, int >I<size>B<);>\n"
103 msgstr "B<int RTA_OK(struct rtattr *>I<rta>B<, int >I<rtabuflen>B<);>"
104
105 #. type: Plain text
106 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
107 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
108 #, fuzzy, no-wrap
109 #| msgid "B<unsigned int RTA_PAYLOAD(struct rtattr *>I<rta>B<);>"
110 msgid ""
111 "B<void *RTA_DATA(struct rtattr *>I<rta>B<);>\n"
112 "B<unsigned int RTA_PAYLOAD(struct rtattr *>I<rta>B<);>\n"
113 msgstr "B<unsigned int RTA_PAYLOAD(struct rtattr *>I<rta>B<);>"
114
115 #. type: Plain text
116 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
117 #: opensuse-leap-16-1 opensuse-tumbleweed
118 #, fuzzy, no-wrap
119 #| msgid "B<struct rtattr *RTA_NEXT(struct rtattr *>I<rta>B<, unsigned int >I<rtabuflen>B<);>"
120 msgid "B<struct rtattr *RTA_NEXT(struct rtattr *>I<rta>B<, unsigned int >I<size>B<);>\n"
121 msgstr "B<struct rtattr *RTA_NEXT(struct rtattr *>I<rta>B<, unsigned int >I<rtabuflen>B<);>"
122
123 #. type: Plain text
124 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
125 #: opensuse-leap-16-1 opensuse-tumbleweed
126 #, fuzzy, no-wrap
127 #| msgid "B<unsigned int RTA_LENGTH(unsigned int >I<length>B<);>"
128 msgid ""
129 "B<unsigned int RTA_LENGTH(unsigned int >I<size>B<);>\n"
130 "B<unsigned int RTA_SPACE(unsigned int >I<size>B<);>\n"
131 msgstr "B<unsigned int RTA_LENGTH(unsigned int >I<length>B<);>"
132
133 #. type: SH
134 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
135 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
136 #, no-wrap
137 msgid "DESCRIPTION"
138 msgstr "DESCRIÇÃO"
139
140 #. type: Plain text
141 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
142 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
143 msgid ""
144 "All B<rtnetlink>(7) messages consist of a B<netlink>(7) message header and "
145 "appended attributes. The attributes should be manipulated only using the "
146 "macros provided here."
147 msgstr ""
148 "Toda mensagem B<rtnetlink>(7) consiste em um cabeçalho de mensagem "
149 "B<netlink>(7) e atributos adicionais. Os atributos devem ser manipulados "
150 "apenas usando-se as macros fornecidas aqui."
151
152 #. type: Plain text
153 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
154 #: opensuse-leap-16-1 opensuse-tumbleweed
155 #, fuzzy
156 #| msgid ""
157 #| "B<RTA_OK(>I<rta>B<, >I<attrlen>B<)> returns true if I<rta> points to a "
158 #| "valid routing attribute; I<attrlen> is the running length of the "
159 #| "attribute buffer. When not true then you must assume there are no more "
160 #| "attributes in the message, even if I<attrlen> is nonzero."
161 msgid ""
162 "B<RTA_OK(>I<rta>B<, >I<size>B<)> returns true if I<rta> points to a valid "
163 "routing attribute; I<size> is the running size of the attribute buffer. "
164 "When not true then you must assume there are no more attributes in the "
165 "message, even if I<size> is nonzero."
166 msgstr ""
167 "B<RTA_OK(>I<rta>B<, >I<attrlen>B<)> retorna verdadeiro se I<rta> apontar "
168 "para um atributo de roteamento válido; I<attrlen> é o comprimento do buffer "
169 "de atributo. Quando não verdadeiro, você deve então assumir que não há mais "
170 "atributos na mensagem, ainda que I<attrlen> não seja zero."
171
172 #. type: Plain text
173 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
174 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
175 msgid ""
176 "B<RTA_DATA(>I<rta>B<)> returns a pointer to the start of this attribute's "
177 "data."
178 msgstr ""
179 "B<RTA_DATA(>I<rta>B<)> retorna um ponteiro para o início dos dados desse "
180 "atributo."
181
182 #. type: Plain text
183 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
184 #: opensuse-leap-16-1 opensuse-tumbleweed
185 #, fuzzy
186 #| msgid ""
187 #| "B<RTA_PAYLOAD(>I<rta>B<)> returns the length of this attribute's data."
188 msgid "B<RTA_PAYLOAD(>I<rta>B<)> returns the size of this attribute's data."
189 msgstr ""
190 "B<RTA_PAYLOAD(>I<rta>B<)> retorna o comprimento dos dados desse atributo."
191
192 #. type: Plain text
193 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
194 #: opensuse-leap-16-1 opensuse-tumbleweed
195 #, fuzzy
196 #| msgid ""
197 #| "B<RTA_NEXT(>I<rta>B<, >I<attrlen>B<)> gets the next attribute after "
198 #| "I<rta>. Calling this macro will update I<attrlen>. You should use "
199 #| "B<RTA_OK> to check for the validity of the returned pointer."
200 msgid ""
201 "B<RTA_NEXT(>I<rta>B<, >I<size>B<)> gets the next attribute after I<rta>. "
202 "Calling this macro will update I<size>. You should use B<RTA_OK> to check "
203 "the validity of the returned pointer."
204 msgstr ""
205 "B<RTA_NEXT(>I<rta>B<, >I<attrlen>B<)> obtém o próximo atributo após I<rta>. "
206 "Chamar essa macro atualizará I<attrlen>. Você deve utilizar B<RTA_OK> para "
207 "assegurar a validade do ponteiro retornado."
208
209 #. type: Plain text
210 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
211 #: opensuse-leap-16-1 opensuse-tumbleweed
212 #, fuzzy
213 #| msgid ""
214 #| "B<RTA_LENGTH(>I<len>B<)> returns the length which is required for I<len> "
215 #| "bytes of data plus the header."
216 msgid ""
217 "B<RTA_LENGTH(>I<size>B<)> returns the size which is required for I<size> "
218 "bytes of data plus the header."
219 msgstr ""
220 "B<RTA_LENGTH(>I<len>B<)> retorna o comprimento que é necessário para I<len> "
221 "bytes de dados mais o cabeçalho."
222
223 #. type: Plain text
224 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
225 #: opensuse-leap-16-1 opensuse-tumbleweed
226 #, fuzzy
227 #| msgid ""
228 #| "B<RTA_SPACE(>I<len>B<)> returns the amount of space which will be needed "
229 #| "in the message with I<len> bytes of data."
230 msgid ""
231 "B<RTA_SPACE(>I<size>B<)> returns the amount of space which will be needed in "
232 "a message with I<size> bytes of data."
233 msgstr ""
234 "B<RTA_SPACE(>I<len>B<)> retorna a quantidade de espaço que será necessária "
235 "em uma mensagem com I<len> bytes de dados."
236
237 #. type: SH
238 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
239 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
240 #, no-wrap
241 msgid "STANDARDS"
242 msgstr "PADRÕES"
243
244 #. type: Plain text
245 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
246 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
247 msgid "Linux."
248 msgstr "Linux."
249
250 #. type: SH
251 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
252 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
253 #, no-wrap
254 msgid "BUGS"
255 msgstr "BUGS"
256
257 #. type: Plain text
258 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
259 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
260 msgid "This manual page is incomplete."
261 msgstr "Este página de manual é imcompleta."
262
263 #. type: SH
264 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
265 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
266 #, no-wrap
267 msgid "EXAMPLES"
268 msgstr "EXEMPLOS"
269
270 #. FIXME . ? would be better to use libnetlink in the EXAMPLE code here
271 #. type: Plain text
272 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
273 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
274 #, fuzzy
275 #| msgid "Creating a rtnetlink message to set a MTU of a device."
276 msgid "Creating a rtnetlink message to set the MTU of a device:"
277 msgstr "Criando uma mensagem rtnetlink para definir uma MTU de um dispositivo."
278
279 #. type: Plain text
280 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
281 #: opensuse-leap-16-1 opensuse-tumbleweed
282 #, fuzzy, no-wrap
283 #| msgid ""
284 #| "\tmemset(&req, 0, sizeof(req));\n"
285 #| "\treq.nh.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifinfomsg)); \n"
286 #| "\treq.nh.nlmsg_flags = NLM_F_REQUEST; \n"
287 #| "\treq.nh.nlmsg_type = RTML_NEWLINK;\n"
288 #| "\treq.if.ifi_family = AF_UNSPEC;\n"
289 #| "\treq.if.ifi_index = INTERFACE_INDEX; \n"
290 #| "\treq.if.ifi_change = 0xffffffff; /* ???*/\n"
291 #| "\trta = (struct rtattr *)(((char *) &req) + \n"
292 #| "\t\t\tNLMSG_ALIGN(n-E<gt>nlmsg_len));\n"
293 #| "\trta-E<gt>rta_type = IFLA_MTU;\n"
294 #| "\trta-E<gt>rta_len = sizeof(unsigned int);\n"
295 #| "\treq.n.nlmsg_len = NLMSG_ALIGN(req.n.nlmsg_len) + \n"
296 #| "\t\t\tRTA_LENGTH(sizeof(mtu)); \n"
297 #| "\tmemcpy(RTA_DATA(rta), &mtu, sizeof (mtu));\n"
298 #| "\tsend(rtnetlink_sk, &req, req.n.nlmsg_len); \n"
299 msgid ""
300 "#include E<lt>linux/rtnetlink.hE<gt>\n"
301 "\\&\n"
302 "\\&...\n"
303 "\\&\n"
304 "struct {\n"
305 " struct nlmsghdr nh;\n"
306 " struct ifinfomsg if;\n"
307 " char attrbuf[512];\n"
308 "} req;\n"
309 "\\&\n"
310 "struct rtattr *rta;\n"
311 "unsigned int mtu = 1000;\n"
312 "\\&\n"
313 "int rtnetlink_sk = socket(AF_NETLINK, SOCK_DGRAM, NETLINK_ROUTE);\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 msgstr ""
331 "\tmemset(&req, 0, sizeof(req));\n"
332 "\treq.nh.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifinfomsg)); \n"
333 "\treq.nh.nlmsg_flags = NLM_F_REQUEST; \n"
334 "\treq.nh.nlmsg_type = RTML_NEWLINK;\n"
335 "\treq.if.ifi_family = AF_UNSPEC;\n"
336 "\treq.if.ifi_index = INTERFACE_INDEX; \n"
337 "\treq.if.ifi_change = 0xffffffff; /* ???*/\n"
338 "\trta = (struct rtattr *)(((char *) &req) + \n"
339 "\t\t\tNLMSG_ALIGN(n-E<gt>nlmsg_len));\n"
340 "\trta-E<gt>rta_type = IFLA_MTU;\n"
341 "\trta-E<gt>rta_len = sizeof(unsigned int);\n"
342 "\treq.n.nlmsg_len = NLMSG_ALIGN(req.n.nlmsg_len) + \n"
343 "\t\t\tRTA_LENGTH(sizeof(mtu)); \n"
344 "\tmemcpy(RTA_DATA(rta), &mtu, sizeof (mtu));\n"
345 "\tsend(rtnetlink_sk, &req, req.n.nlmsg_len); \n"
346
347 #. type: SH
348 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
349 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
350 #, no-wrap
351 msgid "SEE ALSO"
352 msgstr "VEJA TAMBÉM"
353
354 #. type: Plain text
355 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
356 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
357 #, fuzzy
358 #| msgid "B<rtnetlink>(7), B<netlink>(7), B<netlink>(3)"
359 msgid "B<netlink>(3), B<netlink>(7), B<rtnetlink>(7)"
360 msgstr "B<rtnetlink>(7), B<netlink>(7), B<netlink>(3)"
361
362 #. type: TH
363 #: debian-trixie
364 #, no-wrap
365 msgid "2024-05-02"
366 msgstr "2 maio 2024"
367
368 #. type: TH
369 #: debian-trixie
370 #, no-wrap
371 msgid "Linux man-pages 6.9.1"
372 msgstr "Linux man-pages 6.9.1"
373
374 #. type: Plain text
375 #: debian-trixie
376 msgid "Standard C library (I<libc>, I<-lc>)"
377 msgstr "Biblioteca C Padrão (I<libc>, I<-lc>)"
378
379 #. type: Plain text
380 #: debian-trixie
381 #, fuzzy, no-wrap
382 #| msgid "B<int RTA_OK(struct rtattr *>I<rta>B<, int >I<rtabuflen>B<);>"
383 msgid "B<int RTA_OK(struct rtattr *>I<rta>B<, int >I<rtabuflen>B<);>\n"
384 msgstr "B<int RTA_OK(struct rtattr *>I<rta>B<, int >I<rtabuflen>B<);>"
385
386 #. type: Plain text
387 #: debian-trixie
388 #, fuzzy, no-wrap
389 #| msgid "B<struct rtattr *RTA_NEXT(struct rtattr *>I<rta>B<, unsigned int >I<rtabuflen>B<);>"
390 msgid "B<struct rtattr *RTA_NEXT(struct rtattr *>I<rta>B<, unsigned int >I<rtabuflen>B<);>\n"
391 msgstr "B<struct rtattr *RTA_NEXT(struct rtattr *>I<rta>B<, unsigned int >I<rtabuflen>B<);>"
392
393 #. type: Plain text
394 #: debian-trixie
395 #, fuzzy, no-wrap
396 #| msgid "B<unsigned int RTA_LENGTH(unsigned int >I<length>B<);>"
397 msgid ""
398 "B<unsigned int RTA_LENGTH(unsigned int >I<length>B<);>\n"
399 "B<unsigned int RTA_SPACE(unsigned int >I<length>B<);>\n"
400 msgstr "B<unsigned int RTA_LENGTH(unsigned int >I<length>B<);>"
401
402 #. type: Plain text
403 #: debian-trixie
404 msgid ""
405 "B<RTA_OK(>I<rta>B<, >I<attrlen>B<)> returns true if I<rta> points to a valid "
406 "routing attribute; I<attrlen> is the running length of the attribute "
407 "buffer. When not true then you must assume there are no more attributes in "
408 "the message, even if I<attrlen> is nonzero."
409 msgstr ""
410 "B<RTA_OK(>I<rta>B<, >I<attrlen>B<)> retorna verdadeiro se I<rta> apontar "
411 "para um atributo de roteamento válido; I<attrlen> é o comprimento do buffer "
412 "de atributo. Quando não verdadeiro, você deve então assumir que não há mais "
413 "atributos na mensagem, ainda que I<attrlen> não seja zero."
414
415 #. type: Plain text
416 #: debian-trixie
417 msgid "B<RTA_PAYLOAD(>I<rta>B<)> returns the length of this attribute's data."
418 msgstr ""
419 "B<RTA_PAYLOAD(>I<rta>B<)> retorna o comprimento dos dados desse atributo."
420
421 #. type: Plain text
422 #: debian-trixie
423 #, fuzzy
424 #| msgid ""
425 #| "B<RTA_NEXT(>I<rta>B<, >I<attrlen>B<)> gets the next attribute after "
426 #| "I<rta>. Calling this macro will update I<attrlen>. You should use "
427 #| "B<RTA_OK> to check for the validity of the returned pointer."
428 msgid ""
429 "B<RTA_NEXT(>I<rta>B<, >I<attrlen>B<)> gets the next attribute after I<rta>. "
430 "Calling this macro will update I<attrlen>. You should use B<RTA_OK> to "
431 "check the validity of the returned pointer."
432 msgstr ""
433 "B<RTA_NEXT(>I<rta>B<, >I<attrlen>B<)> obtém o próximo atributo após I<rta>. "
434 "Chamar essa macro atualizará I<attrlen>. Você deve utilizar B<RTA_OK> para "
435 "assegurar a validade do ponteiro retornado."
436
437 #. type: Plain text
438 #: debian-trixie
439 msgid ""
440 "B<RTA_LENGTH(>I<len>B<)> returns the length which is required for I<len> "
441 "bytes of data plus the header."
442 msgstr ""
443 "B<RTA_LENGTH(>I<len>B<)> retorna o comprimento que é necessário para I<len> "
444 "bytes de dados mais o cabeçalho."
445
446 #. type: Plain text
447 #: debian-trixie
448 #, fuzzy
449 #| msgid ""
450 #| "B<RTA_SPACE(>I<len>B<)> returns the amount of space which will be needed "
451 #| "in the message with I<len> bytes of data."
452 msgid ""
453 "B<RTA_SPACE(>I<len>B<)> returns the amount of space which will be needed in "
454 "a message with I<len> bytes of data."
455 msgstr ""
456 "B<RTA_SPACE(>I<len>B<)> retorna a quantidade de espaço que será necessária "
457 "em uma mensagem com I<len> bytes de dados."
458
459 #. type: Plain text
460 #: debian-trixie
461 #, fuzzy, no-wrap
462 #| msgid ""
463 #| "\tmemset(&req, 0, sizeof(req));\n"
464 #| "\treq.nh.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifinfomsg)); \n"
465 #| "\treq.nh.nlmsg_flags = NLM_F_REQUEST; \n"
466 #| "\treq.nh.nlmsg_type = RTML_NEWLINK;\n"
467 #| "\treq.if.ifi_family = AF_UNSPEC;\n"
468 #| "\treq.if.ifi_index = INTERFACE_INDEX; \n"
469 #| "\treq.if.ifi_change = 0xffffffff; /* ???*/\n"
470 #| "\trta = (struct rtattr *)(((char *) &req) + \n"
471 #| "\t\t\tNLMSG_ALIGN(n-E<gt>nlmsg_len));\n"
472 #| "\trta-E<gt>rta_type = IFLA_MTU;\n"
473 #| "\trta-E<gt>rta_len = sizeof(unsigned int);\n"
474 #| "\treq.n.nlmsg_len = NLMSG_ALIGN(req.n.nlmsg_len) + \n"
475 #| "\t\t\tRTA_LENGTH(sizeof(mtu)); \n"
476 #| "\tmemcpy(RTA_DATA(rta), &mtu, sizeof (mtu));\n"
477 #| "\tsend(rtnetlink_sk, &req, req.n.nlmsg_len); \n"
478 msgid ""
479 "#include E<lt>linux/rtnetlink.hE<gt>\n"
480 "\\&\n"
481 "\\&...\n"
482 "\\&\n"
483 "struct {\n"
484 " struct nlmsghdr nh;\n"
485 " struct ifinfomsg if;\n"
486 " char attrbuf[512];\n"
487 "} req;\n"
488 "\\&\n"
489 "struct rtattr *rta;\n"
490 "unsigned int mtu = 1000;\n"
491 "\\&\n"
492 "int rtnetlink_sk = socket(AF_NETLINK, SOCK_DGRAM, NETLINK_ROUTE);\n"
493 "\\&\n"
494 "memset(&req, 0, sizeof(req));\n"
495 "req.nh.nlmsg_len = NLMSG_LENGTH(sizeof(req.if));\n"
496 "req.nh.nlmsg_flags = NLM_F_REQUEST;\n"
497 "req.nh.nlmsg_type = RTM_NEWLINK;\n"
498 "req.if.ifi_family = AF_UNSPEC;\n"
499 "req.if.ifi_index = INTERFACE_INDEX;\n"
500 "req.if.ifi_change = 0xffffffff; /* ??? */\n"
501 "rta = (struct rtattr *)(((char *) &req) +\n"
502 " NLMSG_ALIGN(req.nh.nlmsg_len));\n"
503 "rta-E<gt>rta_type = IFLA_MTU;\n"
504 "rta-E<gt>rta_len = RTA_LENGTH(sizeof(mtu));\n"
505 "req.nh.nlmsg_len = NLMSG_ALIGN(req.nh.nlmsg_len) +\n"
506 " RTA_LENGTH(sizeof(mtu));\n"
507 "memcpy(RTA_DATA(rta), &mtu, sizeof(mtu));\n"
508 "send(rtnetlink_sk, &req, req.nh.nlmsg_len, 0);\n"
509 msgstr ""
510 "\tmemset(&req, 0, sizeof(req));\n"
511 "\treq.nh.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifinfomsg)); \n"
512 "\treq.nh.nlmsg_flags = NLM_F_REQUEST; \n"
513 "\treq.nh.nlmsg_type = RTML_NEWLINK;\n"
514 "\treq.if.ifi_family = AF_UNSPEC;\n"
515 "\treq.if.ifi_index = INTERFACE_INDEX; \n"
516 "\treq.if.ifi_change = 0xffffffff; /* ???*/\n"
517 "\trta = (struct rtattr *)(((char *) &req) + \n"
518 "\t\t\tNLMSG_ALIGN(n-E<gt>nlmsg_len));\n"
519 "\trta-E<gt>rta_type = IFLA_MTU;\n"
520 "\trta-E<gt>rta_len = sizeof(unsigned int);\n"
521 "\treq.n.nlmsg_len = NLMSG_ALIGN(req.n.nlmsg_len) + \n"
522 "\t\t\tRTA_LENGTH(sizeof(mtu)); \n"
523 "\tmemcpy(RTA_DATA(rta), &mtu, sizeof (mtu));\n"
524 "\tsend(rtnetlink_sk, &req, req.n.nlmsg_len); \n"
525
526 #. type: TH
527 #: fedora-44 fedora-rawhide
528 #, no-wrap
529 msgid "2025-01-05"
530 msgstr "5 janeiro 2025"
531
532 #. type: TH
533 #: fedora-44 fedora-rawhide
534 #, no-wrap
535 msgid "Linux man-pages 6.13"
536 msgstr "Linux man-pages 6.13"
537
538 #. type: TH
539 #: mageia-cauldron
540 #, no-wrap
541 msgid "Linux man-pages 6.17"
542 msgstr "Linux man-pages 6.17"
543
544 #. type: TH
545 #: opensuse-leap-16-1 opensuse-tumbleweed
546 #, no-wrap
547 msgid "Linux man-pages (unreleased)"
548 msgstr "Linux man-pages (não lançado)"