| 1 |
# Russian translation of manpages |
| 2 |
# This file is distributed under the same license as the manpages-l10n package. |
| 3 |
# Copyright © of this file: |
| 4 |
# Alexey, 2016. |
| 5 |
# Azamat Hackimov <[email protected]>, 2014-2017. |
| 6 |
# kogamatranslator49 <[email protected]>, 2015. |
| 7 |
# Darima Kogan <[email protected]>, 2014. |
| 8 |
# Max Is <[email protected]>, 2016. |
| 9 |
# Yuri Kozlov <[email protected]>, 2011-2019. |
| 10 |
# Иван Павлов <[email protected]>, 2017. |
| 11 |
msgid "" |
| 12 |
msgstr "" |
| 13 |
"Project-Id-Version: manpages-l10n\n" |
| 14 |
"POT-Creation-Date: 2026-06-05 06:33+0200\n" |
| 15 |
"PO-Revision-Date: 2024-12-21 19:50+0300\n" |
| 16 |
"Last-Translator: Yuri Kozlov <[email protected]>\n" |
| 17 |
"Language-Team: Russian <[email protected]>\n" |
| 18 |
"Language: ru\n" |
| 19 |
"MIME-Version: 1.0\n" |
| 20 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 21 |
"Content-Transfer-Encoding: 8bit\n" |
| 22 |
"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " |
| 23 |
"n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || " |
| 24 |
"(n%100>=11 && n%100<=14)? 2 : 3);\n" |
| 25 |
"X-Generator: Lokalize 2.0\n" |
| 26 |
|
| 27 |
#. type: TH |
| 28 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 29 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 30 |
#, fuzzy, no-wrap |
| 31 |
#| msgid "socket" |
| 32 |
msgid "packet" |
| 33 |
msgstr "сокет" |
| 34 |
|
| 35 |
#. type: TH |
| 36 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 37 |
#: opensuse-tumbleweed |
| 38 |
#, no-wrap |
| 39 |
msgid "2026-02-08" |
| 40 |
msgstr "8 февраля 2026 г." |
| 41 |
|
| 42 |
#. type: TH |
| 43 |
#: archlinux debian-unstable |
| 44 |
#, fuzzy, no-wrap |
| 45 |
#| msgid "Linux man-pages 6.17" |
| 46 |
msgid "Linux man-pages 6.18" |
| 47 |
msgstr "Справочные страницы Linux 6.17" |
| 48 |
|
| 49 |
#. type: SH |
| 50 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 51 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 52 |
#, no-wrap |
| 53 |
msgid "NAME" |
| 54 |
msgstr "НАИМЕНОВАНИЕ" |
| 55 |
|
| 56 |
#. type: Plain text |
| 57 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 58 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 59 |
msgid "packet - packet interface on device level" |
| 60 |
msgstr "packet - пакетный интерфейс на уровне устройства" |
| 61 |
|
| 62 |
#. type: SH |
| 63 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 64 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 65 |
#, no-wrap |
| 66 |
msgid "SYNOPSIS" |
| 67 |
msgstr "СИНТАКСИС" |
| 68 |
|
| 69 |
#. type: Plain text |
| 70 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 71 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 72 |
#, no-wrap |
| 73 |
msgid "" |
| 74 |
"B<#include E<lt>sys/socket.hE<gt>>\n" |
| 75 |
"B<#include E<lt>linux/if_packet.hE<gt>>\n" |
| 76 |
"B<#include E<lt>net/ethernet.hE<gt> /* the L2 protocols */>\n" |
| 77 |
msgstr "" |
| 78 |
"B<#include E<lt>sys/socket.hE<gt>>\n" |
| 79 |
"B<#include E<lt>linux/if_packet.hE<gt>>\n" |
| 80 |
"B<#include E<lt>net/ethernet.hE<gt> /* протоколы L2 */>\n" |
| 81 |
|
| 82 |
#. type: Plain text |
| 83 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 84 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 85 |
#, no-wrap |
| 86 |
msgid "B<packet_socket = socket(AF_PACKET, int >I<socket_type>B<, int >I<protocol>B<);>\n" |
| 87 |
msgstr "B<packet_socket = socket(AF_PACKET, int >I<socket_type>B<, int >I<protocol>B<);>\n" |
| 88 |
|
| 89 |
#. type: SH |
| 90 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 91 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 92 |
#, no-wrap |
| 93 |
msgid "DESCRIPTION" |
| 94 |
msgstr "ОПИСАНИЕ" |
| 95 |
|
| 96 |
#. type: Plain text |
| 97 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 98 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 99 |
msgid "" |
| 100 |
"Packet sockets are used to receive or send raw packets at the device driver " |
| 101 |
"(OSI Layer 2) level. They allow the user to implement protocol modules in " |
| 102 |
"user space on top of the physical layer." |
| 103 |
msgstr "" |
| 104 |
"Пакетные сокеты используются для приёма и передачи неструктурированных " |
| 105 |
"пакетов на уровне драйвера устройства (второй уровень OSI). Они позволяют " |
| 106 |
"пользователю реализовывать модули протоколов в пользовательском пространстве " |
| 107 |
"поверх физического уровня." |
| 108 |
|
| 109 |
#. type: Plain text |
| 110 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 111 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 112 |
#, fuzzy |
| 113 |
#| msgid "" |
| 114 |
#| "The I<socket_type> is either B<SOCK_RAW> for raw packets including the " |
| 115 |
#| "link-level header or B<SOCK_DGRAM> for cooked packets with the link-level " |
| 116 |
#| "header removed. The link-level header information is available in a " |
| 117 |
#| "common format in a I<sockaddr_ll> structure. I<protocol> is the IEEE " |
| 118 |
#| "802.3 protocol number in network byte order. See the I<E<lt>linux/" |
| 119 |
#| "if_ether.hE<gt>> include file for a list of allowed protocols. When " |
| 120 |
#| "protocol is set to B<htons(ETH_P_ALL)>, then all protocols are received. " |
| 121 |
#| "All incoming packets of that protocol type will be passed to the packet " |
| 122 |
#| "socket before they are passed to the protocols implemented in the kernel." |
| 123 |
msgid "" |
| 124 |
"The I<socket_type> is either B<SOCK_RAW> for raw packets including the link-" |
| 125 |
"level header or B<SOCK_DGRAM> for cooked packets with the link-level header " |
| 126 |
"removed. The link-level header information is available in a common format " |
| 127 |
"in a I<sockaddr_ll> structure. I<protocol> is the IEEE 802.3 protocol " |
| 128 |
"number in network byte order. See the I<E<lt>linux/if_ether.hE<gt>> include " |
| 129 |
"file for a list of allowed protocols. When protocol is set to " |
| 130 |
"B<htons(ETH_P_ALL)>, then all protocols are received. All incoming packets " |
| 131 |
"of that protocol type will be passed to the packet socket before they are " |
| 132 |
"passed to the protocols implemented in the kernel. If I<protocol> is set to " |
| 133 |
"zero, no packets are received. B<bind>(2) can optionally be called with a " |
| 134 |
"nonzero I<sll_protocol> to start receiving packets for the protocols " |
| 135 |
"specified." |
| 136 |
msgstr "" |
| 137 |
"Значением I<socket_type> может быть B<SOCK_RAW> — для неструктурированных " |
| 138 |
"пакетов, содержащих заголовок уровня связи, или B<SOCK_DGRAM> — для " |
| 139 |
"подготовленных (cooked) пакетов без заголовка уровня связи. Информация " |
| 140 |
"заголовка уровня связи имеет общий формат и предоставляется структурой " |
| 141 |
"I<sockaddr_ll>. В I<protocol> содержится номер протокола согласно IEEE 802.3 " |
| 142 |
"в сетевом порядке байт. Список допустимых протоколов можно найти в " |
| 143 |
"заголовочном файле I<E<lt>linux/if_ether.hE<gt>>. Если значение протокола " |
| 144 |
"равно B<htons(ETH_P_ALL)>, то принимаются все протоколы. Все входящие пакеты " |
| 145 |
"с этим типом протокола будут переданы в пакетный сокет до их передачи " |
| 146 |
"протоколам, реализуемым в ядре." |
| 147 |
|
| 148 |
#. type: Plain text |
| 149 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 150 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 151 |
msgid "" |
| 152 |
"In order to create a packet socket, a process must have the B<CAP_NET_RAW> " |
| 153 |
"capability in the user namespace that governs its network namespace." |
| 154 |
msgstr "" |
| 155 |
"Для создания пакетного сокета процесс должен иметь мандат B<CAP_NET_RAW> в " |
| 156 |
"пользовательском пространстве имён, определяемом по его сетевому " |
| 157 |
"пространству имён." |
| 158 |
|
| 159 |
#. type: Plain text |
| 160 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 161 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 162 |
msgid "" |
| 163 |
"B<SOCK_RAW> packets are passed to and from the device driver without any " |
| 164 |
"changes in the packet data. When receiving a packet, the address is still " |
| 165 |
"parsed and passed in a standard I<sockaddr_ll> address structure. When " |
| 166 |
"transmitting a packet, the user-supplied buffer should contain the physical-" |
| 167 |
"layer header. That packet is then queued unmodified to the network driver " |
| 168 |
"of the interface defined by the destination address. Some device drivers " |
| 169 |
"always add other headers. B<SOCK_RAW> is similar to but not compatible with " |
| 170 |
"the obsolete B<AF_INET/SOCK_PACKET> of Linux 2.0." |
| 171 |
msgstr "" |
| 172 |
"Пакеты B<SOCK_RAW> передаются в и из драйвера устройства без каких-либо " |
| 173 |
"изменений в данных пакета. При получении пакета, адрес по-прежнему " |
| 174 |
"анализируется и передаётся в стандартной адресной структуре I<sockaddr_ll>. " |
| 175 |
"При отправке пакета, выделенный пользователем буфер должен содержать " |
| 176 |
"заголовок физического уровня. Этот пакет затем ставится без изменений в " |
| 177 |
"очередь сетевого драйвера интерфейса, определяемого адресом назначения. " |
| 178 |
"Некоторые драйверы устройств всегда добавляют другой заголовок. Пакеты " |
| 179 |
"B<SOCK_RAW> похожи, но не совместимы с устаревшими B<AF_INET/SOCK_PACKET> из " |
| 180 |
"Linux 2.0." |
| 181 |
|
| 182 |
#. type: Plain text |
| 183 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 184 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 185 |
msgid "" |
| 186 |
"B<SOCK_DGRAM> operates on a slightly higher level. The physical header is " |
| 187 |
"removed before the packet is passed to the user. Packets sent through a " |
| 188 |
"B<SOCK_DGRAM> packet socket get a suitable physical-layer header based on " |
| 189 |
"the information in the I<sockaddr_ll> destination address before they are " |
| 190 |
"queued." |
| 191 |
msgstr "" |
| 192 |
"При типе B<SOCK_DGRAM> обработка происходит на чуть более высоком уровне. " |
| 193 |
"Физический заголовок удаляется перед передачей пакета пользователю. Пакеты, " |
| 194 |
"посылаемые через пакетный сокет B<SOCK_DGRAM>, перед постановкой в очередь " |
| 195 |
"получают подходящий заголовок физического уровня на основе информации из " |
| 196 |
"адреса назначения в I<sockaddr_ll>." |
| 197 |
|
| 198 |
#. type: Plain text |
| 199 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 200 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 201 |
msgid "" |
| 202 |
"By default, all packets of the specified protocol type are passed to a " |
| 203 |
"packet socket. To get packets only from a specific interface use " |
| 204 |
"B<bind>(2) specifying an address in a I<struct sockaddr_ll> to bind the " |
| 205 |
"packet socket to an interface. Fields used for binding are I<sll_family> " |
| 206 |
"(should be B<AF_PACKET>), I<sll_protocol>, and I<sll_ifindex>." |
| 207 |
msgstr "" |
| 208 |
"По умолчанию, все пакеты заданного типа протокола передаются в пакетный " |
| 209 |
"сокет. Для получения пакетов только из определённого интерфейса используйте " |
| 210 |
"B<bind>(2), задав адрес в I<struct sockaddr_ll> для привязки пакетного " |
| 211 |
"сокета к интерфейсу. Поля, используемые для привязывания: I<sll_family> " |
| 212 |
"(должно быть равно B<AF_PACKET>), I<sll_protocol> и I<sll_ifindex>." |
| 213 |
|
| 214 |
#. type: Plain text |
| 215 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 216 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 217 |
msgid "The B<connect>(2) operation is not supported on packet sockets." |
| 218 |
msgstr "Операция B<connect>(2) не поддерживается для пакетных сокетов." |
| 219 |
|
| 220 |
#. type: Plain text |
| 221 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 222 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 223 |
#, fuzzy |
| 224 |
#| msgid "" |
| 225 |
#| "When the B<MSG_TRUNC> flag is passed to B<recvmsg>(2), B<recv>(2), or " |
| 226 |
#| "B<recvfrom>(2), the real length of the packet on the wire is always " |
| 227 |
#| "returned, even when it is longer than the buffer." |
| 228 |
msgid "" |
| 229 |
"When the B<MSG_TRUNC> flag is passed to B<recvmsg>(2), B<recv>(2), or " |
| 230 |
"B<recvfrom>(2), the real size of the packet on the wire is always returned, " |
| 231 |
"even when it is longer than the buffer." |
| 232 |
msgstr "" |
| 233 |
"Если в B<recvmsg>(2), B<recv>(2) или B<recvfrom>(2) передаётся флаг " |
| 234 |
"B<MSG_TRUNC>, то возвращается реальная длина пакета в канале, даже если " |
| 235 |
"значение длиннее буфера." |
| 236 |
|
| 237 |
#. type: SS |
| 238 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 239 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 240 |
#, no-wrap |
| 241 |
msgid "Address types" |
| 242 |
msgstr "Типы адресов" |
| 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 "" |
| 248 |
"The I<sockaddr_ll> structure is a device-independent physical-layer address." |
| 249 |
msgstr "" |
| 250 |
"Структура I<sockaddr_ll> описывает независимый от устройства адрес на " |
| 251 |
"физическом уровне." |
| 252 |
|
| 253 |
#. type: Plain text |
| 254 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 255 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 256 |
#, fuzzy, no-wrap |
| 257 |
#| msgid "" |
| 258 |
#| "struct sockaddr_ll {\n" |
| 259 |
#| " unsigned short sll_family; /* Always AF_PACKET */\n" |
| 260 |
#| " unsigned short sll_protocol; /* Physical-layer protocol */\n" |
| 261 |
#| " int sll_ifindex; /* Interface number */\n" |
| 262 |
#| " unsigned short sll_hatype; /* ARP hardware type */\n" |
| 263 |
#| " unsigned char sll_pkttype; /* Packet type */\n" |
| 264 |
#| " unsigned char sll_halen; /* Length of address */\n" |
| 265 |
#| " unsigned char sll_addr[8]; /* Physical-layer address */\n" |
| 266 |
#| "};\n" |
| 267 |
msgid "" |
| 268 |
"struct sockaddr_ll {\n" |
| 269 |
" unsigned short sll_family; /* Always AF_PACKET */\n" |
| 270 |
" unsigned short sll_protocol; /* Physical-layer protocol */\n" |
| 271 |
" int sll_ifindex; /* Interface number */\n" |
| 272 |
" unsigned short sll_hatype; /* ARP hardware type */\n" |
| 273 |
" unsigned char sll_pkttype; /* Packet type */\n" |
| 274 |
" unsigned char sll_halen; /* Size of address */\n" |
| 275 |
" unsigned char sll_addr[8]; /* Physical-layer address */\n" |
| 276 |
"};\n" |
| 277 |
msgstr "" |
| 278 |
"struct sockaddr_ll {\n" |
| 279 |
" unsigned short sll_family; /* всегда равно AF_PACKET */\n" |
| 280 |
" unsigned short sll_protocol; /* протокол физического уровня */\n" |
| 281 |
" int sll_ifindex; /* номер интерфейса */\n" |
| 282 |
" unsigned short sll_hatype; /* тип аппаратного ARP */\n" |
| 283 |
" unsigned char sll_pkttype; /* тип пакета */\n" |
| 284 |
" unsigned char sll_halen; /* длина адреса */\n" |
| 285 |
" unsigned char sll_addr[8]; /* адрес на физическом уровне */\n" |
| 286 |
"};\n" |
| 287 |
|
| 288 |
#. type: Plain text |
| 289 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 290 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 291 |
msgid "The fields of this structure are as follows:" |
| 292 |
msgstr "Поля этой структуры имеют следующее назначение:" |
| 293 |
|
| 294 |
#. type: TP |
| 295 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 296 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 297 |
#, fuzzy, no-wrap |
| 298 |
#| msgid "I<protocol>" |
| 299 |
msgid "I<sll_protocol>" |
| 300 |
msgstr "I<протокол>" |
| 301 |
|
| 302 |
#. type: Plain text |
| 303 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 304 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 305 |
#, fuzzy |
| 306 |
#| msgid "" |
| 307 |
#| "I<sll_protocol> is the standard ethernet protocol type in network byte " |
| 308 |
#| "order as defined in the I<E<lt>linux/if_ether.hE<gt>> include file. It " |
| 309 |
#| "defaults to the socket's protocol." |
| 310 |
msgid "" |
| 311 |
"is the standard ethernet protocol type in network byte order as defined in " |
| 312 |
"the I<E<lt>linux/if_ether.hE<gt>> include file. It defaults to the socket's " |
| 313 |
"protocol." |
| 314 |
msgstr "" |
| 315 |
"Поле I<sll_protocol> содержит стандартные типы протокола ethernet в сетевом " |
| 316 |
"порядке байт; значения определены в заголовочном файле I<E<lt>linux/" |
| 317 |
"if_ether.hE<gt>>. Это значение по умолчанию для протокола сокета." |
| 318 |
|
| 319 |
#. type: TP |
| 320 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 321 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 322 |
#, no-wrap |
| 323 |
msgid "I<sll_ifindex>" |
| 324 |
msgstr "" |
| 325 |
|
| 326 |
#. type: Plain text |
| 327 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 328 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 329 |
#, fuzzy |
| 330 |
#| msgid "" |
| 331 |
#| "I<sll_ifindex> is the interface index of the interface (see " |
| 332 |
#| "B<netdevice>(7)); 0 matches any interface (only permitted for binding). " |
| 333 |
#| "I<sll_hatype> is an ARP type as defined in the I<E<lt>linux/" |
| 334 |
#| "if_arp.hE<gt>> include file." |
| 335 |
msgid "" |
| 336 |
"is the interface index of the interface (see B<netdevice>(7)); 0 matches any " |
| 337 |
"interface (only permitted for binding). I<sll_hatype> is an ARP type as " |
| 338 |
"defined in the I<E<lt>linux/if_arp.hE<gt>> include file." |
| 339 |
msgstr "" |
| 340 |
"Поле I<sll_ifindex> содержит индекс интерфейса (смотрите B<netdevice>(7)); 0 " |
| 341 |
"означает любой интерфейс (допустимо только для привязывания). Поле " |
| 342 |
"I<sll_hatype> содержит тип ARP; значения хранятся в заголовочном файле " |
| 343 |
"I<E<lt>linux/if_arp.hE<gt>>." |
| 344 |
|
| 345 |
#. type: TP |
| 346 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 347 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 348 |
#, fuzzy, no-wrap |
| 349 |
#| msgid "I<type>" |
| 350 |
msgid "I<sll_pkttype>" |
| 351 |
msgstr "I<type>" |
| 352 |
|
| 353 |
#. type: Plain text |
| 354 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 355 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 356 |
#, fuzzy |
| 357 |
#| msgid "" |
| 358 |
#| "I<sll_pkttype> contains the packet type. Valid types are B<PACKET_HOST> " |
| 359 |
#| "for a packet addressed to the local host, B<PACKET_BROADCAST> for a " |
| 360 |
#| "physical-layer broadcast packet, B<PACKET_MULTICAST> for a packet sent to " |
| 361 |
#| "a physical-layer multicast address, B<PACKET_OTHERHOST> for a packet to " |
| 362 |
#| "some other host that has been caught by a device driver in promiscuous " |
| 363 |
#| "mode, and B<PACKET_OUTGOING> for a packet originating from the local host " |
| 364 |
#| "that is looped back to a packet socket. These types make sense only for " |
| 365 |
#| "receiving." |
| 366 |
msgid "" |
| 367 |
"contains the packet type. Valid types are B<PACKET_HOST> for a packet " |
| 368 |
"addressed to the local host, B<PACKET_BROADCAST> for a physical-layer " |
| 369 |
"broadcast packet, B<PACKET_MULTICAST> for a packet sent to a physical-layer " |
| 370 |
"multicast address, B<PACKET_OTHERHOST> for a packet to some other host that " |
| 371 |
"has been caught by a device driver in promiscuous mode, and " |
| 372 |
"B<PACKET_OUTGOING> for a packet originating from the local host that is " |
| 373 |
"looped back to a packet socket. These types make sense only for receiving." |
| 374 |
msgstr "" |
| 375 |
"В поле I<sll_pkttype> содержится тип пакета. Допустимые типы: B<PACKET_HOST> " |
| 376 |
"— пакет предназначен локальному узлу, B<PACKET_BROADCAST> — " |
| 377 |
"широковещательный пакет физического уровня, B<PACKET_MULTICAST> — пакет, " |
| 378 |
"посланный на групповой (multicast) адрес физического уровня, " |
| 379 |
"B<PACKET_OTHERHOST> — пакет предназначен не тому узлу, где он пойман " |
| 380 |
"драйвером устройства в неразборчивом режиме, B<PACKET_OUTGOING> — пакет, " |
| 381 |
"поступивший от локального узла и завёрнутый обратно в пакетный сокет. Эти " |
| 382 |
"типы имеют смысл только для принятых пакетов." |
| 383 |
|
| 384 |
#. type: TP |
| 385 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 386 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 387 |
#, fuzzy, no-wrap |
| 388 |
#| msgid "I<h_addrtype>" |
| 389 |
msgid "I<sll_addr>" |
| 390 |
msgstr "I<h_addrtype>" |
| 391 |
|
| 392 |
#. type: TQ |
| 393 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 394 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 395 |
#, fuzzy, no-wrap |
| 396 |
#| msgid "I<len>" |
| 397 |
msgid "I<sll_halen>" |
| 398 |
msgstr "I<len>" |
| 399 |
|
| 400 |
#. type: Plain text |
| 401 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 402 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 403 |
#, fuzzy |
| 404 |
#| msgid "" |
| 405 |
#| "I<sll_addr> and I<sll_halen> contain the physical-layer (e.g., IEEE " |
| 406 |
#| "802.3) address and its length. The exact interpretation depends on the " |
| 407 |
#| "device." |
| 408 |
msgid "" |
| 409 |
"contain the physical-layer (e.g., IEEE 802.3) address and its size. The " |
| 410 |
"exact interpretation depends on the device." |
| 411 |
msgstr "" |
| 412 |
"В полях I<sll_addr> и I<sll_halen> содержится адрес физического уровня " |
| 413 |
"(например, IEEE 802.3) и его длина. Конкретный смысл зависит от устройства." |
| 414 |
|
| 415 |
#. type: Plain text |
| 416 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 417 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 418 |
msgid "" |
| 419 |
"When you send packets, it is enough to specify I<sll_family>, I<sll_addr>, " |
| 420 |
"I<sll_halen>, I<sll_ifindex>, and I<sll_protocol>. The other fields should " |
| 421 |
"be 0. I<sll_hatype> and I<sll_pkttype> are set on received packets for your " |
| 422 |
"information." |
| 423 |
msgstr "" |
| 424 |
"Когда вы посылаете пакеты, достаточно указать I<sll_family>, I<sll_addr>, " |
| 425 |
"I<sll_halen>, I<sll_ifindex> и I<sll_protocol>. Остальные поля должны " |
| 426 |
"равняться 0. Поля I<sll_hatype> и I<sll_pkttype> заполняются в получаемых " |
| 427 |
"пакетах для вашей информированности." |
| 428 |
|
| 429 |
#. type: SS |
| 430 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 431 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 432 |
#, no-wrap |
| 433 |
msgid "Socket options" |
| 434 |
msgstr "Параметры сокета" |
| 435 |
|
| 436 |
#. type: Plain text |
| 437 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 438 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 439 |
msgid "" |
| 440 |
"Packet socket options are configured by calling B<setsockopt>(2) with level " |
| 441 |
"B<SOL_PACKET>." |
| 442 |
msgstr "" |
| 443 |
"Параметры пакетных сокетов настраиваются вызовом B<setsockopt>(2) с уровнем " |
| 444 |
"B<SOL_PACKET>." |
| 445 |
|
| 446 |
#. type: TP |
| 447 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 448 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 449 |
#, no-wrap |
| 450 |
msgid "B<PACKET_ADD_MEMBERSHIP>" |
| 451 |
msgstr "B<PACKET_ADD_MEMBERSHIP>" |
| 452 |
|
| 453 |
#. type: TP |
| 454 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 455 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 456 |
#, no-wrap |
| 457 |
msgid "B<PACKET_DROP_MEMBERSHIP>" |
| 458 |
msgstr "B<PACKET_DROP_MEMBERSHIP>" |
| 459 |
|
| 460 |
#. type: Plain text |
| 461 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 462 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 463 |
msgid "" |
| 464 |
"Packet sockets can be used to configure physical-layer multicasting and " |
| 465 |
"promiscuous mode. B<PACKET_ADD_MEMBERSHIP> adds a binding and " |
| 466 |
"B<PACKET_DROP_MEMBERSHIP> drops it. They both expect a I<packet_mreq> " |
| 467 |
"structure as argument:" |
| 468 |
msgstr "" |
| 469 |
"Пакетные сокеты можно использовать для настройки неразборчивого режима и " |
| 470 |
"групповой рассылки на физическом уровне. Параметр B<PACKET_ADD_MEMBERSHIP> " |
| 471 |
"добавляет привязку, B<PACKET_DROP_MEMBERSHIP> отменяет её. Для обоих в " |
| 472 |
"качестве аргумента передаётся структура I<packet_mreq>:" |
| 473 |
|
| 474 |
#. type: Plain text |
| 475 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 476 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 477 |
#, fuzzy, no-wrap |
| 478 |
#| msgid "" |
| 479 |
#| "struct packet_mreq {\n" |
| 480 |
#| " int mr_ifindex; /* interface index */\n" |
| 481 |
#| " unsigned short mr_type; /* action */\n" |
| 482 |
#| " unsigned short mr_alen; /* address length */\n" |
| 483 |
#| " unsigned char mr_address[8]; /* physical-layer address */\n" |
| 484 |
#| "};\n" |
| 485 |
msgid "" |
| 486 |
"struct packet_mreq {\n" |
| 487 |
" int mr_ifindex; /* interface index */\n" |
| 488 |
" unsigned short mr_type; /* action */\n" |
| 489 |
" unsigned short mr_alen; /* address size */\n" |
| 490 |
" unsigned char mr_address[8]; /* physical-layer address */\n" |
| 491 |
"};\n" |
| 492 |
msgstr "" |
| 493 |
"struct packet_mreq {\n" |
| 494 |
" int mr_ifindex; /* индекс интерфейса */\n" |
| 495 |
" unsigned short mr_type; /* действие */\n" |
| 496 |
" unsigned short mr_alen; /* длина адреса */\n" |
| 497 |
" unsigned char mr_address[8]; /* адрес физ-кого уровня */\n" |
| 498 |
"};\n" |
| 499 |
|
| 500 |
#. type: Plain text |
| 501 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 502 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 503 |
msgid "" |
| 504 |
"I<mr_ifindex> contains the interface index for the interface whose status " |
| 505 |
"should be changed. The I<mr_type> field specifies which action to perform. " |
| 506 |
"B<PACKET_MR_PROMISC> enables receiving all packets on a shared medium (often " |
| 507 |
"known as \"promiscuous mode\"), B<PACKET_MR_MULTICAST> binds the socket to " |
| 508 |
"the physical-layer multicast group specified in I<mr_address> and " |
| 509 |
"I<mr_alen>, and B<PACKET_MR_ALLMULTI> sets the socket up to receive all " |
| 510 |
"multicast packets arriving at the interface." |
| 511 |
msgstr "" |
| 512 |
"В I<mr_ifindex> содержится индекс интерфейса, состояние которого нужно " |
| 513 |
"изменить. В поле I<mr_type> указывается какое действие нужно выполнить. " |
| 514 |
"Значение B<PACKET_MR_PROMISC> включает приём всех пакетов из общего носителя " |
| 515 |
"(часто называется «неразборчивый режим»), B<PACKET_MR_MULTICAST> привязывает " |
| 516 |
"сокет к групповой рассылке физического уровня, задаваемой в I<mr_address> и " |
| 517 |
"I<mr_alen>, а B<PACKET_MR_ALLMULTI> заставляет сокет принимать все пакеты " |
| 518 |
"групповых рассылок, поступающих на интерфейс." |
| 519 |
|
| 520 |
#. type: Plain text |
| 521 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 522 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 523 |
msgid "" |
| 524 |
"In addition, the traditional ioctls B<SIOCSIFFLAGS>, B<SIOCADDMULTI>, " |
| 525 |
"B<SIOCDELMULTI> can be used for the same purpose." |
| 526 |
msgstr "" |
| 527 |
"Также, для тех же целей можно использовать обычные ioctl B<SIOCSIFFLAGS>, " |
| 528 |
"B<SIOCADDMULTI>, B<SIOCDELMULTI>." |
| 529 |
|
| 530 |
#. type: TP |
| 531 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 532 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 533 |
#, no-wrap |
| 534 |
msgid "B<PACKET_AUXDATA> (since Linux 2.6.21)" |
| 535 |
msgstr "B<PACKET_AUXDATA> (начиная с Linux 2.6.21)" |
| 536 |
|
| 537 |
#. commit 8dc4194474159660d7f37c495e3fc3f10d0db8cc |
| 538 |
#. type: Plain text |
| 539 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 540 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 541 |
msgid "" |
| 542 |
"If this binary option is enabled, the packet socket passes a metadata " |
| 543 |
"structure along with each packet in the B<recvmsg>(2) control field. The " |
| 544 |
"structure can be read with B<cmsg>(3). It is defined as" |
| 545 |
msgstr "" |
| 546 |
"Если включён этот двоичный параметр, то пакетный сокет передаёт структуру " |
| 547 |
"метаданных вместе с каждым пакетом в управляющем поле B<recvmsg>(2). " |
| 548 |
"Структуру можно прочитать с помощью B<cmsg>(3). Она определена как:" |
| 549 |
|
| 550 |
#. commit a0cdfcf39362410d5ea983f4daf67b38de129408 added tp_vlan_tpid |
| 551 |
#. type: Plain text |
| 552 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 553 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 554 |
#, fuzzy, no-wrap |
| 555 |
#| msgid "" |
| 556 |
#| "struct tpacket_auxdata {\n" |
| 557 |
#| " __u32 tp_status;\n" |
| 558 |
#| " __u32 tp_len; /* packet length */\n" |
| 559 |
#| " __u32 tp_snaplen; /* captured length */\n" |
| 560 |
#| " __u16 tp_mac;\n" |
| 561 |
#| " __u16 tp_net;\n" |
| 562 |
#| " __u16 tp_vlan_tci;\n" |
| 563 |
#| " __u16 tp_padding;\n" |
| 564 |
#| "};\n" |
| 565 |
msgid "" |
| 566 |
"struct tpacket_auxdata {\n" |
| 567 |
" __u32 tp_status;\n" |
| 568 |
" __u32 tp_len; /* packet size */\n" |
| 569 |
" __u32 tp_snaplen; /* captured size */\n" |
| 570 |
" __u16 tp_mac;\n" |
| 571 |
" __u16 tp_net;\n" |
| 572 |
" __u16 tp_vlan_tci;\n" |
| 573 |
" __u16 tp_vlan_tpid; /* Since Linux 3.14; earlier, these\n" |
| 574 |
" were unused padding bytes */\n" |
| 575 |
"};\n" |
| 576 |
msgstr "" |
| 577 |
"struct tpacket_auxdata {\n" |
| 578 |
" __u32 tp_status;\n" |
| 579 |
" __u32 tp_len; /* длина пакета */\n" |
| 580 |
" __u32 tp_snaplen; /* захваченная длина */\n" |
| 581 |
" __u16 tp_mac;\n" |
| 582 |
" __u16 tp_net;\n" |
| 583 |
" __u16 tp_vlan_tci;\n" |
| 584 |
" __u16 tp_padding;\n" |
| 585 |
"};\n" |
| 586 |
|
| 587 |
#. type: TP |
| 588 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 589 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 590 |
#, no-wrap |
| 591 |
msgid "B<PACKET_FANOUT> (since Linux 3.1)" |
| 592 |
msgstr "B<PACKET_FANOUT> (начиная с Linux 3.1)" |
| 593 |
|
| 594 |
#. commit dc99f600698dcac69b8f56dda9a8a00d645c5ffc |
| 595 |
#. type: Plain text |
| 596 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 597 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 598 |
#, fuzzy |
| 599 |
#| msgid "" |
| 600 |
#| "To scale processing across threads, packet sockets can form a fanout " |
| 601 |
#| "group. In this mode, each matching packet is enqueued onto only one " |
| 602 |
#| "socket in the group. A socket joins a fanout group by calling " |
| 603 |
#| "B<setsockopt>(2) with level B<SOL_PACKET> and option B<PACKET_FANOUT>. " |
| 604 |
#| "Each network namespace can have up to 65536 independent groups. A socket " |
| 605 |
#| "selects a group by encoding the ID in the first 16 bits of the integer " |
| 606 |
#| "option value. The first packet socket to join a group implicitly creates " |
| 607 |
#| "it. To successfully join an existing group, subsequent packet sockets " |
| 608 |
#| "must have the same protocol, device settings, fanout mode and flags (see " |
| 609 |
#| "below). Packet sockets can leave a fanout group only by closing the " |
| 610 |
#| "socket. The group is deleted when the last socket is closed." |
| 611 |
msgid "" |
| 612 |
"To scale processing across threads, packet sockets can form a fanout group. " |
| 613 |
"In this mode, each matching packet is enqueued onto only one socket in the " |
| 614 |
"group. A socket joins a fanout group by calling B<setsockopt>(2) with " |
| 615 |
"level B<SOL_PACKET> and option B<PACKET_FANOUT>. Each network namespace can " |
| 616 |
"have up to 65536 independent groups. A socket selects a group by encoding " |
| 617 |
"the ID in the first 16 bits of the integer option value. The first packet " |
| 618 |
"socket to join a group implicitly creates it. To successfully join an " |
| 619 |
"existing group, subsequent packet sockets must have the same protocol, " |
| 620 |
"device settings, fanout mode, and flags (see below). Packet sockets can " |
| 621 |
"leave a fanout group only by closing the socket. The group is deleted when " |
| 622 |
"the last socket is closed." |
| 623 |
msgstr "" |
| 624 |
"Для масштабирования обработки на несколько нитей, пакетные сокеты можно " |
| 625 |
"объединять в разветвлённую группу (fanout group). В этом режиме каждый " |
| 626 |
"подходящий пакет ставится в очередь только одного сокета в группе. Сокет " |
| 627 |
"добавляется в разветвлённую группу вызовом B<setsockopt>(2) с уровнем " |
| 628 |
"B<SOL_PACKET> и параметром B<PACKET_FANOUT>. Каждое сетевое пространство " |
| 629 |
"имён может включать до 65536 независимых групп. Сокет выбирает группу по " |
| 630 |
"закодированному ID в первых 16 битах целочисленного значения параметра. " |
| 631 |
"Первый пакетный сокет, подключаемый к группе неявно её создаёт. Для " |
| 632 |
"успешного подключения к существующей группе все дальнейшие пакетные сокеты " |
| 633 |
"должны иметь тот же протокол, настройки устройства, режим разветвления и " |
| 634 |
"флаги (смотрите далее). Пакетные сокеты могут покинуть группу только при " |
| 635 |
"закрытия сокета. Группа удаляется после закрытия последнего сокета." |
| 636 |
|
| 637 |
#. type: Plain text |
| 638 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 639 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 640 |
msgid "" |
| 641 |
"Fanout supports multiple algorithms to spread traffic between sockets, as " |
| 642 |
"follows:" |
| 643 |
msgstr "" |
| 644 |
"Для разветвления поддерживается несколько алгоритмов распределения трафика " |
| 645 |
"по сокетам:" |
| 646 |
|
| 647 |
#. type: IP |
| 648 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 649 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 650 |
#, no-wrap |
| 651 |
msgid "\\[bu]" |
| 652 |
msgstr "\\[bu]" |
| 653 |
|
| 654 |
#. type: Plain text |
| 655 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 656 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 657 |
msgid "" |
| 658 |
"The default mode, B<PACKET_FANOUT_HASH>, sends packets from the same flow to " |
| 659 |
"the same socket to maintain per-flow ordering. For each packet, it chooses " |
| 660 |
"a socket by taking the packet flow hash modulo the number of sockets in the " |
| 661 |
"group, where a flow hash is a hash over network-layer address and optional " |
| 662 |
"transport-layer port fields." |
| 663 |
msgstr "" |
| 664 |
"Режим по умолчанию B<PACKET_FANOUT_HASH> посылает пакеты из одного потока в " |
| 665 |
"один и тот же сокет для обеспечения упорядочивания по потоку. Для каждого " |
| 666 |
"пакета выбирается сокет, получаемый из хэша потока пакетов, взятого по " |
| 667 |
"модулю количества сокетов в группе, где хэш потока — это хэш адреса сетевого " |
| 668 |
"уровня и необязательных полей портов транспортного уровня." |
| 669 |
|
| 670 |
#. type: Plain text |
| 671 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 672 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 673 |
msgid "" |
| 674 |
"The load-balance mode B<PACKET_FANOUT_LB> implements a round-robin algorithm." |
| 675 |
msgstr "" |
| 676 |
"Режим балансировки нагрузки B<PACKET_FANOUT_LB> реализует карусельный " |
| 677 |
"алгоритм." |
| 678 |
|
| 679 |
#. type: Plain text |
| 680 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 681 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 682 |
msgid "" |
| 683 |
"B<PACKET_FANOUT_CPU> selects the socket based on the CPU that the packet " |
| 684 |
"arrived on." |
| 685 |
msgstr "" |
| 686 |
"В режиме B<PACKET_FANOUT_CPU> выбираются сокеты исходя из ЦП, на который " |
| 687 |
"поступил пакет." |
| 688 |
|
| 689 |
#. type: Plain text |
| 690 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 691 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 692 |
msgid "" |
| 693 |
"B<PACKET_FANOUT_ROLLOVER> processes all data on a single socket, moving to " |
| 694 |
"the next when one becomes backlogged." |
| 695 |
msgstr "" |
| 696 |
"В режиме B<PACKET_FANOUT_ROLLOVER> все данные обрабатываются одним сокетом, " |
| 697 |
"следующий задействуется, если текущий занят (backlogged)." |
| 698 |
|
| 699 |
#. type: Plain text |
| 700 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 701 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 702 |
msgid "" |
| 703 |
"B<PACKET_FANOUT_RND> selects the socket using a pseudo-random number " |
| 704 |
"generator." |
| 705 |
msgstr "" |
| 706 |
"В режиме B<PACKET_FANOUT_RND> сокет выбирается согласно генератору " |
| 707 |
"псевдослучайных чисел." |
| 708 |
|
| 709 |
#. commit 2d36097d26b5991d71a2cf4a20c1a158f0f1bfcd |
| 710 |
#. type: Plain text |
| 711 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 712 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 713 |
msgid "" |
| 714 |
"B<PACKET_FANOUT_QM> (available since Linux 3.14) selects the socket using " |
| 715 |
"the recorded queue_mapping of the received skb." |
| 716 |
msgstr "" |
| 717 |
"В режиме B<PACKET_FANOUT_QM> (доступен, начиная с Linux 3.14) сокет " |
| 718 |
"выбирается с помощью записанного queue_mapping из полученной skb." |
| 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 |
"Fanout modes can take additional options. IP fragmentation causes packets " |
| 725 |
"from the same flow to have different flow hashes. The flag " |
| 726 |
"B<PACKET_FANOUT_FLAG_DEFRAG>, if set, causes packets to be defragmented " |
| 727 |
"before fanout is applied, to preserve order even in this case. Fanout mode " |
| 728 |
"and options are communicated in the second 16 bits of the integer option " |
| 729 |
"value. The flag B<PACKET_FANOUT_FLAG_ROLLOVER> enables the roll over " |
| 730 |
"mechanism as a backup strategy: if the original fanout algorithm selects a " |
| 731 |
"backlogged socket, the packet rolls over to the next available one." |
| 732 |
msgstr "" |
| 733 |
"Режимы разветвления могут учитывать дополнительные параметры. Фрагментация " |
| 734 |
"IP приводит к тому, что пакеты одного потока имеют разные хэши потоков. Если " |
| 735 |
"установлен флаг B<PACKET_FANOUT_FLAG_DEFRAG>, то пакеты будут " |
| 736 |
"дефрагментироваться перед применением разветвления, что позволит сохранить " |
| 737 |
"порядок даже в этом случае. Параметры режима разветвления задаются во вторых " |
| 738 |
"16 битах целочисленного значения параметра. Флаг " |
| 739 |
"B<PACKET_FANOUT_FLAG_ROLLOVER> включает механизм перекатывания в качестве " |
| 740 |
"запасного: если первоначальный алгоритм разветвления выбрал занятый сокет, " |
| 741 |
"то пакет переходит на следующий доступный." |
| 742 |
|
| 743 |
#. type: TP |
| 744 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 745 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 746 |
#, no-wrap |
| 747 |
msgid "B<PACKET_LOSS> (with B<PACKET_TX_RING>)" |
| 748 |
msgstr "B<PACKET_LOSS> (с B<PACKET_TX_RING>)" |
| 749 |
|
| 750 |
#. type: Plain text |
| 751 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 752 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 753 |
msgid "" |
| 754 |
"When a malformed packet is encountered on a transmit ring, the default is to " |
| 755 |
"reset its I<tp_status> to B<TP_STATUS_WRONG_FORMAT> and abort the " |
| 756 |
"transmission immediately. The malformed packet blocks itself and " |
| 757 |
"subsequently enqueued packets from being sent. The format error must be " |
| 758 |
"fixed, the associated I<tp_status> reset to B<TP_STATUS_SEND_REQUEST>, and " |
| 759 |
"the transmission process restarted via B<send>(2). However, if " |
| 760 |
"B<PACKET_LOSS> is set, any malformed packet will be skipped, its " |
| 761 |
"I<tp_status> reset to B<TP_STATUS_AVAILABLE>, and the transmission process " |
| 762 |
"continued." |
| 763 |
msgstr "" |
| 764 |
"Когда в кольце передачи обнаруживается некорректный пакет, то по умолчанию " |
| 765 |
"его состояние в I<tp_status> сбрасывается в B<TP_STATUS_WRONG_FORMAT> и " |
| 766 |
"происходит немедленная отмена передачи. Некорректный пакет блокирует как " |
| 767 |
"свою отправку, так и всех следующих пакетов в очереди. Ошибка в формате " |
| 768 |
"должна быть исправлена, соответствующий I<tp_status> сброшен в значение " |
| 769 |
"B<TP_STATUS_SEND_REQUEST>, а передача перезапущена с помощью B<send>(2). " |
| 770 |
"Однако, если задан параметр B<PACKET_LOSS>, то все некорректные пакеты будут " |
| 771 |
"пропускаться, их I<tp_status> сбрасываться в B<TP_STATUS_AVAILABLE> и " |
| 772 |
"процесс передачи продолжаться." |
| 773 |
|
| 774 |
#. type: TP |
| 775 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 776 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 777 |
#, no-wrap |
| 778 |
msgid "B<PACKET_RESERVE> (with B<PACKET_RX_RING>)" |
| 779 |
msgstr "B<PACKET_RESERVE> (с B<PACKET_RX_RING>)" |
| 780 |
|
| 781 |
#. type: Plain text |
| 782 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 783 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 784 |
msgid "" |
| 785 |
"By default, a packet receive ring writes packets immediately following the " |
| 786 |
"metadata structure and alignment padding. This integer option reserves " |
| 787 |
"additional headroom." |
| 788 |
msgstr "" |
| 789 |
"По умолчанию, в кольцо приёма пакетов сразу за пакетом записывается " |
| 790 |
"структура метаданных и заполнитель для выравнивания. Этот целочисленный " |
| 791 |
"параметр резервирует дополнительное свободное место." |
| 792 |
|
| 793 |
#. type: TP |
| 794 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 795 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 796 |
#, no-wrap |
| 797 |
msgid "B<PACKET_RX_RING>" |
| 798 |
msgstr "B<PACKET_RX_RING>" |
| 799 |
|
| 800 |
#. type: Plain text |
| 801 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 802 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 803 |
msgid "" |
| 804 |
"Create a memory-mapped ring buffer for asynchronous packet reception. The " |
| 805 |
"packet socket reserves a contiguous region of application address space, " |
| 806 |
"lays it out into an array of packet slots and copies packets (up to " |
| 807 |
"I<tp_snaplen>) into subsequent slots. Each packet is preceded by a " |
| 808 |
"metadata structure similar to I<tpacket_auxdata>. The protocol fields " |
| 809 |
"encode the offset to the data from the start of the metadata header. " |
| 810 |
"I<tp_net> stores the offset to the network layer. If the packet socket is " |
| 811 |
"of type B<SOCK_DGRAM>, then I<tp_mac> is the same. If it is of type " |
| 812 |
"B<SOCK_RAW>, then that field stores the offset to the link-layer frame. " |
| 813 |
"Packet socket and application communicate the head and tail of the ring " |
| 814 |
"through the I<tp_status> field. The packet socket owns all slots with " |
| 815 |
"I<tp_status> equal to B<TP_STATUS_KERNEL>. After filling a slot, it changes " |
| 816 |
"the status of the slot to transfer ownership to the application. During " |
| 817 |
"normal operation, the new I<tp_status> value has at least the " |
| 818 |
"B<TP_STATUS_USER> bit set to signal that a received packet has been stored. " |
| 819 |
"When the application has finished processing a packet, it transfers " |
| 820 |
"ownership of the slot back to the socket by setting I<tp_status> equal to " |
| 821 |
"B<TP_STATUS_KERNEL>." |
| 822 |
msgstr "" |
| 823 |
"Включает создание отображаемого в памяти кольцевого буфера асинхронного " |
| 824 |
"приёма пакетов. Пакетный сокет резервирует непрерывную область в адресном " |
| 825 |
"пространстве приложения, размечает её как массив пакетных слотов и " |
| 826 |
"последовательно копирует пакеты (не более I<tp_snaplen>) в слоты. В начале " |
| 827 |
"каждого пакета помещается структура метаданных, похожая на " |
| 828 |
"I<tpacket_auxdata>. В поле протокола кодируется смещение данных от начала " |
| 829 |
"заголовка метаданных. В I<tp_net> хранится смещение сетевого уровня. Если " |
| 830 |
"тип пакетного сокета — B<SOCK_DGRAM>, то это делается и для I<tp_mac>. Если " |
| 831 |
"тип — B<SOCK_RAW>, то в этом поле хранится смещение на кадр канального " |
| 832 |
"уровня. Пакетный сокет и приложение обмениваются началом и концом кольца " |
| 833 |
"через поле I<tp_status>. Пакетному сокету принадлежат все слоты со значением " |
| 834 |
"I<tp_status> равным B<TP_STATUS_KERNEL>. После заполнения слота, изменяется " |
| 835 |
"состояние слота и права на него передаются приложению. При нормальной работе " |
| 836 |
"в новом значении I<tp_status>, как минимум, установлен бит " |
| 837 |
"B<TP_STATUS_USER>, что показывает, что принятый пакет был сохранён. Когда " |
| 838 |
"приложение заканчивает обработку пакета, оно передаёт права на слот обратно " |
| 839 |
"сокету посредством установки I<tp_status> в значение B<TP_STATUS_KERNEL>." |
| 840 |
|
| 841 |
#. type: Plain text |
| 842 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 843 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 844 |
#, fuzzy |
| 845 |
#| msgid "" |
| 846 |
#| "Packet sockets implement multiple variants of the packet ring. The " |
| 847 |
#| "implementation details are described in I<Documentation/networking/" |
| 848 |
#| "packet_mmap.txt> in the Linux kernel source tree." |
| 849 |
msgid "" |
| 850 |
"Packet sockets implement multiple variants of the packet ring. The " |
| 851 |
"implementation details are described in I<Documentation/networking/" |
| 852 |
"packet_mmap.rst> in the Linux kernel source tree." |
| 853 |
msgstr "" |
| 854 |
"Для пакетных сокетов реализовано несколько вариантов пакетных колец. " |
| 855 |
"Информацию о реализации можно найти в файле I<Documentation/networking/" |
| 856 |
"packet_mmap.txt> из дерева исходного кода ядра Linux." |
| 857 |
|
| 858 |
#. type: TP |
| 859 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 860 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 861 |
#, no-wrap |
| 862 |
msgid "B<PACKET_STATISTICS>" |
| 863 |
msgstr "B<PACKET_STATISTICS>" |
| 864 |
|
| 865 |
#. type: Plain text |
| 866 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 867 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 868 |
msgid "Retrieve packet socket statistics in the form of a structure" |
| 869 |
msgstr "Возвращает статистику по пакетному сокету в виде структуры" |
| 870 |
|
| 871 |
#. type: Plain text |
| 872 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 873 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 874 |
#, no-wrap |
| 875 |
msgid "" |
| 876 |
"struct tpacket_stats {\n" |
| 877 |
" unsigned int tp_packets; /* Total packet count */\n" |
| 878 |
" unsigned int tp_drops; /* Dropped packet count */\n" |
| 879 |
"};\n" |
| 880 |
msgstr "" |
| 881 |
"struct tpacket_stats {\n" |
| 882 |
" unsigned int tp_packets; /* общее количество пакетов */\n" |
| 883 |
" unsigned int tp_drops; /* кол-во отброшенных пакетов */\n" |
| 884 |
"};\n" |
| 885 |
|
| 886 |
#. type: Plain text |
| 887 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 888 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 889 |
msgid "" |
| 890 |
"Receiving statistics resets the internal counters. The statistics structure " |
| 891 |
"differs when using a ring of variant B<TPACKET_V3>." |
| 892 |
msgstr "" |
| 893 |
"При получении статистики сбрасываются внутренние счётчики. Если используется " |
| 894 |
"вариант кольца B<TPACKET_V3>, то статистика имеет другую структуру." |
| 895 |
|
| 896 |
#. type: TP |
| 897 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 898 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 899 |
#, no-wrap |
| 900 |
msgid "B<PACKET_TIMESTAMP> (with B<PACKET_RX_RING>; since Linux 2.6.36)" |
| 901 |
msgstr "B<PACKET_TIMESTAMP> (с B<PACKET_RX_RING>; начиная с Linux 2.6.36)" |
| 902 |
|
| 903 |
#. commit 614f60fa9d73a9e8fdff3df83381907fea7c5649 |
| 904 |
#. type: Plain text |
| 905 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 906 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 907 |
#, fuzzy |
| 908 |
#| msgid "" |
| 909 |
#| "The packet receive ring always stores a timestamp in the metadata " |
| 910 |
#| "header. By default, this is a software generated timestamp generated " |
| 911 |
#| "when the packet is copied into the ring. This integer option selects the " |
| 912 |
#| "type of timestamp. Besides the default, it support the two hardware " |
| 913 |
#| "formats described in I<Documentation/networking/timestamping.txt> in the " |
| 914 |
#| "Linux kernel source tree." |
| 915 |
msgid "" |
| 916 |
"The packet receive ring always stores a timestamp in the metadata header. " |
| 917 |
"By default, this is a software generated timestamp generated when the packet " |
| 918 |
"is copied into the ring. This integer option selects the type of " |
| 919 |
"timestamp. Besides the default, it support the two hardware formats " |
| 920 |
"described in I<Documentation/networking/timestamping.rst> in the Linux " |
| 921 |
"kernel source tree." |
| 922 |
msgstr "" |
| 923 |
"В кольце приёма пакетов всегда сохраняется метка времени в заголовке " |
| 924 |
"метаданных. По умолчанию, это метка генерируется ПО при копировании пакета в " |
| 925 |
"кольцо. Данный целочисленный параметр задаёт тип метки времени. Кроме " |
| 926 |
"значения по умолчанию, поддерживается два аппаратных формата, описанных в " |
| 927 |
"файле I<Documentation/networking/timestamping.txt> из дерева исходного кода " |
| 928 |
"ядра Linux." |
| 929 |
|
| 930 |
#. type: TP |
| 931 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 932 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 933 |
#, no-wrap |
| 934 |
msgid "B<PACKET_TX_RING> (since Linux 2.6.31)" |
| 935 |
msgstr "B<PACKET_TX_RING> (начиная с Linux 2.6.31)" |
| 936 |
|
| 937 |
#. commit 69e3c75f4d541a6eb151b3ef91f34033cb3ad6e1 |
| 938 |
#. type: Plain text |
| 939 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 940 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 941 |
msgid "" |
| 942 |
"Create a memory-mapped ring buffer for packet transmission. This option is " |
| 943 |
"similar to B<PACKET_RX_RING> and takes the same arguments. The application " |
| 944 |
"writes packets into slots with I<tp_status> equal to B<TP_STATUS_AVAILABLE> " |
| 945 |
"and schedules them for transmission by changing I<tp_status> to " |
| 946 |
"B<TP_STATUS_SEND_REQUEST>. When packets are ready to be transmitted, the " |
| 947 |
"application calls B<send>(2) or a variant thereof. The I<buf> and I<len> " |
| 948 |
"fields of this call are ignored. If an address is passed using " |
| 949 |
"B<sendto>(2) or B<sendmsg>(2), then that overrides the socket default. On " |
| 950 |
"successful transmission, the socket resets I<tp_status> to " |
| 951 |
"B<TP_STATUS_AVAILABLE>. It immediately aborts the transmission on error " |
| 952 |
"unless B<PACKET_LOSS> is set." |
| 953 |
msgstr "" |
| 954 |
"Включает создание отображаемого в памяти кольцевого буфера передачи пакетов. " |
| 955 |
"Этот параметр подобен B<PACKET_RX_RING> и имеет те же аргументы. Приложение " |
| 956 |
"записывает пакеты в слоты со значением I<tp_status> равным " |
| 957 |
"B<TP_STATUS_AVAILABLE> и планирует их для передачи делая значение " |
| 958 |
"I<tp_status> равным B<TP_STATUS_SEND_REQUEST>. Когда пакеты готовы к " |
| 959 |
"передаче, приложение вызывает B<send>(2) или его вариант. Поля I<buf> и " |
| 960 |
"I<len> в этом вызове игнорируются. Если передаётся адрес с помощью " |
| 961 |
"B<sendto>(2) или B<sendmsg>(2), то он заменяет сокетное значение по " |
| 962 |
"умолчанию. При успешной передаче сокет сбрасывает значение I<tp_status> в " |
| 963 |
"B<TP_STATUS_AVAILABLE>. При ошибке передача немедленно прерывается, если не " |
| 964 |
"задан B<PACKET_LOSS>." |
| 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<PACKET_VERSION> (with B<PACKET_RX_RING>; since Linux 2.6.27)" |
| 971 |
msgstr "B<PACKET_VERSION> (с B<PACKET_RX_RING>; начиная с Linux 2.6.27)" |
| 972 |
|
| 973 |
#. commit bbd6ef87c544d88c30e4b762b1b61ef267a7d279 |
| 974 |
#. type: Plain text |
| 975 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 976 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 977 |
msgid "" |
| 978 |
"By default, B<PACKET_RX_RING> creates a packet receive ring of variant " |
| 979 |
"B<TPACKET_V1>. To create another variant, configure the desired variant by " |
| 980 |
"setting this integer option before creating the ring." |
| 981 |
msgstr "" |
| 982 |
"По умолчанию, B<PACKET_RX_RING> создаёт кольцо приёма пакетов по варианту " |
| 983 |
"B<TPACKET_V1>. Для создания другого варианта, задайте желаемый, указав " |
| 984 |
"целочисленное значение в этом параметре перед созданием кольца." |
| 985 |
|
| 986 |
#. type: TP |
| 987 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 988 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 989 |
#, no-wrap |
| 990 |
msgid "B<PACKET_QDISC_BYPASS> (since Linux 3.14)" |
| 991 |
msgstr "B<PACKET_QDISC_BYPASS> (начиная с Linux 3.14)" |
| 992 |
|
| 993 |
#. commit d346a3fae3ff1d99f5d0c819bf86edf9094a26a1 |
| 994 |
#. type: Plain text |
| 995 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 996 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 997 |
#, fuzzy |
| 998 |
#| msgid "" |
| 999 |
#| "By default, packets sent through packet sockets pass through the kernel's " |
| 1000 |
#| "qdisc (traffic control) layer, which is fine for the vast majority of use " |
| 1001 |
#| "cases. For traffic generator appliances using packet sockets that intend " |
| 1002 |
#| "to brute-force flood the network\\(emfor example, to test devices under " |
| 1003 |
#| "load in a similar fashion to pktgen\\(emthis layer can be bypassed by " |
| 1004 |
#| "setting this integer option to 1. A side effect is that packet buffering " |
| 1005 |
#| "in the qdisc layer is avoided, which will lead to increased drops when " |
| 1006 |
#| "network device transmit queues are busy; therefore, use at your own risk." |
| 1007 |
msgid "" |
| 1008 |
"By default, packets sent through packet sockets pass through the kernel's " |
| 1009 |
"qdisc (traffic control) layer, which is fine for the vast majority of use " |
| 1010 |
"cases. For traffic generator appliances using packet sockets that intend to " |
| 1011 |
"brute-force flood the network\\[em]for example, to test devices under load " |
| 1012 |
"in a similar fashion to pktgen\\[em]this layer can be bypassed by setting " |
| 1013 |
"this integer option to 1. A side effect is that packet buffering in the " |
| 1014 |
"qdisc layer is avoided, which will lead to increased drops when network " |
| 1015 |
"device transmit queues are busy; therefore, use at your own risk." |
| 1016 |
msgstr "" |
| 1017 |
"По умолчанию, пакеты, посылаемые через пакетные сокеты, проходят через " |
| 1018 |
"уровень ядра qdisc (управление трафиком), что правильно в подавляющем " |
| 1019 |
"большинстве случаев. Для программно-аппаратных комплексов, использующих " |
| 1020 |
"пакетные фильтры для затопления сети — например, для тестирования устройств " |
| 1021 |
"под нагрузкой, подобно тому, как это делает pktgen — этот уровень можно не " |
| 1022 |
"задействовать, установив целочисленной параметр в 1. Побочным эффектом будет " |
| 1023 |
"отмена пакетной буферизации на уровне qdisc, что приведёт к увеличению " |
| 1024 |
"отброшенных пакетов при занятости передающих очередей сетевого устройства; " |
| 1025 |
"поэтому, пользуйтесь с осторожностью." |
| 1026 |
|
| 1027 |
#. type: SS |
| 1028 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1029 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1030 |
#, no-wrap |
| 1031 |
msgid "Ioctls" |
| 1032 |
msgstr "Вызовы ioctl" |
| 1033 |
|
| 1034 |
#. FIXME Document SIOCGSTAMPNS |
| 1035 |
#. type: Plain text |
| 1036 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1037 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1038 |
msgid "" |
| 1039 |
"B<SIOCGSTAMP> can be used to receive the timestamp of the last received " |
| 1040 |
"packet. Argument is a I<struct timeval> variable." |
| 1041 |
msgstr "" |
| 1042 |
"Вызов B<SIOCGSTAMP> можно использовать для получения метки времени " |
| 1043 |
"последнего полученного пакета. Аргументом является I<struct timeval>." |
| 1044 |
|
| 1045 |
#. type: Plain text |
| 1046 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1047 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1048 |
msgid "" |
| 1049 |
"In addition, all standard ioctls defined in B<netdevice>(7) and " |
| 1050 |
"B<socket>(7) are valid on packet sockets." |
| 1051 |
msgstr "" |
| 1052 |
"Также, для пакетных сокетов работают все стандартные ioctl, определённые в " |
| 1053 |
"B<netdevice>(7) и B<socket>(7)." |
| 1054 |
|
| 1055 |
#. type: SS |
| 1056 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1057 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1058 |
#, no-wrap |
| 1059 |
msgid "Error handling" |
| 1060 |
msgstr "Обработка ошибок" |
| 1061 |
|
| 1062 |
#. type: Plain text |
| 1063 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1064 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1065 |
msgid "" |
| 1066 |
"Packet sockets do no error handling other than errors occurred while passing " |
| 1067 |
"the packet to the device driver. They don't have the concept of a pending " |
| 1068 |
"error." |
| 1069 |
msgstr "" |
| 1070 |
"Пакетные сокеты не выполняют обработку ошибок, кроме ошибок, которые " |
| 1071 |
"возникают при передаче пакета драйверу устройства. В них не заложен принцип " |
| 1072 |
"ожидания ошибки." |
| 1073 |
|
| 1074 |
#. type: SH |
| 1075 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1076 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1077 |
#, no-wrap |
| 1078 |
msgid "ERRORS" |
| 1079 |
msgstr "ОШИБКИ" |
| 1080 |
|
| 1081 |
#. type: TP |
| 1082 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1083 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1084 |
#, no-wrap |
| 1085 |
msgid "B<EADDRNOTAVAIL>" |
| 1086 |
msgstr "B<EADDRNOTAVAIL>" |
| 1087 |
|
| 1088 |
#. type: Plain text |
| 1089 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1090 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1091 |
msgid "Unknown multicast group address passed." |
| 1092 |
msgstr "Передан неизвестный адрес групповой рассылки." |
| 1093 |
|
| 1094 |
#. type: TP |
| 1095 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1096 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1097 |
#, no-wrap |
| 1098 |
msgid "B<EFAULT>" |
| 1099 |
msgstr "B<EFAULT>" |
| 1100 |
|
| 1101 |
#. type: Plain text |
| 1102 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1103 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1104 |
msgid "User passed invalid memory address." |
| 1105 |
msgstr "Пользователь передал неправильный адрес памяти." |
| 1106 |
|
| 1107 |
#. type: TP |
| 1108 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1109 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1110 |
#, no-wrap |
| 1111 |
msgid "B<EINVAL>" |
| 1112 |
msgstr "B<EINVAL>" |
| 1113 |
|
| 1114 |
#. type: Plain text |
| 1115 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1116 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1117 |
msgid "Invalid argument." |
| 1118 |
msgstr "Неверный аргумент." |
| 1119 |
|
| 1120 |
#. type: TP |
| 1121 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1122 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1123 |
#, no-wrap |
| 1124 |
msgid "B<EMSGSIZE>" |
| 1125 |
msgstr "B<EMSGSIZE>" |
| 1126 |
|
| 1127 |
#. type: Plain text |
| 1128 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1129 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1130 |
msgid "Packet is bigger than interface MTU." |
| 1131 |
msgstr "Пакет больше, чем интерфейс MTU." |
| 1132 |
|
| 1133 |
#. type: TP |
| 1134 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1135 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1136 |
#, no-wrap |
| 1137 |
msgid "B<ENETDOWN>" |
| 1138 |
msgstr "B<ENETDOWN>" |
| 1139 |
|
| 1140 |
#. type: Plain text |
| 1141 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1142 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1143 |
msgid "Interface is not up." |
| 1144 |
msgstr "Интерфейс не поднят." |
| 1145 |
|
| 1146 |
#. type: TP |
| 1147 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1148 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1149 |
#, no-wrap |
| 1150 |
msgid "B<ENOBUFS>" |
| 1151 |
msgstr "B<ENOBUFS>" |
| 1152 |
|
| 1153 |
#. type: Plain text |
| 1154 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1155 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1156 |
msgid "Not enough memory to allocate the packet." |
| 1157 |
msgstr "Недостаточно памяти для размещения пакета." |
| 1158 |
|
| 1159 |
#. type: TP |
| 1160 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1161 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1162 |
#, no-wrap |
| 1163 |
msgid "B<ENODEV>" |
| 1164 |
msgstr "B<ENODEV>" |
| 1165 |
|
| 1166 |
#. type: Plain text |
| 1167 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1168 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1169 |
msgid "Unknown device name or interface index specified in interface address." |
| 1170 |
msgstr "" |
| 1171 |
"В адресе интерфейса указано неизвестное имя устройства или индекс интерфейса." |
| 1172 |
|
| 1173 |
#. type: TP |
| 1174 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1175 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1176 |
#, no-wrap |
| 1177 |
msgid "B<ENOENT>" |
| 1178 |
msgstr "B<ENOENT>" |
| 1179 |
|
| 1180 |
#. type: Plain text |
| 1181 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1182 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1183 |
msgid "No packet received." |
| 1184 |
msgstr "Пакет не принят." |
| 1185 |
|
| 1186 |
#. type: TP |
| 1187 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1188 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1189 |
#, no-wrap |
| 1190 |
msgid "B<ENOTCONN>" |
| 1191 |
msgstr "B<ENOTCONN>" |
| 1192 |
|
| 1193 |
#. type: Plain text |
| 1194 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1195 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1196 |
msgid "No interface address passed." |
| 1197 |
msgstr "Не передан адрес интерфейса." |
| 1198 |
|
| 1199 |
#. type: TP |
| 1200 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1201 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1202 |
#, no-wrap |
| 1203 |
msgid "B<ENXIO>" |
| 1204 |
msgstr "B<ENXIO>" |
| 1205 |
|
| 1206 |
#. type: Plain text |
| 1207 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1208 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1209 |
msgid "Interface address contained an invalid interface index." |
| 1210 |
msgstr "В адресе интерфейса содержится некорректный индекс интерфейса." |
| 1211 |
|
| 1212 |
#. type: TP |
| 1213 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1214 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1215 |
#, no-wrap |
| 1216 |
msgid "B<EPERM>" |
| 1217 |
msgstr "B<EPERM>" |
| 1218 |
|
| 1219 |
#. type: Plain text |
| 1220 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1221 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1222 |
msgid "User has insufficient privileges to carry out this operation." |
| 1223 |
msgstr "У пользователя недостаточно прав для выполнения этой операции." |
| 1224 |
|
| 1225 |
#. type: Plain text |
| 1226 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1227 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1228 |
msgid "In addition, other errors may be generated by the low-level driver." |
| 1229 |
msgstr "Также, драйвером низкого уровня могут генерироваться другие ошибки." |
| 1230 |
|
| 1231 |
#. type: SH |
| 1232 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1233 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1234 |
#, no-wrap |
| 1235 |
msgid "VERSIONS" |
| 1236 |
msgstr "ВЕРСИИ" |
| 1237 |
|
| 1238 |
#. type: Plain text |
| 1239 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1240 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1241 |
msgid "" |
| 1242 |
"B<AF_PACKET> is a new feature in Linux 2.2. Earlier Linux versions " |
| 1243 |
"supported only B<SOCK_PACKET>." |
| 1244 |
msgstr "" |
| 1245 |
"B<AF_PACKET> появился в Linux 2.2. В ранних версиях Linux поддерживался " |
| 1246 |
"только B<SOCK_PACKET>." |
| 1247 |
|
| 1248 |
#. type: SH |
| 1249 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1250 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1251 |
#, no-wrap |
| 1252 |
msgid "NOTES" |
| 1253 |
msgstr "ПРИМЕЧАНИЯ" |
| 1254 |
|
| 1255 |
#. type: Plain text |
| 1256 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1257 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1258 |
msgid "" |
| 1259 |
"For portable programs it is suggested to use B<AF_PACKET> via B<pcap>(3); " |
| 1260 |
"although this covers only a subset of the B<AF_PACKET> features." |
| 1261 |
msgstr "" |
| 1262 |
"Для переносимых программ предлагается использовать B<AF_PACKET> в " |
| 1263 |
"B<pcap>(3), хотя это покрывает не весь набор возможностей B<AF_PACKET>." |
| 1264 |
|
| 1265 |
#. type: Plain text |
| 1266 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1267 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1268 |
#, fuzzy |
| 1269 |
#| msgid "" |
| 1270 |
#| "The B<SOCK_DGRAM> packet sockets make no attempt to create or parse the " |
| 1271 |
#| "IEEE 802.2 LLC header for a IEEE 802.3 frame. When B<ETH_P_802_3> is " |
| 1272 |
#| "specified as protocol for sending the kernel creates the 802.3 frame and " |
| 1273 |
#| "fills out the length field; the user has to supply the LLC header to get " |
| 1274 |
#| "a fully conforming packet. Incoming 802.3 packets are not multiplexed on " |
| 1275 |
#| "the DSAP/SSAP protocol fields; instead they are supplied to the user as " |
| 1276 |
#| "protocol B<ETH_P_802_2> with the LLC header prefixed. It is thus not " |
| 1277 |
#| "possible to bind to B<ETH_P_802_3>; bind to B<ETH_P_802_2> instead and do " |
| 1278 |
#| "the protocol multiplex yourself. The default for sending is the standard " |
| 1279 |
#| "Ethernet DIX encapsulation with the protocol filled in." |
| 1280 |
msgid "" |
| 1281 |
"The B<SOCK_DGRAM> packet sockets make no attempt to create or parse the IEEE " |
| 1282 |
"802.2 LLC header for a IEEE 802.3 frame. When B<ETH_P_802_3> is specified " |
| 1283 |
"as protocol for sending the kernel creates the 802.3 frame and fills out the " |
| 1284 |
"size field; the user has to supply the LLC header to get a fully conforming " |
| 1285 |
"packet. Incoming 802.3 packets are not multiplexed on the DSAP/SSAP " |
| 1286 |
"protocol fields; instead they are supplied to the user as protocol " |
| 1287 |
"B<ETH_P_802_2> with the LLC header prefixed. It is thus not possible to " |
| 1288 |
"bind to B<ETH_P_802_3>; bind to B<ETH_P_802_2> instead and do the protocol " |
| 1289 |
"multiplex yourself. The default for sending is the standard Ethernet DIX " |
| 1290 |
"encapsulation with the protocol filled in." |
| 1291 |
msgstr "" |
| 1292 |
"Пакетные сокеты B<SOCK_DGRAM> не пытаются создать или разобрать заголовок " |
| 1293 |
"IEEE 802.2 LLC из кадров IEEE 802.3. Если для отправки в качестве протокола " |
| 1294 |
"указан B<ETH_P_802_3>, то ядро создаёт кадр 802.3 и заполняет поле длины; " |
| 1295 |
"пользователь передаёт заголовок LLC в пакете уже полностью заполненным. " |
| 1296 |
"Входящие пакеты 802.3 не уплотняются по полям протокола DSAP/SSAP; вместо " |
| 1297 |
"этого они передаются пользователю как протокол B<ETH_P_802_2> с начальным " |
| 1298 |
"заголовком LLC. То есть невозможно выполнить привязку к B<ETH_P_802_3>; " |
| 1299 |
"вместо этого выполняйте привязку к B<ETH_P_802_2> и выполняйте протокольное " |
| 1300 |
"уплотнение самостоятельно. По умолчанию, отправка происходит в стандартной " |
| 1301 |
"упаковке Ethernet DIX с заполненным полем протокола." |
| 1302 |
|
| 1303 |
#. type: Plain text |
| 1304 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1305 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1306 |
msgid "Packet sockets are not subject to the input or output firewall chains." |
| 1307 |
msgstr "" |
| 1308 |
"Пакетные сокеты недоступны (not subject) во входной и выходной цепочках " |
| 1309 |
"межсетевого экрана." |
| 1310 |
|
| 1311 |
#. type: SS |
| 1312 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1313 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1314 |
#, no-wrap |
| 1315 |
msgid "Compatibility" |
| 1316 |
msgstr "Совместимость" |
| 1317 |
|
| 1318 |
#. type: Plain text |
| 1319 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1320 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1321 |
msgid "In Linux 2.0, the only way to get a packet socket was with the call:" |
| 1322 |
msgstr "" |
| 1323 |
"В Linux 2.0 единственным способом получить пакетный сокет является вызов:" |
| 1324 |
|
| 1325 |
#. type: Plain text |
| 1326 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1327 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1328 |
#, fuzzy, no-wrap |
| 1329 |
#| msgid " socket(AF_INET, SOCK_PACKET, protocol)\n" |
| 1330 |
msgid "socket(AF_INET, SOCK_PACKET, protocol)\n" |
| 1331 |
msgstr " socket(AF_INET, SOCK_PACKET, протокол)\n" |
| 1332 |
|
| 1333 |
#. type: Plain text |
| 1334 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1335 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1336 |
msgid "" |
| 1337 |
"This is still supported, but deprecated and strongly discouraged. The main " |
| 1338 |
"difference between the two methods is that B<SOCK_PACKET> uses the old " |
| 1339 |
"I<struct sockaddr_pkt> to specify an interface, which doesn't provide " |
| 1340 |
"physical-layer independence." |
| 1341 |
msgstr "" |
| 1342 |
"Он всё ещё поддерживается, но устарел и настоятельно не рекомендуется. " |
| 1343 |
"Основным отличием между методами — для указания интерфейса через " |
| 1344 |
"B<SOCK_PACKET> используется старая I<struct sockaddr_pkt>, которая не " |
| 1345 |
"предоставляет независимого физического уровня." |
| 1346 |
|
| 1347 |
#. type: Plain text |
| 1348 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1349 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1350 |
#, no-wrap |
| 1351 |
msgid "" |
| 1352 |
"struct sockaddr_pkt {\n" |
| 1353 |
" unsigned short spkt_family;\n" |
| 1354 |
" unsigned char spkt_device[14];\n" |
| 1355 |
" unsigned short spkt_protocol;\n" |
| 1356 |
"};\n" |
| 1357 |
msgstr "" |
| 1358 |
"struct sockaddr_pkt {\n" |
| 1359 |
" unsigned short spkt_family;\n" |
| 1360 |
" unsigned char spkt_device[14];\n" |
| 1361 |
" unsigned short spkt_protocol;\n" |
| 1362 |
"};\n" |
| 1363 |
|
| 1364 |
#. type: Plain text |
| 1365 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1366 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1367 |
msgid "" |
| 1368 |
"I<spkt_family> contains the device type, I<spkt_protocol> is the IEEE 802.3 " |
| 1369 |
"protocol type as defined in I<E<lt>sys/if_ether.hE<gt>> and I<spkt_device> " |
| 1370 |
"is the device name as a null-terminated string, for example, eth0." |
| 1371 |
msgstr "" |
| 1372 |
"В I<spkt_family> содержится тип устройства, в I<spkt_protocol> — тип " |
| 1373 |
"протокола IEEE 802.3, определённый в I<E<lt>sys/if_ether.hE<gt>>, а в " |
| 1374 |
"I<spkt_device> — имя устройства в виде строки с null в конце, например, eth0." |
| 1375 |
|
| 1376 |
#. type: Plain text |
| 1377 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1378 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1379 |
msgid "This structure is obsolete and should not be used in new code." |
| 1380 |
msgstr "Эта структура устарела и не должна использоваться в новом коде." |
| 1381 |
|
| 1382 |
#. type: SH |
| 1383 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1384 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1385 |
#, no-wrap |
| 1386 |
msgid "BUGS" |
| 1387 |
msgstr "ПРОГРАММНЫЕ ОШИБКИ" |
| 1388 |
|
| 1389 |
#. type: SS |
| 1390 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1391 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1392 |
#, fuzzy, no-wrap |
| 1393 |
#| msgid "Overflow handling" |
| 1394 |
msgid "LLC header handling" |
| 1395 |
msgstr "Обработка переполнения" |
| 1396 |
|
| 1397 |
#. type: Plain text |
| 1398 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1399 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1400 |
msgid "The IEEE 802.2/803.3 LLC handling could be considered as a bug." |
| 1401 |
msgstr "Способ обработки IEEE 802.2/803.3 LLC не считается за дефектный." |
| 1402 |
|
| 1403 |
#. type: SS |
| 1404 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1405 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1406 |
#, no-wrap |
| 1407 |
msgid "MSG_TRUNC issues" |
| 1408 |
msgstr "" |
| 1409 |
|
| 1410 |
#. type: Plain text |
| 1411 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1412 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1413 |
msgid "" |
| 1414 |
"The B<MSG_TRUNC> B<recvmsg>(2) extension is an ugly hack and should be " |
| 1415 |
"replaced by a control message. There is currently no way to get the " |
| 1416 |
"original destination address of packets via B<SOCK_DGRAM>." |
| 1417 |
msgstr "" |
| 1418 |
"Расширение B<MSG_TRUNC> B<recvmsg>(2) является неудачным решением и должно " |
| 1419 |
"быть заменено на управляющее сообщение. Пока нет способа получить " |
| 1420 |
"первоначальный адрес назначения пакетов через B<SOCK_DGRAM>." |
| 1421 |
|
| 1422 |
#. type: SS |
| 1423 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1424 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1425 |
#, no-wrap |
| 1426 |
msgid "spkt_device device name truncation" |
| 1427 |
msgstr "" |
| 1428 |
|
| 1429 |
#. type: Plain text |
| 1430 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1431 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1432 |
msgid "" |
| 1433 |
"The I<spkt_device> field of I<sockaddr_pkt> has a size of 14 bytes, which is " |
| 1434 |
"less than the constant B<IFNAMSIZ> defined in I<E<lt>net/if.hE<gt>> which is " |
| 1435 |
"16 bytes and describes the system limit for a network interface name. This " |
| 1436 |
"means the names of network devices longer than 14 bytes will be truncated to " |
| 1437 |
"fit into I<spkt_device>. All these sizes include the terminating null byte " |
| 1438 |
"(\\[aq]\\[rs]0\\[aq]))." |
| 1439 |
msgstr "" |
| 1440 |
|
| 1441 |
#. type: Plain text |
| 1442 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1443 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1444 |
msgid "" |
| 1445 |
"Issues from this with old code typically show up with very long interface " |
| 1446 |
"names used by the B<Predictable Network Interface Names> feature enabled by " |
| 1447 |
"default in many modern Linux distributions." |
| 1448 |
msgstr "" |
| 1449 |
|
| 1450 |
#. type: Plain text |
| 1451 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1452 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1453 |
msgid "" |
| 1454 |
"The preferred solution is to rewrite code to avoid B<SOCK_PACKET>. Possible " |
| 1455 |
"user solutions are to disable B<Predictable Network Interface Names> or to " |
| 1456 |
"rename the interface to a name of at most 13 bytes, for example using the " |
| 1457 |
"B<ip>(8) tool." |
| 1458 |
msgstr "" |
| 1459 |
|
| 1460 |
#. type: SS |
| 1461 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1462 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1463 |
#, no-wrap |
| 1464 |
msgid "Documentation issues" |
| 1465 |
msgstr "" |
| 1466 |
|
| 1467 |
#. .SH CREDITS |
| 1468 |
#. This man page was written by Andi Kleen with help from Matthew Wilcox. |
| 1469 |
#. AF_PACKET in Linux 2.2 was implemented |
| 1470 |
#. by Alexey Kuznetsov, based on code by Alan Cox and others. |
| 1471 |
#. type: Plain text |
| 1472 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1473 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1474 |
msgid "Socket filters are not documented." |
| 1475 |
msgstr "Не описаны сокетные фильтры." |
| 1476 |
|
| 1477 |
#. type: SH |
| 1478 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1479 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1480 |
#, no-wrap |
| 1481 |
msgid "SEE ALSO" |
| 1482 |
msgstr "СМОТРИТЕ ТАКЖЕ" |
| 1483 |
|
| 1484 |
#. type: Plain text |
| 1485 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1486 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1487 |
#, fuzzy |
| 1488 |
#| msgid "" |
| 1489 |
#| "B<socket>(2), B<pcap>(3), B<capabilities>(7), B<ip>(7), B<raw>(7), " |
| 1490 |
#| "B<socket>(7)" |
| 1491 |
msgid "" |
| 1492 |
"B<socket>(2), B<pcap>(3), B<capabilities>(7), B<ip>(7), B<raw>(7), " |
| 1493 |
"B<socket>(7), B<ip>(8)," |
| 1494 |
msgstr "" |
| 1495 |
"B<socket>(2), B<pcap>(3), B<capabilities>(7), B<ip>(7), B<raw>(7), " |
| 1496 |
"B<socket>(7)" |
| 1497 |
|
| 1498 |
#. type: Plain text |
| 1499 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1500 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1501 |
msgid "" |
| 1502 |
"RFC\\ 894 for the standard IP Ethernet encapsulation. RFC\\ 1700 for the " |
| 1503 |
"IEEE 802.3 IP encapsulation." |
| 1504 |
msgstr "" |
| 1505 |
"В RFC\\ 894 описана упаковка стандартного IP Ethernet. В RFC\\ 1700 описана " |
| 1506 |
"упаковка IP IEEE 802.3." |
| 1507 |
|
| 1508 |
#. type: Plain text |
| 1509 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1510 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1511 |
msgid "" |
| 1512 |
"The I<E<lt>linux/if_ether.hE<gt>> include file for physical-layer protocols." |
| 1513 |
msgstr "" |
| 1514 |
"Заголовочный файл I<E<lt>linux/if_ether.hE<gt>> содержит протоколы " |
| 1515 |
"физического уровня." |
| 1516 |
|
| 1517 |
#. type: Plain text |
| 1518 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1519 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1520 |
#, fuzzy |
| 1521 |
#| msgid "" |
| 1522 |
#| "The Linux kernel source tree. I</Documentation/networking/filter.txt> " |
| 1523 |
#| "describes how to apply Berkeley Packet Filters to packet sockets. I</" |
| 1524 |
#| "tools/testing/selftests/net/psock_tpacket.c> contains example source code " |
| 1525 |
#| "for all available versions of B<PACKET_RX_RING> and B<PACKET_TX_RING>." |
| 1526 |
msgid "" |
| 1527 |
"The Linux kernel source tree. I<Documentation/networking/filter.rst> " |
| 1528 |
"describes how to apply Berkeley Packet Filters to packet sockets. I<tools/" |
| 1529 |
"testing/selftests/net/psock_tpacket.c> contains example source code for all " |
| 1530 |
"available versions of B<PACKET_RX_RING> and B<PACKET_TX_RING>." |
| 1531 |
msgstr "" |
| 1532 |
"Дерево исходного кода ядра Linux. В I</Documentation/networking/filter.txt> " |
| 1533 |
"описано как к пакетным сокетам применять Berkeley Packet Filters. В I</tools/" |
| 1534 |
"testing/selftests/net/psock_tpacket.c> содержится пример исходного кода для " |
| 1535 |
"всех доступных версий B<PACKET_RX_RING> и B<PACKET_TX_RING>." |
| 1536 |
|
| 1537 |
#. type: TH |
| 1538 |
#: debian-trixie |
| 1539 |
#, no-wrap |
| 1540 |
msgid "2024-06-15" |
| 1541 |
msgstr "15 июня 2024 г." |
| 1542 |
|
| 1543 |
#. type: TH |
| 1544 |
#: debian-trixie |
| 1545 |
#, no-wrap |
| 1546 |
msgid "Linux man-pages 6.9.1" |
| 1547 |
msgstr "Страницы руководства Linux 6.9.1" |
| 1548 |
|
| 1549 |
#. type: Plain text |
| 1550 |
#: debian-trixie |
| 1551 |
msgid "" |
| 1552 |
"When the B<MSG_TRUNC> flag is passed to B<recvmsg>(2), B<recv>(2), or " |
| 1553 |
"B<recvfrom>(2), the real length of the packet on the wire is always " |
| 1554 |
"returned, even when it is longer than the buffer." |
| 1555 |
msgstr "" |
| 1556 |
"Если в B<recvmsg>(2), B<recv>(2) или B<recvfrom>(2) передаётся флаг " |
| 1557 |
"B<MSG_TRUNC>, то возвращается реальная длина пакета в канале, даже если " |
| 1558 |
"значение длиннее буфера." |
| 1559 |
|
| 1560 |
#. type: Plain text |
| 1561 |
#: debian-trixie |
| 1562 |
#, no-wrap |
| 1563 |
msgid "" |
| 1564 |
"struct sockaddr_ll {\n" |
| 1565 |
" unsigned short sll_family; /* Always AF_PACKET */\n" |
| 1566 |
" unsigned short sll_protocol; /* Physical-layer protocol */\n" |
| 1567 |
" int sll_ifindex; /* Interface number */\n" |
| 1568 |
" unsigned short sll_hatype; /* ARP hardware type */\n" |
| 1569 |
" unsigned char sll_pkttype; /* Packet type */\n" |
| 1570 |
" unsigned char sll_halen; /* Length of address */\n" |
| 1571 |
" unsigned char sll_addr[8]; /* Physical-layer address */\n" |
| 1572 |
"};\n" |
| 1573 |
msgstr "" |
| 1574 |
"struct sockaddr_ll {\n" |
| 1575 |
" unsigned short sll_family; /* всегда равно AF_PACKET */\n" |
| 1576 |
" unsigned short sll_protocol; /* протокол физического уровня */\n" |
| 1577 |
" int sll_ifindex; /* номер интерфейса */\n" |
| 1578 |
" unsigned short sll_hatype; /* тип аппаратного ARP */\n" |
| 1579 |
" unsigned char sll_pkttype; /* тип пакета */\n" |
| 1580 |
" unsigned char sll_halen; /* длина адреса */\n" |
| 1581 |
" unsigned char sll_addr[8]; /* адрес на физическом уровне */\n" |
| 1582 |
"};\n" |
| 1583 |
|
| 1584 |
#. type: Plain text |
| 1585 |
#: debian-trixie |
| 1586 |
#, fuzzy |
| 1587 |
#| msgid "" |
| 1588 |
#| "I<sll_addr> and I<sll_halen> contain the physical-layer (e.g., IEEE " |
| 1589 |
#| "802.3) address and its length. The exact interpretation depends on the " |
| 1590 |
#| "device." |
| 1591 |
msgid "" |
| 1592 |
"contain the physical-layer (e.g., IEEE 802.3) address and its length. The " |
| 1593 |
"exact interpretation depends on the device." |
| 1594 |
msgstr "" |
| 1595 |
"В полях I<sll_addr> и I<sll_halen> содержится адрес физического уровня " |
| 1596 |
"(например, IEEE 802.3) и его длина. Конкретный смысл зависит от устройства." |
| 1597 |
|
| 1598 |
#. type: Plain text |
| 1599 |
#: debian-trixie |
| 1600 |
#, no-wrap |
| 1601 |
msgid "" |
| 1602 |
"struct packet_mreq {\n" |
| 1603 |
" int mr_ifindex; /* interface index */\n" |
| 1604 |
" unsigned short mr_type; /* action */\n" |
| 1605 |
" unsigned short mr_alen; /* address length */\n" |
| 1606 |
" unsigned char mr_address[8]; /* physical-layer address */\n" |
| 1607 |
"};\n" |
| 1608 |
msgstr "" |
| 1609 |
"struct packet_mreq {\n" |
| 1610 |
" int mr_ifindex; /* индекс интерфейса */\n" |
| 1611 |
" unsigned short mr_type; /* действие */\n" |
| 1612 |
" unsigned short mr_alen; /* длина адреса */\n" |
| 1613 |
" unsigned char mr_address[8]; /* адрес физ-кого уровня */\n" |
| 1614 |
"};\n" |
| 1615 |
|
| 1616 |
#. commit a0cdfcf39362410d5ea983f4daf67b38de129408 added tp_vlan_tpid |
| 1617 |
#. type: Plain text |
| 1618 |
#: debian-trixie |
| 1619 |
#, fuzzy, no-wrap |
| 1620 |
#| msgid "" |
| 1621 |
#| "struct tpacket_auxdata {\n" |
| 1622 |
#| " __u32 tp_status;\n" |
| 1623 |
#| " __u32 tp_len; /* packet length */\n" |
| 1624 |
#| " __u32 tp_snaplen; /* captured length */\n" |
| 1625 |
#| " __u16 tp_mac;\n" |
| 1626 |
#| " __u16 tp_net;\n" |
| 1627 |
#| " __u16 tp_vlan_tci;\n" |
| 1628 |
#| " __u16 tp_padding;\n" |
| 1629 |
#| "};\n" |
| 1630 |
msgid "" |
| 1631 |
"struct tpacket_auxdata {\n" |
| 1632 |
" __u32 tp_status;\n" |
| 1633 |
" __u32 tp_len; /* packet length */\n" |
| 1634 |
" __u32 tp_snaplen; /* captured length */\n" |
| 1635 |
" __u16 tp_mac;\n" |
| 1636 |
" __u16 tp_net;\n" |
| 1637 |
" __u16 tp_vlan_tci;\n" |
| 1638 |
" __u16 tp_vlan_tpid; /* Since Linux 3.14; earlier, these\n" |
| 1639 |
" were unused padding bytes */\n" |
| 1640 |
"};\n" |
| 1641 |
msgstr "" |
| 1642 |
"struct tpacket_auxdata {\n" |
| 1643 |
" __u32 tp_status;\n" |
| 1644 |
" __u32 tp_len; /* длина пакета */\n" |
| 1645 |
" __u32 tp_snaplen; /* захваченная длина */\n" |
| 1646 |
" __u16 tp_mac;\n" |
| 1647 |
" __u16 tp_net;\n" |
| 1648 |
" __u16 tp_vlan_tci;\n" |
| 1649 |
" __u16 tp_padding;\n" |
| 1650 |
"};\n" |
| 1651 |
|
| 1652 |
#. type: Plain text |
| 1653 |
#: debian-trixie |
| 1654 |
msgid "" |
| 1655 |
"The B<SOCK_DGRAM> packet sockets make no attempt to create or parse the IEEE " |
| 1656 |
"802.2 LLC header for a IEEE 802.3 frame. When B<ETH_P_802_3> is specified " |
| 1657 |
"as protocol for sending the kernel creates the 802.3 frame and fills out the " |
| 1658 |
"length field; the user has to supply the LLC header to get a fully " |
| 1659 |
"conforming packet. Incoming 802.3 packets are not multiplexed on the DSAP/" |
| 1660 |
"SSAP protocol fields; instead they are supplied to the user as protocol " |
| 1661 |
"B<ETH_P_802_2> with the LLC header prefixed. It is thus not possible to " |
| 1662 |
"bind to B<ETH_P_802_3>; bind to B<ETH_P_802_2> instead and do the protocol " |
| 1663 |
"multiplex yourself. The default for sending is the standard Ethernet DIX " |
| 1664 |
"encapsulation with the protocol filled in." |
| 1665 |
msgstr "" |
| 1666 |
"Пакетные сокеты B<SOCK_DGRAM> не пытаются создать или разобрать заголовок " |
| 1667 |
"IEEE 802.2 LLC из кадров IEEE 802.3. Если для отправки в качестве протокола " |
| 1668 |
"указан B<ETH_P_802_3>, то ядро создаёт кадр 802.3 и заполняет поле длины; " |
| 1669 |
"пользователь передаёт заголовок LLC в пакете уже полностью заполненным. " |
| 1670 |
"Входящие пакеты 802.3 не уплотняются по полям протокола DSAP/SSAP; вместо " |
| 1671 |
"этого они передаются пользователю как протокол B<ETH_P_802_2> с начальным " |
| 1672 |
"заголовком LLC. То есть невозможно выполнить привязку к B<ETH_P_802_3>; " |
| 1673 |
"вместо этого выполняйте привязку к B<ETH_P_802_2> и выполняйте протокольное " |
| 1674 |
"уплотнение самостоятельно. По умолчанию, отправка происходит в стандартной " |
| 1675 |
"упаковке Ethernet DIX с заполненным полем протокола." |
| 1676 |
|
| 1677 |
#. type: Plain text |
| 1678 |
#: debian-trixie |
| 1679 |
msgid "" |
| 1680 |
"The I<spkt_device> field of I<sockaddr_pkt> has a size of 14 bytes, which is " |
| 1681 |
"less than the constant B<IFNAMSIZ> defined in I<E<lt>net/if.hE<gt>> which is " |
| 1682 |
"16 bytes and describes the system limit for a network interface name. This " |
| 1683 |
"means the names of network devices longer than 14 bytes will be truncated to " |
| 1684 |
"fit into I<spkt_device>. All these lengths include the terminating null " |
| 1685 |
"byte (\\[aq]\\[rs]0\\[aq]))." |
| 1686 |
msgstr "" |
| 1687 |
|
| 1688 |
#. type: TH |
| 1689 |
#: fedora-44 fedora-rawhide |
| 1690 |
#, no-wrap |
| 1691 |
msgid "2024-11-17" |
| 1692 |
msgstr "17 ноября 2024 г." |
| 1693 |
|
| 1694 |
#. type: TH |
| 1695 |
#: fedora-44 fedora-rawhide |
| 1696 |
#, no-wrap |
| 1697 |
msgid "Linux man-pages 6.13" |
| 1698 |
msgstr "Страницы руководства Linux 6.13" |
| 1699 |
|
| 1700 |
#. type: TH |
| 1701 |
#: mageia-cauldron |
| 1702 |
#, no-wrap |
| 1703 |
msgid "Linux man-pages 6.17" |
| 1704 |
msgstr "Страницы руководства Linux 6.17" |
| 1705 |
|
| 1706 |
#. type: TH |
| 1707 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1708 |
#, no-wrap |
| 1709 |
msgid "Linux man-pages (unreleased)" |
| 1710 |
msgstr "Страницы руководства Linux (не выпущены)" |