Debian Codegraph @

po/pt_BR/man7/packet.7.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 # Paulo César Mendes <[email protected]>, 2000.
5 # André Luiz Fassone <[email protected]>, 2000.
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: manpages-l10n\n"
9 "POT-Creation-Date: 2026-06-05 06:33+0200\n"
10 "PO-Revision-Date: 2000-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 "packet"
26 msgstr "packet"
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 "packet - packet interface on device level"
53 msgstr "packet - interface para pacote a nível de dispositivo"
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 "SYNOPSIS"
60 msgstr "SINOPSE"
61
62 #. type: Plain text
63 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
64 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
65 #, no-wrap
66 msgid ""
67 "B<#include E<lt>sys/socket.hE<gt>>\n"
68 "B<#include E<lt>linux/if_packet.hE<gt>>\n"
69 "B<#include E<lt>net/ethernet.hE<gt> /* the L2 protocols */>\n"
70 msgstr ""
71 "B<#include E<lt>sys/socket.hE<gt>>\n"
72 "B<#include E<lt>linux/if_packet.hE<gt>>\n"
73 "B<#include E<lt>net/ethernet.hE<gt> /* protocolos L2 */>\n"
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 "B<packet_socket = socket(AF_PACKET, int >I<socket_type>B<, int >I<protocol>B<);>\n"
80 msgstr "B<packet_socket = socket(AF_PACKET, int >I<socket_type>B<, int >I<protocol>B<);>\n"
81
82 #. type: SH
83 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
84 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
85 #, no-wrap
86 msgid "DESCRIPTION"
87 msgstr "DESCRIÇÃO"
88
89 #. type: Plain text
90 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
91 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
92 msgid ""
93 "Packet sockets are used to receive or send raw packets at the device driver "
94 "(OSI Layer 2) level. They allow the user to implement protocol modules in "
95 "user space on top of the physical layer."
96 msgstr ""
97 "Os 'sockets' de pacotes são usados para enviar ou receber pacotes diretos no "
98 "controlador a nível de dispositivo (OSI nível 2). Eles permitem que o "
99 "usuário implemente módulos de protocolo no espaço acima da camada física."
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 #, fuzzy
105 #| msgid ""
106 #| "The I<socket_type> is either B<SOCK_RAW> for raw packets including the "
107 #| "link level header or B<SOCK_DGRAM> for cooked packets with the link level "
108 #| "header removed. The link level header information is available in a "
109 #| "common format in a B<sockaddr_ll>. I<protocol> is the IEEE 802.3 "
110 #| "protocol number in network order. See the B<E<lt>linux/if_ether.hE<gt>> "
111 #| "include file for a list of allowed protocols. When protocol is set to "
112 #| "B<htons(ETH_P_ALL)> then all protocols are received. All incoming "
113 #| "packets of that protocol type will be passed to the packet socket before "
114 #| "they are passed to the protocols implemented in the kernel."
115 msgid ""
116 "The I<socket_type> is either B<SOCK_RAW> for raw packets including the link-"
117 "level header or B<SOCK_DGRAM> for cooked packets with the link-level header "
118 "removed. The link-level header information is available in a common format "
119 "in a I<sockaddr_ll> structure. I<protocol> is the IEEE 802.3 protocol "
120 "number in network byte order. See the I<E<lt>linux/if_ether.hE<gt>> include "
121 "file for a list of allowed protocols. When protocol is set to "
122 "B<htons(ETH_P_ALL)>, then all protocols are received. All incoming packets "
123 "of that protocol type will be passed to the packet socket before they are "
124 "passed to the protocols implemented in the kernel. If I<protocol> is set to "
125 "zero, no packets are received. B<bind>(2) can optionally be called with a "
126 "nonzero I<sll_protocol> to start receiving packets for the protocols "
127 "specified."
128 msgstr ""
129 "O I<socket_type> pode ser B<SOCK_RAW> para pacotes diretos contendo o "
130 "cabeçalho de ligação ou B<SOCK_DGRAM> para pacotes processados que tiveram "
131 "este cabeçalho retirado. Esta informação fica armazenada num formato comum "
132 "em uma estrutura B<sockaddr_ll>. I<protocol> é o protocolo IEEE 802.3 em "
133 "ordem de rede. Veja a lista de protocolos possíveis no arquivo B<E<lt>linux/"
134 "if_ether.hE<gt>> Se o protocolo escolhido for B<htons(ETH_P_ALL)> então "
135 "todos os protocolos serão recebidos. Todos os pacotes recebidos deste tipo "
136 "de protocolo serão passados para o 'socket' de pacote antes de serem "
137 "passados para os protocolos implementados no kernel."
138
139 #. type: Plain text
140 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
141 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
142 msgid ""
143 "In order to create a packet socket, a process must have the B<CAP_NET_RAW> "
144 "capability in the user namespace that governs its network namespace."
145 msgstr ""
146
147 #. type: Plain text
148 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
149 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
150 msgid ""
151 "B<SOCK_RAW> packets are passed to and from the device driver without any "
152 "changes in the packet data. When receiving a packet, the address is still "
153 "parsed and passed in a standard I<sockaddr_ll> address structure. When "
154 "transmitting a packet, the user-supplied buffer should contain the physical-"
155 "layer header. That packet is then queued unmodified to the network driver "
156 "of the interface defined by the destination address. Some device drivers "
157 "always add other headers. B<SOCK_RAW> is similar to but not compatible with "
158 "the obsolete B<AF_INET/SOCK_PACKET> of Linux 2.0."
159 msgstr ""
160 "Os pacotes B<SOCK_RAW> vêm e vão ao controlador de dispositivo sem quaisquer "
161 "alterações nos dados do pacote. Ao receber um pacote, o endereço ainda é "
162 "localizado e passado para uma estrutura I<sockaddr_ll> padrão. Ao transmitir "
163 "um pacote, o 'buffer' dado pelo usuário deverá conter o cabeçalho da camada "
164 "física. Este pacote é então colocado em fila sem modificações no controlador "
165 "de rede da interface definida pelo endereço de destino. Alguns controladores "
166 "de dispositivo sempre acrescentam outros cabeçalhos. B<SOCK_RAW> é "
167 "semelhante, mas incompatível com o B<AF_INET/SOCK_PACKET> do Linux 2.0."
168
169 #. type: Plain text
170 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
171 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
172 msgid ""
173 "B<SOCK_DGRAM> operates on a slightly higher level. The physical header is "
174 "removed before the packet is passed to the user. Packets sent through a "
175 "B<SOCK_DGRAM> packet socket get a suitable physical-layer header based on "
176 "the information in the I<sockaddr_ll> destination address before they are "
177 "queued."
178 msgstr ""
179 "B<SOCK_DGRAM> trabalha num nível ligeiramente mais elevado. O cabeçalho "
180 "físico é removido antes que o pacote seja passado ao usuário. Os pacotes "
181 "enviados artavés de um 'socket' de pacote tipo B<SOCK_DGRAM> recebem um "
182 "cabeçalho de camada física adequado de acordo com a informação no endereço "
183 "de destino em I<sockaddr_ll> antes de serem postos na fila."
184
185 #. type: Plain text
186 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
187 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
188 #, fuzzy
189 #| msgid ""
190 #| "By default all packets of the specified protocol type are passed to a "
191 #| "packet socket. To only get packets from a specific interface use "
192 #| "B<bind>(2) specifying an address in a B<struct sockaddr_ll> to bind the "
193 #| "packet socket to an interface. Only the B<sll_protocol> and the "
194 #| "B<sll_ifindex> address fields are used for purposes of binding."
195 msgid ""
196 "By default, all packets of the specified protocol type are passed to a "
197 "packet socket. To get packets only from a specific interface use "
198 "B<bind>(2) specifying an address in a I<struct sockaddr_ll> to bind the "
199 "packet socket to an interface. Fields used for binding are I<sll_family> "
200 "(should be B<AF_PACKET>), I<sll_protocol>, and I<sll_ifindex>."
201 msgstr ""
202 "Todos os pacotes do tipo de protocolo especificado são passados para um "
203 "'socket' de pacote por padrão. Para apenas pegar pacotes de uma interface "
204 "específica, use B<bind>(2) especificando um endereço em uma B<struct "
205 "sockaddr_ll> para ligar o 'socket' do pacote a uma interface. Apenas os "
206 "campos de endereço B<sll_protocol> e B<sll_ifindex> são usados para ligação."
207
208 #. type: Plain text
209 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
210 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
211 msgid "The B<connect>(2) operation is not supported on packet sockets."
212 msgstr "A operação B<connect>(2) não é suportada nos 'sockets' de pacote."
213
214 #. type: Plain text
215 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
216 #: opensuse-leap-16-1 opensuse-tumbleweed
217 #, fuzzy
218 #| msgid ""
219 #| "When the B<MSG_TRUNC> flag is passed to B<recvmsg>(2), B<recv>(2), or "
220 #| "B<recvfrom>(2), the real length of the packet on the wire is always "
221 #| "returned, even when it is longer than the buffer."
222 msgid ""
223 "When the B<MSG_TRUNC> flag is passed to B<recvmsg>(2), B<recv>(2), or "
224 "B<recvfrom>(2), the real size of the packet on the wire is always returned, "
225 "even when it is longer than the buffer."
226 msgstr ""
227 "Quando o sinalizador B<MSG_TRUNC> é passado para B<recvmsg>(2), B<recv>(2) "
228 "ou B<recvfrom>(2), o comprimento real do pacote na linha é sempre retornado, "
229 "mesmo se ele for mais longo que o 'buffer'."
230
231 #. type: SS
232 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
233 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
234 #, no-wrap
235 msgid "Address types"
236 msgstr "Tipos de endereço"
237
238 #. type: Plain text
239 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
240 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
241 #, fuzzy
242 #| msgid "The sockaddr_ll is a device independent physical layer address."
243 msgid ""
244 "The I<sockaddr_ll> structure is a device-independent physical-layer address."
245 msgstr ""
246 "sockaddr_ll é um endereço de camada física independente de dispositivo."
247
248 #. type: Plain text
249 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
250 #: opensuse-leap-16-1 opensuse-tumbleweed
251 #, fuzzy, no-wrap
252 #| msgid ""
253 #| "struct sockaddr_ll {\n"
254 #| "\tunsigned short\tsll_family;\t/* Always AF_PACKET */\n"
255 #| "\tunsigned short\tsll_protocol;\t/* Physical layer protocol */\n"
256 #| "\tint\tsll_ifindex;\t/* Interface number */\n"
257 #| "\tunsigned short\tsll_hatype;\t/* Header type */\t\n"
258 #| "\tunsigned char\tsll_pkttype;\t/* Packet type */\n"
259 #| "\tunsigned char\tsll_halen;\t/* Length of address */ \n"
260 #| "\tunsigned char\tsll_addr[8];\t/* Physical layer address */\n"
261 #| "};\n"
262 msgid ""
263 "struct sockaddr_ll {\n"
264 " unsigned short sll_family; /* Always AF_PACKET */\n"
265 " unsigned short sll_protocol; /* Physical-layer protocol */\n"
266 " int sll_ifindex; /* Interface number */\n"
267 " unsigned short sll_hatype; /* ARP hardware type */\n"
268 " unsigned char sll_pkttype; /* Packet type */\n"
269 " unsigned char sll_halen; /* Size of address */\n"
270 " unsigned char sll_addr[8]; /* Physical-layer address */\n"
271 "};\n"
272 msgstr ""
273 "struct sockaddr_ll {\n"
274 "\tunsigned short\tsll_family;\t/* AF_PACKET sempre */\n"
275 "\tunsigned short\tsll_protocol;\t/* protocolo camada física */\n"
276 "\tint\tsll_ifindex;\t/* número da interface */\n"
277 "\tunsigned short\tsll_hatype;\t/* tipo de cabeçalho */\t\n"
278 "\tunsigned char\tsll_pkttype;\t/* tipo de pacote */\n"
279 "\tunsigned char\tsll_halen;\t/* tamanho do ender. */ \n"
280 "\tunsigned char\tsll_addr[8];\t/* ender. camada física */\n"
281 "};\n"
282
283 #. type: Plain text
284 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
285 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
286 msgid "The fields of this structure are as follows:"
287 msgstr ""
288
289 #. type: TP
290 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
291 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
292 #, no-wrap
293 msgid "I<sll_protocol>"
294 msgstr "I<sll_protocol>"
295
296 #. type: Plain text
297 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
298 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
299 msgid ""
300 "is the standard ethernet protocol type in network byte order as defined in "
301 "the I<E<lt>linux/if_ether.hE<gt>> include file. It defaults to the socket's "
302 "protocol."
303 msgstr ""
304
305 #. type: TP
306 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
307 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
308 #, no-wrap
309 msgid "I<sll_ifindex>"
310 msgstr "I<sll_ifindex>"
311
312 #. type: Plain text
313 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
314 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
315 msgid ""
316 "is the interface index of the interface (see B<netdevice>(7)); 0 matches any "
317 "interface (only permitted for binding). I<sll_hatype> is an ARP type as "
318 "defined in the I<E<lt>linux/if_arp.hE<gt>> include file."
319 msgstr ""
320
321 #. type: TP
322 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
323 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
324 #, no-wrap
325 msgid "I<sll_pkttype>"
326 msgstr "I<sll_pkttype>"
327
328 #. type: Plain text
329 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
330 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
331 #, fuzzy
332 #| msgid ""
333 #| "B<sll_protocol> is the standard ethernet protocol type in network order "
334 #| "as defined in the B<linux/if_ether.h> include file. It defaults to the "
335 #| "socket's protocol. B<sll_ifindex> is the interface index of the "
336 #| "interface (see B<netdevice>(2)); 0 matches any interface (only legal for "
337 #| "binding). B<sll_hatype> is a ARP type as defined in the B<linux/"
338 #| "if_arp.h> include file. B<sll_pkttype> contains the packet type. Valid "
339 #| "types are B<PACKET_HOST> for a packet addressed to the local host, "
340 #| "B<PACKET_BROADCAST> for a physical layer broadcast packet, "
341 #| "B<PACKET_MULTICAST> for a packet sent to a physical layer multicast "
342 #| "address, B<PACKET_OTHERHOST> for a packet to some other host that has "
343 #| "been caught by a device driver in promiscuous mode, and "
344 #| "B<PACKET_OUTGOING> for a packet originated from the local host that is "
345 #| "looped back to a packet socket. These types make only sense for "
346 #| "receiving. B<sll_addr> and B<sll_halen> contain the physical layer (e.g. "
347 #| "IEEE 802.3) address and its length. The exact interpretation depends on "
348 #| "the device."
349 msgid ""
350 "contains the packet type. Valid types are B<PACKET_HOST> for a packet "
351 "addressed to the local host, B<PACKET_BROADCAST> for a physical-layer "
352 "broadcast packet, B<PACKET_MULTICAST> for a packet sent to a physical-layer "
353 "multicast address, B<PACKET_OTHERHOST> for a packet to some other host that "
354 "has been caught by a device driver in promiscuous mode, and "
355 "B<PACKET_OUTGOING> for a packet originating from the local host that is "
356 "looped back to a packet socket. These types make sense only for receiving."
357 msgstr ""
358 "B<sll_protocol> é o protocolo ethernet padrão em ordem de rede conforme "
359 "definido no arquivo B<linux/if_ether.h> O valor padrão é o protocolo do "
360 "'socket'. B<sll_ifindex> é o índice de interface da interface (ver "
361 "B<netdevice>(2)); 0 indica qualquer interface (aceitável apenas para a "
362 "ligação). B<sll_hatype> é um tipo ARP conforme definido no arquivo B<linux/"
363 "if_arp.h>. B<sll_pkttype> contém o tipo do pacote. Tipos válidos são "
364 "B<PACKET_HOST> , para um pacote endereçado para o 'host' local, "
365 "B<PACKET_BROADCAST> para um pacote de 'broadcast' de camada física, "
366 "B<PACKET_MULTICAST> para um pacote enviado para um endereço de multicast da "
367 "camada física, B<PACKET_OTHERHOST> para um pacote destinado a outro 'host' "
368 "que foi capturado pelo driver de dispositivo em modo promíscuo, e "
369 "B<PACKET_OUTGOING> para um pacote oriundo do 'host' local que sofre "
370 "'loopback' para um 'socket' de pacote. Estes tipos só são compatíveis com a "
371 "recepção. B<sll_addr> e B<sll_halen> contêm o endereço da camada física (ex. "
372 "IEEE 802.3) e seu comprimento. A interpretação exata dependerá do "
373 "dispositivo."
374
375 #. type: TP
376 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
377 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
378 #, no-wrap
379 msgid "I<sll_addr>"
380 msgstr "I<sll_addr>"
381
382 #. type: TQ
383 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
384 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
385 #, no-wrap
386 msgid "I<sll_halen>"
387 msgstr "I<sll_halen>"
388
389 #. type: Plain text
390 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
391 #: opensuse-leap-16-1 opensuse-tumbleweed
392 msgid ""
393 "contain the physical-layer (e.g., IEEE 802.3) address and its size. The "
394 "exact interpretation depends on the device."
395 msgstr ""
396
397 #. type: Plain text
398 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
399 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
400 #, fuzzy
401 #| msgid ""
402 #| "When you send packets it is enough to specify B<sll_family>, B<sll_addr>, "
403 #| "B<sll_halen>, B<sll_ifindex>. The other fields should be 0. "
404 #| "B<sll_hatype> and B<sll_pkttype> are set on received packets for your "
405 #| "information. For bind only B<sll_protocol> and B<sll_ifindex> are used."
406 msgid ""
407 "When you send packets, it is enough to specify I<sll_family>, I<sll_addr>, "
408 "I<sll_halen>, I<sll_ifindex>, and I<sll_protocol>. The other fields should "
409 "be 0. I<sll_hatype> and I<sll_pkttype> are set on received packets for your "
410 "information."
411 msgstr ""
412 "Ao enviar pacotes, é suficiente especificar B<sll_family>, B<sll_addr>, "
413 "B<sll_halen>, B<sll_ifindex>. Os outros campos devem ser 0. B<sll_hatype> e "
414 "B<sll_pkttype> são colocados em pacotes recebidos para sua informação. O "
415 "B<sll_protocol> e B<sll_ifindex> são usados apenas para ligação."
416
417 #. type: SS
418 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
419 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
420 #, no-wrap
421 msgid "Socket options"
422 msgstr "Opções de socket"
423
424 #. type: Plain text
425 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
426 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
427 msgid ""
428 "Packet socket options are configured by calling B<setsockopt>(2) with level "
429 "B<SOL_PACKET>."
430 msgstr ""
431
432 #. type: TP
433 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
434 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
435 #, no-wrap
436 msgid "B<PACKET_ADD_MEMBERSHIP>"
437 msgstr "B<PACKET_ADD_MEMBERSHIP>"
438
439 #. type: TP
440 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
441 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
442 #, no-wrap
443 msgid "B<PACKET_DROP_MEMBERSHIP>"
444 msgstr "B<PACKET_DROP_MEMBERSHIP>"
445
446 #. type: Plain text
447 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
448 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
449 #, fuzzy
450 #| msgid ""
451 #| "Packet sockets can be used to configure physical layer multicasting and "
452 #| "promiscuous mode. It works by calling B<setsockopt>(2) on a packet "
453 #| "socket for SOL_PACKET and one of the options B<PACKET_ADD_MEMBERSHIP> to "
454 #| "add a binding or B<PACKET_DROP_MEMBERSHIP> to drop it. They both expect "
455 #| "a B<packet_mreq> structure as argument:"
456 msgid ""
457 "Packet sockets can be used to configure physical-layer multicasting and "
458 "promiscuous mode. B<PACKET_ADD_MEMBERSHIP> adds a binding and "
459 "B<PACKET_DROP_MEMBERSHIP> drops it. They both expect a I<packet_mreq> "
460 "structure as argument:"
461 msgstr ""
462 "Os 'sockets' de pacote podem ser usados para configurar o multicasting na "
463 "camada física e o modo promíscuo. Ele funciona usando-se B<setsockopt>(2) em "
464 "um 'socket' de pacote com a opção SOL_PACKET e uma destas opções: "
465 "B<PACKET_ADD_MEMBERSHIP> para adicionar uma ligação e "
466 "B<PACKET_DROP_MEMBERSHIP> para retirá-la. Ambos esperam uma estrutura "
467 "B<packet_mreq> como argumento:"
468
469 #. type: Plain text
470 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
471 #: opensuse-leap-16-1 opensuse-tumbleweed
472 #, fuzzy, no-wrap
473 #| msgid ""
474 #| "struct packet_mreq {\n"
475 #| " int mr_ifindex; /* interface index */\n"
476 #| " unsigned short mr_type; /* action */\n"
477 #| " unsigned short mr_alen; /* address length */\n"
478 #| " unsigned char mr_address[8]; /* physical-layer address */\n"
479 #| "};\n"
480 msgid ""
481 "struct packet_mreq {\n"
482 " int mr_ifindex; /* interface index */\n"
483 " unsigned short mr_type; /* action */\n"
484 " unsigned short mr_alen; /* address size */\n"
485 " unsigned char mr_address[8]; /* physical-layer address */\n"
486 "};\n"
487 msgstr ""
488 "struct packet_mreq {\n"
489 " int mr_ifindex; /* índice da interface */\n"
490 " unsigned short mr_type; /* ação */\n"
491 " unsigned short mr_alen; /* tamanho do ender. */\n"
492 " unsigned char mr_address[8]; /* ender. camada física */\n"
493 "};\n"
494
495 #. type: Plain text
496 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
497 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
498 #, fuzzy
499 #| msgid ""
500 #| "B<mr_ifindex> contains the interface index for the interface whose status "
501 #| "should be changed. The B<mr_type> parameter specifies which action to "
502 #| "perform. B<PACKET_MR_PROMISC> enables receiving all packets on a shared "
503 #| "medium - often known as ``promiscuous mode'', B<PACKET_MR_MULTICAST> "
504 #| "binds the socket to the physical layer multicast group specified in "
505 #| "B<mr_address> and B<mr_alen>, and B<PACKET_MR_ALLMULTI> sets the socket "
506 #| "up to receive all multicast packets arriving at the interface."
507 msgid ""
508 "I<mr_ifindex> contains the interface index for the interface whose status "
509 "should be changed. The I<mr_type> field specifies which action to perform. "
510 "B<PACKET_MR_PROMISC> enables receiving all packets on a shared medium (often "
511 "known as \"promiscuous mode\"), B<PACKET_MR_MULTICAST> binds the socket to "
512 "the physical-layer multicast group specified in I<mr_address> and "
513 "I<mr_alen>, and B<PACKET_MR_ALLMULTI> sets the socket up to receive all "
514 "multicast packets arriving at the interface."
515 msgstr ""
516 "B<mr_ifindex> contém o índice da interface para a interface cujo status deve "
517 "ser mudado. O parâmetro B<mr_type> especifica qual ação será executada. "
518 "B<PACKET_MR_PROMISC> permite a recepção de todos os pacotes em um meio "
519 "compartilhado, o que muitas vezes é chamado 'modo promíscuo'. "
520 "B<PACKET_MR_MULTICAST> liga o 'socket' ao grupo de multicast da camada "
521 "física especificado em B<mr_address>; e B<mr_alen> e B<PACKET_MR_ALLMULTI> "
522 "configuram o 'socket' para receber todos os pacotes de multicast que chegam "
523 "à interface."
524
525 #. type: Plain text
526 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
527 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
528 msgid ""
529 "In addition, the traditional ioctls B<SIOCSIFFLAGS>, B<SIOCADDMULTI>, "
530 "B<SIOCDELMULTI> can be used for the same purpose."
531 msgstr ""
532 "Os ioctls tradicionais B<SIOCSIFFLAGS,> B<SIOCADDMULTI,> B<SIOCDELMULTI> "
533 "também podem ser usados para este fim."
534
535 #. type: TP
536 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
537 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
538 #, no-wrap
539 msgid "B<PACKET_AUXDATA> (since Linux 2.6.21)"
540 msgstr "B<PACKET_AUXDATA> (desde o Linux 2.6.21)"
541
542 #. commit 8dc4194474159660d7f37c495e3fc3f10d0db8cc
543 #. type: Plain text
544 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
545 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
546 msgid ""
547 "If this binary option is enabled, the packet socket passes a metadata "
548 "structure along with each packet in the B<recvmsg>(2) control field. The "
549 "structure can be read with B<cmsg>(3). It is defined as"
550 msgstr ""
551
552 #. commit a0cdfcf39362410d5ea983f4daf67b38de129408 added tp_vlan_tpid
553 #. type: Plain text
554 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
555 #: opensuse-leap-16-1 opensuse-tumbleweed
556 #, no-wrap
557 msgid ""
558 "struct tpacket_auxdata {\n"
559 " __u32 tp_status;\n"
560 " __u32 tp_len; /* packet size */\n"
561 " __u32 tp_snaplen; /* captured size */\n"
562 " __u16 tp_mac;\n"
563 " __u16 tp_net;\n"
564 " __u16 tp_vlan_tci;\n"
565 " __u16 tp_vlan_tpid; /* Since Linux 3.14; earlier, these\n"
566 " were unused padding bytes */\n"
567 "};\n"
568 msgstr ""
569
570 #. type: TP
571 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
572 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
573 #, no-wrap
574 msgid "B<PACKET_FANOUT> (since Linux 3.1)"
575 msgstr "B<PACKET_FANOUT> (desde o Linux 3.1)"
576
577 #. commit dc99f600698dcac69b8f56dda9a8a00d645c5ffc
578 #. type: Plain text
579 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
580 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
581 msgid ""
582 "To scale processing across threads, packet sockets can form a fanout group. "
583 "In this mode, each matching packet is enqueued onto only one socket in the "
584 "group. A socket joins a fanout group by calling B<setsockopt>(2) with "
585 "level B<SOL_PACKET> and option B<PACKET_FANOUT>. Each network namespace can "
586 "have up to 65536 independent groups. A socket selects a group by encoding "
587 "the ID in the first 16 bits of the integer option value. The first packet "
588 "socket to join a group implicitly creates it. To successfully join an "
589 "existing group, subsequent packet sockets must have the same protocol, "
590 "device settings, fanout mode, and flags (see below). Packet sockets can "
591 "leave a fanout group only by closing the socket. The group is deleted when "
592 "the last socket is closed."
593 msgstr ""
594
595 #. type: Plain text
596 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
597 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
598 msgid ""
599 "Fanout supports multiple algorithms to spread traffic between sockets, as "
600 "follows:"
601 msgstr ""
602
603 #. type: IP
604 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
605 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
606 #, no-wrap
607 msgid "\\[bu]"
608 msgstr "\\[bu]"
609
610 #. type: Plain text
611 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
612 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
613 msgid ""
614 "The default mode, B<PACKET_FANOUT_HASH>, sends packets from the same flow to "
615 "the same socket to maintain per-flow ordering. For each packet, it chooses "
616 "a socket by taking the packet flow hash modulo the number of sockets in the "
617 "group, where a flow hash is a hash over network-layer address and optional "
618 "transport-layer port fields."
619 msgstr ""
620
621 #. type: Plain text
622 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
623 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
624 msgid ""
625 "The load-balance mode B<PACKET_FANOUT_LB> implements a round-robin algorithm."
626 msgstr ""
627
628 #. type: Plain text
629 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
630 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
631 msgid ""
632 "B<PACKET_FANOUT_CPU> selects the socket based on the CPU that the packet "
633 "arrived on."
634 msgstr ""
635
636 #. type: Plain text
637 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
638 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
639 msgid ""
640 "B<PACKET_FANOUT_ROLLOVER> processes all data on a single socket, moving to "
641 "the next when one becomes backlogged."
642 msgstr ""
643
644 #. type: Plain text
645 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
646 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
647 msgid ""
648 "B<PACKET_FANOUT_RND> selects the socket using a pseudo-random number "
649 "generator."
650 msgstr ""
651
652 #. commit 2d36097d26b5991d71a2cf4a20c1a158f0f1bfcd
653 #. type: Plain text
654 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
655 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
656 msgid ""
657 "B<PACKET_FANOUT_QM> (available since Linux 3.14) selects the socket using "
658 "the recorded queue_mapping of the received skb."
659 msgstr ""
660
661 #. type: Plain text
662 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
663 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
664 msgid ""
665 "Fanout modes can take additional options. IP fragmentation causes packets "
666 "from the same flow to have different flow hashes. The flag "
667 "B<PACKET_FANOUT_FLAG_DEFRAG>, if set, causes packets to be defragmented "
668 "before fanout is applied, to preserve order even in this case. Fanout mode "
669 "and options are communicated in the second 16 bits of the integer option "
670 "value. The flag B<PACKET_FANOUT_FLAG_ROLLOVER> enables the roll over "
671 "mechanism as a backup strategy: if the original fanout algorithm selects a "
672 "backlogged socket, the packet rolls over to the next available one."
673 msgstr ""
674
675 #. type: TP
676 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
677 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
678 #, no-wrap
679 msgid "B<PACKET_LOSS> (with B<PACKET_TX_RING>)"
680 msgstr "B<PACKET_LOSS> (com B<PACKET_TX_RING>)"
681
682 #. type: Plain text
683 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
684 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
685 msgid ""
686 "When a malformed packet is encountered on a transmit ring, the default is to "
687 "reset its I<tp_status> to B<TP_STATUS_WRONG_FORMAT> and abort the "
688 "transmission immediately. The malformed packet blocks itself and "
689 "subsequently enqueued packets from being sent. The format error must be "
690 "fixed, the associated I<tp_status> reset to B<TP_STATUS_SEND_REQUEST>, and "
691 "the transmission process restarted via B<send>(2). However, if "
692 "B<PACKET_LOSS> is set, any malformed packet will be skipped, its "
693 "I<tp_status> reset to B<TP_STATUS_AVAILABLE>, and the transmission process "
694 "continued."
695 msgstr ""
696
697 #. type: TP
698 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
699 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
700 #, no-wrap
701 msgid "B<PACKET_RESERVE> (with B<PACKET_RX_RING>)"
702 msgstr "B<PACKET_RESERVE> (com B<PACKET_RX_RING>)"
703
704 #. type: Plain text
705 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
706 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
707 msgid ""
708 "By default, a packet receive ring writes packets immediately following the "
709 "metadata structure and alignment padding. This integer option reserves "
710 "additional headroom."
711 msgstr ""
712
713 #. type: TP
714 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
715 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
716 #, no-wrap
717 msgid "B<PACKET_RX_RING>"
718 msgstr "B<PACKET_RX_RING>"
719
720 #. type: Plain text
721 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
722 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
723 msgid ""
724 "Create a memory-mapped ring buffer for asynchronous packet reception. The "
725 "packet socket reserves a contiguous region of application address space, "
726 "lays it out into an array of packet slots and copies packets (up to "
727 "I<tp_snaplen>) into subsequent slots. Each packet is preceded by a "
728 "metadata structure similar to I<tpacket_auxdata>. The protocol fields "
729 "encode the offset to the data from the start of the metadata header. "
730 "I<tp_net> stores the offset to the network layer. If the packet socket is "
731 "of type B<SOCK_DGRAM>, then I<tp_mac> is the same. If it is of type "
732 "B<SOCK_RAW>, then that field stores the offset to the link-layer frame. "
733 "Packet socket and application communicate the head and tail of the ring "
734 "through the I<tp_status> field. The packet socket owns all slots with "
735 "I<tp_status> equal to B<TP_STATUS_KERNEL>. After filling a slot, it changes "
736 "the status of the slot to transfer ownership to the application. During "
737 "normal operation, the new I<tp_status> value has at least the "
738 "B<TP_STATUS_USER> bit set to signal that a received packet has been stored. "
739 "When the application has finished processing a packet, it transfers "
740 "ownership of the slot back to the socket by setting I<tp_status> equal to "
741 "B<TP_STATUS_KERNEL>."
742 msgstr ""
743
744 #. type: Plain text
745 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
746 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
747 msgid ""
748 "Packet sockets implement multiple variants of the packet ring. The "
749 "implementation details are described in I<Documentation/networking/"
750 "packet_mmap.rst> in the Linux kernel source tree."
751 msgstr ""
752
753 #. type: TP
754 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
755 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
756 #, no-wrap
757 msgid "B<PACKET_STATISTICS>"
758 msgstr "B<PACKET_STATISTICS>"
759
760 #. type: Plain text
761 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
762 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
763 msgid "Retrieve packet socket statistics in the form of a structure"
764 msgstr ""
765
766 #. type: Plain text
767 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
768 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
769 #, no-wrap
770 msgid ""
771 "struct tpacket_stats {\n"
772 " unsigned int tp_packets; /* Total packet count */\n"
773 " unsigned int tp_drops; /* Dropped packet count */\n"
774 "};\n"
775 msgstr ""
776
777 #. type: Plain text
778 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
779 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
780 msgid ""
781 "Receiving statistics resets the internal counters. The statistics structure "
782 "differs when using a ring of variant B<TPACKET_V3>."
783 msgstr ""
784
785 #. type: TP
786 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
787 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
788 #, no-wrap
789 msgid "B<PACKET_TIMESTAMP> (with B<PACKET_RX_RING>; since Linux 2.6.36)"
790 msgstr "B<PACKET_TIMESTAMP> (com B<PACKET_RX_RING>; desde o Linux 2.6.36)"
791
792 #. commit 614f60fa9d73a9e8fdff3df83381907fea7c5649
793 #. type: Plain text
794 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
795 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
796 msgid ""
797 "The packet receive ring always stores a timestamp in the metadata header. "
798 "By default, this is a software generated timestamp generated when the packet "
799 "is copied into the ring. This integer option selects the type of "
800 "timestamp. Besides the default, it support the two hardware formats "
801 "described in I<Documentation/networking/timestamping.rst> in the Linux "
802 "kernel source tree."
803 msgstr ""
804
805 #. type: TP
806 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
807 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
808 #, no-wrap
809 msgid "B<PACKET_TX_RING> (since Linux 2.6.31)"
810 msgstr "B<PACKET_TX_RING> (desde o Linux 2.6.31)"
811
812 #. commit 69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1
813 #. type: Plain text
814 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
815 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
816 msgid ""
817 "Create a memory-mapped ring buffer for packet transmission. This option is "
818 "similar to B<PACKET_RX_RING> and takes the same arguments. The application "
819 "writes packets into slots with I<tp_status> equal to B<TP_STATUS_AVAILABLE> "
820 "and schedules them for transmission by changing I<tp_status> to "
821 "B<TP_STATUS_SEND_REQUEST>. When packets are ready to be transmitted, the "
822 "application calls B<send>(2) or a variant thereof. The I<buf> and I<len> "
823 "fields of this call are ignored. If an address is passed using "
824 "B<sendto>(2) or B<sendmsg>(2), then that overrides the socket default. On "
825 "successful transmission, the socket resets I<tp_status> to "
826 "B<TP_STATUS_AVAILABLE>. It immediately aborts the transmission on error "
827 "unless B<PACKET_LOSS> is set."
828 msgstr ""
829
830 #. type: TP
831 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
832 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
833 #, no-wrap
834 msgid "B<PACKET_VERSION> (with B<PACKET_RX_RING>; since Linux 2.6.27)"
835 msgstr "B<PACKET_VERSION> (com B<PACKET_RX_RING>; desde o Linux 2.6.27)"
836
837 #. commit bbd6ef87c544d88c30e4b762b1b61ef267a7d279
838 #. type: Plain text
839 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
840 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
841 msgid ""
842 "By default, B<PACKET_RX_RING> creates a packet receive ring of variant "
843 "B<TPACKET_V1>. To create another variant, configure the desired variant by "
844 "setting this integer option before creating the ring."
845 msgstr ""
846
847 #. type: TP
848 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
849 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
850 #, no-wrap
851 msgid "B<PACKET_QDISC_BYPASS> (since Linux 3.14)"
852 msgstr "B<PACKET_QDISC_BYPASS> (desde o Linux 3.14)"
853
854 #. commit d346a3fae3ff1d99f5d0c819bf86edf9094a26a1
855 #. type: Plain text
856 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
857 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
858 msgid ""
859 "By default, packets sent through packet sockets pass through the kernel's "
860 "qdisc (traffic control) layer, which is fine for the vast majority of use "
861 "cases. For traffic generator appliances using packet sockets that intend to "
862 "brute-force flood the network\\[em]for example, to test devices under load "
863 "in a similar fashion to pktgen\\[em]this layer can be bypassed by setting "
864 "this integer option to 1. A side effect is that packet buffering in the "
865 "qdisc layer is avoided, which will lead to increased drops when network "
866 "device transmit queues are busy; therefore, use at your own risk."
867 msgstr ""
868
869 #. type: SS
870 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
871 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
872 #, no-wrap
873 msgid "Ioctls"
874 msgstr "Ioctls"
875
876 #. FIXME Document SIOCGSTAMPNS
877 #. type: Plain text
878 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
879 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
880 #, fuzzy
881 #| msgid ""
882 #| "B<SIOCGSTAMP> can be used to receive the time stamp of the last received "
883 #| "packet. Argument is a B<struct timeval.>"
884 msgid ""
885 "B<SIOCGSTAMP> can be used to receive the timestamp of the last received "
886 "packet. Argument is a I<struct timeval> variable."
887 msgstr ""
888 "B<SIOCGSTAMP> pode ser usado para receber o valor de tempo do último pacote "
889 "recebido. O argumento é um B<struct timeval>."
890
891 #. type: Plain text
892 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
893 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
894 msgid ""
895 "In addition, all standard ioctls defined in B<netdevice>(7) and "
896 "B<socket>(7) are valid on packet sockets."
897 msgstr ""
898 "Todos os ioctls padrão definidos em B<netdevice>(7) e B<socket>(7) são "
899 "válidos em 'sockets' de pacote."
900
901 #. type: SS
902 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
903 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
904 #, no-wrap
905 msgid "Error handling"
906 msgstr "Tratamento de erros"
907
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 "Packet sockets do no error handling other than errors occurred while passing "
913 "the packet to the device driver. They don't have the concept of a pending "
914 "error."
915 msgstr ""
916 "Os 'sockets' de pacote não fazem processamento de erros que não o dos erros "
917 "que ocorrem durante a passagem do pacote para o driver de dispositivo. Eles "
918 "não suportam o conceito de erro pendente."
919
920 #. type: SH
921 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
922 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
923 #, no-wrap
924 msgid "ERRORS"
925 msgstr "ERROS"
926
927 #. type: TP
928 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
929 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
930 #, no-wrap
931 msgid "B<EADDRNOTAVAIL>"
932 msgstr "B<EADDRNOTAVAIL>"
933
934 #. type: Plain text
935 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
936 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
937 msgid "Unknown multicast group address passed."
938 msgstr "Endereço de multicast desconhecido."
939
940 #. type: TP
941 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
942 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
943 #, no-wrap
944 msgid "B<EFAULT>"
945 msgstr "B<EFAULT>"
946
947 #. type: Plain text
948 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
949 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
950 msgid "User passed invalid memory address."
951 msgstr "O usuário forneceu um endereço de memória inválido."
952
953 #. type: TP
954 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
955 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
956 #, no-wrap
957 msgid "B<EINVAL>"
958 msgstr "B<EINVAL>"
959
960 #. type: Plain text
961 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
962 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
963 msgid "Invalid argument."
964 msgstr "Argumento inválido."
965
966 #. type: TP
967 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
968 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
969 #, no-wrap
970 msgid "B<EMSGSIZE>"
971 msgstr "B<EMSGSIZE>"
972
973 #. type: Plain text
974 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
975 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
976 msgid "Packet is bigger than interface MTU."
977 msgstr "O pacote é maior que a MTU da interface."
978
979 #. type: TP
980 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
981 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
982 #, no-wrap
983 msgid "B<ENETDOWN>"
984 msgstr "B<ENETDOWN>"
985
986 #. type: Plain text
987 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
988 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
989 msgid "Interface is not up."
990 msgstr "A interface não está ativa."
991
992 #. type: TP
993 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
994 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
995 #, no-wrap
996 msgid "B<ENOBUFS>"
997 msgstr "B<ENOBUFS>"
998
999 #. type: Plain text
1000 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1001 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1002 msgid "Not enough memory to allocate the packet."
1003 msgstr "Memória insuficiente para alocação do pacote."
1004
1005 #. type: TP
1006 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1007 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1008 #, no-wrap
1009 msgid "B<ENODEV>"
1010 msgstr "B<ENODEV>"
1011
1012 #. type: Plain text
1013 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1014 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1015 msgid "Unknown device name or interface index specified in interface address."
1016 msgstr ""
1017 "Dispositivo desconhecido ou índice de interface especificado no endereço de "
1018 "interface."
1019
1020 #. type: TP
1021 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1022 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1023 #, no-wrap
1024 msgid "B<ENOENT>"
1025 msgstr "B<ENOENT>"
1026
1027 #. type: Plain text
1028 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1029 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1030 msgid "No packet received."
1031 msgstr "Pacote não foi recebido."
1032
1033 #. type: TP
1034 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1035 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1036 #, no-wrap
1037 msgid "B<ENOTCONN>"
1038 msgstr "B<ENOTCONN>"
1039
1040 #. type: Plain text
1041 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1042 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1043 msgid "No interface address passed."
1044 msgstr "Não foi recebido endereço de interface."
1045
1046 #. type: TP
1047 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1048 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1049 #, no-wrap
1050 msgid "B<ENXIO>"
1051 msgstr "B<ENXIO>"
1052
1053 #. type: Plain text
1054 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1055 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1056 #, fuzzy
1057 #| msgid "Interface address contained illegal interface index."
1058 msgid "Interface address contained an invalid interface index."
1059 msgstr "Endereço de interface contendo índice de interface ilegal."
1060
1061 #. type: TP
1062 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1063 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1064 #, no-wrap
1065 msgid "B<EPERM>"
1066 msgstr "B<EPERM>"
1067
1068 #. type: Plain text
1069 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1070 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1071 msgid "User has insufficient privileges to carry out this operation."
1072 msgstr "O usuário tem privilégios insuficientes para executar esta operação."
1073
1074 #. type: Plain text
1075 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1076 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1077 msgid "In addition, other errors may be generated by the low-level driver."
1078 msgstr ""
1079 "Outros erros também podem ser gerados pelo driver de dispositivo de baixo "
1080 "nível."
1081
1082 #. type: SH
1083 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1084 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1085 #, no-wrap
1086 msgid "VERSIONS"
1087 msgstr "VERSÕES"
1088
1089 #. type: Plain text
1090 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1091 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1092 msgid ""
1093 "B<AF_PACKET> is a new feature in Linux 2.2. Earlier Linux versions "
1094 "supported only B<SOCK_PACKET>."
1095 msgstr ""
1096 "B<AF_PACKET> é um recurso novo do Linux 2.2. Versões anteriores suportavam "
1097 "apenas B<SOCK_PACKET>."
1098
1099 #. type: SH
1100 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1101 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1102 #, no-wrap
1103 msgid "NOTES"
1104 msgstr "NOTAS"
1105
1106 #. type: Plain text
1107 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1108 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1109 msgid ""
1110 "For portable programs it is suggested to use B<AF_PACKET> via B<pcap>(3); "
1111 "although this covers only a subset of the B<AF_PACKET> features."
1112 msgstr ""
1113 "Para programas portáveis, sugere-se usar B<AF_PACKET> através de B<pcap>(3), "
1114 "embora isto permita acesso apenas a um subconjunto dos recursos em "
1115 "B<AF_PACKET>."
1116
1117 #. type: Plain text
1118 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1119 #: opensuse-leap-16-1 opensuse-tumbleweed
1120 #, fuzzy
1121 #| msgid ""
1122 #| "The B<SOCK_DGRAM> packet sockets make no attempt to create or parse the "
1123 #| "IEEE 802.2 LLC header for a IEEE 802.3 frame. When B<ETH_P_802_3> is "
1124 #| "specified as protocol for sending the kernel creates the 802.3 frame and "
1125 #| "fills out the length field; the user has to supply the LLC header to get "
1126 #| "a fully conforming packet. Incoming 802.3 packets are not multiplexed on "
1127 #| "the DSAP/SSAP protocol fields; instead they are supplied to the user as "
1128 #| "protocol B<ETH_P_802_2> with the LLC header prepended. It is thus not "
1129 #| "possible to bind to B<ETH_P_802_3;> bind to B<ETH_P_802_2> instead and do "
1130 #| "the protocol multiplex yourself. The default for sending is the standard "
1131 #| "Ethernet DIX encapsulation with the protocol filled in."
1132 msgid ""
1133 "The B<SOCK_DGRAM> packet sockets make no attempt to create or parse the IEEE "
1134 "802.2 LLC header for a IEEE 802.3 frame. When B<ETH_P_802_3> is specified "
1135 "as protocol for sending the kernel creates the 802.3 frame and fills out the "
1136 "size field; the user has to supply the LLC header to get a fully conforming "
1137 "packet. Incoming 802.3 packets are not multiplexed on the DSAP/SSAP "
1138 "protocol fields; instead they are supplied to the user as protocol "
1139 "B<ETH_P_802_2> with the LLC header prefixed. It is thus not possible to "
1140 "bind to B<ETH_P_802_3>; bind to B<ETH_P_802_2> instead and do the protocol "
1141 "multiplex yourself. The default for sending is the standard Ethernet DIX "
1142 "encapsulation with the protocol filled in."
1143 msgstr ""
1144 "Os 'sockets' de pacote B<SOCK_DGRAM> não tentam criar ou colocar o cabeçalho "
1145 "LLC do IEEE 802.2 no contexto IEEE 802.3. Quando é especificado o protocolo "
1146 "B<ETH_P_802_3> para envio, o kernel cria uma estrutura 802.3 e preenche o "
1147 "campo de comprimento. O usuário precisa fornecer o cabeçalho LLC para obter "
1148 "um pacote inteiramente dentro da norma. Pacotes 802.3 que chegam não são "
1149 "multiplexados nos campos dos protocolos DSAP/SSAP. Ao invés disto, são "
1150 "enviados ao usuário como pertencendo ao protocolo B<ETH_P_802_2> com o "
1151 "cabeçalho LLC acrescentado. Portanto, não é possível fazer a ligação com o "
1152 "B<ETH_P_802_3>. Faça-a com B<ETH_P_802_2> e faça a multiplexagem do "
1153 "protocolo você mesmo. O padrão para envio é o encapsulamento Ethernet DIX "
1154 "padrão com o protocolo preenchido."
1155
1156 #. type: Plain text
1157 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1158 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1159 msgid "Packet sockets are not subject to the input or output firewall chains."
1160 msgstr ""
1161 "Os 'sockets' de pacote não são sujeitos às cadeias de firewall de entrada ou "
1162 "de saída."
1163
1164 #. type: SS
1165 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1166 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1167 #, no-wrap
1168 msgid "Compatibility"
1169 msgstr "Compatibilidade"
1170
1171 #. type: Plain text
1172 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1173 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1174 msgid "In Linux 2.0, the only way to get a packet socket was with the call:"
1175 msgstr ""
1176
1177 #. type: Plain text
1178 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1179 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1180 #, no-wrap
1181 msgid "socket(AF_INET, SOCK_PACKET, protocol)\n"
1182 msgstr "socket(AF_INET, SOCK_PACKET, protocolo)\n"
1183
1184 #. type: Plain text
1185 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1186 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1187 #, fuzzy
1188 #| msgid ""
1189 #| "In Linux 2.0, the only way to get a packet socket was by calling "
1190 #| "B<socket(PF_INET, SOCK_PACKET, >I<protocol>B<)>. This is still supported "
1191 #| "but strongly deprecated. The main difference between the two methods is "
1192 #| "that B<SOCK_PACKET> uses the old B<struct sockaddr_pkt> to specify an "
1193 #| "interface, which doesn't provide physical layer independence."
1194 msgid ""
1195 "This is still supported, but deprecated and strongly discouraged. The main "
1196 "difference between the two methods is that B<SOCK_PACKET> uses the old "
1197 "I<struct sockaddr_pkt> to specify an interface, which doesn't provide "
1198 "physical-layer independence."
1199 msgstr ""
1200 "No Linux 2.0, o único modo de pegar um 'socket' de pacote era chamando "
1201 "B<socket(PF_INET, SOCK_PACKET, >I<protocol>B<)>. Isto ainda é suportado, mas "
1202 "bastante depreciado. A principal diferença entre os dois métodos é que "
1203 "B<SOCK_PACKET> usa o formato antigo em B<struct sockaddr_pkt> para "
1204 "especificar a interface, o que não propicia independência em relação à "
1205 "camada física."
1206
1207 #. type: Plain text
1208 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1209 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1210 #, no-wrap
1211 msgid ""
1212 "struct sockaddr_pkt {\n"
1213 " unsigned short spkt_family;\n"
1214 " unsigned char spkt_device[14];\n"
1215 " unsigned short spkt_protocol;\n"
1216 "};\n"
1217 msgstr ""
1218 "struct sockaddr_pkt {\n"
1219 " unsigned short spkt_family;\n"
1220 " unsigned char spkt_device[14];\n"
1221 " unsigned short spkt_protocol;\n"
1222 "};\n"
1223
1224 #. type: Plain text
1225 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1226 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1227 msgid ""
1228 "I<spkt_family> contains the device type, I<spkt_protocol> is the IEEE 802.3 "
1229 "protocol type as defined in I<E<lt>sys/if_ether.hE<gt>> and I<spkt_device> "
1230 "is the device name as a null-terminated string, for example, eth0."
1231 msgstr ""
1232 "I<spkt_family> contém o tipo de dispositivo, I<spkt_protocol> é o protocolo "
1233 "IEEE 802.3 conforme a definição em I<E<lt>sys/if_ether.hE<gt>> e "
1234 "I<spkt_device> é o nome do dispositivo expresso como uma string terminada em "
1235 "null: eth0 por exemplo."
1236
1237 #. type: Plain text
1238 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1239 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1240 msgid "This structure is obsolete and should not be used in new code."
1241 msgstr "Esta estrutura está obsoleta e não deve ser usada em programas novos."
1242
1243 #. type: SH
1244 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1245 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1246 #, no-wrap
1247 msgid "BUGS"
1248 msgstr "BUGS"
1249
1250 #. type: SS
1251 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1252 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1253 #, no-wrap
1254 msgid "LLC header handling"
1255 msgstr ""
1256
1257 #. type: Plain text
1258 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1259 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1260 msgid "The IEEE 802.2/803.3 LLC handling could be considered as a bug."
1261 msgstr ""
1262 "O manuseio do LLC do IEEE 802.2/803.3 poderia ser considerado um problema."
1263
1264 #. type: SS
1265 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1266 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1267 #, no-wrap
1268 msgid "MSG_TRUNC issues"
1269 msgstr ""
1270
1271 #. type: Plain text
1272 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1273 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1274 msgid ""
1275 "The B<MSG_TRUNC> B<recvmsg>(2) extension is an ugly hack and should be "
1276 "replaced by a control message. There is currently no way to get the "
1277 "original destination address of packets via B<SOCK_DGRAM>."
1278 msgstr ""
1279 "A extensão B<MSG_TRUNC> do recvmsg é uma gambiarra, e deveria ser "
1280 "substituída por uma mensagem de controle. Atualmente, não há como obter o "
1281 "endereço de destino original dos pacotes através de B<SOCK_DGRAM>."
1282
1283 #. type: SS
1284 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1285 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1286 #, no-wrap
1287 msgid "spkt_device device name truncation"
1288 msgstr ""
1289
1290 #. type: Plain text
1291 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1292 #: opensuse-leap-16-1 opensuse-tumbleweed
1293 msgid ""
1294 "The I<spkt_device> field of I<sockaddr_pkt> has a size of 14 bytes, which is "
1295 "less than the constant B<IFNAMSIZ> defined in I<E<lt>net/if.hE<gt>> which is "
1296 "16 bytes and describes the system limit for a network interface name. This "
1297 "means the names of network devices longer than 14 bytes will be truncated to "
1298 "fit into I<spkt_device>. All these sizes include the terminating null byte "
1299 "(\\[aq]\\[rs]0\\[aq]))."
1300 msgstr ""
1301
1302 #. type: Plain text
1303 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1304 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1305 msgid ""
1306 "Issues from this with old code typically show up with very long interface "
1307 "names used by the B<Predictable Network Interface Names> feature enabled by "
1308 "default in many modern Linux distributions."
1309 msgstr ""
1310
1311 #. type: Plain text
1312 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1313 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1314 msgid ""
1315 "The preferred solution is to rewrite code to avoid B<SOCK_PACKET>. Possible "
1316 "user solutions are to disable B<Predictable Network Interface Names> or to "
1317 "rename the interface to a name of at most 13 bytes, for example using the "
1318 "B<ip>(8) tool."
1319 msgstr ""
1320
1321 #. type: SS
1322 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1323 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1324 #, no-wrap
1325 msgid "Documentation issues"
1326 msgstr ""
1327
1328 #. .SH CREDITS
1329 #. This man page was written by Andi Kleen with help from Matthew Wilcox.
1330 #. AF_PACKET in Linux 2.2 was implemented
1331 #. by Alexey Kuznetsov, based on code by Alan Cox and others.
1332 #. type: Plain text
1333 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1334 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1335 msgid "Socket filters are not documented."
1336 msgstr "Os filtros de 'socket' não estão documentados."
1337
1338 #. type: SH
1339 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1340 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1341 #, no-wrap
1342 msgid "SEE ALSO"
1343 msgstr "VEJA TAMBÉM"
1344
1345 #. type: Plain text
1346 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1347 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1348 msgid ""
1349 "B<socket>(2), B<pcap>(3), B<capabilities>(7), B<ip>(7), B<raw>(7), "
1350 "B<socket>(7), B<ip>(8),"
1351 msgstr ""
1352 "B<socket>(2), B<pcap>(3), B<capabilities>(7), B<ip>(7), B<raw>(7), "
1353 "B<socket>(7), B<ip>(8),"
1354
1355 #. type: Plain text
1356 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1357 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1358 msgid ""
1359 "RFC\\ 894 for the standard IP Ethernet encapsulation. RFC\\ 1700 for the "
1360 "IEEE 802.3 IP encapsulation."
1361 msgstr ""
1362 "RFC\\ 894 para o encapsulamento IP em Ethernet padrão. RFC\\ 1700 para o "
1363 "encapsulamento IP no IEEE."
1364
1365 #. type: Plain text
1366 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1367 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1368 msgid ""
1369 "The I<E<lt>linux/if_ether.hE<gt>> include file for physical-layer protocols."
1370 msgstr ""
1371 "O arquivo I<E<lt>linux/if_ether.hE<gt>> para os protocolos de camada física."
1372
1373 #. type: Plain text
1374 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1375 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1376 msgid ""
1377 "The Linux kernel source tree. I<Documentation/networking/filter.rst> "
1378 "describes how to apply Berkeley Packet Filters to packet sockets. I<tools/"
1379 "testing/selftests/net/psock_tpacket.c> contains example source code for all "
1380 "available versions of B<PACKET_RX_RING> and B<PACKET_TX_RING>."
1381 msgstr ""
1382
1383 #. type: TH
1384 #: debian-trixie
1385 #, no-wrap
1386 msgid "2024-06-15"
1387 msgstr "15 junho 2024"
1388
1389 #. type: TH
1390 #: debian-trixie
1391 #, no-wrap
1392 msgid "Linux man-pages 6.9.1"
1393 msgstr "Linux man-pages 6.9.1"
1394
1395 #. type: Plain text
1396 #: debian-trixie
1397 msgid ""
1398 "When the B<MSG_TRUNC> flag is passed to B<recvmsg>(2), B<recv>(2), or "
1399 "B<recvfrom>(2), the real length of the packet on the wire is always "
1400 "returned, even when it is longer than the buffer."
1401 msgstr ""
1402 "Quando o sinalizador B<MSG_TRUNC> é passado para B<recvmsg>(2), B<recv>(2) "
1403 "ou B<recvfrom>(2), o comprimento real do pacote na linha é sempre retornado, "
1404 "mesmo se ele for mais longo que o 'buffer'."
1405
1406 #. type: Plain text
1407 #: debian-trixie
1408 #, fuzzy, no-wrap
1409 #| msgid ""
1410 #| "struct sockaddr_ll {\n"
1411 #| "\tunsigned short\tsll_family;\t/* Always AF_PACKET */\n"
1412 #| "\tunsigned short\tsll_protocol;\t/* Physical layer protocol */\n"
1413 #| "\tint\tsll_ifindex;\t/* Interface number */\n"
1414 #| "\tunsigned short\tsll_hatype;\t/* Header type */\t\n"
1415 #| "\tunsigned char\tsll_pkttype;\t/* Packet type */\n"
1416 #| "\tunsigned char\tsll_halen;\t/* Length of address */ \n"
1417 #| "\tunsigned char\tsll_addr[8];\t/* Physical layer address */\n"
1418 #| "};\n"
1419 msgid ""
1420 "struct sockaddr_ll {\n"
1421 " unsigned short sll_family; /* Always AF_PACKET */\n"
1422 " unsigned short sll_protocol; /* Physical-layer protocol */\n"
1423 " int sll_ifindex; /* Interface number */\n"
1424 " unsigned short sll_hatype; /* ARP hardware type */\n"
1425 " unsigned char sll_pkttype; /* Packet type */\n"
1426 " unsigned char sll_halen; /* Length of address */\n"
1427 " unsigned char sll_addr[8]; /* Physical-layer address */\n"
1428 "};\n"
1429 msgstr ""
1430 "struct sockaddr_ll {\n"
1431 "\tunsigned short\tsll_family;\t/* AF_PACKET sempre */\n"
1432 "\tunsigned short\tsll_protocol;\t/* protocolo camada física */\n"
1433 "\tint\tsll_ifindex;\t/* número da interface */\n"
1434 "\tunsigned short\tsll_hatype;\t/* tipo de cabeçalho */\t\n"
1435 "\tunsigned char\tsll_pkttype;\t/* tipo de pacote */\n"
1436 "\tunsigned char\tsll_halen;\t/* tamanho do ender. */ \n"
1437 "\tunsigned char\tsll_addr[8];\t/* ender. camada física */\n"
1438 "};\n"
1439
1440 #. type: Plain text
1441 #: debian-trixie
1442 msgid ""
1443 "contain the physical-layer (e.g., IEEE 802.3) address and its length. The "
1444 "exact interpretation depends on the device."
1445 msgstr ""
1446
1447 #. type: Plain text
1448 #: debian-trixie
1449 #, no-wrap
1450 msgid ""
1451 "struct packet_mreq {\n"
1452 " int mr_ifindex; /* interface index */\n"
1453 " unsigned short mr_type; /* action */\n"
1454 " unsigned short mr_alen; /* address length */\n"
1455 " unsigned char mr_address[8]; /* physical-layer address */\n"
1456 "};\n"
1457 msgstr ""
1458 "struct packet_mreq {\n"
1459 " int mr_ifindex; /* índice da interface */\n"
1460 " unsigned short mr_type; /* ação */\n"
1461 " unsigned short mr_alen; /* tamanho do ender. */\n"
1462 " unsigned char mr_address[8]; /* ender. camada física */\n"
1463 "};\n"
1464
1465 #. commit a0cdfcf39362410d5ea983f4daf67b38de129408 added tp_vlan_tpid
1466 #. type: Plain text
1467 #: debian-trixie
1468 #, no-wrap
1469 msgid ""
1470 "struct tpacket_auxdata {\n"
1471 " __u32 tp_status;\n"
1472 " __u32 tp_len; /* packet length */\n"
1473 " __u32 tp_snaplen; /* captured length */\n"
1474 " __u16 tp_mac;\n"
1475 " __u16 tp_net;\n"
1476 " __u16 tp_vlan_tci;\n"
1477 " __u16 tp_vlan_tpid; /* Since Linux 3.14; earlier, these\n"
1478 " were unused padding bytes */\n"
1479 "};\n"
1480 msgstr ""
1481
1482 #. type: Plain text
1483 #: debian-trixie
1484 #, fuzzy
1485 #| msgid ""
1486 #| "The B<SOCK_DGRAM> packet sockets make no attempt to create or parse the "
1487 #| "IEEE 802.2 LLC header for a IEEE 802.3 frame. When B<ETH_P_802_3> is "
1488 #| "specified as protocol for sending the kernel creates the 802.3 frame and "
1489 #| "fills out the length field; the user has to supply the LLC header to get "
1490 #| "a fully conforming packet. Incoming 802.3 packets are not multiplexed on "
1491 #| "the DSAP/SSAP protocol fields; instead they are supplied to the user as "
1492 #| "protocol B<ETH_P_802_2> with the LLC header prepended. It is thus not "
1493 #| "possible to bind to B<ETH_P_802_3;> bind to B<ETH_P_802_2> instead and do "
1494 #| "the protocol multiplex yourself. The default for sending is the standard "
1495 #| "Ethernet DIX encapsulation with the protocol filled in."
1496 msgid ""
1497 "The B<SOCK_DGRAM> packet sockets make no attempt to create or parse the IEEE "
1498 "802.2 LLC header for a IEEE 802.3 frame. When B<ETH_P_802_3> is specified "
1499 "as protocol for sending the kernel creates the 802.3 frame and fills out the "
1500 "length field; the user has to supply the LLC header to get a fully "
1501 "conforming packet. Incoming 802.3 packets are not multiplexed on the DSAP/"
1502 "SSAP protocol fields; instead they are supplied to the user as protocol "
1503 "B<ETH_P_802_2> with the LLC header prefixed. It is thus not possible to "
1504 "bind to B<ETH_P_802_3>; bind to B<ETH_P_802_2> instead and do the protocol "
1505 "multiplex yourself. The default for sending is the standard Ethernet DIX "
1506 "encapsulation with the protocol filled in."
1507 msgstr ""
1508 "Os 'sockets' de pacote B<SOCK_DGRAM> não tentam criar ou colocar o cabeçalho "
1509 "LLC do IEEE 802.2 no contexto IEEE 802.3. Quando é especificado o protocolo "
1510 "B<ETH_P_802_3> para envio, o kernel cria uma estrutura 802.3 e preenche o "
1511 "campo de comprimento. O usuário precisa fornecer o cabeçalho LLC para obter "
1512 "um pacote inteiramente dentro da norma. Pacotes 802.3 que chegam não são "
1513 "multiplexados nos campos dos protocolos DSAP/SSAP. Ao invés disto, são "
1514 "enviados ao usuário como pertencendo ao protocolo B<ETH_P_802_2> com o "
1515 "cabeçalho LLC acrescentado. Portanto, não é possível fazer a ligação com o "
1516 "B<ETH_P_802_3>. Faça-a com B<ETH_P_802_2> e faça a multiplexagem do "
1517 "protocolo você mesmo. O padrão para envio é o encapsulamento Ethernet DIX "
1518 "padrão com o protocolo preenchido."
1519
1520 #. type: Plain text
1521 #: debian-trixie
1522 msgid ""
1523 "The I<spkt_device> field of I<sockaddr_pkt> has a size of 14 bytes, which is "
1524 "less than the constant B<IFNAMSIZ> defined in I<E<lt>net/if.hE<gt>> which is "
1525 "16 bytes and describes the system limit for a network interface name. This "
1526 "means the names of network devices longer than 14 bytes will be truncated to "
1527 "fit into I<spkt_device>. All these lengths include the terminating null "
1528 "byte (\\[aq]\\[rs]0\\[aq]))."
1529 msgstr ""
1530
1531 #. type: TH
1532 #: fedora-44 fedora-rawhide
1533 #, no-wrap
1534 msgid "2024-11-17"
1535 msgstr "17 novembro 2024"
1536
1537 #. type: TH
1538 #: fedora-44 fedora-rawhide
1539 #, no-wrap
1540 msgid "Linux man-pages 6.13"
1541 msgstr "Linux man-pages 6.13"
1542
1543 #. type: TH
1544 #: mageia-cauldron
1545 #, no-wrap
1546 msgid "Linux man-pages 6.17"
1547 msgstr "Linux man-pages 6.17"
1548
1549 #. type: TH
1550 #: opensuse-leap-16-1 opensuse-tumbleweed
1551 #, no-wrap
1552 msgid "Linux man-pages (unreleased)"
1553 msgstr "Linux man-pages (não lançado)"