| 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 |
# Artyom Kunyov <[email protected]>, 2012. |
| 5 |
# Azamat Hackimov <[email protected]>, 2012. |
| 6 |
# Dmitriy Ovchinnikov <[email protected]>, 2012. |
| 7 |
# Dmitry Bolkhovskikh <[email protected]>, 2017. |
| 8 |
# ITriskTI <[email protected]>, 2012. |
| 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:19+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 |
|
| 26 |
#. type: TH |
| 27 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 28 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 29 |
#, no-wrap |
| 30 |
msgid "BPF-HELPERS" |
| 31 |
msgstr "BPF-HELPERS" |
| 32 |
|
| 33 |
#. type: TH |
| 34 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 35 |
#, no-wrap |
| 36 |
msgid "2025-10-27" |
| 37 |
msgstr "27 октября 2025 г." |
| 38 |
|
| 39 |
#. type: TH |
| 40 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 41 |
#, fuzzy, no-wrap |
| 42 |
#| msgid "Linux" |
| 43 |
msgid "Linux v7.0" |
| 44 |
msgstr "Linux" |
| 45 |
|
| 46 |
#. type: SH |
| 47 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 48 |
#, no-wrap |
| 49 |
msgid "Name" |
| 50 |
msgstr "Имя" |
| 51 |
|
| 52 |
#. Copyright (C) All BPF authors and contributors from 2014 to present. |
| 53 |
#. type: Plain text |
| 54 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 55 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 56 |
msgid "BPF-HELPERS - list of eBPF helper functions" |
| 57 |
msgstr "BPF-HELPERS - список вспомогательных функций eBPF" |
| 58 |
|
| 59 |
#. type: SH |
| 60 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 61 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 62 |
#, no-wrap |
| 63 |
msgid "DESCRIPTION" |
| 64 |
msgstr "ОПИСАНИЕ" |
| 65 |
|
| 66 |
#. type: Plain text |
| 67 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 68 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 69 |
#, fuzzy |
| 70 |
#| msgid "" |
| 71 |
#| "The extended Berkeley Packet Filter (eBPF) subsystem consists in programs " |
| 72 |
#| "written in a pseudo-assembly language, then attached to one of the " |
| 73 |
#| "several kernel hooks and run in reaction of specific events. This " |
| 74 |
#| "framework differs from the older, \"classic\" BPF (or \"cBPF\") in " |
| 75 |
#| "several aspects, one of them being the ability to call special functions " |
| 76 |
#| "(or \"helpers\") from within a program. These functions are restricted " |
| 77 |
#| "to a white-list of helpers defined in the kernel." |
| 78 |
msgid "" |
| 79 |
"The extended Berkeley Packet Filter (eBPF) subsystem consists in programs " |
| 80 |
"written in a pseudo-assembly language, then attached to one of the several " |
| 81 |
"kernel hooks and run in reaction of specific events. This framework differs " |
| 82 |
"from the older, \"classic\" BPF (or \"cBPF\") in several aspects, one of " |
| 83 |
"them being the ability to call special functions (or \"helpers\") from " |
| 84 |
"within a program. These functions are restricted to a white-list of helpers " |
| 85 |
"defined in the kernel." |
| 86 |
msgstr "" |
| 87 |
"Расширенная подсистема пакетных фильтров Беркли (eBPF) представляет собой " |
| 88 |
"программы, написанные на псевдо-ассемблерном языке, которые прикрепляются к " |
| 89 |
"одному из перехватчиков ядра (hooks) и запускаются в ответ на определённые " |
| 90 |
"события. Эта инфраструктура отличается от старой, «классической» BPF " |
| 91 |
"(«cBPF»), некоторыми моментами, одним из которых является способность " |
| 92 |
"вызывать из программ специальные функции («помощники» helpers). Эти функции " |
| 93 |
"перечислены в белом списке помощников, который задаётся ядром." |
| 94 |
|
| 95 |
#. type: Plain text |
| 96 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 97 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 98 |
msgid "" |
| 99 |
"These helpers are used by eBPF programs to interact with the system, or with " |
| 100 |
"the context in which they work. For instance, they can be used to print " |
| 101 |
"debugging messages, to get the time since the system was booted, to interact " |
| 102 |
"with eBPF maps, or to manipulate network packets. Since there are several " |
| 103 |
"eBPF program types, and that they do not run in the same context, each " |
| 104 |
"program type can only call a subset of those helpers." |
| 105 |
msgstr "" |
| 106 |
"Эти помощники используются в программах eBPF для взаимодействия с системой " |
| 107 |
"или рабочим контекстом. Например, они могут использоваться для печати " |
| 108 |
"отладочных сообщений, получения времени, прошедшего с момента загрузки " |
| 109 |
"системы, для взаимодействия с картами eBPF или для обработки сетевых " |
| 110 |
"пакетов. Так есть несколько типов программ eBPF и они не могут работать в " |
| 111 |
"одном контексте, каждый тип программ может вызывать только некоторую часть " |
| 112 |
"этих помощников." |
| 113 |
|
| 114 |
#. type: Plain text |
| 115 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 116 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 117 |
msgid "" |
| 118 |
"Due to eBPF conventions, a helper can not have more than five arguments." |
| 119 |
msgstr "" |
| 120 |
"В соответствии с правилами eBPF помощник может иметь не более пяти " |
| 121 |
"аргументов." |
| 122 |
|
| 123 |
#. type: Plain text |
| 124 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 125 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 126 |
msgid "" |
| 127 |
"Internally, eBPF programs call directly into the compiled helper functions " |
| 128 |
"without requiring any foreign-function interface. As a result, calling " |
| 129 |
"helpers introduces no overhead, thus offering excellent performance." |
| 130 |
msgstr "" |
| 131 |
"Внутри программы eBPF непосредственно вызывают скомпилированные функции-" |
| 132 |
"помощники без какого-либо стороннего интерфейса. В результате вызов " |
| 133 |
"помощников не приводит к накладным расходам, показывая превосходную " |
| 134 |
"производительность." |
| 135 |
|
| 136 |
#. type: Plain text |
| 137 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 138 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 139 |
msgid "" |
| 140 |
"This document is an attempt to list and document the helpers available to " |
| 141 |
"eBPF developers. They are sorted by chronological order (the oldest helpers " |
| 142 |
"in the kernel at the top)." |
| 143 |
msgstr "" |
| 144 |
"В этом документе предпринимается попытка перечислить и описать помощников, " |
| 145 |
"доступных разработчикам eBPF. Они отсортированы в хронологическом порядке " |
| 146 |
"(сначала самые старые)." |
| 147 |
|
| 148 |
#. type: SH |
| 149 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 150 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 151 |
#, no-wrap |
| 152 |
msgid "HELPERS" |
| 153 |
msgstr "ПОМОЩНИКИ" |
| 154 |
|
| 155 |
#. type: TP |
| 156 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 157 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 158 |
#, no-wrap |
| 159 |
msgid "B<void *bpf_map_lookup_elem(struct bpf_map *>I<map>B<, const void *>I<key>B<)>" |
| 160 |
msgstr "B<void *bpf_map_lookup_elem(struct bpf_map *>I<map>B<, const void *>I<key>B<)>" |
| 161 |
|
| 162 |
#. type: TP |
| 163 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 164 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 165 |
#, no-wrap |
| 166 |
msgid "B<Description>" |
| 167 |
msgstr "B<Описание>" |
| 168 |
|
| 169 |
#. type: Plain text |
| 170 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 171 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 172 |
msgid "Perform a lookup in I<map> for an entry associated to I<key>\\&." |
| 173 |
msgstr "Выполняет в I<map> поиск записи, связанной с I<key>\\&." |
| 174 |
|
| 175 |
#. type: TP |
| 176 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 177 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 178 |
#, no-wrap |
| 179 |
msgid "B<Return>" |
| 180 |
msgstr "B<Возвращает>" |
| 181 |
|
| 182 |
#. type: Plain text |
| 183 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 184 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 185 |
msgid "Map value associated to I<key>, or B<NULL> if no entry was found." |
| 186 |
msgstr "" |
| 187 |
"Значение карты, связанное с I<key>, или B<NULL>, если запись не найдена." |
| 188 |
|
| 189 |
#. type: TP |
| 190 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 191 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 192 |
#, fuzzy, no-wrap |
| 193 |
#| msgid "B<int bpf_map_update_elem(struct bpf_map *>I<map>B<, const void *>I<key>B<, const void *>I<value>B<, u64 >I<flags>B<)>" |
| 194 |
msgid "B<long bpf_map_update_elem(struct bpf_map *>I<map>B<, const void *>I<key>B<, const void *>I<value>B<, u64 >I<flags>B<)>" |
| 195 |
msgstr "B<int bpf_map_update_elem(struct bpf_map *>I<map>B<, const void *>I<key>B<, const void *>I<value>B<, u64 >I<flags>B<)>" |
| 196 |
|
| 197 |
#. type: Plain text |
| 198 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 199 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 200 |
msgid "" |
| 201 |
"Add or update the value of the entry associated to I<key> in I<map> with " |
| 202 |
"I<value>\\&. I<flags> is one of:" |
| 203 |
msgstr "" |
| 204 |
"Добавляет или обновляет значение записи, связанное с I<key> в I<map>, равное " |
| 205 |
"I<value>\\&. Значение I<flags> может быть одним из:" |
| 206 |
|
| 207 |
#. type: TP |
| 208 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 209 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 210 |
#, no-wrap |
| 211 |
msgid "B<BPF_NOEXIST>" |
| 212 |
msgstr "B<BPF_NOEXIST>" |
| 213 |
|
| 214 |
#. type: Plain text |
| 215 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 216 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 217 |
msgid "The entry for I<key> must not exist in the map." |
| 218 |
msgstr "Запись для I<key> не должна существовать в карте." |
| 219 |
|
| 220 |
#. type: TP |
| 221 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 222 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 223 |
#, no-wrap |
| 224 |
msgid "B<BPF_EXIST>" |
| 225 |
msgstr "B<BPF_EXIST>" |
| 226 |
|
| 227 |
#. type: Plain text |
| 228 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 229 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 230 |
msgid "The entry for I<key> must already exist in the map." |
| 231 |
msgstr "Запись для I<key> должна существовать в карте." |
| 232 |
|
| 233 |
#. type: TP |
| 234 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 235 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 236 |
#, no-wrap |
| 237 |
msgid "B<BPF_ANY>" |
| 238 |
msgstr "B<BPF_ANY>" |
| 239 |
|
| 240 |
#. type: Plain text |
| 241 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 242 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 243 |
msgid "No condition on the existence of the entry for I<key>\\&." |
| 244 |
msgstr "Не учитывать условие существования записи для I<key>\\&." |
| 245 |
|
| 246 |
#. type: Plain text |
| 247 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 248 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 249 |
msgid "" |
| 250 |
"Flag value B<BPF_NOEXIST> cannot be used for maps of types " |
| 251 |
"B<BPF_MAP_TYPE_ARRAY> or B<BPF_MAP_TYPE_PERCPU_ARRAY> (all elements always " |
| 252 |
"exist), the helper would return an error." |
| 253 |
msgstr "" |
| 254 |
"Значение флага B<BPF_NOEXIST> нельзя использовать для карт с типом " |
| 255 |
"B<BPF_MAP_TYPE_ARRAY> или B<BPF_MAP_TYPE_PERCPU_ARRAY> (все элементы всегда " |
| 256 |
"существуют), помощник вернул бы ошибку." |
| 257 |
|
| 258 |
#. type: Plain text |
| 259 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 260 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 261 |
msgid "0 on success, or a negative error in case of failure." |
| 262 |
msgstr "При успешном выполнении 0 и отрицательное значение при ошибке." |
| 263 |
|
| 264 |
#. type: TP |
| 265 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 266 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 267 |
#, fuzzy, no-wrap |
| 268 |
#| msgid "B<int bpf_map_delete_elem(struct bpf_map *>I<map>B<, const void *>I<key>B<)>" |
| 269 |
msgid "B<long bpf_map_delete_elem(struct bpf_map *>I<map>B<, const void *>I<key>B<)>" |
| 270 |
msgstr "B<int bpf_map_delete_elem(struct bpf_map *>I<map>B<, const void *>I<key>B<)>" |
| 271 |
|
| 272 |
#. type: Plain text |
| 273 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 274 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 275 |
msgid "Delete entry with I<key> from I<map>\\&." |
| 276 |
msgstr "Удаляет запись с I<key> из I<map>\\&." |
| 277 |
|
| 278 |
#. type: TP |
| 279 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 280 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 281 |
#, fuzzy, no-wrap |
| 282 |
#| msgid "B<int bpf_probe_read(void *>I<dst>B<, u32 >I<size>B<, const void *>I<src>B<)>" |
| 283 |
msgid "B<long bpf_probe_read(void *>I<dst>B<, u32 >I<size>B<, const void *>I<unsafe_ptr>B<)>" |
| 284 |
msgstr "B<int bpf_probe_read(void *>I<dst>B<, u32 >I<size>B<, const void *>I<src>B<)>" |
| 285 |
|
| 286 |
#. type: Plain text |
| 287 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 288 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 289 |
#, fuzzy |
| 290 |
#| msgid "" |
| 291 |
#| "For tracing programs, safely attempt to read I<size> bytes from address " |
| 292 |
#| "I<src> and store the data in I<dst>\\&." |
| 293 |
msgid "" |
| 294 |
"For tracing programs, safely attempt to read I<size> bytes from kernel space " |
| 295 |
"address I<unsafe_ptr> and store the data in I<dst>\\&." |
| 296 |
msgstr "" |
| 297 |
"Для программ трассировки; безопасно попытаться прочитать I<size> байт по " |
| 298 |
"адресу I<src> и сохранить данные в I<dst>\\&." |
| 299 |
|
| 300 |
#. type: Plain text |
| 301 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 302 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 303 |
msgid "" |
| 304 |
"Generally, use B<bpf_probe_read_user>() or B<bpf_probe_read_kernel>() " |
| 305 |
"instead." |
| 306 |
msgstr "" |
| 307 |
|
| 308 |
#. type: TP |
| 309 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 310 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 311 |
#, no-wrap |
| 312 |
msgid "B<u64 bpf_ktime_get_ns(void)>" |
| 313 |
msgstr "B<u64 bpf_ktime_get_ns(void)>" |
| 314 |
|
| 315 |
#. type: Plain text |
| 316 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 317 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 318 |
msgid "" |
| 319 |
"Return the time elapsed since system boot, in nanoseconds. Does not include " |
| 320 |
"time the system was suspended. See: B<clock_gettime>(B<CLOCK_MONOTONIC>)" |
| 321 |
msgstr "" |
| 322 |
|
| 323 |
#. type: Plain text |
| 324 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 325 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 326 |
msgid "Current I<ktime>\\&." |
| 327 |
msgstr "Текущее значение I<ktime>\\&." |
| 328 |
|
| 329 |
#. type: TP |
| 330 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 331 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 332 |
#, fuzzy, no-wrap |
| 333 |
#| msgid "B<int bpf_trace_printk(const char *>I<fmt>B<, u32 >I<fmt_size>B<, ...)>" |
| 334 |
msgid "B<long bpf_trace_printk(const char *>I<fmt>B<, u32 >I<fmt_size>B<, ...)>" |
| 335 |
msgstr "B<int bpf_trace_printk(const char *>I<fmt>B<, u32 >I<fmt_size>B<, ...)>" |
| 336 |
|
| 337 |
#. type: Plain text |
| 338 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 339 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 340 |
#, fuzzy |
| 341 |
#| msgid "" |
| 342 |
#| "This helper is a \"printk()-like\" facility for debugging. It prints a " |
| 343 |
#| "message defined by format I<fmt> (of size I<fmt_size>) to file I</sys/" |
| 344 |
#| "kernel/debug/tracing/trace> from DebugFS, if available. It can take up to " |
| 345 |
#| "three additional B<u64> arguments (as an eBPF helpers, the total number " |
| 346 |
#| "of arguments is limited to five)." |
| 347 |
msgid "" |
| 348 |
"This helper is a \"printk()-like\" facility for debugging. It prints a " |
| 349 |
"message defined by format I<fmt> (of size I<fmt_size>) to file I</sys/" |
| 350 |
"kernel/tracing/trace> from TraceFS, if available. It can take up to three " |
| 351 |
"additional B<u64> arguments (as an eBPF helpers, the total number of " |
| 352 |
"arguments is limited to five)." |
| 353 |
msgstr "" |
| 354 |
"Этот помощник подобен printk() и помогает в отладке. Он печатает сообщение, " |
| 355 |
"определяемое форматом I<fmt> (размером I<fmt_size>), в файл I</sys/kernel/" |
| 356 |
"debug/tracing/trace> из DebugFS, если есть. Принимает до трёх дополнительных " |
| 357 |
"аргументов B<u64> (как и для всех помощников eBPF, общее количество " |
| 358 |
"аргументов ограничено пятью)." |
| 359 |
|
| 360 |
#. type: Plain text |
| 361 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 362 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 363 |
#, fuzzy |
| 364 |
#| msgid "" |
| 365 |
#| "Each time the helper is called, it appends a line to the trace. The " |
| 366 |
#| "format of the trace is customizable, and the exact output one will get " |
| 367 |
#| "depends on the options set in I</sys/kernel/debug/tracing/trace_options> " |
| 368 |
#| "(see also the I<README> file under the same directory). However, it " |
| 369 |
#| "usually defaults to something like:" |
| 370 |
msgid "" |
| 371 |
"Each time the helper is called, it appends a line to the trace. Lines are " |
| 372 |
"discarded while I</sys/kernel/tracing/trace> is open, use I</sys/kernel/" |
| 373 |
"tracing/trace_pipe> to avoid this. The format of the trace is customizable, " |
| 374 |
"and the exact output one will get depends on the options set in I</sys/" |
| 375 |
"kernel/tracing/trace_options> (see also the I<README> file under the same " |
| 376 |
"directory). However, it usually defaults to something like:" |
| 377 |
msgstr "" |
| 378 |
"Каждый раз при вызове помощника, он добавляет строку в трассировку. Формат " |
| 379 |
"трассировки можно изменять, и конечный результат зависит от указанных в I</" |
| 380 |
"sys/kernel/debug/tracing/trace_options> параметров (также смотрите файл " |
| 381 |
"I<README> в том же каталоге). Однако, при обычных настройках строка выглядит " |
| 382 |
"так:" |
| 383 |
|
| 384 |
#. type: Plain text |
| 385 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 386 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 387 |
#, fuzzy, no-wrap |
| 388 |
#| msgid "telnet-470 [001] .N.. 419421.045894: 0x00000001: E<lt>formatted msgE<gt>\n" |
| 389 |
msgid "telnet-470 [001] .N.. 419421.045894: 0x00000001: E<lt>formatted msgE<gt>\n" |
| 390 |
msgstr "telnet-470 [001] .N.. 419421.045894: 0x00000001: E<lt>formatted msgE<gt>\n" |
| 391 |
|
| 392 |
#. type: Plain text |
| 393 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 394 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 395 |
msgid "In the above:" |
| 396 |
msgstr "Где:" |
| 397 |
|
| 398 |
#. type: IP |
| 399 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 400 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 401 |
#, no-wrap |
| 402 |
msgid "\\(bu" |
| 403 |
msgstr "\\(bu" |
| 404 |
|
| 405 |
#. type: Plain text |
| 406 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 407 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 408 |
msgid "B<telnet> is the name of the current task." |
| 409 |
msgstr "B<telnet> — имя текущей задачи." |
| 410 |
|
| 411 |
#. type: Plain text |
| 412 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 413 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 414 |
msgid "B<470> is the PID of the current task." |
| 415 |
msgstr "B<470> — PID текущей задачи." |
| 416 |
|
| 417 |
#. type: Plain text |
| 418 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 419 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 420 |
msgid "B<001> is the CPU number on which the task is running." |
| 421 |
msgstr "B<001> номер ЦП, на котором выполняется текущая задача." |
| 422 |
|
| 423 |
#. type: Plain text |
| 424 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 425 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 426 |
msgid "" |
| 427 |
"In B<\\&.N..>, each character refers to a set of options (whether irqs are " |
| 428 |
"enabled, scheduling options, whether hard/softirqs are running, level of " |
| 429 |
"preempt_disabled respectively). B<N> means that B<TIF_NEED_RESCHED> and " |
| 430 |
"B<PREEMPT_NEED_RESCHED> are set." |
| 431 |
msgstr "" |
| 432 |
"В B<\\&.N..> каждый символ ссылается на набор параметров (разрешены ли irq, " |
| 433 |
"параметры планирования, работает ли hard/softirq, уровень preempt_disabled, " |
| 434 |
"соответственно). B<N> означает, что установлены B<TIF_NEED_RESCHED> и " |
| 435 |
"B<PREEMPT_NEED_RESCHED>." |
| 436 |
|
| 437 |
#. type: Plain text |
| 438 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 439 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 440 |
msgid "B<419421.045894> is a timestamp." |
| 441 |
msgstr "B<419421.045894> — метка времени." |
| 442 |
|
| 443 |
#. type: Plain text |
| 444 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 445 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 446 |
msgid "" |
| 447 |
"B<0x00000001> is a fake value used by BPF for the instruction pointer " |
| 448 |
"register." |
| 449 |
msgstr "" |
| 450 |
"B<0x00000001> — фиктивное значение, используемое BPF как регистр указателя " |
| 451 |
"инструкций." |
| 452 |
|
| 453 |
#. type: Plain text |
| 454 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 455 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 456 |
msgid "B<E<lt>formatted msgE<gt>> is the message formatted with I<fmt>\\&." |
| 457 |
msgstr "" |
| 458 |
"B<E<lt>formatted msgE<gt>> — сообщение, отформатированное согласно I<fmt>\\&." |
| 459 |
|
| 460 |
#. type: Plain text |
| 461 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 462 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 463 |
msgid "" |
| 464 |
"The conversion specifiers supported by I<fmt> are similar, but more limited " |
| 465 |
"than for printk(). They are B<%d>, B<%i>, B<%u>, B<%x>, B<%ld>, B<%li>, " |
| 466 |
"B<%lu>, B<%lx>, B<%lld>, B<%lli>, B<%llu>, B<%llx>, B<%p>, B<%s>\\&. No " |
| 467 |
"modifier (size of field, padding with zeroes, etc.) is available, and the " |
| 468 |
"helper will return B<-EINVAL> (but print nothing) if it encounters an " |
| 469 |
"unknown specifier." |
| 470 |
msgstr "" |
| 471 |
"Спецификаторы преобразований, поддерживаемые I<fmt>, похожи, но несколько " |
| 472 |
"ограничены, чем у printk(). Список: B<%d>, B<%i>, B<%u>, B<%x>, B<%ld>, " |
| 473 |
"B<%li>, B<%lu>, B<%lx>, B<%lld>, B<%lli>, B<%llu>, B<%llx>, B<%p>, B<%s>\\&. " |
| 474 |
"Нельзя указывать модификатор (размер поля, заполнение нулями и т. п.) и " |
| 475 |
"помощник вернёт B<-EINVAL> (и ничего не напечатает), если обнаружит " |
| 476 |
"неизвестный спецификаторы." |
| 477 |
|
| 478 |
#. type: Plain text |
| 479 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 480 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 481 |
#, fuzzy |
| 482 |
#| msgid "" |
| 483 |
#| "Also, note that B<bpf_trace_printk>() is slow, and should only be used " |
| 484 |
#| "for debugging purposes. For this reason, a notice bloc (spanning several " |
| 485 |
#| "lines) is printed to kernel logs and states that the helper should not be " |
| 486 |
#| "used \"for production use\" the first time this helper is used (or more " |
| 487 |
#| "precisely, when B<trace_printk>() buffers are allocated). For passing " |
| 488 |
#| "values to user space, perf events should be preferred." |
| 489 |
msgid "" |
| 490 |
"Also, note that B<bpf_trace_printk>() is slow, and should only be used for " |
| 491 |
"debugging purposes. For this reason, a notice block (spanning several lines) " |
| 492 |
"is printed to kernel logs and states that the helper should not be used " |
| 493 |
"\"for production use\" the first time this helper is used (or more " |
| 494 |
"precisely, when B<trace_printk>() buffers are allocated). For passing values " |
| 495 |
"to user space, perf events should be preferred." |
| 496 |
msgstr "" |
| 497 |
"Также заметим, что B<bpf_trace_printk>() медленно работает и должна " |
| 498 |
"использоваться только в целях отладки. Поэтому при первом использовании " |
| 499 |
"(точнее, при выделении буферов B<trace_printk>()) в журнал ядра печатается " |
| 500 |
"блок с уведомлением (охватывающем несколько строк), в котором говорится, что " |
| 501 |
"данный помощник не должен «использоваться в промышленной эксплуатации». Для " |
| 502 |
"передачи значений в пространство пользователя нужно использовать события " |
| 503 |
"perf." |
| 504 |
|
| 505 |
#. type: Plain text |
| 506 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 507 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 508 |
msgid "" |
| 509 |
"The number of bytes written to the buffer, or a negative error in case of " |
| 510 |
"failure." |
| 511 |
msgstr "Количество байт, записанных в буфер, или отрицательный номер ошибки." |
| 512 |
|
| 513 |
#. type: TP |
| 514 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 515 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 516 |
#, no-wrap |
| 517 |
msgid "B<u32 bpf_get_prandom_u32(void)>" |
| 518 |
msgstr "B<u32 bpf_get_prandom_u32(void)>" |
| 519 |
|
| 520 |
#. type: Plain text |
| 521 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 522 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 523 |
msgid "Get a pseudo-random number." |
| 524 |
msgstr "Возвращает псевдослучайное число." |
| 525 |
|
| 526 |
#. type: Plain text |
| 527 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 528 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 529 |
msgid "" |
| 530 |
"From a security point of view, this helper uses its own pseudo-random " |
| 531 |
"internal state, and cannot be used to infer the seed of other random " |
| 532 |
"functions in the kernel. However, it is essential to note that the generator " |
| 533 |
"used by the helper is not cryptographically secure." |
| 534 |
msgstr "" |
| 535 |
"С точки зрения безопасности в помощнике используется собственноевнутреннее " |
| 536 |
"состояние псевдослучайности, по которому нельзя предсказать начальное " |
| 537 |
"случайное число других функций ядра. Однако, стоит отметить, что " |
| 538 |
"используемый в помощнике генератор небезопасен для шифрования." |
| 539 |
|
| 540 |
#. type: Plain text |
| 541 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 542 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 543 |
msgid "A random 32-bit unsigned value." |
| 544 |
msgstr "Случайное 32-битное беззнаковое значение." |
| 545 |
|
| 546 |
#. type: TP |
| 547 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 548 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 549 |
#, no-wrap |
| 550 |
msgid "B<u32 bpf_get_smp_processor_id(void)>" |
| 551 |
msgstr "B<u32 bpf_get_smp_processor_id(void)>" |
| 552 |
|
| 553 |
#. type: Plain text |
| 554 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 555 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 556 |
#, fuzzy |
| 557 |
#| msgid "" |
| 558 |
#| "Get the SMP (symmetric multiprocessing) processor id. Note that all " |
| 559 |
#| "programs run with preemption disabled, which means that the SMP processor " |
| 560 |
#| "id is stable during all the execution of the program." |
| 561 |
msgid "" |
| 562 |
"Get the SMP (symmetric multiprocessing) processor id. Note that all programs " |
| 563 |
"run with migration disabled, which means that the SMP processor id is stable " |
| 564 |
"during all the execution of the program." |
| 565 |
msgstr "" |
| 566 |
"Возвращает идентификатор SMP (симметричного мультиобрабатывающего) " |
| 567 |
"процессора. Заметим, что все программы выполняются с выключенным " |
| 568 |
"вытеснением, то есть идентификатор SMP-процессора не изменяется за всё время " |
| 569 |
"выполнения программы." |
| 570 |
|
| 571 |
#. type: Plain text |
| 572 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 573 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 574 |
msgid "The SMP id of the processor running the program." |
| 575 |
msgstr "Идентификатор SMP-процессора выполняющейся программы." |
| 576 |
|
| 577 |
#. type: TP |
| 578 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 579 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 580 |
#, fuzzy, no-wrap |
| 581 |
#| msgid "B<int bpf_skb_store_bytes(struct sk_buff *>I<skb>B<, u32 >I<offset>B<, const void *>I<from>B<, u32 >I<len>B<, u64 >I<flags>B<)>" |
| 582 |
msgid "B<long bpf_skb_store_bytes(struct sk_buff *>I<skb>B<, u32 >I<offset>B<, const void *>I<from>B<, u32 >I<len>B<, u64 >I<flags>B<)>" |
| 583 |
msgstr "B<int bpf_skb_store_bytes(struct sk_buff *>I<skb>B<, u32 >I<offset>B<, const void *>I<from>B<, u32 >I<len>B<, u64 >I<flags>B<)>" |
| 584 |
|
| 585 |
#. type: Plain text |
| 586 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 587 |
#, fuzzy |
| 588 |
#| msgid "" |
| 589 |
#| "Store I<len> bytes from address I<from> into the packet associated to " |
| 590 |
#| "I<skb>, at I<offset>\\&. Only the flags, tag and TLVs inside the " |
| 591 |
#| "outermost IPv6 Segment Routing Header can be modified through this helper." |
| 592 |
msgid "" |
| 593 |
"Store I<len> bytes from address I<from> into the packet associated to " |
| 594 |
"I<skb>, at I<offset>\\&. The I<flags> are a combination of the following " |
| 595 |
"values:" |
| 596 |
msgstr "" |
| 597 |
"Сохраняет I<len> байт, начиная с адреса I<from> в пакет, связанный с I<skb>, " |
| 598 |
"по смещению I<offset>\\&. С помощью этого помощника можно изменять только " |
| 599 |
"флаги, тег и TLV в самом внешнем заголовке IPv6 посегментной маршрутизации " |
| 600 |
"(Segment Routing Header)." |
| 601 |
|
| 602 |
#. type: TP |
| 603 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 604 |
#, fuzzy, no-wrap |
| 605 |
#| msgid "B<BPF_F_ZERO_CSUM_TX>" |
| 606 |
msgid "B<BPF_F_RECOMPUTE_CSUM>" |
| 607 |
msgstr "B<BPF_F_ZERO_CSUM_TX>" |
| 608 |
|
| 609 |
#. type: Plain text |
| 610 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 611 |
msgid "Automatically update I<skb>B<-E<gt>csum> after storing the bytes." |
| 612 |
msgstr "" |
| 613 |
|
| 614 |
#. type: TP |
| 615 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 616 |
#, fuzzy, no-wrap |
| 617 |
#| msgid "B<BPF_F_DONT_FRAGMENT>" |
| 618 |
msgid "B<BPF_F_INVALIDATE_HASH>" |
| 619 |
msgstr "B<BPF_F_DONT_FRAGMENT>" |
| 620 |
|
| 621 |
#. type: Plain text |
| 622 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 623 |
msgid "" |
| 624 |
"Set I<skb>B<-E<gt>hash>, I<skb>B<-E<gt>swhash> and I<skb>B<-E<gt>l4hash> to " |
| 625 |
"0." |
| 626 |
msgstr "" |
| 627 |
|
| 628 |
#. type: Plain text |
| 629 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 630 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 631 |
#, fuzzy |
| 632 |
#| msgid "" |
| 633 |
#| "A call to this helper is susceptible to change the underlaying packet " |
| 634 |
#| "buffer. Therefore, at load time, all checks on pointers previously done " |
| 635 |
#| "by the verifier are invalidated and must be performed again, if the " |
| 636 |
#| "helper is used in combination with direct packet access." |
| 637 |
msgid "" |
| 638 |
"A call to this helper is susceptible to change the underlying packet buffer. " |
| 639 |
"Therefore, at load time, all checks on pointers previously done by the " |
| 640 |
"verifier are invalidated and must be performed again, if the helper is used " |
| 641 |
"in combination with direct packet access." |
| 642 |
msgstr "" |
| 643 |
"Вызов этого помощника приводит к изменению буфера нижележащего пакета. " |
| 644 |
"Поэтому на момент загрузки все проверки указателей, выполненные ранее " |
| 645 |
"верификатором, становятся недействительными и должны быть выполнены " |
| 646 |
"повторно, если кроме помощника используется прямой доступ к пакету." |
| 647 |
|
| 648 |
#. type: TP |
| 649 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 650 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 651 |
#, fuzzy, no-wrap |
| 652 |
#| msgid "B<int bpf_l3_csum_replace(struct sk_buff *>I<skb>B<, u32 >I<offset>B<, u64 >I<from>B<, u64 >I<to>B<, u64 >I<size>B<)>" |
| 653 |
msgid "B<long bpf_l3_csum_replace(struct sk_buff *>I<skb>B<, u32 >I<offset>B<, u64 >I<from>B<, u64 >I<to>B<, u64 >I<size>B<)>" |
| 654 |
msgstr "B<int bpf_l3_csum_replace(struct sk_buff *>I<skb>B<, u32 >I<offset>B<, u64 >I<from>B<, u64 >I<to>B<, u64 >I<size>B<)>" |
| 655 |
|
| 656 |
#. type: Plain text |
| 657 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 658 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 659 |
msgid "" |
| 660 |
"Recompute the layer 3 (e.g. IP) checksum for the packet associated to " |
| 661 |
"I<skb>\\&. Computation is incremental, so the helper must know the former " |
| 662 |
"value of the header field that was modified (I<from>), the new value of this " |
| 663 |
"field (I<to>), and the number of bytes (2 or 4) for this field, stored in " |
| 664 |
"I<size>\\&. Alternatively, it is possible to store the difference between " |
| 665 |
"the previous and the new values of the header field in I<to>, by setting " |
| 666 |
"I<from> and I<size> to 0. For both methods, I<offset> indicates the location " |
| 667 |
"of the IP checksum within the packet." |
| 668 |
msgstr "" |
| 669 |
"Повторно вычисляет контрольную сумму заголовка 3-го уровня (например, IP) из " |
| 670 |
"пакета, связанного с I<skb>\\&. Вычисление является поступательным, поэтому " |
| 671 |
"помощник должен знать предыдущее значение поля заголовка, которое было " |
| 672 |
"изменено (I<from>), новое значение этого поля (I<to>) и количество байт (2 " |
| 673 |
"или 4) этого поля, хранящиеся в I<size>\\&. Или же можно сохранить различие " |
| 674 |
"между предыдущим и новым значениями поля заголовка в I<to>, установив " |
| 675 |
"I<from> и I<size> равными 0. В обоих способах в I<offset> задаётся " |
| 676 |
"расположение контрольной суммы IP внутри пакета." |
| 677 |
|
| 678 |
#. type: Plain text |
| 679 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 680 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 681 |
msgid "" |
| 682 |
"This helper works in combination with B<bpf_csum_diff>(), which does not " |
| 683 |
"update the checksum in-place, but offers more flexibility and can handle " |
| 684 |
"sizes larger than 2 or 4 for the checksum to update." |
| 685 |
msgstr "" |
| 686 |
"Этот помощник работает вместе с B<bpf_csum_diff>(), который не обновляет " |
| 687 |
"непосредственно контрольную сумму, а обладает большей гибкостью и может " |
| 688 |
"обрабатывать большие размеры данных, чем 2 или 4." |
| 689 |
|
| 690 |
#. type: TP |
| 691 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 692 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 693 |
#, fuzzy, no-wrap |
| 694 |
#| msgid "B<int bpf_l4_csum_replace(struct sk_buff *>I<skb>B<, u32 >I<offset>B<, u64 >I<from>B<, u64 >I<to>B<, u64 >I<flags>B<)>" |
| 695 |
msgid "B<long bpf_l4_csum_replace(struct sk_buff *>I<skb>B<, u32 >I<offset>B<, u64 >I<from>B<, u64 >I<to>B<, u64 >I<flags>B<)>" |
| 696 |
msgstr "B<int bpf_l4_csum_replace(struct sk_buff *>I<skb>B<, u32 >I<offset>B<, u64 >I<from>B<, u64 >I<to>B<, u64 >I<flags>B<)>" |
| 697 |
|
| 698 |
#. type: Plain text |
| 699 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 700 |
#, fuzzy |
| 701 |
#| msgid "" |
| 702 |
#| "Recompute the layer 4 (e.g. TCP, UDP or ICMP) checksum for the packet " |
| 703 |
#| "associated to I<skb>\\&. Computation is incremental, so the helper must " |
| 704 |
#| "know the former value of the header field that was modified (I<from>), " |
| 705 |
#| "the new value of this field (I<to>), and the number of bytes (2 or 4) for " |
| 706 |
#| "this field, stored on the lowest four bits of I<flags>\\&. Alternatively, " |
| 707 |
#| "it is possible to store the difference between the previous and the new " |
| 708 |
#| "values of the header field in I<to>, by setting I<from> and the four " |
| 709 |
#| "lowest bits of I<flags> to 0. For both methods, I<offset> indicates the " |
| 710 |
#| "location of the IP checksum within the packet. In addition to the size of " |
| 711 |
#| "the field, I<flags> can be added (bitwise OR) actual flags. With " |
| 712 |
#| "B<BPF_F_MARK_MANGLED_0>, a null checksum is left untouched (unless " |
| 713 |
#| "B<BPF_F_MARK_ENFORCE> is added as well), and for updates resulting in a " |
| 714 |
#| "null checksum the value is set to B<CSUM_MANGLED_0> instead. Flag " |
| 715 |
#| "B<BPF_F_PSEUDO_HDR> indicates the checksum is to be computed against a " |
| 716 |
#| "pseudo-header." |
| 717 |
msgid "" |
| 718 |
"Recompute the layer 4 (e.g. TCP, UDP or ICMP) checksum for the packet " |
| 719 |
"associated to I<skb>\\&. Computation is incremental, so the helper must know " |
| 720 |
"the former value of the header field that was modified (I<from>), the new " |
| 721 |
"value of this field (I<to>), and the number of bytes (2 or 4) for this " |
| 722 |
"field, stored on the lowest four bits of I<flags>\\&. Alternatively, it is " |
| 723 |
"possible to store the difference between the previous and the new values of " |
| 724 |
"the header field in I<to>, by setting I<from> and the four lowest bits of " |
| 725 |
"I<flags> to 0. For both methods, I<offset> indicates the location of the IP " |
| 726 |
"checksum within the packet. In addition to the size of the field, I<flags> " |
| 727 |
"can be added (bitwise OR) actual flags. With B<BPF_F_MARK_MANGLED_0>, a null " |
| 728 |
"checksum is left untouched (unless B<BPF_F_MARK_ENFORCE> is added as well), " |
| 729 |
"and for updates resulting in a null checksum the value is set to " |
| 730 |
"B<CSUM_MANGLED_0> instead. Flag B<BPF_F_PSEUDO_HDR> indicates that the " |
| 731 |
"modified header field is part of the pseudo-header. Flag B<BPF_F_IPV6> " |
| 732 |
"should be set for IPv6 packets." |
| 733 |
msgstr "" |
| 734 |
"Повторно вычисляет контрольную сумму заголовка 4-го уровня (например, TCP, " |
| 735 |
"UDP или ICMP) из пакета, связанного с I<skb>\\&. Вычисление является " |
| 736 |
"поступательным, поэтому помощник должен знать предыдущее значение поля " |
| 737 |
"заголовка, которое было изменено (I<from>), новое значение этого поля " |
| 738 |
"(I<to>) и количество байт (2 или 4) этого поля, хранящиеся в младших четырёх " |
| 739 |
"битах I<flags>\\&. Или же можно сохранить различие между предыдущим и новым " |
| 740 |
"значениями поля заголовка в I<to>, установив I<from> и четыре младших бита " |
| 741 |
"I<flags> равными 0. В обоих способах в I<offset> задаётся расположение " |
| 742 |
"контрольной суммы IP внутри пакета. В дополнении размера поля в I<flags> " |
| 743 |
"можно добавить (побитовым ИЛИ) нужные флаги. При указании " |
| 744 |
"B<BPF_F_MARK_MANGLED_0> контрольная сумма null остаётся неизменяемой (если " |
| 745 |
"также не указан B<BPF_F_MARK_ENFORCE>), а чтобы обновить результат в " |
| 746 |
"контрольной сумме null нужно задать значение B<CSUM_MANGLED_0>. Флаг " |
| 747 |
"B<BPF_F_PSEUDO_HDR> задаёт, что контрольная сумма будет вычислена повторно " |
| 748 |
"на уровне псевдо-заголовка." |
| 749 |
|
| 750 |
#. type: TP |
| 751 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 752 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 753 |
#, fuzzy, no-wrap |
| 754 |
#| msgid "B<int bpf_tail_call(void *>I<ctx>B<, struct bpf_map *>I<prog_array_map>B<, u32 >I<index>B<)>" |
| 755 |
msgid "B<long bpf_tail_call(void *>I<ctx>B<, struct bpf_map *>I<prog_array_map>B<, u32 >I<index>B<)>" |
| 756 |
msgstr "B<int bpf_tail_call(void *>I<ctx>B<, struct bpf_map *>I<prog_array_map>B<, u32 >I<index>B<)>" |
| 757 |
|
| 758 |
#. type: Plain text |
| 759 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 760 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 761 |
#, fuzzy |
| 762 |
#| msgid "" |
| 763 |
#| "This special helper is used to trigger a \"tail call\", or in other " |
| 764 |
#| "words, to jump into another eBPF program. The same stack frame is used " |
| 765 |
#| "(but values on stack and in registers for the caller are not accessible " |
| 766 |
#| "to the callee). This mechanism allows for program chaining, either for " |
| 767 |
#| "raising the maximum number of available eBPF instructions, or to execute " |
| 768 |
#| "given programs in conditional blocks. For security reasons, there is an " |
| 769 |
#| "upper limit to the number of successive tail calls that can be performed." |
| 770 |
msgid "" |
| 771 |
"This special helper is used to trigger a \"tail call\", or in other words, " |
| 772 |
"to jump into another eBPF program. The same stack frame is used (but values " |
| 773 |
"on stack and in registers for the caller are not accessible to the callee). " |
| 774 |
"This mechanism allows for program chaining, either for raising the maximum " |
| 775 |
"number of available eBPF instructions, or to execute given programs in " |
| 776 |
"conditional blocks. For security reasons, there is an upper limit to the " |
| 777 |
"number of successive tail calls that can be performed." |
| 778 |
msgstr "" |
| 779 |
"Это специальный помощник используется для активации «хвостового вызова», " |
| 780 |
"иначе говоря, прыжка в другую программу eBPF. Используется тот же кадр стека " |
| 781 |
"(но значения в стеке и в регистрах вызывающего недоступны вызываемому). Этот " |
| 782 |
"механизм позволяет образовывать цепочки программ, или для превышения " |
| 783 |
"максимального количества доступных инструкций eBPF, или для выполнения " |
| 784 |
"заданной программы в блоках условий. Из соображений безопасности существует " |
| 785 |
"верхний предел количества последовательных хвостовых вызовов, которые можно " |
| 786 |
"выполнить." |
| 787 |
|
| 788 |
#. type: Plain text |
| 789 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 790 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 791 |
msgid "" |
| 792 |
"Upon call of this helper, the program attempts to jump into a program " |
| 793 |
"referenced at index I<index> in I<prog_array_map>, a special map of type " |
| 794 |
"B<BPF_MAP_TYPE_PROG_ARRAY>, and passes I<ctx>, a pointer to the context." |
| 795 |
msgstr "" |
| 796 |
"При вызове из помощника программы пытается прыгнуть в программу согласно " |
| 797 |
"индексу I<index> в I<prog_array_map>, специальной карте с типом " |
| 798 |
"B<BPF_MAP_TYPE_PROG_ARRAY>, и передать I<ctx>, указатель на контекст." |
| 799 |
|
| 800 |
#. type: Plain text |
| 801 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 802 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 803 |
#, fuzzy |
| 804 |
#| msgid "" |
| 805 |
#| "If the call succeeds, the kernel immediately runs the first instruction " |
| 806 |
#| "of the new program. This is not a function call, and it never returns to " |
| 807 |
#| "the previous program. If the call fails, then the helper has no effect, " |
| 808 |
#| "and the caller continues to run its subsequent instructions. A call can " |
| 809 |
#| "fail if the destination program for the jump does not exist (i.e. " |
| 810 |
#| "I<index> is superior to the number of entries in I<prog_array_map>), or " |
| 811 |
#| "if the maximum number of tail calls has been reached for this chain of " |
| 812 |
#| "programs. This limit is defined in the kernel by the macro " |
| 813 |
#| "B<MAX_TAIL_CALL_CNT> (not accessible to user space), which is currently " |
| 814 |
#| "set to 32." |
| 815 |
msgid "" |
| 816 |
"If the call succeeds, the kernel immediately runs the first instruction of " |
| 817 |
"the new program. This is not a function call, and it never returns to the " |
| 818 |
"previous program. If the call fails, then the helper has no effect, and the " |
| 819 |
"caller continues to run its subsequent instructions. A call can fail if the " |
| 820 |
"destination program for the jump does not exist (i.e. I<index> is superior " |
| 821 |
"to the number of entries in I<prog_array_map>), or if the maximum number of " |
| 822 |
"tail calls has been reached for this chain of programs. This limit is " |
| 823 |
"defined in the kernel by the macro B<MAX_TAIL_CALL_CNT> (not accessible to " |
| 824 |
"user space), which is currently set to 33." |
| 825 |
msgstr "" |
| 826 |
"Если вызов произошёл без ошибок, то ядро сразу выполняет первую инструкцию " |
| 827 |
"новой программы. Это не вызов функции и возврата к старой программе никогда " |
| 828 |
"не происходит. Если при вызове возникла ошибка, то помощник ничего не делает " |
| 829 |
"и вызывающий продолжает выполнение со следующей инструкции. Вызов может " |
| 830 |
"завершиться ошибкой, если прыжок указывает на несуществующую программу (т. " |
| 831 |
"е. значение I<index> превышает количество элементов I<prog_array_map>), или " |
| 832 |
"если в этой цепочке программ достигнуто максимальное количество хвостовых " |
| 833 |
"вызовов. Данный предел определён в ядре макросом B<MAX_TAIL_CALL_CNT> " |
| 834 |
"(недоступен в пользовательском пространстве) и в данный момент равен 32." |
| 835 |
|
| 836 |
#. type: TP |
| 837 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 838 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 839 |
#, fuzzy, no-wrap |
| 840 |
#| msgid "B<int bpf_clone_redirect(struct sk_buff *>I<skb>B<, u32 >I<ifindex>B<, u64 >I<flags>B<)>" |
| 841 |
msgid "B<long bpf_clone_redirect(struct sk_buff *>I<skb>B<, u32 >I<ifindex>B<, u64 >I<flags>B<)>" |
| 842 |
msgstr "B<int bpf_clone_redirect(struct sk_buff *>I<skb>B<, u32 >I<ifindex>B<, u64 >I<flags>B<)>" |
| 843 |
|
| 844 |
#. type: Plain text |
| 845 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 846 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 847 |
msgid "" |
| 848 |
"Clone and redirect the packet associated to I<skb> to another net device of " |
| 849 |
"index I<ifindex>\\&. Both ingress and egress interfaces can be used for " |
| 850 |
"redirection. The B<BPF_F_INGRESS> value in I<flags> is used to make the " |
| 851 |
"distinction (ingress path is selected if the flag is present, egress path " |
| 852 |
"otherwise). This is the only flag supported for now." |
| 853 |
msgstr "" |
| 854 |
"Клонирует и перенаправляет пакет, связанный с I<skb>, в другое сетевое " |
| 855 |
"устройство с индексом I<ifindex>\\&. Для перенаправления можно использовать " |
| 856 |
"как входящий так и исходящий интерфейсы. В качестве отличительного признака " |
| 857 |
"в I<flags> используется значение B<BPF_F_INGRESS> (выбирается входящий путь, " |
| 858 |
"если флаг указан, в противном случае — исходящий). В настоящее время " |
| 859 |
"поддерживается только этот флаг." |
| 860 |
|
| 861 |
#. type: Plain text |
| 862 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 863 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 864 |
msgid "" |
| 865 |
"In comparison with B<bpf_redirect>() helper, B<bpf_clone_redirect>() has the " |
| 866 |
"associated cost of duplicating the packet buffer, but this can be executed " |
| 867 |
"out of the eBPF program. Conversely, B<bpf_redirect>() is more efficient, " |
| 868 |
"but it is handled through an action code where the redirection happens only " |
| 869 |
"after the eBPF program has returned." |
| 870 |
msgstr "" |
| 871 |
"По сравнению с помощником B<bpf_redirect>(), работа B<bpf_clone_redirect>() " |
| 872 |
"добавляет накладные расходы по созданию копии пакетного буфера, но это можно " |
| 873 |
"выполнить вне программы eBPF. В свою очередь B<bpf_redirect>() эффективнее, " |
| 874 |
"но вызывается в коде действия, где перенаправление возникает только после " |
| 875 |
"возврата из программы eBPF." |
| 876 |
|
| 877 |
#. type: Plain text |
| 878 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 879 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 880 |
msgid "" |
| 881 |
"0 on success, or a negative error in case of failure. Positive error " |
| 882 |
"indicates a potential drop or congestion in the target device. The " |
| 883 |
"particular positive error codes are not defined." |
| 884 |
msgstr "" |
| 885 |
|
| 886 |
#. type: TP |
| 887 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 888 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 889 |
#, no-wrap |
| 890 |
msgid "B<u64 bpf_get_current_pid_tgid(void)>" |
| 891 |
msgstr "B<u64 bpf_get_current_pid_tgid(void)>" |
| 892 |
|
| 893 |
#. type: Plain text |
| 894 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 895 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 896 |
msgid "Get the current pid and tgid." |
| 897 |
msgstr "" |
| 898 |
|
| 899 |
#. type: Plain text |
| 900 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 901 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 902 |
msgid "" |
| 903 |
"A 64-bit integer containing the current tgid and pid, and created as such: " |
| 904 |
"I<current_task>B<-E<gt>tgid E<lt>E<lt> 32 |> I<current_task>B<-E<gt>pid>\\&." |
| 905 |
msgstr "" |
| 906 |
"64-битное целое, содержащее текущий tgid и pid, создаваемое как: " |
| 907 |
"I<current_task>B<-E<gt>tgid E<lt>E<lt> 32 |> I<current_task>B<-E<gt>pid>\\&." |
| 908 |
|
| 909 |
#. type: TP |
| 910 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 911 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 912 |
#, no-wrap |
| 913 |
msgid "B<u64 bpf_get_current_uid_gid(void)>" |
| 914 |
msgstr "B<u64 bpf_get_current_uid_gid(void)>" |
| 915 |
|
| 916 |
#. type: Plain text |
| 917 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 918 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 919 |
msgid "Get the current uid and gid." |
| 920 |
msgstr "" |
| 921 |
|
| 922 |
#. type: Plain text |
| 923 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 924 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 925 |
msgid "" |
| 926 |
"A 64-bit integer containing the current GID and UID, and created as such: " |
| 927 |
"I<current_gid> B<E<lt>E<lt> 32 |> I<current_uid>\\&." |
| 928 |
msgstr "" |
| 929 |
"4-битное целое, содержащее текущий GID и UID, создаваемое как: " |
| 930 |
"I<current_gid> B<E<lt>E<lt> 32 |> I<current_uid>\\&." |
| 931 |
|
| 932 |
#. type: TP |
| 933 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 934 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 935 |
#, fuzzy, no-wrap |
| 936 |
#| msgid "B<int bpf_get_current_comm(char *>I<buf>B<, u32 >I<size_of_buf>B<)>" |
| 937 |
msgid "B<long bpf_get_current_comm(void *>I<buf>B<, u32 >I<size_of_buf>B<)>" |
| 938 |
msgstr "B<int bpf_get_current_comm(char *>I<buf>B<, u32 >I<size_of_buf>B<)>" |
| 939 |
|
| 940 |
#. type: Plain text |
| 941 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 942 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 943 |
msgid "" |
| 944 |
"Copy the B<comm> attribute of the current task into I<buf> of " |
| 945 |
"I<size_of_buf>\\&. The B<comm> attribute contains the name of the executable " |
| 946 |
"(excluding the path) for the current task. The I<size_of_buf> must be " |
| 947 |
"strictly positive. On success, the helper makes sure that the I<buf> is NUL-" |
| 948 |
"terminated. On failure, it is filled with zeroes." |
| 949 |
msgstr "" |
| 950 |
"Копирует атрибут B<comm> текущей задачи в I<buf> размером I<size_of_buf>\\&. " |
| 951 |
"Атрибут B<comm> содержит имя исполняемого файла (без пути) текущей задачи. " |
| 952 |
"Значение I<size_of_buf> должно быть положительным. При успешном выполнении " |
| 953 |
"помощник проверяет, что I<buf> заканчивается NUL. При ошибке заполняется " |
| 954 |
"нулями." |
| 955 |
|
| 956 |
#. type: TP |
| 957 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 958 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 959 |
#, no-wrap |
| 960 |
msgid "B<u32 bpf_get_cgroup_classid(struct sk_buff *>I<skb>B<)>" |
| 961 |
msgstr "B<u32 bpf_get_cgroup_classid(struct sk_buff *>I<skb>B<)>" |
| 962 |
|
| 963 |
#. type: Plain text |
| 964 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 965 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 966 |
msgid "" |
| 967 |
"Retrieve the classid for the current task, i.e. for the net_cls cgroup to " |
| 968 |
"which I<skb> belongs." |
| 969 |
msgstr "" |
| 970 |
"Возвращает classid текущей задачи, т. е. net_cls cgroup, которой принадлежит " |
| 971 |
"I<skb>." |
| 972 |
|
| 973 |
#. type: Plain text |
| 974 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 975 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 976 |
msgid "This helper can be used on TC egress path, but not on ingress." |
| 977 |
msgstr "" |
| 978 |
"Этот помощник можно использовать на исходящих путях TC, но не на входящих." |
| 979 |
|
| 980 |
#. type: Plain text |
| 981 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 982 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 983 |
#, fuzzy |
| 984 |
#| msgid "" |
| 985 |
#| "The net_cls cgroup provides an interface to tag network packets based on " |
| 986 |
#| "a user-provided identifier for all traffic coming from the tasks " |
| 987 |
#| "belonging to the related cgroup. See also the related kernel " |
| 988 |
#| "documentation, available from the Linux sources in file I<Documentation/" |
| 989 |
#| "cgroup-v1/net_cls.txt>\\&." |
| 990 |
msgid "" |
| 991 |
"The net_cls cgroup provides an interface to tag network packets based on a " |
| 992 |
"user-provided identifier for all traffic coming from the tasks belonging to " |
| 993 |
"the related cgroup. See also the related kernel documentation, available " |
| 994 |
"from the Linux sources in file I<Documentation/admin-guide/cgroup-v1/" |
| 995 |
"net_cls.rst>\\&." |
| 996 |
msgstr "" |
| 997 |
"net_cls cgroup предоставляет интерфейс для маркировки сетевых пакетов на " |
| 998 |
"основе пользовательского идентификатора для всего трафика, который поступает " |
| 999 |
"от задач, принадлежащих соответствующей cgroup. Смотрите также " |
| 1000 |
"соответствующую документацию ядра в файле исходного кода Linux " |
| 1001 |
"I<Documentation/cgroup-v1/net_cls.txt>\\&." |
| 1002 |
|
| 1003 |
#. type: Plain text |
| 1004 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1005 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1006 |
msgid "" |
| 1007 |
"The Linux kernel has two versions for cgroups: there are cgroups v1 and " |
| 1008 |
"cgroups v2. Both are available to users, who can use a mixture of them, but " |
| 1009 |
"note that the net_cls cgroup is for cgroup v1 only. This makes it " |
| 1010 |
"incompatible with BPF programs run on cgroups, which is a cgroup-v2-only " |
| 1011 |
"feature (a socket can only hold data for one version of cgroups at a time)." |
| 1012 |
msgstr "" |
| 1013 |
"В ядре Linux есть две версии cgroups: cgroups v1 и cgroups v2. Они обе " |
| 1014 |
"доступны пользователям, их можно использовать одновременно, но заметим, что " |
| 1015 |
"net_cls cgroup есть только для cgroup v1. Это приводит к несовместимости с " |
| 1016 |
"программами BPF, выполняющимися на cgroups, которые используют только cgroup " |
| 1017 |
"v2 (сокет может хранить данные только для одной версии cgroups одновременно)." |
| 1018 |
|
| 1019 |
#. type: Plain text |
| 1020 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1021 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1022 |
#, fuzzy |
| 1023 |
#| msgid "" |
| 1024 |
#| "This helper is only available is the kernel was compiled with the " |
| 1025 |
#| "B<CONFIG_CGROUP_NET_CLASSID> configuration option set to \"B<y>\" or to " |
| 1026 |
#| "\"B<m>\"." |
| 1027 |
msgid "" |
| 1028 |
"This helper is only available is the kernel was compiled with the " |
| 1029 |
"B<CONFIG_CGROUP_NET_CLASSID> configuration option set to \"B<y>\" or to " |
| 1030 |
"\"B<m>\"." |
| 1031 |
msgstr "" |
| 1032 |
"Этот помощник доступен только, если ядро скомпилировано с параметром " |
| 1033 |
"настройки B<CONFIG_CGROUP_NET_CLASSID> равным \"B<y>\" или \"B<m>\"." |
| 1034 |
|
| 1035 |
#. type: Plain text |
| 1036 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1037 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1038 |
msgid "The classid, or 0 for the default unconfigured classid." |
| 1039 |
msgstr "classid или 0 по умолчанию для ненастроенного classid." |
| 1040 |
|
| 1041 |
#. type: TP |
| 1042 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1043 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1044 |
#, fuzzy, no-wrap |
| 1045 |
#| msgid "B<int bpf_skb_vlan_push(struct sk_buff *>I<skb>B<, __be16 >I<vlan_proto>B<, u16 >I<vlan_tci>B<)>" |
| 1046 |
msgid "B<long bpf_skb_vlan_push(struct sk_buff *>I<skb>B<, __be16 >I<vlan_proto>B<, u16 >I<vlan_tci>B<)>" |
| 1047 |
msgstr "B<int bpf_skb_vlan_push(struct sk_buff *>I<skb>B<, __be16 >I<vlan_proto>B<, u16 >I<vlan_tci>B<)>" |
| 1048 |
|
| 1049 |
#. type: Plain text |
| 1050 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1051 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1052 |
msgid "" |
| 1053 |
"Push a I<vlan_tci> (VLAN tag control information) of protocol I<vlan_proto> " |
| 1054 |
"to the packet associated to I<skb>, then update the checksum. Note that if " |
| 1055 |
"I<vlan_proto> is different from B<ETH_P_8021Q> and B<ETH_P_8021AD>, it is " |
| 1056 |
"considered to be B<ETH_P_8021Q>\\&." |
| 1057 |
msgstr "" |
| 1058 |
"Добавляет I<vlan_tci> (тег управляющей информации VLAN) протокола " |
| 1059 |
"I<vlan_proto> в пакет, связанный с I<skb>, а затем обновить контрольную " |
| 1060 |
"сумму. Заметим, что если I<vlan_proto> отличается от B<ETH_P_8021Q> и " |
| 1061 |
"B<ETH_P_8021AD>, то будет считаться, что указан B<ETH_P_8021Q>\\&." |
| 1062 |
|
| 1063 |
#. type: TP |
| 1064 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1065 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1066 |
#, fuzzy, no-wrap |
| 1067 |
#| msgid "B<int bpf_skb_vlan_pop(struct sk_buff *>I<skb>B<)>" |
| 1068 |
msgid "B<long bpf_skb_vlan_pop(struct sk_buff *>I<skb>B<)>" |
| 1069 |
msgstr "B<int bpf_skb_vlan_pop(struct sk_buff *>I<skb>B<)>" |
| 1070 |
|
| 1071 |
#. type: Plain text |
| 1072 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1073 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1074 |
msgid "Pop a VLAN header from the packet associated to I<skb>\\&." |
| 1075 |
msgstr "Удаляет заголовок VLAN из пакета, связанного с I<skb>\\&." |
| 1076 |
|
| 1077 |
#. type: TP |
| 1078 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1079 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1080 |
#, fuzzy, no-wrap |
| 1081 |
#| msgid "B<int bpf_skb_get_tunnel_key(struct sk_buff *>I<skb>B<, struct bpf_tunnel_key *>I<key>B<, u32 >I<size>B<, u64 >I<flags>B<)>" |
| 1082 |
msgid "B<long bpf_skb_get_tunnel_key(struct sk_buff *>I<skb>B<, struct bpf_tunnel_key *>I<key>B<, u32 >I<size>B<, u64 >I<flags>B<)>" |
| 1083 |
msgstr "B<int bpf_skb_get_tunnel_key(struct sk_buff *>I<skb>B<, struct bpf_tunnel_key *>I<key>B<, u32 >I<size>B<, u64 >I<flags>B<)>" |
| 1084 |
|
| 1085 |
#. type: Plain text |
| 1086 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1087 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1088 |
msgid "" |
| 1089 |
"Get tunnel metadata. This helper takes a pointer I<key> to an empty B<struct " |
| 1090 |
"bpf_tunnel_key> of B<size>, that will be filled with tunnel metadata for the " |
| 1091 |
"packet associated to I<skb>\\&. The I<flags> can be set to " |
| 1092 |
"B<BPF_F_TUNINFO_IPV6>, which indicates that the tunnel is based on IPv6 " |
| 1093 |
"protocol instead of IPv4." |
| 1094 |
msgstr "" |
| 1095 |
"Возвращает метаданные туннеля. Этому помощнику передаётся указатель I<key> " |
| 1096 |
"на пустую B<struct bpf_tunnel_key> размером B<size>, которая будет заполнена " |
| 1097 |
"метаданными туннеля для пакета, связанного с I<skb>\\&. В I<flags> можно " |
| 1098 |
"указать значение B<BPF_F_TUNINFO_IPV6>, которое показывает, что туннель " |
| 1099 |
"основан на протоколе IPv6, а не на IPv4." |
| 1100 |
|
| 1101 |
#. type: Plain text |
| 1102 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1103 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1104 |
#, fuzzy |
| 1105 |
#| msgid "" |
| 1106 |
#| "The B<struct bpf_tunnel_key> is an object that generalizes the principal " |
| 1107 |
#| "parameters used by various tunneling protocols into a single struct. This " |
| 1108 |
#| "way, it can be used to easily make a decision based on the contents of " |
| 1109 |
#| "the encapsulation header, \"summarized\" in this struct. In particular, " |
| 1110 |
#| "it holds the IP address of the remote end (IPv4 or IPv6, depending on the " |
| 1111 |
#| "case) in I<key>B<-E<gt>remote_ipv4> or I<key>B<-E<gt>remote_ipv6>\\&. " |
| 1112 |
#| "Also, this struct exposes the I<key>B<-E<gt>tunnel_id>, which is " |
| 1113 |
#| "generally mapped to a VNI (Virtual Network Identifier), making it " |
| 1114 |
#| "programmable together with the B<bpf_skb_set_tunnel_key>() helper." |
| 1115 |
msgid "" |
| 1116 |
"The B<struct bpf_tunnel_key> is an object that generalizes the principal " |
| 1117 |
"parameters used by various tunneling protocols into a single struct. This " |
| 1118 |
"way, it can be used to easily make a decision based on the contents of the " |
| 1119 |
"encapsulation header, \"summarized\" in this struct. In particular, it holds " |
| 1120 |
"the IP address of the remote end (IPv4 or IPv6, depending on the case) in " |
| 1121 |
"I<key>B<-E<gt>remote_ipv4> or I<key>B<-E<gt>remote_ipv6>\\&. Also, this " |
| 1122 |
"struct exposes the I<key>B<-E<gt>tunnel_id>, which is generally mapped to a " |
| 1123 |
"VNI (Virtual Network Identifier), making it programmable together with the " |
| 1124 |
"B<bpf_skb_set_tunnel_key>() helper." |
| 1125 |
msgstr "" |
| 1126 |
"Объект B<struct bpf_tunnel_key> сводит основные параметры, используемые " |
| 1127 |
"различными туннельными протоколами, в одну структуру. Он позволяет легко " |
| 1128 |
"принимать решение на основе содержимого инкапсулированного заголовка, " |
| 1129 |
"«обобщённого» в этой структуре. В частности, он содержит IP-адрес ответной " |
| 1130 |
"стороны (IPv4 или IPv6) в I<key>B<-E<gt>remote_ipv4> или I<key>B<-" |
| 1131 |
"E<gt>remote_ipv6>\\&. Также, эта структура предоставляет I<key>B<-" |
| 1132 |
"E<gt>tunnel_id>, обычно отображаемый в VNI (идентификатор виртуальной сети, " |
| 1133 |
"Virtual Network Identifier), который можно использовать программировании с " |
| 1134 |
"помощью помощника B<bpf_skb_set_tunnel_key>()." |
| 1135 |
|
| 1136 |
#. type: Plain text |
| 1137 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1138 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1139 |
#, fuzzy |
| 1140 |
#| msgid "" |
| 1141 |
#| "Let\\(aqs imagine that the following code is part of a program attached " |
| 1142 |
#| "to the TC ingress interface, on one end of a GRE tunnel, and is supposed " |
| 1143 |
#| "to filter out all messages coming from remote ends with IPv4 address " |
| 1144 |
#| "other than 10.0.0.1:" |
| 1145 |
msgid "" |
| 1146 |
"Let\\(aqs imagine that the following code is part of a program attached to " |
| 1147 |
"the TC ingress interface, on one end of a GRE tunnel, and is supposed to " |
| 1148 |
"filter out all messages coming from remote ends with IPv4 address other than " |
| 1149 |
"10.0.0.1:" |
| 1150 |
msgstr "" |
| 1151 |
"Представим, что следующий код — часть программы, присоединённой к входящему " |
| 1152 |
"интерфейсу TC, туннель GRE и что нужно фильтровать все сообщения, приходящие " |
| 1153 |
"с ответной стороны, у которых адрес IPv4 не равен 10.0.0.1:" |
| 1154 |
|
| 1155 |
#. type: Plain text |
| 1156 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1157 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1158 |
#, fuzzy, no-wrap |
| 1159 |
#| msgid "" |
| 1160 |
#| "int ret;\n" |
| 1161 |
#| "struct bpf_tunnel_key key = {};\n" |
| 1162 |
msgid "" |
| 1163 |
"int ret;\n" |
| 1164 |
"struct bpf_tunnel_key key = {};\n" |
| 1165 |
msgstr "" |
| 1166 |
"int ret;\n" |
| 1167 |
"struct bpf_tunnel_key key = {};\n" |
| 1168 |
|
| 1169 |
#. type: Plain text |
| 1170 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1171 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1172 |
#, no-wrap |
| 1173 |
msgid "" |
| 1174 |
"ret = bpf_skb_get_tunnel_key(skb, &key, sizeof(key), 0);\n" |
| 1175 |
"if (ret E<lt> 0)\n" |
| 1176 |
" return TC_ACT_SHOT; // drop packet\n" |
| 1177 |
msgstr "" |
| 1178 |
"ret = bpf_skb_get_tunnel_key(skb, &key, sizeof(key), 0);\n" |
| 1179 |
"if (ret E<lt> 0)\n" |
| 1180 |
" return TC_ACT_SHOT; // отбрасываем пакет\n" |
| 1181 |
|
| 1182 |
#. type: Plain text |
| 1183 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1184 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1185 |
#, no-wrap |
| 1186 |
msgid "" |
| 1187 |
"if (key.remote_ipv4 != 0x0a000001)\n" |
| 1188 |
" return TC_ACT_SHOT; // drop packet\n" |
| 1189 |
msgstr "" |
| 1190 |
"if (key.remote_ipv4 != 0x0a000001)\n" |
| 1191 |
" return TC_ACT_SHOT; // отбрасываем пакет\n" |
| 1192 |
|
| 1193 |
#. type: Plain text |
| 1194 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1195 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1196 |
#, fuzzy, no-wrap |
| 1197 |
#| msgid "return TC_ACT_OK; // accept packet\n" |
| 1198 |
msgid "return TC_ACT_OK; // accept packet\n" |
| 1199 |
msgstr "return TC_ACT_OK; // пропускаем пакет\n" |
| 1200 |
|
| 1201 |
#. type: Plain text |
| 1202 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1203 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1204 |
#, fuzzy |
| 1205 |
#| msgid "" |
| 1206 |
#| "This interface can also be used with all encapsulation devices that can " |
| 1207 |
#| "operate in \"collect metadata\" mode: instead of having one network " |
| 1208 |
#| "device per specific configuration, the \"collect metadata\" mode only " |
| 1209 |
#| "requires a single device where the configuration can be extracted from " |
| 1210 |
#| "this helper." |
| 1211 |
msgid "" |
| 1212 |
"This interface can also be used with all encapsulation devices that can " |
| 1213 |
"operate in \"collect metadata\" mode: instead of having one network device " |
| 1214 |
"per specific configuration, the \"collect metadata\" mode only requires a " |
| 1215 |
"single device where the configuration can be extracted from this helper." |
| 1216 |
msgstr "" |
| 1217 |
"Также этот интерфейс можно использовать для всех устройств инкапсуляции, " |
| 1218 |
"которые могут работать в режиме «сбора метаданных»: вместо одного сетевого " |
| 1219 |
"устройства для каждой специфической конфигурации, в режиме «сбора " |
| 1220 |
"метаданных» требуется только одно устройство, конфигурацию которого можно " |
| 1221 |
"извлечь из этого заголовка." |
| 1222 |
|
| 1223 |
#. type: Plain text |
| 1224 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1225 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1226 |
msgid "" |
| 1227 |
"This can be used together with various tunnels such as VXLan, Geneve, GRE or " |
| 1228 |
"IP in IP (IPIP)." |
| 1229 |
msgstr "" |
| 1230 |
"Его можно использовать вместе с различными туннелями, такими как VXLan, " |
| 1231 |
"Geneve, GRE или IP в IP (IPIP)." |
| 1232 |
|
| 1233 |
#. type: TP |
| 1234 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1235 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1236 |
#, fuzzy, no-wrap |
| 1237 |
#| msgid "B<int bpf_skb_set_tunnel_key(struct sk_buff *>I<skb>B<, struct bpf_tunnel_key *>I<key>B<, u32 >I<size>B<, u64 >I<flags>B<)>" |
| 1238 |
msgid "B<long bpf_skb_set_tunnel_key(struct sk_buff *>I<skb>B<, struct bpf_tunnel_key *>I<key>B<, u32 >I<size>B<, u64 >I<flags>B<)>" |
| 1239 |
msgstr "B<int bpf_skb_set_tunnel_key(struct sk_buff *>I<skb>B<, struct bpf_tunnel_key *>I<key>B<, u32 >I<size>B<, u64 >I<flags>B<)>" |
| 1240 |
|
| 1241 |
#. type: Plain text |
| 1242 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1243 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1244 |
msgid "" |
| 1245 |
"Populate tunnel metadata for packet associated to I<skb.> The tunnel " |
| 1246 |
"metadata is set to the contents of I<key>, of I<size>\\&. The I<flags> can " |
| 1247 |
"be set to a combination of the following values:" |
| 1248 |
msgstr "" |
| 1249 |
"Заполняет метаданные туннеля в пакете, связанном с I<skb>. Метаданные " |
| 1250 |
"туннеля представляют собой набор значений I<key> и I<size>\\&. В I<flags> " |
| 1251 |
"можно указать комбинацию следующих значений:" |
| 1252 |
|
| 1253 |
#. type: TP |
| 1254 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1255 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1256 |
#, no-wrap |
| 1257 |
msgid "B<BPF_F_TUNINFO_IPV6>" |
| 1258 |
msgstr "B<BPF_F_TUNINFO_IPV6>" |
| 1259 |
|
| 1260 |
#. type: Plain text |
| 1261 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1262 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1263 |
msgid "Indicate that the tunnel is based on IPv6 protocol instead of IPv4." |
| 1264 |
msgstr "Задаёт, что туннель основан на протоколе IPv6, а не IPv4." |
| 1265 |
|
| 1266 |
#. type: TP |
| 1267 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1268 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1269 |
#, no-wrap |
| 1270 |
msgid "B<BPF_F_ZERO_CSUM_TX>" |
| 1271 |
msgstr "B<BPF_F_ZERO_CSUM_TX>" |
| 1272 |
|
| 1273 |
#. type: Plain text |
| 1274 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1275 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1276 |
msgid "" |
| 1277 |
"For IPv4 packets, add a flag to tunnel metadata indicating that checksum " |
| 1278 |
"computation should be skipped and checksum set to zeroes." |
| 1279 |
msgstr "" |
| 1280 |
"Для пакетов IPv4 добавление этого флага в метаданные туннеля указывает, что " |
| 1281 |
"не нужно вычислять контрольную сумму и присвоить ей значение ноль." |
| 1282 |
|
| 1283 |
#. type: TP |
| 1284 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1285 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1286 |
#, no-wrap |
| 1287 |
msgid "B<BPF_F_DONT_FRAGMENT>" |
| 1288 |
msgstr "B<BPF_F_DONT_FRAGMENT>" |
| 1289 |
|
| 1290 |
#. type: Plain text |
| 1291 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1292 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1293 |
msgid "" |
| 1294 |
"Add a flag to tunnel metadata indicating that the packet should not be " |
| 1295 |
"fragmented." |
| 1296 |
msgstr "" |
| 1297 |
"Добавление этого флага в метаданные туннеля указывает, что пакет не должен " |
| 1298 |
"фрагментироваться." |
| 1299 |
|
| 1300 |
#. type: TP |
| 1301 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1302 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1303 |
#, no-wrap |
| 1304 |
msgid "B<BPF_F_SEQ_NUMBER>" |
| 1305 |
msgstr "B<BPF_F_SEQ_NUMBER>" |
| 1306 |
|
| 1307 |
#. type: Plain text |
| 1308 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1309 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1310 |
msgid "" |
| 1311 |
"Add a flag to tunnel metadata indicating that a sequence number should be " |
| 1312 |
"added to tunnel header before sending the packet. This flag was added for " |
| 1313 |
"GRE encapsulation, but might be used with other protocols as well in the " |
| 1314 |
"future." |
| 1315 |
msgstr "" |
| 1316 |
"Добавление этого флага в метаданные туннеля указывает, что перед отправкой " |
| 1317 |
"пакета в туннельный заголовок нужно добавить порядковый номер. Этот флаг был " |
| 1318 |
"добавлен для протокола GRE, но в будущем может использоваться и для других." |
| 1319 |
|
| 1320 |
#. type: TP |
| 1321 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1322 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1323 |
#, fuzzy, no-wrap |
| 1324 |
#| msgid "B<BPF_F_TUNINFO_IPV6>" |
| 1325 |
msgid "B<BPF_F_NO_TUNNEL_KEY>" |
| 1326 |
msgstr "B<BPF_F_TUNINFO_IPV6>" |
| 1327 |
|
| 1328 |
#. type: Plain text |
| 1329 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1330 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1331 |
#, fuzzy |
| 1332 |
#| msgid "" |
| 1333 |
#| "Add a flag to tunnel metadata indicating that the packet should not be " |
| 1334 |
#| "fragmented." |
| 1335 |
msgid "" |
| 1336 |
"Add a flag to tunnel metadata indicating that no tunnel key should be set in " |
| 1337 |
"the resulting tunnel header." |
| 1338 |
msgstr "" |
| 1339 |
"Добавление этого флага в метаданные туннеля указывает, что пакет не должен " |
| 1340 |
"фрагментироваться." |
| 1341 |
|
| 1342 |
#. type: Plain text |
| 1343 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1344 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1345 |
msgid "Here is a typical usage on the transmit path:" |
| 1346 |
msgstr "Обычное использование в пути передачи:" |
| 1347 |
|
| 1348 |
#. type: Plain text |
| 1349 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1350 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1351 |
#, fuzzy, no-wrap |
| 1352 |
#| msgid "" |
| 1353 |
#| "struct bpf_tunnel_key key;\n" |
| 1354 |
#| " populate key ...\n" |
| 1355 |
#| "bpf_skb_set_tunnel_key(skb, &key, sizeof(key), 0);\n" |
| 1356 |
#| "bpf_clone_redirect(skb, vxlan_dev_ifindex, 0);\n" |
| 1357 |
msgid "" |
| 1358 |
"struct bpf_tunnel_key key;\n" |
| 1359 |
" populate key ...\n" |
| 1360 |
"bpf_skb_set_tunnel_key(skb, &key, sizeof(key), 0);\n" |
| 1361 |
"bpf_clone_redirect(skb, vxlan_dev_ifindex, 0);\n" |
| 1362 |
msgstr "" |
| 1363 |
"struct bpf_tunnel_key key;\n" |
| 1364 |
" заполняем ключ …\n" |
| 1365 |
"bpf_skb_set_tunnel_key(skb, &key, sizeof(key), 0);\n" |
| 1366 |
"bpf_clone_redirect(skb, vxlan_dev_ifindex, 0);\n" |
| 1367 |
|
| 1368 |
#. type: Plain text |
| 1369 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1370 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1371 |
msgid "" |
| 1372 |
"See also the description of the B<bpf_skb_get_tunnel_key>() helper for " |
| 1373 |
"additional information." |
| 1374 |
msgstr "Также смотрите описание помощника B<bpf_skb_get_tunnel_key>()." |
| 1375 |
|
| 1376 |
#. type: TP |
| 1377 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1378 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1379 |
#, no-wrap |
| 1380 |
msgid "B<u64 bpf_perf_event_read(struct bpf_map *>I<map>B<, u64 >I<flags>B<)>" |
| 1381 |
msgstr "B<u64 bpf_perf_event_read(struct bpf_map *>I<map>B<, u64 >I<flags>B<)>" |
| 1382 |
|
| 1383 |
#. type: Plain text |
| 1384 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1385 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1386 |
msgid "" |
| 1387 |
"Read the value of a perf event counter. This helper relies on a I<map> of " |
| 1388 |
"type B<BPF_MAP_TYPE_PERF_EVENT_ARRAY>\\&. The nature of the perf event " |
| 1389 |
"counter is selected when I<map> is updated with perf event file descriptors. " |
| 1390 |
"The I<map> is an array whose size is the number of available CPUs, and each " |
| 1391 |
"cell contains a value relative to one CPU. The value to retrieve is " |
| 1392 |
"indicated by I<flags>, that contains the index of the CPU to look up, masked " |
| 1393 |
"with B<BPF_F_INDEX_MASK>\\&. Alternatively, I<flags> can be set to " |
| 1394 |
"B<BPF_F_CURRENT_CPU> to indicate that the value for the current CPU should " |
| 1395 |
"be retrieved." |
| 1396 |
msgstr "" |
| 1397 |
"Читает значение счётчика событий perf. Этот помощник использует I<map> с " |
| 1398 |
"типом B<BPF_MAP_TYPE_PERF_EVENT_ARRAY>\\&. Источник счётчика событий perf " |
| 1399 |
"выбирается при обновлении I<map> через файловые дескрипторы событий perf. " |
| 1400 |
"Значение I<map> представляет собой массив, размер которого равен количеству " |
| 1401 |
"доступных ЦП, а каждая ячейка содержит значение для соответствующего ЦП. " |
| 1402 |
"Получаемое значение задаётся в I<flags>, которое содержит индекс искомого ЦП " |
| 1403 |
"с наложенной маской B<BPF_F_INDEX_MASK>\\&. Или же I<flags> можно присвоить " |
| 1404 |
"B<BPF_F_CURRENT_CPU>, которое показывает, что нужно получать значение для " |
| 1405 |
"текущего ЦП." |
| 1406 |
|
| 1407 |
#. type: Plain text |
| 1408 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1409 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1410 |
msgid "Note that before Linux 4.13, only hardware perf event can be retrieved." |
| 1411 |
msgstr "" |
| 1412 |
"Заметим, что в до Linux 4.13 можно быть получать только аппаратные события " |
| 1413 |
"perf." |
| 1414 |
|
| 1415 |
#. type: Plain text |
| 1416 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1417 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1418 |
msgid "" |
| 1419 |
"Also, be aware that the newer helper B<bpf_perf_event_read_value>() is " |
| 1420 |
"recommended over B<bpf_perf_event_read>() in general. The latter has some " |
| 1421 |
"ABI quirks where error and counter value are used as a return code (which is " |
| 1422 |
"wrong to do since ranges may overlap). This issue is fixed with " |
| 1423 |
"B<bpf_perf_event_read_value>(), which at the same time provides more " |
| 1424 |
"features over the B<bpf_perf_event_read>() interface. Please refer to the " |
| 1425 |
"description of B<bpf_perf_event_read_value>() for details." |
| 1426 |
msgstr "" |
| 1427 |
"Кроме того, вместо B<bpf_perf_event_read>() рекомендуется использовать новый " |
| 1428 |
"помощник B<bpf_perf_event_read_value>(). В старом имеются некоторые " |
| 1429 |
"странности в ABI, например в качестве возвращаемого кода используется и " |
| 1430 |
"значение ошибки и счётчика (что неправильно, так как эти диапазоны могут " |
| 1431 |
"перекрываться). Эта проблема исправлена в B<bpf_perf_event_read_value>(), а " |
| 1432 |
"также представляется больше возможностей по сравнению с интерфейсом " |
| 1433 |
"B<bpf_perf_event_read>(). Дополнительную информацию смотрите в описании " |
| 1434 |
"B<bpf_perf_event_read_value>()." |
| 1435 |
|
| 1436 |
#. type: Plain text |
| 1437 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1438 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1439 |
msgid "" |
| 1440 |
"The value of the perf event counter read from the map, or a negative error " |
| 1441 |
"code in case of failure." |
| 1442 |
msgstr "" |
| 1443 |
"Значение счётчика событий perf читается из карты, или отрицательный код " |
| 1444 |
"ошибки при невозможности." |
| 1445 |
|
| 1446 |
#. type: TP |
| 1447 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1448 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1449 |
#, fuzzy, no-wrap |
| 1450 |
#| msgid "B<int bpf_redirect(u32 >I<ifindex>B<, u64 >I<flags>B<)>" |
| 1451 |
msgid "B<long bpf_redirect(u32 >I<ifindex>B<, u64 >I<flags>B<)>" |
| 1452 |
msgstr "B<int bpf_redirect(u32 >I<ifindex>B<, u64 >I<flags>B<)>" |
| 1453 |
|
| 1454 |
#. type: Plain text |
| 1455 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1456 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1457 |
msgid "" |
| 1458 |
"Redirect the packet to another net device of index I<ifindex>\\&. This " |
| 1459 |
"helper is somewhat similar to B<bpf_clone_redirect>(), except that the " |
| 1460 |
"packet is not cloned, which provides increased performance." |
| 1461 |
msgstr "" |
| 1462 |
"Перенаправляет пакет в другое сетевое устройство с индексом I<ifindex>\\&. " |
| 1463 |
"Этот помощник похож на B<bpf_clone_redirect>(), но пакет не клонируется, что " |
| 1464 |
"увеличивает производительность." |
| 1465 |
|
| 1466 |
#. type: Plain text |
| 1467 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1468 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1469 |
msgid "" |
| 1470 |
"Except for XDP, both ingress and egress interfaces can be used for " |
| 1471 |
"redirection. The B<BPF_F_INGRESS> value in I<flags> is used to make the " |
| 1472 |
"distinction (ingress path is selected if the flag is present, egress path " |
| 1473 |
"otherwise). Currently, XDP only supports redirection to the egress " |
| 1474 |
"interface, and accepts no flag at all." |
| 1475 |
msgstr "" |
| 1476 |
"Не считая XDP, для перенаправления можно использовать и входящий и исходящий " |
| 1477 |
"интерфейсы. Значение B<BPF_F_INGRESS> в I<flags> используется для " |
| 1478 |
"направления (если флаг установлен, то выбирается входящий путь, в противном " |
| 1479 |
"случае исходящий). В настоящее время, для XDP поддерживается перенаправление " |
| 1480 |
"только в исходящий интерфейс, и флаг вообще не учитывается." |
| 1481 |
|
| 1482 |
#. type: Plain text |
| 1483 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1484 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1485 |
#, fuzzy |
| 1486 |
#| msgid "" |
| 1487 |
#| "The same effect can be attained with the more generic " |
| 1488 |
#| "B<bpf_redirect_map>(), which requires specific maps to be used but offers " |
| 1489 |
#| "better performance." |
| 1490 |
msgid "" |
| 1491 |
"The same effect can also be attained with the more generic " |
| 1492 |
"B<bpf_redirect_map>(), which uses a BPF map to store the redirect target " |
| 1493 |
"instead of providing it directly to the helper." |
| 1494 |
msgstr "" |
| 1495 |
"Это действие можно выполнить с помощью большее общего B<bpf_redirect_map>(), " |
| 1496 |
"для которого требуются специальные карты, но достигается лучшая " |
| 1497 |
"производительность." |
| 1498 |
|
| 1499 |
#. type: Plain text |
| 1500 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1501 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1502 |
msgid "" |
| 1503 |
"For XDP, the helper returns B<XDP_REDIRECT> on success or B<XDP_ABORTED> on " |
| 1504 |
"error. For other program types, the values are B<TC_ACT_REDIRECT> on success " |
| 1505 |
"or B<TC_ACT_SHOT> on error." |
| 1506 |
msgstr "" |
| 1507 |
"Для XDP при успешном выполнении помощник возвращает B<XDP_REDIRECT> и " |
| 1508 |
"B<XDP_ABORTED> при ошибке. Для других типов программ при успешном выполнении " |
| 1509 |
"возвращается B<TC_ACT_REDIRECT> и B<TC_ACT_SHOT> при ошибке." |
| 1510 |
|
| 1511 |
#. type: TP |
| 1512 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1513 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1514 |
#, no-wrap |
| 1515 |
msgid "B<u32 bpf_get_route_realm(struct sk_buff *>I<skb>B<)>" |
| 1516 |
msgstr "B<u32 bpf_get_route_realm(struct sk_buff *>I<skb>B<)>" |
| 1517 |
|
| 1518 |
#. type: Plain text |
| 1519 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1520 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1521 |
#, fuzzy |
| 1522 |
#| msgid "" |
| 1523 |
#| "Retrieve the realm or the route, that is to say the B<tclassid> field of " |
| 1524 |
#| "the destination for the I<skb>\\&. The indentifier retrieved is a user-" |
| 1525 |
#| "provided tag, similar to the one used with the net_cls cgroup (see " |
| 1526 |
#| "description for B<bpf_get_cgroup_classid>() helper), but here this tag is " |
| 1527 |
#| "held by a route (a destination entry), not by a task." |
| 1528 |
msgid "" |
| 1529 |
"Retrieve the realm or the route, that is to say the B<tclassid> field of the " |
| 1530 |
"destination for the I<skb>\\&. The identifier retrieved is a user-provided " |
| 1531 |
"tag, similar to the one used with the net_cls cgroup (see description for " |
| 1532 |
"B<bpf_get_cgroup_classid>() helper), but here this tag is held by a route (a " |
| 1533 |
"destination entry), not by a task." |
| 1534 |
msgstr "" |
| 1535 |
"Находит область (realm) или маршрут, то есть поле B<tclassid> назначения для " |
| 1536 |
"I<skb>\\&. Найденный идентификатор представляет собой пользовательскую " |
| 1537 |
"метку, похожую на используемые в net_cls cgroup (смотрите описание помощника " |
| 1538 |
"B<bpf_get_cgroup_classid>()), но здесь эта метка хранится в маршруте " |
| 1539 |
"(элементе назначения), а не в задаче." |
| 1540 |
|
| 1541 |
#. type: Plain text |
| 1542 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1543 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1544 |
msgid "" |
| 1545 |
"Retrieving this identifier works with the clsact TC egress hook (see also " |
| 1546 |
"B<tc-bpf(8)>), or alternatively on conventional classful egress qdiscs, but " |
| 1547 |
"not on TC ingress path. In case of clsact TC egress hook, this has the " |
| 1548 |
"advantage that, internally, the destination entry has not been dropped yet " |
| 1549 |
"in the transmit path. Therefore, the destination entry does not need to be " |
| 1550 |
"artificially held via B<netif_keep_dst>() for a classful qdisc until the " |
| 1551 |
"I<skb> is freed." |
| 1552 |
msgstr "" |
| 1553 |
"Поиск этого идентификатора работает с исходящим перехватчиком (hook) clsact " |
| 1554 |
"TC (смотрите также B<tc-bpf(8)>) или общеупотребительными классовыми " |
| 1555 |
"исходящими qdisc, но не на входящих путях TC. В случае с исходящим " |
| 1556 |
"перехватчиком clsact TC имеется преимущество, так как внутри элемент " |
| 1557 |
"назначения ещё не был отброшен в пути передачи. Поэтому не нужно " |
| 1558 |
"искусственно хранить элемент назначения через B<netif_keep_dst>(), как в " |
| 1559 |
"classful qdisc, до тех пор, пока не освобождён I<skb>." |
| 1560 |
|
| 1561 |
#. type: Plain text |
| 1562 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1563 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1564 |
msgid "" |
| 1565 |
"This helper is available only if the kernel was compiled with " |
| 1566 |
"B<CONFIG_IP_ROUTE_CLASSID> configuration option." |
| 1567 |
msgstr "" |
| 1568 |
"Этот помощник доступен только, если ядро скомпилировано с параметром " |
| 1569 |
"настройки B<CONFIG_IP_ROUTE_CLASSID>." |
| 1570 |
|
| 1571 |
#. type: Plain text |
| 1572 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1573 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1574 |
msgid "" |
| 1575 |
"The realm of the route for the packet associated to I<skb>, or 0 if none was " |
| 1576 |
"found." |
| 1577 |
msgstr "" |
| 1578 |
"Область маршрута для пакета, связанного с I<skb> или 0, если не найдена." |
| 1579 |
|
| 1580 |
#. type: TP |
| 1581 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1582 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1583 |
#, fuzzy, no-wrap |
| 1584 |
#| msgid "B<int bpf_perf_event_output(struct pt_reg *>I<ctx>B<, struct bpf_map *>I<map>B<, u64 >I<flags>B<, void *>I<data>B<, u64 >I<size>B<)>" |
| 1585 |
msgid "B<long bpf_perf_event_output(void *>I<ctx>B<, struct bpf_map *>I<map>B<, u64 >I<flags>B<, void *>I<data>B<, u64 >I<size>B<)>" |
| 1586 |
msgstr "B<int bpf_perf_event_output(struct pt_reg *>I<ctx>B<, struct bpf_map *>I<map>B<, u64 >I<flags>B<, void *>I<data>B<, u64 >I<size>B<)>" |
| 1587 |
|
| 1588 |
#. type: Plain text |
| 1589 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1590 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1591 |
msgid "" |
| 1592 |
"Write raw I<data> blob into a special BPF perf event held by I<map> of type " |
| 1593 |
"B<BPF_MAP_TYPE_PERF_EVENT_ARRAY>\\&. This perf event must have the following " |
| 1594 |
"attributes: B<PERF_SAMPLE_RAW> as B<sample_type>, B<PERF_TYPE_SOFTWARE> as " |
| 1595 |
"B<type>, and B<PERF_COUNT_SW_BPF_OUTPUT> as B<config>\\&." |
| 1596 |
msgstr "" |
| 1597 |
"Записывает неструктурированные кусок I<data> в специальное событие BPF perf, " |
| 1598 |
"хранящееся в I<map> с типом B<BPF_MAP_TYPE_PERF_EVENT_ARRAY>\\&. Это событие " |
| 1599 |
"perf должно иметь следующие атрибуты: B<PERF_SAMPLE_RAW> для B<sample_type>, " |
| 1600 |
"B<PERF_TYPE_SOFTWARE> для B<type> и B<PERF_COUNT_SW_BPF_OUTPUT> для " |
| 1601 |
"B<config>\\&." |
| 1602 |
|
| 1603 |
#. type: Plain text |
| 1604 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1605 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1606 |
msgid "" |
| 1607 |
"The I<flags> are used to indicate the index in I<map> for which the value " |
| 1608 |
"must be put, masked with B<BPF_F_INDEX_MASK>\\&. Alternatively, I<flags> " |
| 1609 |
"can be set to B<BPF_F_CURRENT_CPU> to indicate that the index of the current " |
| 1610 |
"CPU core should be used." |
| 1611 |
msgstr "" |
| 1612 |
"Значение I<flags> используется для указания индекса в I<map>, по которому " |
| 1613 |
"должно быть записано значение с наложенной маской B<BPF_F_INDEX_MASK>\\&. " |
| 1614 |
"Или же в I<flags> можно задать B<BPF_F_CURRENT_CPU> для указания того, что " |
| 1615 |
"должен использоваться индекс текущего ядра ЦП." |
| 1616 |
|
| 1617 |
#. type: Plain text |
| 1618 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1619 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1620 |
msgid "" |
| 1621 |
"The value to write, of I<size>, is passed through eBPF stack and pointed by " |
| 1622 |
"I<data>\\&." |
| 1623 |
msgstr "" |
| 1624 |
"Записываемое значение размером I<size> передаётся через стек eBPF и на него " |
| 1625 |
"указывает I<data>\\&." |
| 1626 |
|
| 1627 |
#. type: Plain text |
| 1628 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1629 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1630 |
msgid "The context of the program I<ctx> needs also be passed to the helper." |
| 1631 |
msgstr "Помощнику также требуется передать контекст программы I<ctx>." |
| 1632 |
|
| 1633 |
#. type: Plain text |
| 1634 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 1635 |
#, fuzzy |
| 1636 |
#| msgid "" |
| 1637 |
#| "On user space, a program willing to read the values needs to call " |
| 1638 |
#| "B<perf_event_open>() on the perf event (either for one or for all CPUs) " |
| 1639 |
#| "and to store the file descriptor into the I<map>\\&. This must be done " |
| 1640 |
#| "before the eBPF program can send data into it. An example is available in " |
| 1641 |
#| "file I<samples/bpf/trace_output_user.c> in the Linux kernel source tree " |
| 1642 |
#| "(the eBPF program counterpart is in I<samples/bpf/trace_output_kern.c>)." |
| 1643 |
msgid "" |
| 1644 |
"On user space, a program willing to read the values needs to call " |
| 1645 |
"B<perf_event_open>() on the perf event (either for one or for all CPUs) and " |
| 1646 |
"to store the file descriptor into the I<map>\\&. This must be done before " |
| 1647 |
"the eBPF program can send data into it. An example is available in file " |
| 1648 |
"I<samples/bpf/trace_output_user.c> in the Linux kernel source tree (the eBPF " |
| 1649 |
"program counterpart is in I<samples/bpf/trace_output.bpf.c>)." |
| 1650 |
msgstr "" |
| 1651 |
"В пользовательском пространстве программе, которая будет читать значения, " |
| 1652 |
"нужно вызвать B<perf_event_open>() при событии perf (или для одного или для " |
| 1653 |
"всех ЦП) и сохранить файловый дескриптор в I<map>\\&. Это нужно сделать до " |
| 1654 |
"того как программа eBPF может послать в него данные. Пример показан в файле " |
| 1655 |
"I<samples/bpf/trace_output_user.c> из дерева исходного кода ядра Linux " |
| 1656 |
"(программа eBPF приведена в файле I<samples/bpf/trace_output_kern.c>)." |
| 1657 |
|
| 1658 |
#. type: Plain text |
| 1659 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1660 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1661 |
msgid "" |
| 1662 |
"B<bpf_perf_event_output>() achieves better performance than " |
| 1663 |
"B<bpf_trace_printk>() for sharing data with user space, and is much better " |
| 1664 |
"suitable for streaming data from eBPF programs." |
| 1665 |
msgstr "" |
| 1666 |
"У B<bpf_perf_event_output>() большая производительность чем у " |
| 1667 |
"B<bpf_trace_printk>() для обмена данными с пользовательским пространством и " |
| 1668 |
"он больше подходит для передачи потока данных из программ eBPF." |
| 1669 |
|
| 1670 |
#. type: Plain text |
| 1671 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1672 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1673 |
msgid "" |
| 1674 |
"Note that this helper is not restricted to tracing use cases and can be used " |
| 1675 |
"with programs attached to TC or XDP as well, where it allows for passing " |
| 1676 |
"data to user space listeners. Data can be:" |
| 1677 |
msgstr "" |
| 1678 |
"Заметим, что этот помощник не ограничен в применении только трассировкой и " |
| 1679 |
"может использоваться также с программами, подключаемыми к TC или XDP, где " |
| 1680 |
"позволяет передавать данные слушателям в пользовательском пространстве. " |
| 1681 |
"Данными могут быть:" |
| 1682 |
|
| 1683 |
#. type: Plain text |
| 1684 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1685 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1686 |
msgid "Only custom structs," |
| 1687 |
msgstr "Только выборочные структуры," |
| 1688 |
|
| 1689 |
#. type: Plain text |
| 1690 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1691 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1692 |
msgid "Only the packet payload, or" |
| 1693 |
msgstr "Только пакетная полезная нагрузка или" |
| 1694 |
|
| 1695 |
#. type: Plain text |
| 1696 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1697 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1698 |
msgid "A combination of both." |
| 1699 |
msgstr "оба сразу." |
| 1700 |
|
| 1701 |
#. type: TP |
| 1702 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1703 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1704 |
#, fuzzy, no-wrap |
| 1705 |
#| msgid "B<int bpf_skb_load_bytes(const struct sk_buff *>I<skb>B<, u32 >I<offset>B<, void *>I<to>B<, u32 >I<len>B<)>" |
| 1706 |
msgid "B<long bpf_skb_load_bytes(const void *>I<skb>B<, u32 >I<offset>B<, void *>I<to>B<, u32 >I<len>B<)>" |
| 1707 |
msgstr "B<int bpf_skb_load_bytes(const struct sk_buff *>I<skb>B<, u32 >I<offset>B<, void *>I<to>B<, u32 >I<len>B<)>" |
| 1708 |
|
| 1709 |
#. type: Plain text |
| 1710 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1711 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1712 |
msgid "" |
| 1713 |
"This helper was provided as an easy way to load data from a packet. It can " |
| 1714 |
"be used to load I<len> bytes from I<offset> from the packet associated to " |
| 1715 |
"I<skb>, into the buffer pointed by I<to>\\&." |
| 1716 |
msgstr "" |
| 1717 |
"Предназначен для облегчения загрузки данных из пакета. Он загружает I<len> " |
| 1718 |
"байт с адреса I<offset> из пакета, связанного с I<skb>, в буфер, на который " |
| 1719 |
"указывает I<to>\\&." |
| 1720 |
|
| 1721 |
#. type: Plain text |
| 1722 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1723 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1724 |
#, fuzzy |
| 1725 |
#| msgid "" |
| 1726 |
#| "Since Linux 4.7, usage of this helper has mostly been replaced by " |
| 1727 |
#| "\"direct packet access\", enabling packet data to be manipulated with " |
| 1728 |
#| "I<skb>B<-E<gt>data> and I<skb>B<-E<gt>data_end> pointing respectively to " |
| 1729 |
#| "the first byte of packet data and to the byte after the last byte of " |
| 1730 |
#| "packet data. However, it remains useful if one wishes to read large " |
| 1731 |
#| "quantities of data at once from a packet into the eBPF stack." |
| 1732 |
msgid "" |
| 1733 |
"Since Linux 4.7, usage of this helper has mostly been replaced by \"direct " |
| 1734 |
"packet access\", enabling packet data to be manipulated with I<skb>B<-" |
| 1735 |
"E<gt>data> and I<skb>B<-E<gt>data_end> pointing respectively to the first " |
| 1736 |
"byte of packet data and to the byte after the last byte of packet data. " |
| 1737 |
"However, it remains useful if one wishes to read large quantities of data at " |
| 1738 |
"once from a packet into the eBPF stack." |
| 1739 |
msgstr "" |
| 1740 |
"Начиная с Linux 4.7, использование этого помощника, большей частью заменено " |
| 1741 |
"«прямым доступом к пакету», который позволяет управлять данными пакета через " |
| 1742 |
"I<skb>B<-E<gt>data> и I<skb>B<-E<gt>data_end>, указывающими на первый байт " |
| 1743 |
"данных пакета и байт, находящийся после последнего байта пакета данных, " |
| 1744 |
"соответственно. Однако, помощник всё ещё полезен, если нужно прочитать " |
| 1745 |
"большое количество данных за раз из пакета в стек eBPF." |
| 1746 |
|
| 1747 |
#. type: TP |
| 1748 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1749 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1750 |
#, fuzzy, no-wrap |
| 1751 |
#| msgid "B<int bpf_get_stackid(struct pt_reg *>I<ctx>B<, struct bpf_map *>I<map>B<, u64 >I<flags>B<)>" |
| 1752 |
msgid "B<long bpf_get_stackid(void *>I<ctx>B<, struct bpf_map *>I<map>B<, u64 >I<flags>B<)>" |
| 1753 |
msgstr "B<int bpf_get_stackid(struct pt_reg *>I<ctx>B<, struct bpf_map *>I<map>B<, u64 >I<flags>B<)>" |
| 1754 |
|
| 1755 |
#. type: Plain text |
| 1756 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1757 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1758 |
msgid "" |
| 1759 |
"Walk a user or a kernel stack and return its id. To achieve this, the helper " |
| 1760 |
"needs I<ctx>, which is a pointer to the context on which the tracing program " |
| 1761 |
"is executed, and a pointer to a I<map> of type " |
| 1762 |
"B<BPF_MAP_TYPE_STACK_TRACE>\\&." |
| 1763 |
msgstr "" |
| 1764 |
"Проходит по пользовательскому стеку или стеку ядра и возвращает его id. Для " |
| 1765 |
"этого помощнику нужен I<ctx> — указатель на контекст, в котором выполняется " |
| 1766 |
"трассирующая программа, и указатель на I<map> с типом " |
| 1767 |
"B<BPF_MAP_TYPE_STACK_TRACE>\\&." |
| 1768 |
|
| 1769 |
#. type: Plain text |
| 1770 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1771 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1772 |
msgid "" |
| 1773 |
"The last argument, I<flags>, holds the number of stack frames to skip (from " |
| 1774 |
"0 to 255), masked with B<BPF_F_SKIP_FIELD_MASK>\\&. The next bits can be " |
| 1775 |
"used to set a combination of the following flags:" |
| 1776 |
msgstr "" |
| 1777 |
"В последнем параметре, I<flags>, хранится пропускаемое количество кадров " |
| 1778 |
"стека (от 0 до 255) с наложенной маской B<BPF_F_SKIP_FIELD_MASK>\\&. " |
| 1779 |
"Следующие биты можно использовать для задания комбинации следующих флагов:" |
| 1780 |
|
| 1781 |
#. type: TP |
| 1782 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1783 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1784 |
#, no-wrap |
| 1785 |
msgid "B<BPF_F_USER_STACK>" |
| 1786 |
msgstr "B<BPF_F_USER_STACK>" |
| 1787 |
|
| 1788 |
#. type: Plain text |
| 1789 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1790 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1791 |
msgid "Collect a user space stack instead of a kernel stack." |
| 1792 |
msgstr "Проходить по стеку пользовательского пространства, а не по стеку ядра." |
| 1793 |
|
| 1794 |
#. type: TP |
| 1795 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1796 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1797 |
#, no-wrap |
| 1798 |
msgid "B<BPF_F_FAST_STACK_CMP>" |
| 1799 |
msgstr "B<BPF_F_FAST_STACK_CMP>" |
| 1800 |
|
| 1801 |
#. type: Plain text |
| 1802 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1803 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1804 |
msgid "Compare stacks by hash only." |
| 1805 |
msgstr "Сравнивать стеки только по хешу." |
| 1806 |
|
| 1807 |
#. type: TP |
| 1808 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1809 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1810 |
#, no-wrap |
| 1811 |
msgid "B<BPF_F_REUSE_STACKID>" |
| 1812 |
msgstr "B<BPF_F_REUSE_STACKID>" |
| 1813 |
|
| 1814 |
#. type: Plain text |
| 1815 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1816 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1817 |
msgid "" |
| 1818 |
"If two different stacks hash into the same I<stackid>, discard the old one." |
| 1819 |
msgstr "" |
| 1820 |
"Если два разных хеша стеков указывают на один I<stackid>, отбросить старый." |
| 1821 |
|
| 1822 |
#. type: Plain text |
| 1823 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1824 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1825 |
msgid "" |
| 1826 |
"The stack id retrieved is a 32 bit long integer handle which can be further " |
| 1827 |
"combined with other data (including other stack ids) and used as a key into " |
| 1828 |
"maps. This can be useful for generating a variety of graphs (such as flame " |
| 1829 |
"graphs or off-cpu graphs)." |
| 1830 |
msgstr "" |
| 1831 |
"Возвращаемый id стека представляет собой 32-битное длинное целое, которое в " |
| 1832 |
"дальнейшем можно объединить с другими данными (включая id других стеков) и " |
| 1833 |
"используется как ключ к картам. Он может быть полезен для генерации " |
| 1834 |
"различных графиков (например, flame или off-cpu)." |
| 1835 |
|
| 1836 |
#. type: Plain text |
| 1837 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1838 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1839 |
msgid "" |
| 1840 |
"For walking a stack, this helper is an improvement over B<bpf_probe_read>(), " |
| 1841 |
"which can be used with unrolled loops but is not efficient and consumes a " |
| 1842 |
"lot of eBPF instructions. Instead, B<bpf_get_stackid>() can collect up to " |
| 1843 |
"B<PERF_MAX_STACK_DEPTH> both kernel and user frames. Note that this limit " |
| 1844 |
"can be controlled with the B<sysctl> program, and that it should be manually " |
| 1845 |
"increased in order to profile long user stacks (such as stacks for Java " |
| 1846 |
"programs). To do so, use:" |
| 1847 |
msgstr "" |
| 1848 |
"Для прохода по стеку этот помощник производительнее B<bpf_probe_read>(), " |
| 1849 |
"который можно использовать с развёрнутыми циклами, но это не эффективно и " |
| 1850 |
"потребляет много инструкций eBPF. Напротив, B<bpf_get_stackid>() может " |
| 1851 |
"проходить до B<PERF_MAX_STACK_DEPTH> кадров ядра и пользовательского стека. " |
| 1852 |
"Заметим, что это ограничение можно изменить программой B<sysctl>, и его " |
| 1853 |
"нужно вручную увеличивать при профилировании длинных пользовательских стеков " |
| 1854 |
"(например, от программ Java). Для этого выполните:" |
| 1855 |
|
| 1856 |
#. type: Plain text |
| 1857 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1858 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1859 |
#, fuzzy, no-wrap |
| 1860 |
#| msgid "# sysctl kernel.perf_event_max_stack=E<lt>new valueE<gt>\n" |
| 1861 |
msgid "# sysctl kernel.perf_event_max_stack=E<lt>new valueE<gt>\n" |
| 1862 |
msgstr "# sysctl kernel.perf_event_max_stack=E<lt>новое значениеE<gt>\n" |
| 1863 |
|
| 1864 |
#. type: Plain text |
| 1865 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1866 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1867 |
msgid "" |
| 1868 |
"The positive or null stack id on success, or a negative error in case of " |
| 1869 |
"failure." |
| 1870 |
msgstr "" |
| 1871 |
"При успешном выполнении возвращает положительный или null id стека и " |
| 1872 |
"отрицательное значение при ошибке." |
| 1873 |
|
| 1874 |
#. type: TP |
| 1875 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1876 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1877 |
#, no-wrap |
| 1878 |
msgid "B<s64 bpf_csum_diff(__be32 *>I<from>B<, u32 >I<from_size>B<, __be32 *>I<to>B<, u32 >I<to_size>B<, __wsum >I<seed>B<)>" |
| 1879 |
msgstr "B<s64 bpf_csum_diff(__be32 *>I<from>B<, u32 >I<from_size>B<, __be32 *>I<to>B<, u32 >I<to_size>B<, __wsum >I<seed>B<)>" |
| 1880 |
|
| 1881 |
#. type: Plain text |
| 1882 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1883 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1884 |
msgid "" |
| 1885 |
"Compute a checksum difference, from the raw buffer pointed by I<from>, of " |
| 1886 |
"length I<from_size> (that must be a multiple of 4), towards the raw buffer " |
| 1887 |
"pointed by I<to>, of size I<to_size> (same remark). An optional I<seed> can " |
| 1888 |
"be added to the value (this can be cascaded, the seed may come from a " |
| 1889 |
"previous call to the helper)." |
| 1890 |
msgstr "" |
| 1891 |
"Сравнивает контрольную сумму различия неструктурированного буфера, на " |
| 1892 |
"который указывает I<from> и имеет размер I<from_size> (должен быть кратен " |
| 1893 |
"4), с неструктурированным буфером, на который указывает I<to> и имеет размер " |
| 1894 |
"I<to_size> (тоже примечание). К значению можно добавить необязательный " |
| 1895 |
"I<seed> (каскадируется, затравка может поступать из предыдущего вызова " |
| 1896 |
"помощника)." |
| 1897 |
|
| 1898 |
#. type: Plain text |
| 1899 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1900 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1901 |
msgid "This is flexible enough to be used in several ways:" |
| 1902 |
msgstr "Может использоваться несколькими способами:" |
| 1903 |
|
| 1904 |
#. type: Plain text |
| 1905 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1906 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1907 |
msgid "" |
| 1908 |
"With I<from_size> == 0, I<to_size> E<gt> 0 and I<seed> set to checksum, it " |
| 1909 |
"can be used when pushing new data." |
| 1910 |
msgstr "" |
| 1911 |
"Если I<from_size> == 0, I<to_size> E<gt> 0 и I<seed> равно контрольной сумме " |
| 1912 |
"— при заталкивании новых данных." |
| 1913 |
|
| 1914 |
#. type: Plain text |
| 1915 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1916 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1917 |
msgid "" |
| 1918 |
"With I<from_size> E<gt> 0, I<to_size> == 0 and I<seed> set to checksum, it " |
| 1919 |
"can be used when removing data from a packet." |
| 1920 |
msgstr "" |
| 1921 |
"Если I<from_size> E<gt> 0, I<to_size> == 0 и I<seed> равно контрольной сумме " |
| 1922 |
"— при удалении данных из пакета." |
| 1923 |
|
| 1924 |
#. type: Plain text |
| 1925 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1926 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1927 |
msgid "" |
| 1928 |
"With I<from_size> E<gt> 0, I<to_size> E<gt> 0 and I<seed> set to 0, it can " |
| 1929 |
"be used to compute a diff. Note that I<from_size> and I<to_size> do not need " |
| 1930 |
"to be equal." |
| 1931 |
msgstr "" |
| 1932 |
"Если I<from_size> E<gt> 0, I<to_size> E<gt> 0 и I<seed> равно 0 — вычисляет " |
| 1933 |
"разницу. Заметим, что I<from_size> и I<to_size> могут быть не равны." |
| 1934 |
|
| 1935 |
#. type: Plain text |
| 1936 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1937 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1938 |
msgid "" |
| 1939 |
"This helper can be used in combination with B<bpf_l3_csum_replace>() and " |
| 1940 |
"B<bpf_l4_csum_replace>(), to which one can feed in the difference computed " |
| 1941 |
"with B<bpf_csum_diff>()." |
| 1942 |
msgstr "" |
| 1943 |
"Этот помощник можно использовать совместно с B<bpf_l3_csum_replace>() и " |
| 1944 |
"B<bpf_l4_csum_replace>(), которым можно передавать различие, вычисленное " |
| 1945 |
"B<bpf_csum_diff>()." |
| 1946 |
|
| 1947 |
#. type: Plain text |
| 1948 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1949 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1950 |
msgid "The checksum result, or a negative error code in case of failure." |
| 1951 |
msgstr "Результат контрольной суммы или отрицательный код ошибки." |
| 1952 |
|
| 1953 |
#. type: TP |
| 1954 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1955 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1956 |
#, fuzzy, no-wrap |
| 1957 |
#| msgid "B<int bpf_skb_get_tunnel_opt(struct sk_buff *>I<skb>B<, u8 *>I<opt>B<, u32 >I<size>B<)>" |
| 1958 |
msgid "B<long bpf_skb_get_tunnel_opt(struct sk_buff *>I<skb>B<, void *>I<opt>B<, u32 >I<size>B<)>" |
| 1959 |
msgstr "B<int bpf_skb_get_tunnel_opt(struct sk_buff *>I<skb>B<, u8 *>I<opt>B<, u32 >I<size>B<)>" |
| 1960 |
|
| 1961 |
#. type: Plain text |
| 1962 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1963 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1964 |
msgid "" |
| 1965 |
"Retrieve tunnel options metadata for the packet associated to I<skb>, and " |
| 1966 |
"store the raw tunnel option data to the buffer I<opt> of I<size>\\&." |
| 1967 |
msgstr "" |
| 1968 |
"Возвращает метаданные параметров туннеля для пакета, связанного с I<skb>, и " |
| 1969 |
"сохраняет неструктурированные данные параметров туннеля в буфер I<opt> " |
| 1970 |
"размером I<size>\\&." |
| 1971 |
|
| 1972 |
#. type: Plain text |
| 1973 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1974 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1975 |
#, fuzzy |
| 1976 |
#| msgid "" |
| 1977 |
#| "This helper can be used with encapsulation devices that can operate in " |
| 1978 |
#| "\"collect metadata\" mode (please refer to the related note in the " |
| 1979 |
#| "description of B<bpf_skb_get_tunnel_key>() for more details). A " |
| 1980 |
#| "particular example where this can be used is in combination with the " |
| 1981 |
#| "Geneve encapsulation protocol, where it allows for pushing (with " |
| 1982 |
#| "B<bpf_skb_get_tunnel_opt>() helper) and retrieving arbitrary TLVs (Type-" |
| 1983 |
#| "Length-Value headers) from the eBPF program. This allows for full " |
| 1984 |
#| "customization of these headers." |
| 1985 |
msgid "" |
| 1986 |
"This helper can be used with encapsulation devices that can operate in " |
| 1987 |
"\"collect metadata\" mode (please refer to the related note in the " |
| 1988 |
"description of B<bpf_skb_get_tunnel_key>() for more details). A particular " |
| 1989 |
"example where this can be used is in combination with the Geneve " |
| 1990 |
"encapsulation protocol, where it allows for pushing (with " |
| 1991 |
"B<bpf_skb_get_tunnel_opt>() helper) and retrieving arbitrary TLVs (Type-" |
| 1992 |
"Length-Value headers) from the eBPF program. This allows for full " |
| 1993 |
"customization of these headers." |
| 1994 |
msgstr "" |
| 1995 |
"Этот помощник можно использовать с устройствами инкапсуляции, которые могут " |
| 1996 |
"работать в режиме «сбора метаданных» (подробности приведены в замечании к " |
| 1997 |
"B<bpf_skb_get_tunnel_key>()). В качестве примера можно привести совместное " |
| 1998 |
"использование с протоколом инкапсуляции Geneve, где может вталкивать (с " |
| 1999 |
"помощью помощника B<bpf_skb_get_tunnel_opt>()) и получать произвольные TLV " |
| 2000 |
"(заголовки Тип-Длина-Значение) из программы eBPF. Таким способом можно " |
| 2001 |
"изменять эти заголовки полностью." |
| 2002 |
|
| 2003 |
#. type: Plain text |
| 2004 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2005 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2006 |
msgid "The size of the option data retrieved." |
| 2007 |
msgstr "Размер возвращаемых данных." |
| 2008 |
|
| 2009 |
#. type: TP |
| 2010 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2011 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2012 |
#, fuzzy, no-wrap |
| 2013 |
#| msgid "B<int bpf_skb_set_tunnel_opt(struct sk_buff *>I<skb>B<, u8 *>I<opt>B<, u32 >I<size>B<)>" |
| 2014 |
msgid "B<long bpf_skb_set_tunnel_opt(struct sk_buff *>I<skb>B<, void *>I<opt>B<, u32 >I<size>B<)>" |
| 2015 |
msgstr "B<int bpf_skb_set_tunnel_opt(struct sk_buff *>I<skb>B<, u8 *>I<opt>B<, u32 >I<size>B<)>" |
| 2016 |
|
| 2017 |
#. type: Plain text |
| 2018 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2019 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2020 |
msgid "" |
| 2021 |
"Set tunnel options metadata for the packet associated to I<skb> to the " |
| 2022 |
"option data contained in the raw buffer I<opt> of I<size>\\&." |
| 2023 |
msgstr "" |
| 2024 |
"Изменяет метаданные параметров туннеля для пакета, связанного с I<skb> на " |
| 2025 |
"данные параметров из неструктурированного буфера I<opt> размером I<size>\\&." |
| 2026 |
|
| 2027 |
#. type: Plain text |
| 2028 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2029 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2030 |
msgid "" |
| 2031 |
"See also the description of the B<bpf_skb_get_tunnel_opt>() helper for " |
| 2032 |
"additional information." |
| 2033 |
msgstr "Также смотрите описание помощника B<bpf_skb_get_tunnel_opt>()." |
| 2034 |
|
| 2035 |
#. type: TP |
| 2036 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2037 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2038 |
#, fuzzy, no-wrap |
| 2039 |
#| msgid "B<int bpf_skb_change_proto(struct sk_buff *>I<skb>B<, __be16 >I<proto>B<, u64 >I<flags>B<)>" |
| 2040 |
msgid "B<long bpf_skb_change_proto(struct sk_buff *>I<skb>B<, __be16 >I<proto>B<, u64 >I<flags>B<)>" |
| 2041 |
msgstr "B<int bpf_skb_change_proto(struct sk_buff *>I<skb>B<, __be16 >I<proto>B<, u64 >I<flags>B<)>" |
| 2042 |
|
| 2043 |
#. type: Plain text |
| 2044 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2045 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2046 |
msgid "" |
| 2047 |
"Change the protocol of the I<skb> to I<proto>\\&. Currently supported are " |
| 2048 |
"transition from IPv4 to IPv6, and from IPv6 to IPv4. The helper takes care " |
| 2049 |
"of the groundwork for the transition, including resizing the socket buffer. " |
| 2050 |
"The eBPF program is expected to fill the new headers, if any, via " |
| 2051 |
"B<skb_store_bytes>() and to recompute the checksums with " |
| 2052 |
"B<bpf_l3_csum_replace>() and B<bpf_l4_csum_replace>(). The main case for " |
| 2053 |
"this helper is to perform NAT64 operations out of an eBPF program." |
| 2054 |
msgstr "" |
| 2055 |
"Изменяет протокол в I<skb> на I<proto>\\&. Пока поддерживается переход с " |
| 2056 |
"IPv4 на IPv6 и с IPv6 на IPv4. Этот помощник делает всю черновую работу, " |
| 2057 |
"включая изменение размера сокетного буфера. Программе eBPF нужно заполнить " |
| 2058 |
"новые заголовки, если есть, с помощью B<skb_store_bytes>() и пересчитать " |
| 2059 |
"контрольные суммы с помощью B<bpf_l3_csum_replace>() и " |
| 2060 |
"B<bpf_l4_csum_replace>(). Основным предназначением этого помощника является " |
| 2061 |
"выполнение операций NAT64 вне программы eBPF." |
| 2062 |
|
| 2063 |
#. type: Plain text |
| 2064 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2065 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2066 |
msgid "" |
| 2067 |
"Internally, the GSO type is marked as dodgy so that headers are checked and " |
| 2068 |
"segments are recalculated by the GSO/GRO engine. The size for GSO target is " |
| 2069 |
"adapted as well." |
| 2070 |
msgstr "" |
| 2071 |
"Внутри, тип GSO помечается как подозрительный, из-за чего механизм GSO/GRO " |
| 2072 |
"проверяется эти заголовки и повторно вычисляет сегменты. Также " |
| 2073 |
"подстраивается размер цели GSO." |
| 2074 |
|
| 2075 |
#. type: Plain text |
| 2076 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2077 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2078 |
msgid "" |
| 2079 |
"All values for I<flags> are reserved for future usage, and must be left at " |
| 2080 |
"zero." |
| 2081 |
msgstr "" |
| 2082 |
"Все значения I<flags> зарезервированы для использования в будущем и должны " |
| 2083 |
"быть равны нулю." |
| 2084 |
|
| 2085 |
#. type: TP |
| 2086 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2087 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2088 |
#, fuzzy, no-wrap |
| 2089 |
#| msgid "B<int bpf_skb_change_type(struct sk_buff *>I<skb>B<, u32 >I<type>B<)>" |
| 2090 |
msgid "B<long bpf_skb_change_type(struct sk_buff *>I<skb>B<, u32 >I<type>B<)>" |
| 2091 |
msgstr "B<int bpf_skb_change_type(struct sk_buff *>I<skb>B<, u32 >I<type>B<)>" |
| 2092 |
|
| 2093 |
#. type: Plain text |
| 2094 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2095 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2096 |
msgid "" |
| 2097 |
"Change the packet type for the packet associated to I<skb>\\&. This comes " |
| 2098 |
"down to setting I<skb>B<-E<gt>pkt_type> to I<type>, except the eBPF program " |
| 2099 |
"does not have a write access to I<skb>B<-E<gt>pkt_type> beside this helper. " |
| 2100 |
"Using a helper here allows for graceful handling of errors." |
| 2101 |
msgstr "" |
| 2102 |
"Изменяет тип пакета у пакета, связанного с I<skb>\\&. При этом только " |
| 2103 |
"I<skb>B<-E<gt>pkt_type> присваивается I<type>, если программа eBPF не имеет " |
| 2104 |
"прав записи в I<skb>B<-E<gt>pkt_type> вне этого помощника. При таком " |
| 2105 |
"использовании помощник позволяет правильно обработать ошибки." |
| 2106 |
|
| 2107 |
#. type: Plain text |
| 2108 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2109 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2110 |
msgid "" |
| 2111 |
"The major use case is to change incoming I<skb*s to **PACKET_HOST*> in a " |
| 2112 |
"programmatic way instead of having to recirculate via B<redirect>(..., " |
| 2113 |
"B<BPF_F_INGRESS>), for example." |
| 2114 |
msgstr "" |
| 2115 |
"В основном, он применяется для изменения входящего I<skb*s на " |
| 2116 |
"**PACKET_HOST*> программным методом, а не, например, с помощью перезаписи " |
| 2117 |
"через B<redirect>(..., B<BPF_F_INGRESS>)." |
| 2118 |
|
| 2119 |
#. type: Plain text |
| 2120 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2121 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2122 |
msgid "Note that I<type> only allows certain values. At this time, they are:" |
| 2123 |
msgstr "" |
| 2124 |
"Заметим, что I<type> может быть равен только определённым значениям. В " |
| 2125 |
"настоящее время это:" |
| 2126 |
|
| 2127 |
#. type: TP |
| 2128 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2129 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2130 |
#, no-wrap |
| 2131 |
msgid "B<PACKET_HOST>" |
| 2132 |
msgstr "B<PACKET_HOST>" |
| 2133 |
|
| 2134 |
#. type: Plain text |
| 2135 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2136 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2137 |
msgid "Packet is for us." |
| 2138 |
msgstr "Пакет для нас." |
| 2139 |
|
| 2140 |
#. type: TP |
| 2141 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2142 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2143 |
#, no-wrap |
| 2144 |
msgid "B<PACKET_BROADCAST>" |
| 2145 |
msgstr "B<PACKET_BROADCAST>" |
| 2146 |
|
| 2147 |
#. type: Plain text |
| 2148 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2149 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2150 |
msgid "Send packet to all." |
| 2151 |
msgstr "Послать пакет всем." |
| 2152 |
|
| 2153 |
#. type: TP |
| 2154 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2155 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2156 |
#, no-wrap |
| 2157 |
msgid "B<PACKET_MULTICAST>" |
| 2158 |
msgstr "B<PACKET_MULTICAST>" |
| 2159 |
|
| 2160 |
#. type: Plain text |
| 2161 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2162 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2163 |
msgid "Send packet to group." |
| 2164 |
msgstr "Послать пакет группе." |
| 2165 |
|
| 2166 |
#. type: TP |
| 2167 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2168 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2169 |
#, no-wrap |
| 2170 |
msgid "B<PACKET_OTHERHOST>" |
| 2171 |
msgstr "B<PACKET_OTHERHOST>" |
| 2172 |
|
| 2173 |
#. type: Plain text |
| 2174 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2175 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2176 |
msgid "Send packet to someone else." |
| 2177 |
msgstr "Послать пакет кому-то ещё." |
| 2178 |
|
| 2179 |
#. type: TP |
| 2180 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2181 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2182 |
#, fuzzy, no-wrap |
| 2183 |
#| msgid "B<int bpf_skb_under_cgroup(struct sk_buff *>I<skb>B<, struct bpf_map *>I<map>B<, u32 >I<index>B<)>" |
| 2184 |
msgid "B<long bpf_skb_under_cgroup(struct sk_buff *>I<skb>B<, struct bpf_map *>I<map>B<, u32 >I<index>B<)>" |
| 2185 |
msgstr "B<int bpf_skb_under_cgroup(struct sk_buff *>I<skb>B<, struct bpf_map *>I<map>B<, u32 >I<index>B<)>" |
| 2186 |
|
| 2187 |
#. type: Plain text |
| 2188 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2189 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2190 |
msgid "" |
| 2191 |
"Check whether I<skb> is a descendant of the cgroup2 held by I<map> of type " |
| 2192 |
"B<BPF_MAP_TYPE_CGROUP_ARRAY>, at I<index>\\&." |
| 2193 |
msgstr "" |
| 2194 |
"Проверяет, является ли I<skb> потомком cgroup2, хранящейся в I<map> с типом " |
| 2195 |
"B<BPF_MAP_TYPE_CGROUP_ARRAY> с индексом I<index>\\&." |
| 2196 |
|
| 2197 |
#. type: Plain text |
| 2198 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2199 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2200 |
msgid "The return value depends on the result of the test, and can be:" |
| 2201 |
msgstr "Возвращаемое значение зависит от результата проверки и может быть:" |
| 2202 |
|
| 2203 |
#. type: Plain text |
| 2204 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2205 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2206 |
msgid "0, if the I<skb> failed the cgroup2 descendant test." |
| 2207 |
msgstr "0, если I<skb> не прошло проверку причастности к cgroup2." |
| 2208 |
|
| 2209 |
#. type: Plain text |
| 2210 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2211 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2212 |
msgid "1, if the I<skb> succeeded the cgroup2 descendant test." |
| 2213 |
msgstr "1, если I<skb> прошло проверку причастности к cgroup2." |
| 2214 |
|
| 2215 |
#. type: Plain text |
| 2216 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2217 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2218 |
msgid "A negative error code, if an error occurred." |
| 2219 |
msgstr "Отрицательный код ошибки при её возникновении." |
| 2220 |
|
| 2221 |
#. type: TP |
| 2222 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2223 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2224 |
#, no-wrap |
| 2225 |
msgid "B<u32 bpf_get_hash_recalc(struct sk_buff *>I<skb>B<)>" |
| 2226 |
msgstr "B<u32 bpf_get_hash_recalc(struct sk_buff *>I<skb>B<)>" |
| 2227 |
|
| 2228 |
#. type: Plain text |
| 2229 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2230 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2231 |
msgid "" |
| 2232 |
"Retrieve the hash of the packet, I<skb>B<-E<gt>hash>\\&. If it is not set, " |
| 2233 |
"in particular if the hash was cleared due to mangling, recompute this hash. " |
| 2234 |
"Later accesses to the hash can be done directly with I<skb>B<-E<gt>hash>\\&." |
| 2235 |
msgstr "" |
| 2236 |
"Возвращает хеш пакета, I<skb>B<-E<gt>hash>\\&. Если он отсутствует, " |
| 2237 |
"например, если хеш очищен при искажении (mangling), то это хеш вычисляется " |
| 2238 |
"заново. В последствии к хешу можно обращаться непосредственно, через " |
| 2239 |
"I<skb>B<-E<gt>hash>\\&." |
| 2240 |
|
| 2241 |
#. type: Plain text |
| 2242 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2243 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2244 |
msgid "" |
| 2245 |
"Calling B<bpf_set_hash_invalid>(), changing a packet prototype with " |
| 2246 |
"B<bpf_skb_change_proto>(), or calling B<bpf_skb_store_bytes>() with the " |
| 2247 |
"B<BPF_F_INVALIDATE_HASH> are actions susceptible to clear the hash and to " |
| 2248 |
"trigger a new computation for the next call to B<bpf_get_hash_recalc>()." |
| 2249 |
msgstr "" |
| 2250 |
"Вызов B<bpf_set_hash_invalid>(), изменение прототипа пакета с помощью " |
| 2251 |
"B<bpf_skb_change_proto>(), или вызов B<bpf_skb_store_bytes>() с " |
| 2252 |
"B<BPF_F_INVALIDATE_HASH> приводят к очистке хеша и активируют новое " |
| 2253 |
"вычисление при следующем вызове B<bpf_get_hash_recalc>()." |
| 2254 |
|
| 2255 |
#. type: Plain text |
| 2256 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2257 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2258 |
msgid "The 32-bit hash." |
| 2259 |
msgstr "32-битный хеш." |
| 2260 |
|
| 2261 |
#. type: TP |
| 2262 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2263 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2264 |
#, no-wrap |
| 2265 |
msgid "B<u64 bpf_get_current_task(void)>" |
| 2266 |
msgstr "B<u64 bpf_get_current_task(void)>" |
| 2267 |
|
| 2268 |
#. type: Plain text |
| 2269 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2270 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2271 |
#, fuzzy |
| 2272 |
#| msgid "A pointer to the current task struct." |
| 2273 |
msgid "Get the current task." |
| 2274 |
msgstr "Указатель на структуру текущей задачи." |
| 2275 |
|
| 2276 |
#. type: Plain text |
| 2277 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2278 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2279 |
msgid "A pointer to the current task struct." |
| 2280 |
msgstr "Указатель на структуру текущей задачи." |
| 2281 |
|
| 2282 |
#. type: TP |
| 2283 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2284 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2285 |
#, fuzzy, no-wrap |
| 2286 |
#| msgid "B<int bpf_probe_write_user(void *>I<dst>B<, const void *>I<src>B<, u32 >I<len>B<)>" |
| 2287 |
msgid "B<long bpf_probe_write_user(void *>I<dst>B<, const void *>I<src>B<, u32 >I<len>B<)>" |
| 2288 |
msgstr "B<int bpf_probe_write_user(void *>I<dst>B<, const void *>I<src>B<, u32 >I<len>B<)>" |
| 2289 |
|
| 2290 |
#. type: Plain text |
| 2291 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2292 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2293 |
msgid "" |
| 2294 |
"Attempt in a safe way to write I<len> bytes from the buffer I<src> to I<dst> " |
| 2295 |
"in memory. It only works for threads that are in user context, and I<dst> " |
| 2296 |
"must be a valid user space address." |
| 2297 |
msgstr "" |
| 2298 |
"Пытается безопасным способом записать I<len> байт из буфера I<src> в память " |
| 2299 |
"I<dst>. Это работает только для нитей в пользовательском контексте и I<dst> " |
| 2300 |
"должен быть корректным адресом пользовательского пространства." |
| 2301 |
|
| 2302 |
#. type: Plain text |
| 2303 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2304 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2305 |
msgid "" |
| 2306 |
"This helper should not be used to implement any kind of security mechanism " |
| 2307 |
"because of TOC-TOU attacks, but rather to debug, divert, and manipulate " |
| 2308 |
"execution of semi-cooperative processes." |
| 2309 |
msgstr "" |
| 2310 |
"Этот помощник не нужно использовать для реализации какого-либо механизма " |
| 2311 |
"безопасности в следствии атак TOC-TOU, а только для отладки, отклонения и " |
| 2312 |
"управления выполнением частично сотрудничающих процессов." |
| 2313 |
|
| 2314 |
#. type: Plain text |
| 2315 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2316 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2317 |
msgid "" |
| 2318 |
"Keep in mind that this feature is meant for experiments, and it has a risk " |
| 2319 |
"of crashing the system and running programs. Therefore, when an eBPF " |
| 2320 |
"program using this helper is attached, a warning including PID and process " |
| 2321 |
"name is printed to kernel logs." |
| 2322 |
msgstr "" |
| 2323 |
"Учтите, что это свойство является экспериментальным и может обрушить систему " |
| 2324 |
"и выполняющиеся программы. Поэтому когда присоединяется программа eBPF, " |
| 2325 |
"использующая этот помощник, в журнал ядра печатается предупреждение с PID и " |
| 2326 |
"именем процесса." |
| 2327 |
|
| 2328 |
#. type: TP |
| 2329 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2330 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2331 |
#, fuzzy, no-wrap |
| 2332 |
#| msgid "B<int bpf_current_task_under_cgroup(struct bpf_map *>I<map>B<, u32 >I<index>B<)>" |
| 2333 |
msgid "B<long bpf_current_task_under_cgroup(struct bpf_map *>I<map>B<, u32 >I<index>B<)>" |
| 2334 |
msgstr "B<int bpf_current_task_under_cgroup(struct bpf_map *>I<map>B<, u32 >I<index>B<)>" |
| 2335 |
|
| 2336 |
#. type: Plain text |
| 2337 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2338 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2339 |
msgid "" |
| 2340 |
"Check whether the probe is being run is the context of a given subset of the " |
| 2341 |
"cgroup2 hierarchy. The cgroup2 to test is held by I<map> of type " |
| 2342 |
"B<BPF_MAP_TYPE_CGROUP_ARRAY>, at I<index>\\&." |
| 2343 |
msgstr "" |
| 2344 |
"Проверяет, выполняется ли тест в контексте заданного поднабора иерархии " |
| 2345 |
"cgroup2. Тестируемый cgroup2 задаётся в I<map>, имеет тип " |
| 2346 |
"B<BPF_MAP_TYPE_CGROUP_ARRAY> и индекс I<index>\\&." |
| 2347 |
|
| 2348 |
#. type: Plain text |
| 2349 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2350 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2351 |
#, fuzzy |
| 2352 |
#| msgid "0, if the I<skb> task belongs to the cgroup2." |
| 2353 |
msgid "1, if current task belongs to the cgroup2." |
| 2354 |
msgstr "0, если задача I<skb> принадлежит cgroup2." |
| 2355 |
|
| 2356 |
#. type: Plain text |
| 2357 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2358 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2359 |
#, fuzzy |
| 2360 |
#| msgid "1, if the I<skb> task does not belong to the cgroup2." |
| 2361 |
msgid "0, if current task does not belong to the cgroup2." |
| 2362 |
msgstr "1, если задача I<skb> не принадлежит cgroup2." |
| 2363 |
|
| 2364 |
#. type: TP |
| 2365 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2366 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2367 |
#, fuzzy, no-wrap |
| 2368 |
#| msgid "B<int bpf_skb_change_tail(struct sk_buff *>I<skb>B<, u32 >I<len>B<, u64 >I<flags>B<)>" |
| 2369 |
msgid "B<long bpf_skb_change_tail(struct sk_buff *>I<skb>B<, u32 >I<len>B<, u64 >I<flags>B<)>" |
| 2370 |
msgstr "B<int bpf_skb_change_tail(struct sk_buff *>I<skb>B<, u32 >I<len>B<, u64 >I<flags>B<)>" |
| 2371 |
|
| 2372 |
#. type: Plain text |
| 2373 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2374 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2375 |
msgid "" |
| 2376 |
"Resize (trim or grow) the packet associated to I<skb> to the new I<len>\\&. " |
| 2377 |
"The I<flags> are reserved for future usage, and must be left at zero." |
| 2378 |
msgstr "" |
| 2379 |
"Изменяет размер (обрезает или расширяет) пакета, связанного с I<skb>, на " |
| 2380 |
"новый I<len>\\&. Значения I<flags> зарезервированы для использования в " |
| 2381 |
"будущем и должны быть равны нулю." |
| 2382 |
|
| 2383 |
#. type: Plain text |
| 2384 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2385 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2386 |
msgid "" |
| 2387 |
"The basic idea is that the helper performs the needed work to change the " |
| 2388 |
"size of the packet, then the eBPF program rewrites the rest via helpers like " |
| 2389 |
"B<bpf_skb_store_bytes>(), B<bpf_l3_csum_replace>(), " |
| 2390 |
"B<bpf_l3_csum_replace>() and others. This helper is a slow path utility " |
| 2391 |
"intended for replies with control messages. And because it is targeted for " |
| 2392 |
"slow path, the helper itself can afford to be slow: it implicitly " |
| 2393 |
"linearizes, unclones and drops offloads from the I<skb>\\&." |
| 2394 |
msgstr "" |
| 2395 |
"По замыслу, помощник выполняет необходимую работу по изменению размера " |
| 2396 |
"пакет, затем программа eBPF перезаписывает остальное через помощников " |
| 2397 |
"B<bpf_skb_store_bytes>(), B<bpf_l3_csum_replace>(), B<bpf_l3_csum_replace>() " |
| 2398 |
"и других. Этот помощник является инструментом для медленного пути и " |
| 2399 |
"предназначен для ответов управляющими сообщениями. Из-за нацелевания на " |
| 2400 |
"медленный путь, сам помощник можно было делать медленным: он неявным образом " |
| 2401 |
"преобразует к линейному виду, извлекает копии и удаляет нагрузку из " |
| 2402 |
"I<skb>\\&." |
| 2403 |
|
| 2404 |
#. type: TP |
| 2405 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2406 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2407 |
#, fuzzy, no-wrap |
| 2408 |
#| msgid "B<int bpf_skb_pull_data(struct sk_buff *>I<skb>B<, u32 >I<len>B<)>" |
| 2409 |
msgid "B<long bpf_skb_pull_data(struct sk_buff *>I<skb>B<, u32 >I<len>B<)>" |
| 2410 |
msgstr "B<int bpf_skb_pull_data(struct sk_buff *>I<skb>B<, u32 >I<len>B<)>" |
| 2411 |
|
| 2412 |
#. type: Plain text |
| 2413 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2414 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2415 |
#, fuzzy |
| 2416 |
#| msgid "" |
| 2417 |
#| "Pull in non-linear data in case the I<skb> is non-linear and not all of " |
| 2418 |
#| "I<len> are part of the linear section. Make I<len> bytes from I<skb> " |
| 2419 |
#| "readable and writable. If a zero value is passed for I<len>, then the " |
| 2420 |
#| "whole length of the I<skb> is pulled." |
| 2421 |
msgid "" |
| 2422 |
"Pull in non-linear data in case the I<skb> is non-linear and not all of " |
| 2423 |
"I<len> are part of the linear section. Make I<len> bytes from I<skb> " |
| 2424 |
"readable and writable. If a zero value is passed for I<len>, then all bytes " |
| 2425 |
"in the linear part of I<skb> will be made readable and writable." |
| 2426 |
msgstr "" |
| 2427 |
"Стягивает в нелинейные данные, если I<skb> является нелинейной и не вся " |
| 2428 |
"длина I<len> является частью линейного раздела. Делает I<len> байт из I<skb> " |
| 2429 |
"доступными для чтения и записи. Если I<len> равно нулю, то I<skb> " |
| 2430 |
"стягивается полностью." |
| 2431 |
|
| 2432 |
#. type: Plain text |
| 2433 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2434 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2435 |
msgid "" |
| 2436 |
"This helper is only needed for reading and writing with direct packet access." |
| 2437 |
msgstr "Этот помощник необходим только для чтения и записи в пакет напрямую." |
| 2438 |
|
| 2439 |
#. type: Plain text |
| 2440 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2441 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2442 |
msgid "" |
| 2443 |
"For direct packet access, testing that offsets to access are within packet " |
| 2444 |
"boundaries (test on I<skb>B<-E<gt>data_end>) is susceptible to fail if " |
| 2445 |
"offsets are invalid, or if the requested data is in non-linear parts of the " |
| 2446 |
"I<skb>\\&. On failure the program can just bail out, or in the case of a non-" |
| 2447 |
"linear buffer, use a helper to make the data available. The " |
| 2448 |
"B<bpf_skb_load_bytes>() helper is a first solution to access the data. " |
| 2449 |
"Another one consists in using B<bpf_skb_pull_data> to pull in once the non-" |
| 2450 |
"linear parts, then retesting and eventually access the data." |
| 2451 |
msgstr "" |
| 2452 |
"При прямом доступе к пакету тест доступа по этим смещениям внутри границ " |
| 2453 |
"пакета (до I<skb>B<-E<gt>data_end>) завершится ошибкой, если смещения " |
| 2454 |
"некорректны, или если запрашиваемые данные находятся в нелинейной части " |
| 2455 |
"I<skb>\\&. При ошибке программа может просто завершить работу или, в случае " |
| 2456 |
"нелинейного буфера, использовать помощник, чтобы сделать данные доступными. " |
| 2457 |
"Помощник B<bpf_skb_load_bytes>() — первое средство для доступа к данным. " |
| 2458 |
"Также можно использовать B<bpf_skb_pull_data> для стягивания нелинейных " |
| 2459 |
"частей в одну, а затем повторить тест и получить доступ к данным." |
| 2460 |
|
| 2461 |
#. type: Plain text |
| 2462 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2463 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2464 |
msgid "" |
| 2465 |
"At the same time, this also makes sure the I<skb> is uncloned, which is a " |
| 2466 |
"necessary condition for direct write. As this needs to be an invariant for " |
| 2467 |
"the write part only, the verifier detects writes and adds a prologue that is " |
| 2468 |
"calling B<bpf_skb_pull_data()> to effectively unclone the I<skb> from the " |
| 2469 |
"very beginning in case it is indeed cloned." |
| 2470 |
msgstr "" |
| 2471 |
"Также проверяется, что I<skb> не клонирована, это является необходимым " |
| 2472 |
"условием прямой записи. Поскольку постоянство должно быть инвариантом только " |
| 2473 |
"для записи, верификатор обнаруживает действие записи и добавляет пролог, " |
| 2474 |
"который вызывает B<bpf_skb_pull_data()> для эффективного расклонирования " |
| 2475 |
"I<skb> в самом начале, если есть действительно клонирование." |
| 2476 |
|
| 2477 |
#. type: TP |
| 2478 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2479 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2480 |
#, no-wrap |
| 2481 |
msgid "B<s64 bpf_csum_update(struct sk_buff *>I<skb>B<, __wsum >I<csum>B<)>" |
| 2482 |
msgstr "B<s64 bpf_csum_update(struct sk_buff *>I<skb>B<, __wsum >I<csum>B<)>" |
| 2483 |
|
| 2484 |
#. type: Plain text |
| 2485 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2486 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2487 |
msgid "" |
| 2488 |
"Add the checksum I<csum> into I<skb>B<-E<gt>csum> in case the driver has " |
| 2489 |
"supplied a checksum for the entire packet into that field. Return an error " |
| 2490 |
"otherwise. This helper is intended to be used in combination with " |
| 2491 |
"B<bpf_csum_diff>(), in particular when the checksum needs to be updated " |
| 2492 |
"after data has been written into the packet through direct packet access." |
| 2493 |
msgstr "" |
| 2494 |
"Добавляет контрольную сумму I<csum> в I<skb>B<-E<gt>csum>, если драйвер " |
| 2495 |
"вставлял контрольную сумму для всего пакета в этом поле. В противном случае " |
| 2496 |
"возвращается ошибка. Этот помощник предназначен для совместной работы с " |
| 2497 |
"B<bpf_csum_diff>(), в случае, когда контрольную сумму нужно обновить после " |
| 2498 |
"прямой записи в пакет." |
| 2499 |
|
| 2500 |
#. type: Plain text |
| 2501 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2502 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2503 |
msgid "The checksum on success, or a negative error code in case of failure." |
| 2504 |
msgstr "" |
| 2505 |
"При успешном выполнении — контрольная сумма или отрицательный код ошибки." |
| 2506 |
|
| 2507 |
#. type: TP |
| 2508 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2509 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2510 |
#, no-wrap |
| 2511 |
msgid "B<void bpf_set_hash_invalid(struct sk_buff *>I<skb>B<)>" |
| 2512 |
msgstr "B<void bpf_set_hash_invalid(struct sk_buff *>I<skb>B<)>" |
| 2513 |
|
| 2514 |
#. type: Plain text |
| 2515 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2516 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2517 |
msgid "" |
| 2518 |
"Invalidate the current I<skb>B<-E<gt>hash>\\&. It can be used after mangling " |
| 2519 |
"on headers through direct packet access, in order to indicate that the hash " |
| 2520 |
"is outdated and to trigger a recalculation the next time the kernel tries to " |
| 2521 |
"access this hash or when the B<bpf_get_hash_recalc>() helper is called." |
| 2522 |
msgstr "" |
| 2523 |
"Делает текущий I<skb>B<-E<gt>hash> недействительным. Это можно использовать " |
| 2524 |
"после искажения (mangling) заголовков через прямой доступ к пакету, чтобы " |
| 2525 |
"показать, что хэш устарел и активировать пересчёт в следующий раз, когда " |
| 2526 |
"ядро попытается обратиться к этому хэшу или когда будет вызван помощник " |
| 2527 |
"B<bpf_get_hash_recalc>()." |
| 2528 |
|
| 2529 |
#. type: Plain text |
| 2530 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2531 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2532 |
msgid "void." |
| 2533 |
msgstr "" |
| 2534 |
|
| 2535 |
#. type: TP |
| 2536 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2537 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2538 |
#, fuzzy, no-wrap |
| 2539 |
#| msgid "B<int bpf_get_numa_node_id(void)>" |
| 2540 |
msgid "B<long bpf_get_numa_node_id(void)>" |
| 2541 |
msgstr "B<int bpf_get_numa_node_id(void)>" |
| 2542 |
|
| 2543 |
#. type: Plain text |
| 2544 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2545 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2546 |
msgid "" |
| 2547 |
"Return the id of the current NUMA node. The primary use case for this helper " |
| 2548 |
"is the selection of sockets for the local NUMA node, when the program is " |
| 2549 |
"attached to sockets using the B<SO_ATTACH_REUSEPORT_EBPF> option (see also " |
| 2550 |
"B<socket(7)>), but the helper is also available to other eBPF program types, " |
| 2551 |
"similarly to B<bpf_get_smp_processor_id>()." |
| 2552 |
msgstr "" |
| 2553 |
"Возвращает id текущего узла NUMA. Основным предназначением помощника " |
| 2554 |
"является выбор сокетов локального узла NUMA, когда программа присоединяется " |
| 2555 |
"к сокетам посредством параметра B<SO_ATTACH_REUSEPORT_EBPF> (смотрите также " |
| 2556 |
"B<socket(7)>), но помощник доступен и другим типам программ eBPF, например " |
| 2557 |
"B<bpf_get_smp_processor_id>()." |
| 2558 |
|
| 2559 |
#. type: Plain text |
| 2560 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2561 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2562 |
msgid "The id of current NUMA node." |
| 2563 |
msgstr "ID текущего узла NUMA." |
| 2564 |
|
| 2565 |
#. type: TP |
| 2566 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2567 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2568 |
#, fuzzy, no-wrap |
| 2569 |
#| msgid "B<int bpf_skb_change_head(struct sk_buff *>I<skb>B<, u32 >I<len>B<, u64 >I<flags>B<)>" |
| 2570 |
msgid "B<long bpf_skb_change_head(struct sk_buff *>I<skb>B<, u32 >I<len>B<, u64 >I<flags>B<)>" |
| 2571 |
msgstr "B<int bpf_skb_change_head(struct sk_buff *>I<skb>B<, u32 >I<len>B<, u64 >I<flags>B<)>" |
| 2572 |
|
| 2573 |
#. type: Plain text |
| 2574 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2575 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2576 |
msgid "" |
| 2577 |
"Grows headroom of packet associated to I<skb> and adjusts the offset of the " |
| 2578 |
"MAC header accordingly, adding I<len> bytes of space. It automatically " |
| 2579 |
"extends and reallocates memory as required." |
| 2580 |
msgstr "" |
| 2581 |
"Увеличивает место под заголовок пакета, связанного с I<skb> и делает " |
| 2582 |
"соответствующее смещение заголовка MAC, добавляя I<len> байт пространства. " |
| 2583 |
"Автоматически расширяет и переразмещает память как нужно." |
| 2584 |
|
| 2585 |
#. type: Plain text |
| 2586 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2587 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2588 |
msgid "" |
| 2589 |
"This helper can be used on a layer 3 I<skb> to push a MAC header for " |
| 2590 |
"redirection into a layer 2 device." |
| 2591 |
msgstr "" |
| 2592 |
"Этот помощник также можно использовать в I<skb> на уровне 3, чтобы " |
| 2593 |
"затолкнуть заголовок MAC для перенаправления в устройство уровня 2." |
| 2594 |
|
| 2595 |
#. type: TP |
| 2596 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2597 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2598 |
#, fuzzy, no-wrap |
| 2599 |
#| msgid "B<int bpf_xdp_adjust_head(struct xdp_buff *>I<xdp_md>B<, int >I<delta>B<)>" |
| 2600 |
msgid "B<long bpf_xdp_adjust_head(struct xdp_buff *>I<xdp_md>B<, int >I<delta>B<)>" |
| 2601 |
msgstr "B<int bpf_xdp_adjust_head(struct xdp_buff *>I<xdp_md>B<, int >I<delta>B<)>" |
| 2602 |
|
| 2603 |
#. type: Plain text |
| 2604 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2605 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2606 |
msgid "" |
| 2607 |
"Adjust (move) I<xdp_md>B<-E<gt>data> by I<delta> bytes. Note that it is " |
| 2608 |
"possible to use a negative value for I<delta>\\&. This helper can be used to " |
| 2609 |
"prepare the packet for pushing or popping headers." |
| 2610 |
msgstr "" |
| 2611 |
"Подгоняет (перемещает) I<xdp_md>B<-E<gt>data> на I<delta> байт. Заметим, что " |
| 2612 |
"можно использовать отрицательное значение I<delta>\\&. Этот помощник можно " |
| 2613 |
"использовать при подготовке пакета к вталкиванию и выталкиванию заголовков." |
| 2614 |
|
| 2615 |
#. type: TP |
| 2616 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2617 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2618 |
#, fuzzy, no-wrap |
| 2619 |
#| msgid "B<int bpf_probe_read_str(void *>I<dst>B<, int >I<size>B<, const void *>I<unsafe_ptr>B<)>" |
| 2620 |
msgid "B<long bpf_probe_read_str(void *>I<dst>B<, u32 >I<size>B<, const void *>I<unsafe_ptr>B<)>" |
| 2621 |
msgstr "B<int bpf_probe_read_str(void *>I<dst>B<, int >I<size>B<, const void *>I<unsafe_ptr>B<)>" |
| 2622 |
|
| 2623 |
#. type: Plain text |
| 2624 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2625 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2626 |
msgid "" |
| 2627 |
"Copy a NUL terminated string from an unsafe kernel address I<unsafe_ptr> to " |
| 2628 |
"I<dst>\\&. See B<bpf_probe_read_kernel_str>() for more details." |
| 2629 |
msgstr "" |
| 2630 |
|
| 2631 |
#. type: Plain text |
| 2632 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2633 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2634 |
msgid "" |
| 2635 |
"Generally, use B<bpf_probe_read_user_str>() or " |
| 2636 |
"B<bpf_probe_read_kernel_str>() instead." |
| 2637 |
msgstr "" |
| 2638 |
|
| 2639 |
#. type: Plain text |
| 2640 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2641 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2642 |
msgid "" |
| 2643 |
"On success, the strictly positive length of the string, including the " |
| 2644 |
"trailing NUL character. On error, a negative value." |
| 2645 |
msgstr "" |
| 2646 |
"При успешном выполнении — только положительная длина строки, включая " |
| 2647 |
"конечный символ NUL. При ошибке — отрицательное значение." |
| 2648 |
|
| 2649 |
#. type: TP |
| 2650 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2651 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2652 |
#, no-wrap |
| 2653 |
msgid "B<u64 bpf_get_socket_cookie(struct sk_buff *>I<skb>B<)>" |
| 2654 |
msgstr "B<u64 bpf_get_socket_cookie(struct sk_buff *>I<skb>B<)>" |
| 2655 |
|
| 2656 |
#. type: Plain text |
| 2657 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2658 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2659 |
#, fuzzy |
| 2660 |
#| msgid "" |
| 2661 |
#| "If the B<struct sk_buff> pointed by I<skb> has a known socket, retrieve " |
| 2662 |
#| "the cookie (generated by the kernel) of this socket. If no cookie has " |
| 2663 |
#| "been set yet, generate a new cookie. Once generated, the socket cookie " |
| 2664 |
#| "remains stable for the life of the socket. This helper can be useful for " |
| 2665 |
#| "monitoring per socket networking traffic statistics as it provides a " |
| 2666 |
#| "unique socket identifier per namespace." |
| 2667 |
msgid "" |
| 2668 |
"If the B<struct sk_buff> pointed by I<skb> has a known socket, retrieve the " |
| 2669 |
"cookie (generated by the kernel) of this socket. If no cookie has been set " |
| 2670 |
"yet, generate a new cookie. Once generated, the socket cookie remains stable " |
| 2671 |
"for the life of the socket. This helper can be useful for monitoring per " |
| 2672 |
"socket networking traffic statistics as it provides a global socket " |
| 2673 |
"identifier that can be assumed unique." |
| 2674 |
msgstr "" |
| 2675 |
"Если B<struct sk_buff>, указывающая на I<skb>, содержит известный сокет, то " |
| 2676 |
"возвращает куки (cookie, генерируется ядром) сокета. Если куки ещё не " |
| 2677 |
"назначена, то генерируется новая куки. После генерации куки сокета не " |
| 2678 |
"меняется на всём протяжении жизни сокета. Этот помощник полезен для слежения " |
| 2679 |
"за статистикой сетевого трафика отдельных сокетов, так как предоставляет " |
| 2680 |
"уникальный идентификатор сокета в каждом пространстве имён." |
| 2681 |
|
| 2682 |
#. type: Plain text |
| 2683 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2684 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2685 |
#, fuzzy |
| 2686 |
#| msgid "" |
| 2687 |
#| "A 8-byte long non-decreasing number on success, or 0 if the socket field " |
| 2688 |
#| "is missing inside I<skb>\\&." |
| 2689 |
msgid "" |
| 2690 |
"A 8-byte long unique number on success, or 0 if the socket field is missing " |
| 2691 |
"inside I<skb>\\&." |
| 2692 |
msgstr "" |
| 2693 |
"При успешном выполнении — 8-байтовое длинное неуменьшающееся число, или 0, " |
| 2694 |
"если в I<skb> отсутствует поле сокета." |
| 2695 |
|
| 2696 |
#. type: TP |
| 2697 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2698 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2699 |
#, no-wrap |
| 2700 |
msgid "B<u64 bpf_get_socket_cookie(struct bpf_sock_addr *>I<ctx>B<)>" |
| 2701 |
msgstr "B<u64 bpf_get_socket_cookie(struct bpf_sock_addr *>I<ctx>B<)>" |
| 2702 |
|
| 2703 |
#. type: Plain text |
| 2704 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2705 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2706 |
#, fuzzy |
| 2707 |
#| msgid "" |
| 2708 |
#| "Equivalent to bpf_get_socket_cookie() helper that accepts I<skb>, but " |
| 2709 |
#| "gets socket from B<struct bpf_sock_addr> contex." |
| 2710 |
msgid "" |
| 2711 |
"Equivalent to bpf_get_socket_cookie() helper that accepts I<skb>, but gets " |
| 2712 |
"socket from B<struct bpf_sock_addr> context." |
| 2713 |
msgstr "" |
| 2714 |
"Эквивалентен помощнику bpf_get_socket_cookie(), имеющему параметр I<skb>, " |
| 2715 |
"вместо которого принимает сокет из контекста B<struct bpf_sock_addr>." |
| 2716 |
|
| 2717 |
#. type: Plain text |
| 2718 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2719 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2720 |
#, fuzzy |
| 2721 |
#| msgid "A 8-byte long non-decreasing number." |
| 2722 |
msgid "A 8-byte long unique number." |
| 2723 |
msgstr "При успешном выполнении — 8-байтовое длинное неуменьшающееся число." |
| 2724 |
|
| 2725 |
#. type: TP |
| 2726 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2727 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2728 |
#, no-wrap |
| 2729 |
msgid "B<u64 bpf_get_socket_cookie(struct bpf_sock_ops *>I<ctx>B<)>" |
| 2730 |
msgstr "B<u64 bpf_get_socket_cookie(struct bpf_sock_ops *>I<ctx>B<)>" |
| 2731 |
|
| 2732 |
#. type: Plain text |
| 2733 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2734 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2735 |
#, fuzzy |
| 2736 |
#| msgid "" |
| 2737 |
#| "Equivalent to bpf_get_socket_cookie() helper that accepts I<skb>, but " |
| 2738 |
#| "gets socket from B<struct bpf_sock_ops> contex." |
| 2739 |
msgid "" |
| 2740 |
"Equivalent to B<bpf_get_socket_cookie>() helper that accepts I<skb>, but " |
| 2741 |
"gets socket from B<struct bpf_sock_ops> context." |
| 2742 |
msgstr "" |
| 2743 |
"Эквивалентен помощнику bpf_get_socket_cookie(), имеющему параметр I<skb>, " |
| 2744 |
"вместо которого принимает сокет из контекста B<struct bpf_sock_ops>." |
| 2745 |
|
| 2746 |
#. type: TP |
| 2747 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2748 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2749 |
#, fuzzy, no-wrap |
| 2750 |
#| msgid "B<u64 bpf_get_socket_cookie(struct sk_buff *>I<skb>B<)>" |
| 2751 |
msgid "B<u64 bpf_get_socket_cookie(struct sock *>I<sk>B<)>" |
| 2752 |
msgstr "B<u64 bpf_get_socket_cookie(struct sk_buff *>I<skb>B<)>" |
| 2753 |
|
| 2754 |
#. type: Plain text |
| 2755 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2756 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2757 |
#, fuzzy |
| 2758 |
#| msgid "" |
| 2759 |
#| "Equivalent to bpf_get_socket_cookie() helper that accepts I<skb>, but " |
| 2760 |
#| "gets socket from B<struct bpf_sock_ops> contex." |
| 2761 |
msgid "" |
| 2762 |
"Equivalent to B<bpf_get_socket_cookie>() helper that accepts I<sk>, but gets " |
| 2763 |
"socket from a BTF B<struct sock>\\&. This helper also works for sleepable " |
| 2764 |
"programs." |
| 2765 |
msgstr "" |
| 2766 |
"Эквивалентен помощнику bpf_get_socket_cookie(), имеющему параметр I<skb>, " |
| 2767 |
"вместо которого принимает сокет из контекста B<struct bpf_sock_ops>." |
| 2768 |
|
| 2769 |
#. type: Plain text |
| 2770 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2771 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2772 |
msgid "A 8-byte long unique number or 0 if I<sk> is NULL." |
| 2773 |
msgstr "" |
| 2774 |
|
| 2775 |
#. type: TP |
| 2776 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2777 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2778 |
#, no-wrap |
| 2779 |
msgid "B<u32 bpf_get_socket_uid(struct sk_buff *>I<skb>B<)>" |
| 2780 |
msgstr "B<u32 bpf_get_socket_uid(struct sk_buff *>I<skb>B<)>" |
| 2781 |
|
| 2782 |
#. type: Plain text |
| 2783 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2784 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2785 |
#, fuzzy |
| 2786 |
#| msgid "Pop a VLAN header from the packet associated to I<skb>\\&." |
| 2787 |
msgid "Get the owner UID of the socked associated to I<skb>\\&." |
| 2788 |
msgstr "Удаляет заголовок VLAN из пакета, связанного с I<skb>\\&." |
| 2789 |
|
| 2790 |
#. type: Plain text |
| 2791 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2792 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2793 |
msgid "" |
| 2794 |
"The owner UID of the socket associated to I<skb>\\&. If the socket is " |
| 2795 |
"B<NULL>, or if it is not a full socket (i.e. if it is a time-wait or a " |
| 2796 |
"request socket instead), B<overflowuid> value is returned (note that " |
| 2797 |
"B<overflowuid> might also be the actual UID value for the socket)." |
| 2798 |
msgstr "" |
| 2799 |
"Возвращает UID владельца сокета, связанного с I<skb>\\&. Если значение " |
| 2800 |
"сокета равно B<NULL>, или если это не полный сокет (т. е., если это сокет " |
| 2801 |
"time-wait или request), то возвращает значение B<overflowuid> (заметим, что " |
| 2802 |
"B<overflowuid> также может действующим UID значением сокета)." |
| 2803 |
|
| 2804 |
#. type: TP |
| 2805 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2806 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2807 |
#, fuzzy, no-wrap |
| 2808 |
#| msgid "B<u32 bpf_set_hash(struct sk_buff *>I<skb>B<, u32 >I<hash>B<)>" |
| 2809 |
msgid "B<long bpf_set_hash(struct sk_buff *>I<skb>B<, u32 >I<hash>B<)>" |
| 2810 |
msgstr "B<u32 bpf_set_hash(struct sk_buff *>I<skb>B<, u32 >I<hash>B<)>" |
| 2811 |
|
| 2812 |
#. type: Plain text |
| 2813 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2814 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2815 |
msgid "" |
| 2816 |
"Set the full hash for I<skb> (set the field I<skb>B<-E<gt>hash>) to value " |
| 2817 |
"I<hash>\\&." |
| 2818 |
msgstr "" |
| 2819 |
"Присваивает значение I<hash> полному хэшу I<skb> (поле I<skb>B<-E<gt>hash>)." |
| 2820 |
|
| 2821 |
#. type: Plain text |
| 2822 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2823 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2824 |
msgid "0" |
| 2825 |
msgstr "0" |
| 2826 |
|
| 2827 |
#. type: TP |
| 2828 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2829 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2830 |
#, fuzzy, no-wrap |
| 2831 |
#| msgid "B<int bpf_setsockopt(struct bpf_sock_ops *>I<bpf_socket>B<, int >I<level>B<, int >I<optname>B<, char *>I<optval>B<, int >I<optlen>B<)>" |
| 2832 |
msgid "B<long bpf_setsockopt(void *>I<bpf_socket>B<, int >I<level>B<, int >I<optname>B<, void *>I<optval>B<, int >I<optlen>B<)>" |
| 2833 |
msgstr "B<int bpf_setsockopt(struct bpf_sock_ops *>I<bpf_socket>B<, int >I<level>B<, int >I<optname>B<, char *>I<optval>B<, int >I<optlen>B<)>" |
| 2834 |
|
| 2835 |
#. type: Plain text |
| 2836 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2837 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2838 |
msgid "" |
| 2839 |
"Emulate a call to B<setsockopt()> on the socket associated to I<bpf_socket>, " |
| 2840 |
"which must be a full socket. The I<level> at which the option resides and " |
| 2841 |
"the name I<optname> of the option must be specified, see B<setsockopt(2)> " |
| 2842 |
"for more information. The option value of length I<optlen> is pointed by " |
| 2843 |
"I<optval>\\&." |
| 2844 |
msgstr "" |
| 2845 |
"Эмулирует вызов B<setsockopt()> для сокета, связанного с I<bpf_socket>, " |
| 2846 |
"который должен быть полным сокетом. Должны быть заданы уровень I<level>, на " |
| 2847 |
"котором располагается параметр, и и имя I<optname>, подробности смотрите в " |
| 2848 |
"B<setsockopt(2)>. Значение параметра I<optlen> задаётся в I<optval>\\&." |
| 2849 |
|
| 2850 |
#. type: Plain text |
| 2851 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2852 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2853 |
#, fuzzy |
| 2854 |
#| msgid "The I<flags> argument should be specified as one of the following:" |
| 2855 |
msgid "I<bpf_socket> should be one of the following:" |
| 2856 |
msgstr "В аргументе I<flags> должно быть указано одно из:" |
| 2857 |
|
| 2858 |
#. type: Plain text |
| 2859 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2860 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2861 |
msgid "B<struct bpf_sock_ops> for B<BPF_PROG_TYPE_SOCK_OPS>\\&." |
| 2862 |
msgstr "" |
| 2863 |
|
| 2864 |
#. type: Plain text |
| 2865 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2866 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2867 |
msgid "" |
| 2868 |
"B<struct bpf_sock_addr> for B<BPF_CGROUP_INET4_CONNECT>, " |
| 2869 |
"B<BPF_CGROUP_INET6_CONNECT> and B<BPF_CGROUP_UNIX_CONNECT>\\&." |
| 2870 |
msgstr "" |
| 2871 |
|
| 2872 |
#. type: Plain text |
| 2873 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2874 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2875 |
msgid "" |
| 2876 |
"This helper actually implements a subset of B<setsockopt()>\\&. It supports " |
| 2877 |
"the following I<level>s:" |
| 2878 |
msgstr "" |
| 2879 |
"В действительности этот помощник реализует поднабор B<setsockopt()>\\&. Он " |
| 2880 |
"поддерживает следующие уровни I<level>:" |
| 2881 |
|
| 2882 |
#. type: Plain text |
| 2883 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2884 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2885 |
#, fuzzy |
| 2886 |
#| msgid "" |
| 2887 |
#| "B<SOL_SOCKET>, which supports the following I<optname>s: B<SO_RCVBUF>, " |
| 2888 |
#| "B<SO_SNDBUF>, B<SO_MAX_PACING_RATE>, B<SO_PRIORITY>, B<SO_RCVLOWAT>, " |
| 2889 |
#| "B<SO_MARK>\\&." |
| 2890 |
msgid "" |
| 2891 |
"B<SOL_SOCKET>, which supports the following I<optname>s: B<SO_RCVBUF>, " |
| 2892 |
"B<SO_SNDBUF>, B<SO_MAX_PACING_RATE>, B<SO_PRIORITY>, B<SO_RCVLOWAT>, " |
| 2893 |
"B<SO_MARK>, B<SO_BINDTODEVICE>, B<SO_KEEPALIVE>, B<SO_REUSEADDR>, " |
| 2894 |
"B<SO_REUSEPORT>, B<SO_BINDTOIFINDEX>, B<SO_TXREHASH>\\&." |
| 2895 |
msgstr "" |
| 2896 |
"B<SOL_SOCKET>, который поддерживает следующие I<optname>: B<SO_RCVBUF>, " |
| 2897 |
"B<SO_SNDBUF>, B<SO_MAX_PACING_RATE>, B<SO_PRIORITY>, B<SO_RCVLOWAT>, " |
| 2898 |
"B<SO_MARK>\\&." |
| 2899 |
|
| 2900 |
#. type: Plain text |
| 2901 |
#: archlinux debian-unstable fedora-44 fedora-rawhide opensuse-leap-16-1 |
| 2902 |
#: opensuse-tumbleweed |
| 2903 |
#, fuzzy |
| 2904 |
#| msgid "" |
| 2905 |
#| "B<IPPROTO_TCP>, which supports the following I<optname>s: " |
| 2906 |
#| "B<TCP_CONGESTION>, B<TCP_BPF_IW>, B<TCP_BPF_SNDCWND_CLAMP>\\&." |
| 2907 |
msgid "" |
| 2908 |
"B<IPPROTO_TCP>, which supports the following I<optname>s: B<TCP_CONGESTION>, " |
| 2909 |
"B<TCP_BPF_IW>, B<TCP_BPF_SNDCWND_CLAMP>, B<TCP_SAVE_SYN>, B<TCP_KEEPIDLE>, " |
| 2910 |
"B<TCP_KEEPINTVL>, B<TCP_KEEPCNT>, B<TCP_SYNCNT>, B<TCP_USER_TIMEOUT>, " |
| 2911 |
"B<TCP_NOTSENT_LOWAT>, B<TCP_NODELAY>, B<TCP_MAXSEG>, B<TCP_WINDOW_CLAMP>, " |
| 2912 |
"B<TCP_THIN_LINEAR_TIMEOUTS>, B<TCP_BPF_DELACK_MAX>, B<TCP_BPF_RTO_MIN>, " |
| 2913 |
"B<TCP_BPF_SOCK_OPS_CB_FLAGS>\\&." |
| 2914 |
msgstr "" |
| 2915 |
"B<IPPROTO_TCP>, который поддерживает следующие I<optname>: " |
| 2916 |
"B<TCP_CONGESTION>, B<TCP_BPF_IW>, B<TCP_BPF_SNDCWND_CLAMP>\\&." |
| 2917 |
|
| 2918 |
#. type: Plain text |
| 2919 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2920 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2921 |
msgid "B<IPPROTO_IP>, which supports I<optname> B<IP_TOS>\\&." |
| 2922 |
msgstr "B<IPPROTO_IP>, который поддерживает I<optname> B<IP_TOS>\\&." |
| 2923 |
|
| 2924 |
#. type: Plain text |
| 2925 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2926 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2927 |
#, fuzzy |
| 2928 |
#| msgid "B<IPPROTO_IPV6>, which supports I<optname> B<IPV6_TCLASS>\\&." |
| 2929 |
msgid "" |
| 2930 |
"B<IPPROTO_IPV6>, which supports the following I<optname>s: B<IPV6_TCLASS>, " |
| 2931 |
"B<IPV6_AUTOFLOWLABEL>\\&." |
| 2932 |
msgstr "B<IPPROTO_IPV6>, который поддерживает I<optname> B<IPV6_TCLASS>\\&." |
| 2933 |
|
| 2934 |
#. type: TP |
| 2935 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2936 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2937 |
#, fuzzy, no-wrap |
| 2938 |
#| msgid "B<int bpf_skb_adjust_room(struct sk_buff *>I<skb>B<, s32 >I<len_diff>B<, u32 >I<mode>B<, u64 >I<flags>B<)>" |
| 2939 |
msgid "B<long bpf_skb_adjust_room(struct sk_buff *>I<skb>B<, s32 >I<len_diff>B<, u32 >I<mode>B<, u64 >I<flags>B<)>" |
| 2940 |
msgstr "B<int bpf_skb_adjust_room(struct sk_buff *>I<skb>B<, s32 >I<len_diff>B<, u32 >I<mode>B<, u64 >I<flags>B<)>" |
| 2941 |
|
| 2942 |
#. type: Plain text |
| 2943 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2944 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2945 |
msgid "" |
| 2946 |
"Grow or shrink the room for data in the packet associated to I<skb> by " |
| 2947 |
"I<len_diff>, and according to the selected I<mode>\\&." |
| 2948 |
msgstr "" |
| 2949 |
"Расширяет или сужает место под данные в пакете, связанном с I<skb>, на " |
| 2950 |
"I<len_diff> и в соответствии с выбранным режимом I<mode>\\&." |
| 2951 |
|
| 2952 |
#. type: Plain text |
| 2953 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2954 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2955 |
msgid "" |
| 2956 |
"By default, the helper will reset any offloaded checksum indicator of the " |
| 2957 |
"skb to CHECKSUM_NONE. This can be avoided by the following flag:" |
| 2958 |
msgstr "" |
| 2959 |
|
| 2960 |
#. type: Plain text |
| 2961 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2962 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2963 |
msgid "" |
| 2964 |
"B<BPF_F_ADJ_ROOM_NO_CSUM_RESET>: Do not reset offloaded checksum data of the " |
| 2965 |
"skb to CHECKSUM_NONE." |
| 2966 |
msgstr "" |
| 2967 |
|
| 2968 |
#. type: Plain text |
| 2969 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2970 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2971 |
#, fuzzy |
| 2972 |
#| msgid "There is a single supported mode at this time:" |
| 2973 |
msgid "There are two supported modes at this time:" |
| 2974 |
msgstr "На данный момент поддерживается только один режим:" |
| 2975 |
|
| 2976 |
#. type: Plain text |
| 2977 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2978 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2979 |
#, fuzzy |
| 2980 |
#| msgid "" |
| 2981 |
#| "B<BPF_ADJ_ROOM_NET>: Adjust room at the network layer (room space is " |
| 2982 |
#| "added or removed below the layer 3 header)." |
| 2983 |
msgid "" |
| 2984 |
"B<BPF_ADJ_ROOM_MAC>: Adjust room at the mac layer (room space is added or " |
| 2985 |
"removed between the layer 2 and layer 3 headers)." |
| 2986 |
msgstr "" |
| 2987 |
"B<BPF_ADJ_ROOM_NET>: изменить пространство на сетевом уровне (пространство " |
| 2988 |
"добавляется или удаляется после заголовка 3 уровня)." |
| 2989 |
|
| 2990 |
#. type: Plain text |
| 2991 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2992 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2993 |
#, fuzzy |
| 2994 |
#| msgid "" |
| 2995 |
#| "B<BPF_ADJ_ROOM_NET>: Adjust room at the network layer (room space is " |
| 2996 |
#| "added or removed below the layer 3 header)." |
| 2997 |
msgid "" |
| 2998 |
"B<BPF_ADJ_ROOM_NET>: Adjust room at the network layer (room space is added " |
| 2999 |
"or removed between the layer 3 and layer 4 headers)." |
| 3000 |
msgstr "" |
| 3001 |
"B<BPF_ADJ_ROOM_NET>: изменить пространство на сетевом уровне (пространство " |
| 3002 |
"добавляется или удаляется после заголовка 3 уровня)." |
| 3003 |
|
| 3004 |
#. type: Plain text |
| 3005 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3006 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3007 |
#, fuzzy |
| 3008 |
#| msgid "The following map types are supported:" |
| 3009 |
msgid "The following flags are supported at this time:" |
| 3010 |
msgstr "Поддерживаются следующие типы карт:" |
| 3011 |
|
| 3012 |
#. type: Plain text |
| 3013 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3014 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3015 |
msgid "" |
| 3016 |
"B<BPF_F_ADJ_ROOM_FIXED_GSO>: Do not adjust gso_size. Adjusting mss in this " |
| 3017 |
"way is not allowed for datagrams." |
| 3018 |
msgstr "" |
| 3019 |
|
| 3020 |
#. type: Plain text |
| 3021 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3022 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3023 |
msgid "" |
| 3024 |
"B<BPF_F_ADJ_ROOM_ENCAP_L3_IPV4>, B<BPF_F_ADJ_ROOM_ENCAP_L3_IPV6>: Any new " |
| 3025 |
"space is reserved to hold a tunnel header. Configure skb offsets and other " |
| 3026 |
"fields accordingly." |
| 3027 |
msgstr "" |
| 3028 |
|
| 3029 |
#. type: Plain text |
| 3030 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3031 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3032 |
msgid "" |
| 3033 |
"B<BPF_F_ADJ_ROOM_ENCAP_L4_GRE>, B<BPF_F_ADJ_ROOM_ENCAP_L4_UDP>: Use with " |
| 3034 |
"ENCAP_L3 flags to further specify the tunnel type." |
| 3035 |
msgstr "" |
| 3036 |
|
| 3037 |
#. type: Plain text |
| 3038 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3039 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3040 |
msgid "" |
| 3041 |
"B<BPF_F_ADJ_ROOM_ENCAP_L2>(I<len>): Use with ENCAP_L3/L4 flags to further " |
| 3042 |
"specify the tunnel type; I<len> is the length of the inner MAC header." |
| 3043 |
msgstr "" |
| 3044 |
|
| 3045 |
#. type: Plain text |
| 3046 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3047 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3048 |
msgid "" |
| 3049 |
"B<BPF_F_ADJ_ROOM_ENCAP_L2_ETH>: Use with BPF_F_ADJ_ROOM_ENCAP_L2 flag to " |
| 3050 |
"further specify the L2 type as Ethernet." |
| 3051 |
msgstr "" |
| 3052 |
|
| 3053 |
#. type: Plain text |
| 3054 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3055 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3056 |
msgid "" |
| 3057 |
"B<BPF_F_ADJ_ROOM_DECAP_L3_IPV4>, B<BPF_F_ADJ_ROOM_DECAP_L3_IPV6>: Indicate " |
| 3058 |
"the new IP header version after decapsulating the outer IP header. Used when " |
| 3059 |
"the inner and outer IP versions are different." |
| 3060 |
msgstr "" |
| 3061 |
|
| 3062 |
#. type: TP |
| 3063 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3064 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3065 |
#, fuzzy, no-wrap |
| 3066 |
#| msgid "B<int bpf_redirect_map(struct bpf_map *>I<map>B<, u32 >I<key>B<, u64 >I<flags>B<)>" |
| 3067 |
msgid "B<long bpf_redirect_map(struct bpf_map *>I<map>B<, u64 >I<key>B<, u64 >I<flags>B<)>" |
| 3068 |
msgstr "B<int bpf_redirect_map(struct bpf_map *>I<map>B<, u32 >I<key>B<, u64 >I<flags>B<)>" |
| 3069 |
|
| 3070 |
#. type: Plain text |
| 3071 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3072 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3073 |
msgid "" |
| 3074 |
"Redirect the packet to the endpoint referenced by I<map> at index I<key>\\&. " |
| 3075 |
"Depending on its type, this I<map> can contain references to net devices " |
| 3076 |
"(for forwarding packets through other ports), or to CPUs (for redirecting " |
| 3077 |
"XDP frames to another CPU; but this is only implemented for native XDP (with " |
| 3078 |
"driver support) as of this writing)." |
| 3079 |
msgstr "" |
| 3080 |
"Перенаправляет пакет в конечную точку, на которую указывает I<key> в I<map>. " |
| 3081 |
"В зависимости от её типа, в I<map> могут содержаться ссылки на сетевые " |
| 3082 |
"устройства (для пересылки пакетов через другие порты), или ЦП (для " |
| 3083 |
"перенаправления кадров XDP в другой ЦП; на момент написания это реализовано " |
| 3084 |
"только для родных XDP (с поддержкой драйверов))." |
| 3085 |
|
| 3086 |
#. type: Plain text |
| 3087 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3088 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3089 |
msgid "" |
| 3090 |
"The lower two bits of I<flags> are used as the return code if the map lookup " |
| 3091 |
"fails. This is so that the return value can be one of the XDP program return " |
| 3092 |
"codes up to B<XDP_TX>, as chosen by the caller. The higher bits of I<flags> " |
| 3093 |
"can be set to BPF_F_BROADCAST or BPF_F_EXCLUDE_INGRESS as defined below." |
| 3094 |
msgstr "" |
| 3095 |
|
| 3096 |
#. type: Plain text |
| 3097 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3098 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3099 |
msgid "" |
| 3100 |
"With BPF_F_BROADCAST the packet will be broadcasted to all the interfaces in " |
| 3101 |
"the map, with BPF_F_EXCLUDE_INGRESS the ingress interface will be excluded " |
| 3102 |
"when do broadcasting." |
| 3103 |
msgstr "" |
| 3104 |
|
| 3105 |
#. type: Plain text |
| 3106 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3107 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3108 |
msgid "" |
| 3109 |
"See also B<bpf_redirect>(), which only supports redirecting to an ifindex, " |
| 3110 |
"but doesn\\(aqt require a map to do so." |
| 3111 |
msgstr "" |
| 3112 |
|
| 3113 |
#. type: Plain text |
| 3114 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3115 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3116 |
msgid "" |
| 3117 |
"B<XDP_REDIRECT> on success, or the value of the two lower bits of the " |
| 3118 |
"I<flags> argument on error." |
| 3119 |
msgstr "" |
| 3120 |
|
| 3121 |
#. type: TP |
| 3122 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3123 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3124 |
#, fuzzy, no-wrap |
| 3125 |
#| msgid "B<int bpf_msg_redirect_map(struct sk_msg_buff *>I<msg>B<, struct bpf_map *>I<map>B<, u32 >I<key>B<, u64 >I<flags>B<)>" |
| 3126 |
msgid "B<long bpf_sk_redirect_map(struct sk_buff *>I<skb>B<, struct bpf_map *>I<map>B<, u32 >I<key>B<, u64 >I<flags>B<)>" |
| 3127 |
msgstr "B<int bpf_msg_redirect_map(struct sk_msg_buff *>I<msg>B<, struct bpf_map *>I<map>B<, u32 >I<key>B<, u64 >I<flags>B<)>" |
| 3128 |
|
| 3129 |
#. type: Plain text |
| 3130 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3131 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3132 |
msgid "" |
| 3133 |
"Redirect the packet to the socket referenced by I<map> (of type " |
| 3134 |
"B<BPF_MAP_TYPE_SOCKMAP>) at index I<key>\\&. Both ingress and egress " |
| 3135 |
"interfaces can be used for redirection. The B<BPF_F_INGRESS> value in " |
| 3136 |
"I<flags> is used to make the distinction (ingress path is selected if the " |
| 3137 |
"flag is present, egress path otherwise). This is the only flag supported for " |
| 3138 |
"now." |
| 3139 |
msgstr "" |
| 3140 |
"Перенаправляет пакет в сокет, на который указывает I<key> в I<map> (тип " |
| 3141 |
"B<BPF_MAP_TYPE_SOCKMAP>). Для перенаправления могут использоваться как " |
| 3142 |
"входящий так и исходящий интерфейсы. В качестве отличительного признака в " |
| 3143 |
"I<flags> используется значение B<BPF_F_INGRESS> (выбирается входящий путь, " |
| 3144 |
"если флаг указан, в противном случае — исходящий). В настоящее время " |
| 3145 |
"поддерживается только этот флаг." |
| 3146 |
|
| 3147 |
#. type: Plain text |
| 3148 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3149 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3150 |
msgid "B<SK_PASS> on success, or B<SK_DROP> on error." |
| 3151 |
msgstr "При успешном выполнении — B<SK_PASS>, B<SK_DROP> — при ошибке." |
| 3152 |
|
| 3153 |
#. type: TP |
| 3154 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3155 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3156 |
#, fuzzy, no-wrap |
| 3157 |
#| msgid "B<int bpf_sock_map_update(struct bpf_sock_ops *>I<skops>B<, struct bpf_map *>I<map>B<, void *>I<key>B<, u64 >I<flags>B<)>" |
| 3158 |
msgid "B<long bpf_sock_map_update(struct bpf_sock_ops *>I<skops>B<, struct bpf_map *>I<map>B<, void *>I<key>B<, u64 >I<flags>B<)>" |
| 3159 |
msgstr "B<int bpf_sock_map_update(struct bpf_sock_ops *>I<skops>B<, struct bpf_map *>I<map>B<, void *>I<key>B<, u64 >I<flags>B<)>" |
| 3160 |
|
| 3161 |
#. type: Plain text |
| 3162 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3163 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3164 |
msgid "" |
| 3165 |
"Add an entry to, or update a I<map> referencing sockets. The I<skops> is " |
| 3166 |
"used as a new value for the entry associated to I<key>\\&. I<flags> is one " |
| 3167 |
"of:" |
| 3168 |
msgstr "" |
| 3169 |
"Добавляет или обновляет элемент, ссылающийся на сокет, в I<map>. В качестве " |
| 3170 |
"нового значение элемента, связанного с I<key>, используется I<skops>. " |
| 3171 |
"Значением I<flags> может быть одно из:" |
| 3172 |
|
| 3173 |
#. type: Plain text |
| 3174 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3175 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3176 |
msgid "" |
| 3177 |
"If the I<map> has eBPF programs (parser and verdict), those will be " |
| 3178 |
"inherited by the socket being added. If the socket is already attached to " |
| 3179 |
"eBPF programs, this results in an error." |
| 3180 |
msgstr "" |
| 3181 |
"Если I<map> содержит программы eBPF (анализатор и решение), то они будут " |
| 3182 |
"наследоваться сокетом, который добавляется. Если сокет уже присоединён к " |
| 3183 |
"программам eBPF, то возвращается ошибка." |
| 3184 |
|
| 3185 |
#. type: TP |
| 3186 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3187 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3188 |
#, fuzzy, no-wrap |
| 3189 |
#| msgid "B<int bpf_xdp_adjust_meta(struct xdp_buff *>I<xdp_md>B<, int >I<delta>B<)>" |
| 3190 |
msgid "B<long bpf_xdp_adjust_meta(struct xdp_buff *>I<xdp_md>B<, int >I<delta>B<)>" |
| 3191 |
msgstr "B<int bpf_xdp_adjust_meta(struct xdp_buff *>I<xdp_md>B<, int >I<delta>B<)>" |
| 3192 |
|
| 3193 |
#. type: Plain text |
| 3194 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3195 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3196 |
msgid "" |
| 3197 |
"Adjust the address pointed by I<xdp_md>B<-E<gt>data_meta> by I<delta> (which " |
| 3198 |
"can be positive or negative). Note that this operation modifies the address " |
| 3199 |
"stored in I<xdp_md>B<-E<gt>data>, so the latter must be loaded only after " |
| 3200 |
"the helper has been called." |
| 3201 |
msgstr "" |
| 3202 |
"Изменяет адрес, указанный в I<xdp_md>B<-E<gt>data_meta>, на значение " |
| 3203 |
"I<delta> (положительное или отрицательное). Заметим, что эта операция " |
| 3204 |
"изменяет адрес, хранящийся в I<xdp_md>B<-E<gt>data>, поэтому последний " |
| 3205 |
"должен быть загружен только после того, как был вызван помощник." |
| 3206 |
|
| 3207 |
#. type: Plain text |
| 3208 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3209 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3210 |
msgid "" |
| 3211 |
"The use of I<xdp_md>B<-E<gt>data_meta> is optional and programs are not " |
| 3212 |
"required to use it. The rationale is that when the packet is processed with " |
| 3213 |
"XDP (e.g. as DoS filter), it is possible to push further meta data along " |
| 3214 |
"with it before passing to the stack, and to give the guarantee that an " |
| 3215 |
"ingress eBPF program attached as a TC classifier on the same device can pick " |
| 3216 |
"this up for further post-processing. Since TC works with socket buffers, it " |
| 3217 |
"remains possible to set from XDP the B<mark> or B<priority> pointers, or " |
| 3218 |
"other pointers for the socket buffer. Having this scratch space generic and " |
| 3219 |
"programmable allows for more flexibility as the user is free to store " |
| 3220 |
"whatever meta data they need." |
| 3221 |
msgstr "" |
| 3222 |
"Использование поля I<xdp_md>B<-E<gt>data_meta> необязательно и программам " |
| 3223 |
"оно не требуется. Когда пакет обрабатывается с помощью XDP (например, " |
| 3224 |
"фильтром DoS), перед передачей в стек вместе с ним возможно втолкнуть " |
| 3225 |
"дополнительные метаданные и гарантируется, что входящая программа eBPF, " |
| 3226 |
"подключённая как классификатор TC к тому же устройству, сможет подобрать их " |
| 3227 |
"для дальнейшей пост-обработки. Так как TC работает с буферами сокетов, " |
| 3228 |
"остаётся возможность задать из XDP указатели B<mark> или B<priority>, или " |
| 3229 |
"другие указатели для буфера сокета. Такое рабочее программируемое и " |
| 3230 |
"универсальное пространство предоставляет большую гибкость, поскольку " |
| 3231 |
"пользователь может хранить любые метаданных какие захочет." |
| 3232 |
|
| 3233 |
#. type: TP |
| 3234 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3235 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3236 |
#, fuzzy, no-wrap |
| 3237 |
#| msgid "B<int bpf_perf_event_read_value(struct bpf_map *>I<map>B<, u64 >I<flags>B<, struct bpf_perf_event_value *>I<buf>B<, u32 >I<buf_size>B<)>" |
| 3238 |
msgid "B<long bpf_perf_event_read_value(struct bpf_map *>I<map>B<, u64 >I<flags>B<, struct bpf_perf_event_value *>I<buf>B<, u32 >I<buf_size>B<)>" |
| 3239 |
msgstr "B<int bpf_perf_event_read_value(struct bpf_map *>I<map>B<, u64 >I<flags>B<, struct bpf_perf_event_value *>I<buf>B<, u32 >I<buf_size>B<)>" |
| 3240 |
|
| 3241 |
#. type: Plain text |
| 3242 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3243 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3244 |
msgid "" |
| 3245 |
"Read the value of a perf event counter, and store it into I<buf> of size " |
| 3246 |
"I<buf_size>\\&. This helper relies on a I<map> of type " |
| 3247 |
"B<BPF_MAP_TYPE_PERF_EVENT_ARRAY>\\&. The nature of the perf event counter is " |
| 3248 |
"selected when I<map> is updated with perf event file descriptors. The I<map> " |
| 3249 |
"is an array whose size is the number of available CPUs, and each cell " |
| 3250 |
"contains a value relative to one CPU. The value to retrieve is indicated by " |
| 3251 |
"I<flags>, that contains the index of the CPU to look up, masked with " |
| 3252 |
"B<BPF_F_INDEX_MASK>\\&. Alternatively, I<flags> can be set to " |
| 3253 |
"B<BPF_F_CURRENT_CPU> to indicate that the value for the current CPU should " |
| 3254 |
"be retrieved." |
| 3255 |
msgstr "" |
| 3256 |
"Читает значение счётчика событий perf и сохраняет его в I<buf> размером " |
| 3257 |
"I<buf_size>\\&. Этот помощник использует I<map> с типом " |
| 3258 |
"B<BPF_MAP_TYPE_PERF_EVENT_ARRAY>\\&. Источник счётчика событий perf " |
| 3259 |
"выбирается при обновлении I<map> через файловые дескрипторы событий perf. " |
| 3260 |
"Значение I<map> представляет собой массив, размер которого равен количеству " |
| 3261 |
"доступных ЦП, а каждая ячейка содержит значение для соответствующего ЦП. " |
| 3262 |
"Получаемое значение задаётся в I<flags>, которое содержит индекс искомого ЦП " |
| 3263 |
"с наложенной маской B<BPF_F_INDEX_MASK>\\&. Или же I<flags> можно присвоить " |
| 3264 |
"B<BPF_F_CURRENT_CPU>, которое показывает, что нужно получать значение для " |
| 3265 |
"текущего ЦП." |
| 3266 |
|
| 3267 |
#. type: Plain text |
| 3268 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3269 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3270 |
msgid "" |
| 3271 |
"This helper behaves in a way close to B<bpf_perf_event_read>() helper, save " |
| 3272 |
"that instead of just returning the value observed, it fills the I<buf> " |
| 3273 |
"structure. This allows for additional data to be retrieved: in particular, " |
| 3274 |
"the enabled and running times (in I<buf>B<-E<gt>enabled> and I<buf>B<-" |
| 3275 |
"E<gt>running>, respectively) are copied. In general, " |
| 3276 |
"B<bpf_perf_event_read_value>() is recommended over B<bpf_perf_event_read>(), " |
| 3277 |
"which has some ABI issues and provides fewer functionalities." |
| 3278 |
msgstr "" |
| 3279 |
"Этот помощник работает почти также как B<bpf_perf_event_read>(), но не " |
| 3280 |
"возвращает значение, а помещает его в структуру I<buf>. Это позволяет " |
| 3281 |
"получать дополнительные данные,в частности, копируется время включения и " |
| 3282 |
"выполнения (в I<buf>B<-E<gt>enabled> иI<buf>B<-E<gt>running>, " |
| 3283 |
"соответственно). В общем, рекомендуется использовать " |
| 3284 |
"B<bpf_perf_event_read_value>() вместо B<bpf_perf_event_read>(), у которого " |
| 3285 |
"есть проблемы с ABI и который имеет меньше возможностей." |
| 3286 |
|
| 3287 |
#. type: Plain text |
| 3288 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3289 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3290 |
msgid "" |
| 3291 |
"These values are interesting, because hardware PMU (Performance Monitoring " |
| 3292 |
"Unit) counters are limited resources. When there are more PMU based perf " |
| 3293 |
"events opened than available counters, kernel will multiplex these events so " |
| 3294 |
"each event gets certain percentage (but not all) of the PMU time. In case " |
| 3295 |
"that multiplexing happens, the number of samples or counter value will not " |
| 3296 |
"reflect the case compared to when no multiplexing occurs. This makes " |
| 3297 |
"comparison between different runs difficult. Typically, the counter value " |
| 3298 |
"should be normalized before comparing to other experiments. The usual " |
| 3299 |
"normalization is done as follows." |
| 3300 |
msgstr "" |
| 3301 |
"Эти значения существенны, так как аппаратные счётчики PMU (Performance " |
| 3302 |
"Monitoring Unit) — ограниченный ресурс. Когда открыто больше PMU (на основе " |
| 3303 |
"событий perf), чем доступно счётчиков, ядро будет мультиплексировать эти " |
| 3304 |
"события; при этом каждое событие получает определённый процент (но не всё) " |
| 3305 |
"времени PMU. Если возникает мультиплексирование, количество выборок или " |
| 3306 |
"значение счетчика не будет отражать происходящее, по сравнению, если бы " |
| 3307 |
"мультиплексирования не было. Это затрудняет сравнение между несколькими " |
| 3308 |
"запусками. Обычно, значение счётчика нужно нормализовать перед сравнением с " |
| 3309 |
"другими экспериментами. Это выполняется следующим образом:" |
| 3310 |
|
| 3311 |
#. type: Plain text |
| 3312 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3313 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3314 |
#, fuzzy, no-wrap |
| 3315 |
#| msgid "normalized_counter = counter * t_enabled / t_running\n" |
| 3316 |
msgid "normalized_counter = counter * t_enabled / t_running\n" |
| 3317 |
msgstr "normalized_counter = counter * t_enabled / t_running\n" |
| 3318 |
|
| 3319 |
#. type: Plain text |
| 3320 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3321 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3322 |
#, fuzzy |
| 3323 |
#| msgid "" |
| 3324 |
#| "Where t_enabled is the time enabled for event and t_running is the time " |
| 3325 |
#| "running for event since last normalization. The enabled and running times " |
| 3326 |
#| "are accumulated since the perf event open. To achieve scaling factor " |
| 3327 |
#| "between two invocations of an eBPF program, users can can use CPU id as " |
| 3328 |
#| "the key (which is typical for perf array usage model) to remember the " |
| 3329 |
#| "previous value and do the calculation inside the eBPF program." |
| 3330 |
msgid "" |
| 3331 |
"Where t_enabled is the time enabled for event and t_running is the time " |
| 3332 |
"running for event since last normalization. The enabled and running times " |
| 3333 |
"are accumulated since the perf event open. To achieve scaling factor between " |
| 3334 |
"two invocations of an eBPF program, users can use CPU id as the key (which " |
| 3335 |
"is typical for perf array usage model) to remember the previous value and do " |
| 3336 |
"the calculation inside the eBPF program." |
| 3337 |
msgstr "" |
| 3338 |
"Где t_enabled — время включения события и t_running — время выполнения " |
| 3339 |
"события, начиная с последней нормализации. Времена включения и выполнения " |
| 3340 |
"накапливаются с момента открытия события perf. Для получения масштабирующего " |
| 3341 |
"множителя между двумя вызовами программы eBPF пользователь может " |
| 3342 |
"использовать ID ЦП в качестве ключа (типично при использовании массива perf) " |
| 3343 |
"для запоминания предыдущего значения и выполнить вычисление внутри программы " |
| 3344 |
"eBPF." |
| 3345 |
|
| 3346 |
#. type: TP |
| 3347 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3348 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3349 |
#, fuzzy, no-wrap |
| 3350 |
#| msgid "B<int bpf_perf_prog_read_value(struct bpf_perf_event_data *>I<ctx>B<, struct bpf_perf_event_value *>I<buf>B<, u32 >I<buf_size>B<)>" |
| 3351 |
msgid "B<long bpf_perf_prog_read_value(struct bpf_perf_event_data *>I<ctx>B<, struct bpf_perf_event_value *>I<buf>B<, u32 >I<buf_size>B<)>" |
| 3352 |
msgstr "B<int bpf_perf_prog_read_value(struct bpf_perf_event_data *>I<ctx>B<, struct bpf_perf_event_value *>I<buf>B<, u32 >I<buf_size>B<)>" |
| 3353 |
|
| 3354 |
#. type: Plain text |
| 3355 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3356 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3357 |
#, fuzzy |
| 3358 |
#| msgid "" |
| 3359 |
#| "For en eBPF program attached to a perf event, retrieve the value of the " |
| 3360 |
#| "event counter associated to I<ctx> and store it in the structure pointed " |
| 3361 |
#| "by I<buf> and of size I<buf_size>\\&. Enabled and running times are also " |
| 3362 |
#| "stored in the structure (see description of helper " |
| 3363 |
#| "B<bpf_perf_event_read_value>() for more details)." |
| 3364 |
msgid "" |
| 3365 |
"For an eBPF program attached to a perf event, retrieve the value of the " |
| 3366 |
"event counter associated to I<ctx> and store it in the structure pointed by " |
| 3367 |
"I<buf> and of size I<buf_size>\\&. Enabled and running times are also stored " |
| 3368 |
"in the structure (see description of helper B<bpf_perf_event_read_value>() " |
| 3369 |
"for more details)." |
| 3370 |
msgstr "" |
| 3371 |
"Для программы eBPF, присоединённой к событию perf, возвращает значение " |
| 3372 |
"счётчика события, связанного с I<ctx>, и записывает его в структуру, на " |
| 3373 |
"которую указывает I<buf> и размер I<buf_size>\\&. Время включения и " |
| 3374 |
"выполнения также записываются в структуру (смотрите описание помощника " |
| 3375 |
"B<bpf_perf_event_read_value>())." |
| 3376 |
|
| 3377 |
#. type: TP |
| 3378 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3379 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3380 |
#, fuzzy, no-wrap |
| 3381 |
#| msgid "B<int bpf_getsockopt(struct bpf_sock_ops *>I<bpf_socket>B<, int >I<level>B<, int >I<optname>B<, char *>I<optval>B<, int >I<optlen>B<)>" |
| 3382 |
msgid "B<long bpf_getsockopt(void *>I<bpf_socket>B<, int >I<level>B<, int >I<optname>B<, void *>I<optval>B<, int >I<optlen>B<)>" |
| 3383 |
msgstr "B<int bpf_getsockopt(struct bpf_sock_ops *>I<bpf_socket>B<, int >I<level>B<, int >I<optname>B<, char *>I<optval>B<, int >I<optlen>B<)>" |
| 3384 |
|
| 3385 |
#. type: Plain text |
| 3386 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3387 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3388 |
msgid "" |
| 3389 |
"Emulate a call to B<getsockopt()> on the socket associated to I<bpf_socket>, " |
| 3390 |
"which must be a full socket. The I<level> at which the option resides and " |
| 3391 |
"the name I<optname> of the option must be specified, see B<getsockopt(2)> " |
| 3392 |
"for more information. The retrieved value is stored in the structure " |
| 3393 |
"pointed by I<opval> and of length I<optlen>\\&." |
| 3394 |
msgstr "" |
| 3395 |
"Эмулирует вызов B<getsockopt()> для сокета, связанного с I<bpf_socket>, " |
| 3396 |
"который должен быть полным сокетом. Должны быть заданы уровень I<level>, на " |
| 3397 |
"котором располагается параметр, и и имя I<optname>, подробности смотрите в " |
| 3398 |
"B<getsockopt(2)>. Возвращаемое значение записывается в структуру, на которую " |
| 3399 |
"указывает I<opval>, и имеющая размер I<optlen>\\&." |
| 3400 |
|
| 3401 |
#. type: Plain text |
| 3402 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3403 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3404 |
msgid "" |
| 3405 |
"This helper actually implements a subset of B<getsockopt()>\\&. It supports " |
| 3406 |
"the same set of I<optname>s that is supported by the B<bpf_setsockopt>() " |
| 3407 |
"helper. The exceptions are B<TCP_BPF_*> is B<bpf_setsockopt>() only and " |
| 3408 |
"B<TCP_SAVED_SYN> is B<bpf_getsockopt>() only." |
| 3409 |
msgstr "" |
| 3410 |
|
| 3411 |
#. type: TP |
| 3412 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3413 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3414 |
#, fuzzy, no-wrap |
| 3415 |
#| msgid "B<int bpf_override_return(struct pt_reg *>I<regs>B<, u64 >I<rc>B<)>" |
| 3416 |
msgid "B<long bpf_override_return(struct pt_regs *>I<regs>B<, u64 >I<rc>B<)>" |
| 3417 |
msgstr "B<int bpf_override_return(struct pt_reg *>I<regs>B<, u64 >I<rc>B<)>" |
| 3418 |
|
| 3419 |
#. type: Plain text |
| 3420 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3421 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3422 |
msgid "" |
| 3423 |
"Used for error injection, this helper uses kprobes to override the return " |
| 3424 |
"value of the probed function, and to set it to I<rc>\\&. The first argument " |
| 3425 |
"is the context I<regs> on which the kprobe works." |
| 3426 |
msgstr "" |
| 3427 |
"Используется для вставки ошибки; этот помощник использует kprobes для " |
| 3428 |
"перезаписи возвращаемого значения тестируемой (probed) функции и изменяет её " |
| 3429 |
"на I<rc>\\&. С первым аргументом — контекст I<regs> — работает kprobe." |
| 3430 |
|
| 3431 |
#. type: Plain text |
| 3432 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3433 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3434 |
#, fuzzy |
| 3435 |
#| msgid "" |
| 3436 |
#| "This helper works by setting setting the PC (program counter) to an " |
| 3437 |
#| "override function which is run in place of the original probed function. " |
| 3438 |
#| "This means the probed function is not run at all. The replacement " |
| 3439 |
#| "function just returns with the required value." |
| 3440 |
msgid "" |
| 3441 |
"This helper works by setting the PC (program counter) to an override " |
| 3442 |
"function which is run in place of the original probed function. This means " |
| 3443 |
"the probed function is not run at all. The replacement function just returns " |
| 3444 |
"with the required value." |
| 3445 |
msgstr "" |
| 3446 |
"Этот помощник изменяет PC (программный счётчик) на перезаписываемую функцию, " |
| 3447 |
"которая выполняется вместо изначальной тестируемой функции. Это означает, " |
| 3448 |
"что тестируемая функция вообще не выполняется. Заменяющая функция просто " |
| 3449 |
"возвращает требуемое значение." |
| 3450 |
|
| 3451 |
#. type: Plain text |
| 3452 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3453 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3454 |
msgid "" |
| 3455 |
"This helper has security implications, and thus is subject to restrictions. " |
| 3456 |
"It is only available if the kernel was compiled with the " |
| 3457 |
"B<CONFIG_BPF_KPROBE_OVERRIDE> configuration option, and in this case it only " |
| 3458 |
"works on functions tagged with B<ALLOW_ERROR_INJECTION> in the kernel code." |
| 3459 |
msgstr "" |
| 3460 |
"Этот помощник является потенциальным нарушителем безопасности и поэтому " |
| 3461 |
"подвергнут ограничениям. Он доступен только, если ядро скомпилировано с " |
| 3462 |
"параметром настройки B<CONFIG_BPF_KPROBE_OVERRIDE> и при этом работает " |
| 3463 |
"только с функциями, помеченными B<ALLOW_ERROR_INJECTION> в коде ядре." |
| 3464 |
|
| 3465 |
#. type: TP |
| 3466 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3467 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3468 |
#, fuzzy, no-wrap |
| 3469 |
#| msgid "B<int bpf_sock_ops_cb_flags_set(struct bpf_sock_ops *>I<bpf_sock>B<, int >I<argval>B<)>" |
| 3470 |
msgid "B<long bpf_sock_ops_cb_flags_set(struct bpf_sock_ops *>I<bpf_sock>B<, int >I<argval>B<)>" |
| 3471 |
msgstr "B<int bpf_sock_ops_cb_flags_set(struct bpf_sock_ops *>I<bpf_sock>B<, int >I<argval>B<)>" |
| 3472 |
|
| 3473 |
#. type: Plain text |
| 3474 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3475 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3476 |
msgid "" |
| 3477 |
"Attempt to set the value of the B<bpf_sock_ops_cb_flags> field for the full " |
| 3478 |
"TCP socket associated to I<bpf_sock_ops> to I<argval>\\&." |
| 3479 |
msgstr "" |
| 3480 |
"Пытается присвоить значение I<argval> полю B<bpf_sock_ops_cb_flags> для " |
| 3481 |
"полного сокета TCP, связанного с I<bpf_sock_ops>." |
| 3482 |
|
| 3483 |
#. type: Plain text |
| 3484 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3485 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3486 |
msgid "" |
| 3487 |
"The primary use of this field is to determine if there should be calls to " |
| 3488 |
"eBPF programs of type B<BPF_PROG_TYPE_SOCK_OPS> at various points in the TCP " |
| 3489 |
"code. A program of the same type can change its value, per connection and as " |
| 3490 |
"necessary, when the connection is established. This field is directly " |
| 3491 |
"accessible for reading, but this helper must be used for updates in order to " |
| 3492 |
"return an error if an eBPF program tries to set a callback that is not " |
| 3493 |
"supported in the current kernel." |
| 3494 |
msgstr "" |
| 3495 |
"Основным предназначением этого поля является определение, вызывать ли " |
| 3496 |
"программы eBPF с типом B<BPF_PROG_TYPE_SOCK_OPS> в различных случаях из кода " |
| 3497 |
"TCP. Программа такого типа может менять это значение для каждого соединения, " |
| 3498 |
"если нужно, после установления соединения. Это поле доступно для прямого " |
| 3499 |
"чтения, но данный помощник нужно использовать, чтобы получить ошибку " |
| 3500 |
"обновления, если программа eBPF пытается назначить обратный вызов, который " |
| 3501 |
"не поддерживается в текущем ядре." |
| 3502 |
|
| 3503 |
#. type: Plain text |
| 3504 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3505 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3506 |
msgid "I<argval> is a flag array which can combine these flags:" |
| 3507 |
msgstr "" |
| 3508 |
|
| 3509 |
#. type: Plain text |
| 3510 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3511 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3512 |
msgid "B<BPF_SOCK_OPS_RTO_CB_FLAG> (retransmission time out)" |
| 3513 |
msgstr "B<BPF_SOCK_OPS_RTO_CB_FLAG> (истекло время повторной передачи)" |
| 3514 |
|
| 3515 |
#. type: Plain text |
| 3516 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3517 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3518 |
msgid "B<BPF_SOCK_OPS_RETRANS_CB_FLAG> (retransmission)" |
| 3519 |
msgstr "B<BPF_SOCK_OPS_RETRANS_CB_FLAG> (повторная передача)" |
| 3520 |
|
| 3521 |
#. type: Plain text |
| 3522 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3523 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3524 |
msgid "B<BPF_SOCK_OPS_STATE_CB_FLAG> (TCP state change)" |
| 3525 |
msgstr "B<BPF_SOCK_OPS_STATE_CB_FLAG> (изменение состояния TCP)" |
| 3526 |
|
| 3527 |
#. type: Plain text |
| 3528 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3529 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3530 |
#, fuzzy |
| 3531 |
#| msgid "B<BPF_SOCK_OPS_RETRANS_CB_FLAG> (retransmission)" |
| 3532 |
msgid "B<BPF_SOCK_OPS_RTT_CB_FLAG> (every RTT)" |
| 3533 |
msgstr "B<BPF_SOCK_OPS_RETRANS_CB_FLAG> (повторная передача)" |
| 3534 |
|
| 3535 |
#. type: Plain text |
| 3536 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3537 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3538 |
msgid "" |
| 3539 |
"Therefore, this function can be used to clear a callback flag by setting the " |
| 3540 |
"appropriate bit to zero. e.g. to disable the RTO callback:" |
| 3541 |
msgstr "" |
| 3542 |
|
| 3543 |
#. type: TP |
| 3544 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3545 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3546 |
#, fuzzy, no-wrap |
| 3547 |
#| msgid "B<int bpf_sock_ops_cb_flags_set(struct bpf_sock_ops *>I<bpf_sock>B<, int >I<argval>B<)>" |
| 3548 |
msgid "B<bpf_sock_ops_cb_flags_set(bpf_sock,>" |
| 3549 |
msgstr "B<int bpf_sock_ops_cb_flags_set(struct bpf_sock_ops *>I<bpf_sock>B<, int >I<argval>B<)>" |
| 3550 |
|
| 3551 |
#. type: Plain text |
| 3552 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3553 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3554 |
msgid "B<bpf_sock-E<gt>bpf_sock_ops_cb_flags & ~BPF_SOCK_OPS_RTO_CB_FLAG)>" |
| 3555 |
msgstr "" |
| 3556 |
|
| 3557 |
#. type: Plain text |
| 3558 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3559 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3560 |
msgid "Here are some examples of where one could call such eBPF program:" |
| 3561 |
msgstr "Вот некоторые примеры, когда может вызываться такая программа eBPF:" |
| 3562 |
|
| 3563 |
#. type: Plain text |
| 3564 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3565 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3566 |
msgid "When RTO fires." |
| 3567 |
msgstr "При возникновении RTO." |
| 3568 |
|
| 3569 |
#. type: Plain text |
| 3570 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3571 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3572 |
msgid "When a packet is retransmitted." |
| 3573 |
msgstr "При повторной посылке пакета." |
| 3574 |
|
| 3575 |
#. type: Plain text |
| 3576 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3577 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3578 |
msgid "When the connection terminates." |
| 3579 |
msgstr "При завершении соединения." |
| 3580 |
|
| 3581 |
#. type: Plain text |
| 3582 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3583 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3584 |
msgid "When a packet is sent." |
| 3585 |
msgstr "При посылке пакета." |
| 3586 |
|
| 3587 |
#. type: Plain text |
| 3588 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3589 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3590 |
msgid "When a packet is received." |
| 3591 |
msgstr "При получении пакета." |
| 3592 |
|
| 3593 |
#. type: Plain text |
| 3594 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3595 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3596 |
msgid "" |
| 3597 |
"Code B<-EINVAL> if the socket is not a full TCP socket; otherwise, a " |
| 3598 |
"positive number containing the bits that could not be set is returned (which " |
| 3599 |
"comes down to 0 if all bits were set as required)." |
| 3600 |
msgstr "" |
| 3601 |
"Код B<-EINVAL>, если сокет не является полным сокетом TCP; в противном " |
| 3602 |
"случае возвращается положительное число, содержащее биты, которые не могут " |
| 3603 |
"быть установлены (то есть 0, если установлены все требуемые биты)." |
| 3604 |
|
| 3605 |
#. type: TP |
| 3606 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3607 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3608 |
#, fuzzy, no-wrap |
| 3609 |
#| msgid "B<int bpf_msg_redirect_map(struct sk_msg_buff *>I<msg>B<, struct bpf_map *>I<map>B<, u32 >I<key>B<, u64 >I<flags>B<)>" |
| 3610 |
msgid "B<long bpf_msg_redirect_map(struct sk_msg_buff *>I<msg>B<, struct bpf_map *>I<map>B<, u32 >I<key>B<, u64 >I<flags>B<)>" |
| 3611 |
msgstr "B<int bpf_msg_redirect_map(struct sk_msg_buff *>I<msg>B<, struct bpf_map *>I<map>B<, u32 >I<key>B<, u64 >I<flags>B<)>" |
| 3612 |
|
| 3613 |
#. type: Plain text |
| 3614 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3615 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3616 |
msgid "" |
| 3617 |
"This helper is used in programs implementing policies at the socket level. " |
| 3618 |
"If the message I<msg> is allowed to pass (i.e. if the verdict eBPF program " |
| 3619 |
"returns B<SK_PASS>), redirect it to the socket referenced by I<map> (of type " |
| 3620 |
"B<BPF_MAP_TYPE_SOCKMAP>) at index I<key>\\&. Both ingress and egress " |
| 3621 |
"interfaces can be used for redirection. The B<BPF_F_INGRESS> value in " |
| 3622 |
"I<flags> is used to make the distinction (ingress path is selected if the " |
| 3623 |
"flag is present, egress path otherwise). This is the only flag supported for " |
| 3624 |
"now." |
| 3625 |
msgstr "" |
| 3626 |
"Этот помощник используется в программах, которые описывают политики на " |
| 3627 |
"уровне сокета. Если сообщению I<msg> разрешено проходить дальше (т. е., если " |
| 3628 |
"решающая программа eBPF вернула B<SK_PASS>), то оно перенаправляется в " |
| 3629 |
"сокет, на который указывает индекс I<key>I<key> в I<map> (с типом " |
| 3630 |
"B<BPF_MAP_TYPE_SOCKMAP>). Для перенаправления можно использовать как " |
| 3631 |
"входящий так и исходящий интерфейсы. В качестве отличительного признака в " |
| 3632 |
"I<flags> используется значение B<BPF_F_INGRESS> (выбирается входящий путь, " |
| 3633 |
"если флаг указан, в противном случае — исходящий). В настоящее время " |
| 3634 |
"поддерживается только этот флаг." |
| 3635 |
|
| 3636 |
#. type: TP |
| 3637 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3638 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3639 |
#, fuzzy, no-wrap |
| 3640 |
#| msgid "B<int bpf_msg_apply_bytes(struct sk_msg_buff *>I<msg>B<, u32 >I<bytes>B<)>" |
| 3641 |
msgid "B<long bpf_msg_apply_bytes(struct sk_msg_buff *>I<msg>B<, u32 >I<bytes>B<)>" |
| 3642 |
msgstr "B<int bpf_msg_apply_bytes(struct sk_msg_buff *>I<msg>B<, u32 >I<bytes>B<)>" |
| 3643 |
|
| 3644 |
#. type: Plain text |
| 3645 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3646 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3647 |
msgid "" |
| 3648 |
"For socket policies, apply the verdict of the eBPF program to the next " |
| 3649 |
"I<bytes> (number of bytes) of message I<msg>\\&." |
| 3650 |
msgstr "" |
| 3651 |
"Для политик сокетов; выносит решение программе eBPF о следующих I<bytes> " |
| 3652 |
"(количество байт) сообщения I<msg>\\&." |
| 3653 |
|
| 3654 |
#. type: Plain text |
| 3655 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3656 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3657 |
msgid "For example, this helper can be used in the following cases:" |
| 3658 |
msgstr "Например, этот помощник можно использовать в следующих случаях:" |
| 3659 |
|
| 3660 |
#. type: Plain text |
| 3661 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3662 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3663 |
msgid "" |
| 3664 |
"A single B<sendmsg>() or B<sendfile>() system call contains multiple logical " |
| 3665 |
"messages that the eBPF program is supposed to read and for which it should " |
| 3666 |
"apply a verdict." |
| 3667 |
msgstr "" |
| 3668 |
"Одиночный системный вызов B<sendmsg>() или B<sendfile>() содержит несколько " |
| 3669 |
"логических сообщений, которые программа eBPF хочет прочитать и для которых " |
| 3670 |
"нужно принять решение." |
| 3671 |
|
| 3672 |
#. type: Plain text |
| 3673 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3674 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3675 |
msgid "" |
| 3676 |
"An eBPF program only cares to read the first I<bytes> of a I<msg>\\&. If the " |
| 3677 |
"message has a large payload, then setting up and calling the eBPF program " |
| 3678 |
"repeatedly for all bytes, even though the verdict is already known, would " |
| 3679 |
"create unnecessary overhead." |
| 3680 |
msgstr "" |
| 3681 |
"Программа eBPF заботится о чтении только первых I<bytes> из I<msg>\\&. Если " |
| 3682 |
"сообщение содержит больше полезной нагрузки, то для всех байт приходится " |
| 3683 |
"настраиваить параметры и вызывать программу eBPF в цикле, хотя решение уже " |
| 3684 |
"известно, что приводит к ненужным затратам." |
| 3685 |
|
| 3686 |
#. type: Plain text |
| 3687 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3688 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3689 |
msgid "" |
| 3690 |
"When called from within an eBPF program, the helper sets a counter internal " |
| 3691 |
"to the BPF infrastructure, that is used to apply the last verdict to the " |
| 3692 |
"next I<bytes>\\&. If I<bytes> is smaller than the current data being " |
| 3693 |
"processed from a B<sendmsg>() or B<sendfile>() system call, the first " |
| 3694 |
"I<bytes> will be sent and the eBPF program will be re-run with the pointer " |
| 3695 |
"for start of data pointing to byte number I<bytes> B<+ 1>\\&. If I<bytes> is " |
| 3696 |
"larger than the current data being processed, then the eBPF verdict will be " |
| 3697 |
"applied to multiple B<sendmsg>() or B<sendfile>() calls until I<bytes> are " |
| 3698 |
"consumed." |
| 3699 |
msgstr "" |
| 3700 |
"При вызове из программы eBPF, помощник настраивает внутренний счётчик в " |
| 3701 |
"инфраструктуре BPF, который используется для выборки последнего решения для " |
| 3702 |
"следующих I<bytes>\\&. Если значение I<bytes> меньше, чем текущих данных, " |
| 3703 |
"полученных из системного вызова B<sendmsg>() или B<sendfile>(), то будут " |
| 3704 |
"посланы первые I<bytes> и программа eBPF выполнится повторно с указателем на " |
| 3705 |
"начало данных, описывающим байт номер I<bytes> B<+ 1>\\&. Если значение " |
| 3706 |
"I<bytes> больше текущих обрабатываемых данных, то следующее решение eBPF " |
| 3707 |
"будет применено к нескольких вызовам B<sendmsg>() или B<sendfile>(), пока не " |
| 3708 |
"израсходуются все I<bytes>." |
| 3709 |
|
| 3710 |
#. type: Plain text |
| 3711 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3712 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3713 |
msgid "" |
| 3714 |
"Note that if a socket closes with the internal counter holding a non-zero " |
| 3715 |
"value, this is not a problem because data is not being buffered for I<bytes> " |
| 3716 |
"and is sent as it is received." |
| 3717 |
msgstr "" |
| 3718 |
"Заметим, что если сокет закрыт с значением внутреннего счётчика отличным от " |
| 3719 |
"нуля, то это не проблема, так как данные не буферизуются для I<bytes> и " |
| 3720 |
"пошлются сразу при получении." |
| 3721 |
|
| 3722 |
#. type: TP |
| 3723 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3724 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3725 |
#, fuzzy, no-wrap |
| 3726 |
#| msgid "B<int bpf_msg_cork_bytes(struct sk_msg_buff *>I<msg>B<, u32 >I<bytes>B<)>" |
| 3727 |
msgid "B<long bpf_msg_cork_bytes(struct sk_msg_buff *>I<msg>B<, u32 >I<bytes>B<)>" |
| 3728 |
msgstr "B<int bpf_msg_cork_bytes(struct sk_msg_buff *>I<msg>B<, u32 >I<bytes>B<)>" |
| 3729 |
|
| 3730 |
#. type: Plain text |
| 3731 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3732 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3733 |
msgid "" |
| 3734 |
"For socket policies, prevent the execution of the verdict eBPF program for " |
| 3735 |
"message I<msg> until I<bytes> (byte number) have been accumulated." |
| 3736 |
msgstr "" |
| 3737 |
"Для политик сокетов; предотвращает выполнение программы eBPF, выносящей " |
| 3738 |
"решение для сообщения I<msg> до тех пор, пока не наберётся количество байт " |
| 3739 |
"I<bytes>." |
| 3740 |
|
| 3741 |
#. type: Plain text |
| 3742 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3743 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3744 |
msgid "" |
| 3745 |
"This can be used when one needs a specific number of bytes before a verdict " |
| 3746 |
"can be assigned, even if the data spans multiple B<sendmsg>() or " |
| 3747 |
"B<sendfile>() calls. The extreme case would be a user calling B<sendmsg>() " |
| 3748 |
"repeatedly with 1-byte long message segments. Obviously, this is bad for " |
| 3749 |
"performance, but it is still valid. If the eBPF program needs I<bytes> bytes " |
| 3750 |
"to validate a header, this helper can be used to prevent the eBPF program to " |
| 3751 |
"be called again until I<bytes> have been accumulated." |
| 3752 |
msgstr "" |
| 3753 |
"Это можно использовать, когда для принятия решения нужно определённое " |
| 3754 |
"количество байт, даже если данные распределены между несколькими вызовами " |
| 3755 |
"B<sendmsg>() или B<sendfile>(). Можно представить крайний случай, когда " |
| 3756 |
"пользователь вызывает B<sendmsg>() несколько раз разбивания сообщение по 1 " |
| 3757 |
"байту. Очевидно, что это плохо сказывается на производительности, хотя и " |
| 3758 |
"работает. Если программе eBPF для проверки заголовка нужно I<bytes> байт, то " |
| 3759 |
"помощник можно использовать для задержки вызова программы eBPF до тех пор, " |
| 3760 |
"пока не будет накоплено нужное количество I<bytes>." |
| 3761 |
|
| 3762 |
#. type: TP |
| 3763 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3764 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3765 |
#, fuzzy, no-wrap |
| 3766 |
#| msgid "B<int bpf_msg_pull_data(struct sk_msg_buff *>I<msg>B<, u32 >I<start>B<, u32 >I<end>B<, u64 >I<flags>B<)>" |
| 3767 |
msgid "B<long bpf_msg_pull_data(struct sk_msg_buff *>I<msg>B<, u32 >I<start>B<, u32 >I<end>B<, u64 >I<flags>B<)>" |
| 3768 |
msgstr "B<int bpf_msg_pull_data(struct sk_msg_buff *>I<msg>B<, u32 >I<start>B<, u32 >I<end>B<, u64 >I<flags>B<)>" |
| 3769 |
|
| 3770 |
#. type: Plain text |
| 3771 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3772 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3773 |
msgid "" |
| 3774 |
"For socket policies, pull in non-linear data from user space for I<msg> and " |
| 3775 |
"set pointers I<msg>B<-E<gt>data> and I<msg>B<-E<gt>data_end> to I<start> and " |
| 3776 |
"I<end> bytes offsets into I<msg>, respectively." |
| 3777 |
msgstr "" |
| 3778 |
"Для политик сокетов; вытягивает нелинейные данные в I<msg> из " |
| 3779 |
"пользовательского пространства и изменяет указатели I<msg>B<-E<gt>data> и " |
| 3780 |
"I<msg>B<-E<gt>data_end> на I<start> и I<end> байтового смещения в I<msg>, " |
| 3781 |
"соответственно." |
| 3782 |
|
| 3783 |
#. type: Plain text |
| 3784 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3785 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3786 |
msgid "" |
| 3787 |
"If a program of type B<BPF_PROG_TYPE_SK_MSG> is run on a I<msg> it can only " |
| 3788 |
"parse data that the (B<data>, B<data_end>) pointers have already consumed. " |
| 3789 |
"For B<sendmsg>() hooks this is likely the first scatterlist element. But for " |
| 3790 |
"calls relying on the B<sendpage> handler (e.g. B<sendfile>()) this will be " |
| 3791 |
"the range (B<0>, B<0>) because the data is shared with user space and by " |
| 3792 |
"default the objective is to avoid allowing user space to modify data while " |
| 3793 |
"(or after) eBPF verdict is being decided. This helper can be used to pull in " |
| 3794 |
"data and to set the start and end pointer to given values. Data will be " |
| 3795 |
"copied if necessary (i.e. if data was not linear and if start and end " |
| 3796 |
"pointers do not point to the same chunk)." |
| 3797 |
msgstr "" |
| 3798 |
"Если программа имеет тип B<BPF_PROG_TYPE_SK_MSG> и выполняется для I<msg>, " |
| 3799 |
"то она может обрабатывать только данные, для которых уже настроены указатели " |
| 3800 |
"(B<data>, B<data_end>). Для перехватчиков B<sendmsg>(), это, вероятно, " |
| 3801 |
"первый элемент scatterlist. Но для вызовов полагающихся на обработчик " |
| 3802 |
"B<sendpage> (например, B<sendfile>()), это будет диапазон (B<0>, B<0>), так " |
| 3803 |
"как данные совместно используются с пространством пользователя и по " |
| 3804 |
"умолчанию стремятся избегать разрешать пользовательскому пространству " |
| 3805 |
"изменять данные во время (или после) принятия решения eBPF. Этот помощник " |
| 3806 |
"можно использовать для вытягивания данных и настройки указателей начала и " |
| 3807 |
"конца на заданные значения. Данные будут скопированы при необходимости (т. " |
| 3808 |
"е., если данные нелинейные и если указатели начала и конца не указывают на " |
| 3809 |
"ту же часть)." |
| 3810 |
|
| 3811 |
#. type: TP |
| 3812 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3813 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3814 |
#, fuzzy, no-wrap |
| 3815 |
#| msgid "B<int bpf_bind(struct bpf_sock_addr *>I<ctx>B<, struct sockaddr *>I<addr>B<, int >I<addr_len>B<)>" |
| 3816 |
msgid "B<long bpf_bind(struct bpf_sock_addr *>I<ctx>B<, struct sockaddr *>I<addr>B<, int >I<addr_len>B<)>" |
| 3817 |
msgstr "B<int bpf_bind(struct bpf_sock_addr *>I<ctx>B<, struct sockaddr *>I<addr>B<, int >I<addr_len>B<)>" |
| 3818 |
|
| 3819 |
#. type: Plain text |
| 3820 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3821 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3822 |
msgid "" |
| 3823 |
"Bind the socket associated to I<ctx> to the address pointed by I<addr>, of " |
| 3824 |
"length I<addr_len>\\&. This allows for making outgoing connection from the " |
| 3825 |
"desired IP address, which can be useful for example when all processes " |
| 3826 |
"inside a cgroup should use one single IP address on a host that has multiple " |
| 3827 |
"IP configured." |
| 3828 |
msgstr "" |
| 3829 |
"Привязывает сокет, связанный с I<ctx>, с адресом, на который указывает " |
| 3830 |
"I<addr>, с длиной I<addr_len>\\&. Это позволяет создавать исходящее " |
| 3831 |
"соединение с желаемого IP-адреса, что может быть полезно, например, когда " |
| 3832 |
"все процессы внутри cgroup должны использовать единый IP-адрес на узле с " |
| 3833 |
"несколькими настроенными IP." |
| 3834 |
|
| 3835 |
#. type: Plain text |
| 3836 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3837 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3838 |
#, fuzzy |
| 3839 |
#| msgid "" |
| 3840 |
#| "This helper works for IPv4 and IPv6, TCP and UDP sockets. The domain " |
| 3841 |
#| "(I<addr>B<-E<gt>sa_family>) must be B<AF_INET> (or B<AF_INET6>). Looking " |
| 3842 |
#| "for a free port to bind to can be expensive, therefore binding to port is " |
| 3843 |
#| "not permitted by the helper: I<addr>B<-E<gt>sin_port> (or B<sin6_port>, " |
| 3844 |
#| "respectively) must be set to zero." |
| 3845 |
msgid "" |
| 3846 |
"This helper works for IPv4 and IPv6, TCP and UDP sockets. The domain " |
| 3847 |
"(I<addr>B<-E<gt>sa_family>) must be B<AF_INET> (or B<AF_INET6>). It\\(aqs " |
| 3848 |
"advised to pass zero port (B<sin_port> or B<sin6_port>) which triggers " |
| 3849 |
"IP_BIND_ADDRESS_NO_PORT-like behavior and lets the kernel efficiently pick " |
| 3850 |
"up an unused port as long as 4-tuple is unique. Passing non-zero port might " |
| 3851 |
"lead to degraded performance." |
| 3852 |
msgstr "" |
| 3853 |
"Этот помощник работает с IPv4 и IPv6, сокетами TCP и UDP. Домен (I<addr>B<-" |
| 3854 |
"E<gt>sa_family>) должен быть B<AF_INET> (или B<AF_INET6>). Поиск свободного " |
| 3855 |
"порта для привязки может быть затратным, поэтому помощник не разрешает " |
| 3856 |
"привязку к порту: I<addr>B<-E<gt>sin_port> (или B<sin6_port>, " |
| 3857 |
"соответственно) должны быть равны нулю." |
| 3858 |
|
| 3859 |
#. type: TP |
| 3860 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3861 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3862 |
#, fuzzy, no-wrap |
| 3863 |
#| msgid "B<int bpf_xdp_adjust_tail(struct xdp_buff *>I<xdp_md>B<, int >I<delta>B<)>" |
| 3864 |
msgid "B<long bpf_xdp_adjust_tail(struct xdp_buff *>I<xdp_md>B<, int >I<delta>B<)>" |
| 3865 |
msgstr "B<int bpf_xdp_adjust_tail(struct xdp_buff *>I<xdp_md>B<, int >I<delta>B<)>" |
| 3866 |
|
| 3867 |
#. type: Plain text |
| 3868 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3869 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3870 |
#, fuzzy |
| 3871 |
#| msgid "" |
| 3872 |
#| "Adjust (move) I<xdp_md>B<-E<gt>data_end> by I<delta> bytes. It is only " |
| 3873 |
#| "possible to shrink the packet as of this writing, therefore I<delta> must " |
| 3874 |
#| "be a negative integer." |
| 3875 |
msgid "" |
| 3876 |
"Adjust (move) I<xdp_md>B<-E<gt>data_end> by I<delta> bytes. It is possible " |
| 3877 |
"to both shrink and grow the packet tail. Shrink done via I<delta> being a " |
| 3878 |
"negative integer." |
| 3879 |
msgstr "" |
| 3880 |
"Изменяет (перемещает) I<xdp_md>B<-E<gt>data_end> на I<delta> байт. Возможно " |
| 3881 |
"только уменьшить пакет при записи, поэтому значение I<delta> должно быть " |
| 3882 |
"отрицательным integer." |
| 3883 |
|
| 3884 |
#. type: TP |
| 3885 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3886 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3887 |
#, fuzzy, no-wrap |
| 3888 |
#| msgid "B<int bpf_skb_get_xfrm_state(struct sk_buff *>I<skb>B<, u32 >I<index>B<, struct bpf_xfrm_state *>I<xfrm_state>B<, u32 >I<size>B<, u64 >I<flags>B<)>" |
| 3889 |
msgid "B<long bpf_skb_get_xfrm_state(struct sk_buff *>I<skb>B<, u32 >I<index>B<, struct bpf_xfrm_state *>I<xfrm_state>B<, u32 >I<size>B<, u64 >I<flags>B<)>" |
| 3890 |
msgstr "B<int bpf_skb_get_xfrm_state(struct sk_buff *>I<skb>B<, u32 >I<index>B<, struct bpf_xfrm_state *>I<xfrm_state>B<, u32 >I<size>B<, u64 >I<flags>B<)>" |
| 3891 |
|
| 3892 |
#. type: Plain text |
| 3893 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3894 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3895 |
#, fuzzy |
| 3896 |
#| msgid "" |
| 3897 |
#| "Retrieve the XFRM state (IP transform framework, see also B<ip-xfrm(8)>) " |
| 3898 |
#| "at I<index> in XFRM \"security path\" for I<skb>\\&." |
| 3899 |
msgid "" |
| 3900 |
"Retrieve the XFRM state (IP transform framework, see also B<ip-xfrm(8)>) at " |
| 3901 |
"I<index> in XFRM \"security path\" for I<skb>\\&." |
| 3902 |
msgstr "" |
| 3903 |
"Получает состояние XFRM (инфраструктура преобразования IP, смотрите B<ip-" |
| 3904 |
"xfrm(8)>) по I<index> «пути безопасности» XFRM для I<skb>\\&." |
| 3905 |
|
| 3906 |
#. type: Plain text |
| 3907 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3908 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3909 |
msgid "" |
| 3910 |
"The retrieved value is stored in the B<struct bpf_xfrm_state> pointed by " |
| 3911 |
"I<xfrm_state> and of length I<size>\\&." |
| 3912 |
msgstr "" |
| 3913 |
"Полученное состояние сохраняется в B<struct bpf_xfrm_state>, на который " |
| 3914 |
"указывает I<xfrm_state>, и с длиной I<size>\\&." |
| 3915 |
|
| 3916 |
#. type: Plain text |
| 3917 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3918 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3919 |
msgid "" |
| 3920 |
"This helper is available only if the kernel was compiled with B<CONFIG_XFRM> " |
| 3921 |
"configuration option." |
| 3922 |
msgstr "" |
| 3923 |
"Этот помощник доступен только, если ядро скомпилировано с параметром " |
| 3924 |
"настройки B<CONFIG_XFRM>." |
| 3925 |
|
| 3926 |
#. type: TP |
| 3927 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3928 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3929 |
#, fuzzy, no-wrap |
| 3930 |
#| msgid "B<int bpf_get_stack(struct pt_regs *>I<regs>B<, void *>I<buf>B<, u32 >I<size>B<, u64 >I<flags>B<)>" |
| 3931 |
msgid "B<long bpf_get_stack(void *>I<ctx>B<, void *>I<buf>B<, u32 >I<size>B<, u64 >I<flags>B<)>" |
| 3932 |
msgstr "B<int bpf_get_stack(struct pt_regs *>I<regs>B<, void *>I<buf>B<, u32 >I<size>B<, u64 >I<flags>B<)>" |
| 3933 |
|
| 3934 |
#. type: Plain text |
| 3935 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3936 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3937 |
msgid "" |
| 3938 |
"Return a user or a kernel stack in bpf program provided buffer. To achieve " |
| 3939 |
"this, the helper needs I<ctx>, which is a pointer to the context on which " |
| 3940 |
"the tracing program is executed. To store the stacktrace, the bpf program " |
| 3941 |
"provides I<buf> with a nonnegative I<size>\\&." |
| 3942 |
msgstr "" |
| 3943 |
"Возвращает пользовательский и ядерный стек в буфер, предоставляемый " |
| 3944 |
"программой bpf. Для этого помощнику требуется I<ctx> — указатель на контекст " |
| 3945 |
"выполнения трассирующей программы. Для сохранения stacktrace программа bpf " |
| 3946 |
"предоставляет I<buf> с неотрицательным I<size>\\&." |
| 3947 |
|
| 3948 |
#. type: Plain text |
| 3949 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3950 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3951 |
msgid "" |
| 3952 |
"The last argument, I<flags>, holds the number of stack frames to skip (from " |
| 3953 |
"0 to 255), masked with B<BPF_F_SKIP_FIELD_MASK>\\&. The next bits can be " |
| 3954 |
"used to set the following flags:" |
| 3955 |
msgstr "" |
| 3956 |
"В последнем параметре, I<flags>, хранится пропускаемое количество кадров " |
| 3957 |
"стека (от 0 до 255) с наложенной маской B<BPF_F_SKIP_FIELD_MASK>\\&. " |
| 3958 |
"Следующие биты можно использовать для задания следующих флагов:" |
| 3959 |
|
| 3960 |
#. type: TP |
| 3961 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3962 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3963 |
#, no-wrap |
| 3964 |
msgid "B<BPF_F_USER_BUILD_ID>" |
| 3965 |
msgstr "B<BPF_F_USER_BUILD_ID>" |
| 3966 |
|
| 3967 |
#. type: Plain text |
| 3968 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3969 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3970 |
#, fuzzy |
| 3971 |
#| msgid "" |
| 3972 |
#| "Collect buildid+offset instead of ips for user stack, only valid if " |
| 3973 |
#| "B<BPF_F_USER_STACK> is also specified." |
| 3974 |
msgid "" |
| 3975 |
"Collect (build_id, file_offset) instead of ips for user stack, only valid if " |
| 3976 |
"B<BPF_F_USER_STACK> is also specified." |
| 3977 |
msgstr "" |
| 3978 |
"Собирать buildid+смещение вместо ips пользовательского стека, доступен " |
| 3979 |
"только, если также указан B<BPF_F_USER_STACK>." |
| 3980 |
|
| 3981 |
#. type: Plain text |
| 3982 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3983 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3984 |
msgid "" |
| 3985 |
"I<file_offset> is an offset relative to the beginning of the executable or " |
| 3986 |
"shared object file backing the vma which the I<ip> falls in. It is I<not> an " |
| 3987 |
"offset relative to that object\\(aqs base address. Accordingly, it must be " |
| 3988 |
"adjusted by adding (sh_addr - sh_offset), where sh_{addr,offset} correspond " |
| 3989 |
"to the executable section containing I<file_offset> in the object, for " |
| 3990 |
"comparisons to symbols\\(aq st_value to be valid." |
| 3991 |
msgstr "" |
| 3992 |
|
| 3993 |
#. type: Plain text |
| 3994 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3995 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3996 |
msgid "" |
| 3997 |
"B<bpf_get_stack>() can collect up to B<PERF_MAX_STACK_DEPTH> both kernel and " |
| 3998 |
"user frames, subject to sufficient large buffer size. Note that this limit " |
| 3999 |
"can be controlled with the B<sysctl> program, and that it should be manually " |
| 4000 |
"increased in order to profile long user stacks (such as stacks for Java " |
| 4001 |
"programs). To do so, use:" |
| 4002 |
msgstr "" |
| 4003 |
"Помощник B<bpf_get_stack>() может собирать до B<PERF_MAX_STACK_DEPTH> " |
| 4004 |
"ядерных и пользовательских кадров, что требует значительно большего размера " |
| 4005 |
"буфера. Заметим, что это ограничение можно изменять программой B<sysctl>, и " |
| 4006 |
"что его нужно вручную увеличивать, если нужно отсматривать длинные " |
| 4007 |
"пользовательские стеки (например, стеки программ Java). Для этого выполните:" |
| 4008 |
|
| 4009 |
#. type: Plain text |
| 4010 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4011 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4012 |
#, fuzzy |
| 4013 |
#| msgid "" |
| 4014 |
#| "A non-negative value equal to or less than I<size> on success, or a " |
| 4015 |
#| "negative error in case of failure." |
| 4016 |
msgid "" |
| 4017 |
"The non-negative copied I<buf> length equal to or less than I<size> on " |
| 4018 |
"success, or a negative error in case of failure." |
| 4019 |
msgstr "" |
| 4020 |
"При успешном выполнении — неотрицательное значение, меньшее или равное " |
| 4021 |
"I<size>; при ошибке — отрицательный код." |
| 4022 |
|
| 4023 |
#. type: TP |
| 4024 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4025 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4026 |
#, fuzzy, no-wrap |
| 4027 |
#| msgid "B<int bpf_skb_load_bytes_relative(const struct sk_buff *>I<skb>B<, u32 >I<offset>B<, void *>I<to>B<, u32 >I<len>B<, u32 >I<start_header>B<)>" |
| 4028 |
msgid "B<long bpf_skb_load_bytes_relative(const void *>I<skb>B<, u32 >I<offset>B<, void *>I<to>B<, u32 >I<len>B<, u32 >I<start_header>B<)>" |
| 4029 |
msgstr "B<int bpf_skb_load_bytes_relative(const struct sk_buff *>I<skb>B<, u32 >I<offset>B<, void *>I<to>B<, u32 >I<len>B<, u32 >I<start_header>B<)>" |
| 4030 |
|
| 4031 |
#. type: Plain text |
| 4032 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4033 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4034 |
msgid "" |
| 4035 |
"This helper is similar to B<bpf_skb_load_bytes>() in that it provides an " |
| 4036 |
"easy way to load I<len> bytes from I<offset> from the packet associated to " |
| 4037 |
"I<skb>, into the buffer pointed by I<to>\\&. The difference to " |
| 4038 |
"B<bpf_skb_load_bytes>() is that a fifth argument I<start_header> exists in " |
| 4039 |
"order to select a base offset to start from. I<start_header> can be one of:" |
| 4040 |
msgstr "" |
| 4041 |
"Этот помощник похож на B<bpf_skb_load_bytes>() тем, что предоставляет " |
| 4042 |
"простой способ загрузки I<len> байт из смещения I<offset> в пакете, " |
| 4043 |
"связанном с I<skb>, в буфер, на который указывает I<to>\\&. Отличие от " |
| 4044 |
"B<bpf_skb_load_bytes>() в том, что имеется пятый аргумент I<start_header>, " |
| 4045 |
"позволяющий выбрать базовое начальное смещение. Значением I<start_header> " |
| 4046 |
"может быть одно из:" |
| 4047 |
|
| 4048 |
#. type: TP |
| 4049 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4050 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4051 |
#, no-wrap |
| 4052 |
msgid "B<BPF_HDR_START_MAC>" |
| 4053 |
msgstr "B<BPF_HDR_START_MAC>" |
| 4054 |
|
| 4055 |
#. type: Plain text |
| 4056 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4057 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4058 |
#, fuzzy |
| 4059 |
#| msgid "Base offset to load data from is I<skb>\\(aqs mac header." |
| 4060 |
msgid "Base offset to load data from is I<skb>\\(aqs mac header." |
| 4061 |
msgstr "Базовое смещение для загрузки данных из заголовка mac I<skb>." |
| 4062 |
|
| 4063 |
#. type: TP |
| 4064 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4065 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4066 |
#, no-wrap |
| 4067 |
msgid "B<BPF_HDR_START_NET>" |
| 4068 |
msgstr "B<BPF_HDR_START_NET>" |
| 4069 |
|
| 4070 |
#. type: Plain text |
| 4071 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4072 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4073 |
#, fuzzy |
| 4074 |
#| msgid "Base offset to load data from is I<skb>\\(aqs network header." |
| 4075 |
msgid "Base offset to load data from is I<skb>\\(aqs network header." |
| 4076 |
msgstr "Базовое смещение для загрузки данных из заголовка сети I<skb>." |
| 4077 |
|
| 4078 |
#. type: Plain text |
| 4079 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4080 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4081 |
#, fuzzy |
| 4082 |
#| msgid "" |
| 4083 |
#| "In general, \"direct packet access\" is the preferred method to access " |
| 4084 |
#| "packet data, however, this helper is in particular useful in socket " |
| 4085 |
#| "filters where I<skb>B<-E<gt>data> does not always point to the start of " |
| 4086 |
#| "the mac header and where \"direct packet access\" is not available." |
| 4087 |
msgid "" |
| 4088 |
"In general, \"direct packet access\" is the preferred method to access " |
| 4089 |
"packet data, however, this helper is in particular useful in socket filters " |
| 4090 |
"where I<skb>B<-E<gt>data> does not always point to the start of the mac " |
| 4091 |
"header and where \"direct packet access\" is not available." |
| 4092 |
msgstr "" |
| 4093 |
"В общем случае, «прямой доступ к пакету» является предпочтительным методом " |
| 4094 |
"доступа к данным пакета, однако, этот помощник иногда полезен в сокетных " |
| 4095 |
"фильтрах, где I<skb>B<-E<gt>data> не всегда указывает на начало заголовка " |
| 4096 |
"mac и «прямой доступ к пакету» недоступен." |
| 4097 |
|
| 4098 |
#. type: TP |
| 4099 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4100 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4101 |
#, fuzzy, no-wrap |
| 4102 |
#| msgid "B<int bpf_fib_lookup(void *>I<ctx>B<, struct bpf_fib_lookup *>I<params>B<, int >I<plen>B<, u32 >I<flags>B<)>" |
| 4103 |
msgid "B<long bpf_fib_lookup(void *>I<ctx>B<, struct bpf_fib_lookup *>I<params>B<, int >I<plen>B<, u32 >I<flags>B<)>" |
| 4104 |
msgstr "B<int bpf_fib_lookup(void *>I<ctx>B<, struct bpf_fib_lookup *>I<params>B<, int >I<plen>B<, u32 >I<flags>B<)>" |
| 4105 |
|
| 4106 |
#. type: Plain text |
| 4107 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4108 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4109 |
msgid "" |
| 4110 |
"Do FIB lookup in kernel tables using parameters in I<params>\\&. If lookup " |
| 4111 |
"is successful and result shows packet is to be forwarded, the neighbor " |
| 4112 |
"tables are searched for the nexthop. If successful (ie., FIB lookup shows " |
| 4113 |
"forwarding and nexthop is resolved), the nexthop address is returned in " |
| 4114 |
"ipv4_dst or ipv6_dst based on family, smac is set to mac address of egress " |
| 4115 |
"device, dmac is set to nexthop mac address, rt_metric is set to metric from " |
| 4116 |
"route (IPv4/IPv6 only), and ifindex is set to the device index of the " |
| 4117 |
"nexthop from the FIB lookup." |
| 4118 |
msgstr "" |
| 4119 |
"Выполняет поиск FIB в таблицах ядра по параметрам из I<params>\\&. Если что-" |
| 4120 |
"то найдено и результат отражает пакет, который будет пересылаться, то в " |
| 4121 |
"соседних таблицах ищется следующий переход (nexthop). Если он найден (т. е., " |
| 4122 |
"находка FIB пересылается и определён следующий переход), то в ipv4_dst или " |
| 4123 |
"ipv6_dst возвращается адрес следующего перехода для семейств, в smac — адрес " |
| 4124 |
"mac исходящего устройства, в dmac — адрес mac следующего перехода, в " |
| 4125 |
"rt_metric — метрика из маршрута (только IPv4/IPv6) и в ifindex — индекс " |
| 4126 |
"устройства следующего перехода из поиска FIB." |
| 4127 |
|
| 4128 |
#. type: Plain text |
| 4129 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4130 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4131 |
msgid "" |
| 4132 |
"I<plen> argument is the size of the passed in struct. I<flags> argument can " |
| 4133 |
"be a combination of one or more of the following values:" |
| 4134 |
msgstr "" |
| 4135 |
"В аргументе I<plen> указывается размер передаваемой структуры. В аргументе " |
| 4136 |
"I<flags> может быть комбинация одного и более следующих значений:" |
| 4137 |
|
| 4138 |
#. type: TP |
| 4139 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4140 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4141 |
#, no-wrap |
| 4142 |
msgid "B<BPF_FIB_LOOKUP_DIRECT>" |
| 4143 |
msgstr "B<BPF_FIB_LOOKUP_DIRECT>" |
| 4144 |
|
| 4145 |
#. type: Plain text |
| 4146 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4147 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4148 |
msgid "Do a direct table lookup vs full lookup using FIB rules." |
| 4149 |
msgstr "" |
| 4150 |
"Выполнять прямой табличный поиск, а не полный поиск с помощью правил FIB." |
| 4151 |
|
| 4152 |
#. type: TP |
| 4153 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4154 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4155 |
#, fuzzy, no-wrap |
| 4156 |
#| msgid "B<BPF_FIB_LOOKUP_DIRECT>" |
| 4157 |
msgid "B<BPF_FIB_LOOKUP_TBID>" |
| 4158 |
msgstr "B<BPF_FIB_LOOKUP_DIRECT>" |
| 4159 |
|
| 4160 |
#. type: Plain text |
| 4161 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4162 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4163 |
msgid "" |
| 4164 |
"Used with BPF_FIB_LOOKUP_DIRECT. Use the routing table ID present in " |
| 4165 |
"I<params>-E<gt>tbid for the fib lookup." |
| 4166 |
msgstr "" |
| 4167 |
|
| 4168 |
#. type: TP |
| 4169 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4170 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4171 |
#, no-wrap |
| 4172 |
msgid "B<BPF_FIB_LOOKUP_OUTPUT>" |
| 4173 |
msgstr "B<BPF_FIB_LOOKUP_OUTPUT>" |
| 4174 |
|
| 4175 |
#. type: Plain text |
| 4176 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4177 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4178 |
msgid "Perform lookup from an egress perspective (default is ingress)." |
| 4179 |
msgstr "Выполнять поиск с исходящей стороны (по умолчанию входящей)." |
| 4180 |
|
| 4181 |
#. type: TP |
| 4182 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4183 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4184 |
#, fuzzy, no-wrap |
| 4185 |
#| msgid "B<BPF_FIB_LOOKUP_DIRECT>" |
| 4186 |
msgid "B<BPF_FIB_LOOKUP_SKIP_NEIGH>" |
| 4187 |
msgstr "B<BPF_FIB_LOOKUP_DIRECT>" |
| 4188 |
|
| 4189 |
#. type: Plain text |
| 4190 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4191 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4192 |
msgid "" |
| 4193 |
"Skip the neighbour table lookup. I<params>-E<gt>dmac and I<params>-E<gt>smac " |
| 4194 |
"will not be set as output. A common use case is to call " |
| 4195 |
"B<bpf_redirect_neigh>() after doing B<bpf_fib_lookup>()." |
| 4196 |
msgstr "" |
| 4197 |
|
| 4198 |
#. type: TP |
| 4199 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4200 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4201 |
#, fuzzy, no-wrap |
| 4202 |
#| msgid "B<BPF_FIB_LOOKUP_DIRECT>" |
| 4203 |
msgid "B<BPF_FIB_LOOKUP_SRC>" |
| 4204 |
msgstr "B<BPF_FIB_LOOKUP_DIRECT>" |
| 4205 |
|
| 4206 |
#. type: Plain text |
| 4207 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4208 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4209 |
msgid "" |
| 4210 |
"Derive and set source IP addr in I<params>-E<gt>ipv{4,6}_src for the " |
| 4211 |
"nexthop. If the src addr cannot be derived, B<BPF_FIB_LKUP_RET_NO_SRC_ADDR> " |
| 4212 |
"is returned. In this case, I<params>-E<gt>dmac and I<params>-E<gt>smac are " |
| 4213 |
"not set either." |
| 4214 |
msgstr "" |
| 4215 |
|
| 4216 |
#. type: TP |
| 4217 |
#: archlinux debian-unstable fedora-44 fedora-rawhide opensuse-leap-16-1 |
| 4218 |
#: opensuse-tumbleweed |
| 4219 |
#, fuzzy, no-wrap |
| 4220 |
#| msgid "B<BPF_FIB_LOOKUP_DIRECT>" |
| 4221 |
msgid "B<BPF_FIB_LOOKUP_MARK>" |
| 4222 |
msgstr "B<BPF_FIB_LOOKUP_DIRECT>" |
| 4223 |
|
| 4224 |
#. type: Plain text |
| 4225 |
#: archlinux debian-unstable fedora-44 fedora-rawhide opensuse-leap-16-1 |
| 4226 |
#: opensuse-tumbleweed |
| 4227 |
msgid "" |
| 4228 |
"Use the mark present in I<params>-E<gt>mark for the fib lookup. This option " |
| 4229 |
"should not be used with BPF_FIB_LOOKUP_DIRECT, as it only has meaning for " |
| 4230 |
"full lookups." |
| 4231 |
msgstr "" |
| 4232 |
|
| 4233 |
#. type: Plain text |
| 4234 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4235 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4236 |
msgid "" |
| 4237 |
"I<ctx> is either B<struct xdp_md> for XDP programs or B<struct sk_buff> tc " |
| 4238 |
"cls_act programs." |
| 4239 |
msgstr "" |
| 4240 |
"Для программ XDP тип I<ctx> равен B<struct xdp_md>, а для программ tc " |
| 4241 |
"cls_act — B<struct sk_buff>." |
| 4242 |
|
| 4243 |
#. type: Plain text |
| 4244 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4245 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4246 |
msgid "E<lt> 0 if any input argument is invalid" |
| 4247 |
msgstr "E<lt> 0, если какой-то из входных параметров некорректен" |
| 4248 |
|
| 4249 |
#. type: Plain text |
| 4250 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4251 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4252 |
msgid "0 on success (packet is forwarded, nexthop neighbor exists)" |
| 4253 |
msgstr "" |
| 4254 |
"При успешном выполнении возвращает 0 (пакет переслан, следующий переход " |
| 4255 |
"существует)" |
| 4256 |
|
| 4257 |
#. type: Plain text |
| 4258 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4259 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4260 |
msgid "" |
| 4261 |
"E<gt> 0 one of B<BPF_FIB_LKUP_RET_> codes explaining why the packet is not " |
| 4262 |
"forwarded or needs assist from full stack" |
| 4263 |
msgstr "" |
| 4264 |
"Если E<gt> 0, то это один из кодов B<BPF_FIB_LKUP_RET_>, объясняющий почему " |
| 4265 |
"пакет не переслан или требуется помощь из полного стека" |
| 4266 |
|
| 4267 |
#. type: Plain text |
| 4268 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4269 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4270 |
msgid "" |
| 4271 |
"If lookup fails with BPF_FIB_LKUP_RET_FRAG_NEEDED, then the MTU was exceeded " |
| 4272 |
"and output params-E<gt>mtu_result contains the MTU." |
| 4273 |
msgstr "" |
| 4274 |
|
| 4275 |
#. type: TP |
| 4276 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4277 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4278 |
#, fuzzy, no-wrap |
| 4279 |
#| msgid "B<int bpf_sock_hash_update(struct bpf_sock_ops_kern *>I<skops>B<, struct bpf_map *>I<map>B<, void *>I<key>B<, u64 >I<flags>B<)>" |
| 4280 |
msgid "B<long bpf_sock_hash_update(struct bpf_sock_ops *>I<skops>B<, struct bpf_map *>I<map>B<, void *>I<key>B<, u64 >I<flags>B<)>" |
| 4281 |
msgstr "B<int bpf_sock_hash_update(struct bpf_sock_ops_kern *>I<skops>B<, struct bpf_map *>I<map>B<, void *>I<key>B<, u64 >I<flags>B<)>" |
| 4282 |
|
| 4283 |
#. type: Plain text |
| 4284 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4285 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4286 |
msgid "" |
| 4287 |
"Add an entry to, or update a sockhash I<map> referencing sockets. The " |
| 4288 |
"I<skops> is used as a new value for the entry associated to I<key>\\&. " |
| 4289 |
"I<flags> is one of:" |
| 4290 |
msgstr "" |
| 4291 |
"Добавляет или обновляет элемент, ссылающийся на сокет, в sockhash I<map>. В " |
| 4292 |
"качестве нового значение элемента, связанного с I<key>, используется " |
| 4293 |
"I<skops>. Значением I<flags> может быть одно из:" |
| 4294 |
|
| 4295 |
#. type: TP |
| 4296 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4297 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4298 |
#, fuzzy, no-wrap |
| 4299 |
#| msgid "B<int bpf_msg_redirect_hash(struct sk_msg_buff *>I<msg>B<, struct bpf_map *>I<map>B<, void *>I<key>B<, u64 >I<flags>B<)>" |
| 4300 |
msgid "B<long bpf_msg_redirect_hash(struct sk_msg_buff *>I<msg>B<, struct bpf_map *>I<map>B<, void *>I<key>B<, u64 >I<flags>B<)>" |
| 4301 |
msgstr "B<int bpf_msg_redirect_hash(struct sk_msg_buff *>I<msg>B<, struct bpf_map *>I<map>B<, void *>I<key>B<, u64 >I<flags>B<)>" |
| 4302 |
|
| 4303 |
#. type: Plain text |
| 4304 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4305 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4306 |
msgid "" |
| 4307 |
"This helper is used in programs implementing policies at the socket level. " |
| 4308 |
"If the message I<msg> is allowed to pass (i.e. if the verdict eBPF program " |
| 4309 |
"returns B<SK_PASS>), redirect it to the socket referenced by I<map> (of type " |
| 4310 |
"B<BPF_MAP_TYPE_SOCKHASH>) using hash I<key>\\&. Both ingress and egress " |
| 4311 |
"interfaces can be used for redirection. The B<BPF_F_INGRESS> value in " |
| 4312 |
"I<flags> is used to make the distinction (ingress path is selected if the " |
| 4313 |
"flag is present, egress path otherwise). This is the only flag supported for " |
| 4314 |
"now." |
| 4315 |
msgstr "" |
| 4316 |
"Этот помощник используется в программах, которые описывают политики на " |
| 4317 |
"уровне сокета. Если сообщению I<msg> разрешено проходить дальше (т. е., если " |
| 4318 |
"решающая программа eBPF вернула B<SK_PASS>), то оно перенаправляется в " |
| 4319 |
"сокет, на который указывает хэш I<key> в I<map> (с типом " |
| 4320 |
"B<BPF_MAP_TYPE_SOCKHASH>). Для перенаправления можно использовать как " |
| 4321 |
"входящий так и исходящий интерфейсы. В качестве отличительного признака в " |
| 4322 |
"I<flags> используется значение B<BPF_F_INGRESS> (выбирается входящий путь, " |
| 4323 |
"если флаг указан, в противном случае — исходящий). В настоящее время " |
| 4324 |
"поддерживается только этот флаг." |
| 4325 |
|
| 4326 |
#. type: TP |
| 4327 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4328 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4329 |
#, fuzzy, no-wrap |
| 4330 |
#| msgid "B<int bpf_sk_redirect_hash(struct sk_buff *>I<skb>B<, struct bpf_map *>I<map>B<, void *>I<key>B<, u64 >I<flags>B<)>" |
| 4331 |
msgid "B<long bpf_sk_redirect_hash(struct sk_buff *>I<skb>B<, struct bpf_map *>I<map>B<, void *>I<key>B<, u64 >I<flags>B<)>" |
| 4332 |
msgstr "B<int bpf_sk_redirect_hash(struct sk_buff *>I<skb>B<, struct bpf_map *>I<map>B<, void *>I<key>B<, u64 >I<flags>B<)>" |
| 4333 |
|
| 4334 |
#. type: Plain text |
| 4335 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4336 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4337 |
#, fuzzy |
| 4338 |
#| msgid "" |
| 4339 |
#| "This helper is used in programs implementing policies at the skb socket " |
| 4340 |
#| "level. If the sk_buff I<skb> is allowed to pass (i.e. if the verdeict " |
| 4341 |
#| "eBPF program returns B<SK_PASS>), redirect it to the socket referenced by " |
| 4342 |
#| "I<map> (of type B<BPF_MAP_TYPE_SOCKHASH>) using hash I<key>\\&. Both " |
| 4343 |
#| "ingress and egress interfaces can be used for redirection. The " |
| 4344 |
#| "B<BPF_F_INGRESS> value in I<flags> is used to make the distinction " |
| 4345 |
#| "(ingress path is selected if the flag is present, egress otherwise). This " |
| 4346 |
#| "is the only flag supported for now." |
| 4347 |
msgid "" |
| 4348 |
"This helper is used in programs implementing policies at the skb socket " |
| 4349 |
"level. If the sk_buff I<skb> is allowed to pass (i.e. if the verdict eBPF " |
| 4350 |
"program returns B<SK_PASS>), redirect it to the socket referenced by I<map> " |
| 4351 |
"(of type B<BPF_MAP_TYPE_SOCKHASH>) using hash I<key>\\&. Both ingress and " |
| 4352 |
"egress interfaces can be used for redirection. The B<BPF_F_INGRESS> value in " |
| 4353 |
"I<flags> is used to make the distinction (ingress path is selected if the " |
| 4354 |
"flag is present, egress otherwise). This is the only flag supported for now." |
| 4355 |
msgstr "" |
| 4356 |
"Этот помощник используется в программах, которые описывают политики на " |
| 4357 |
"уровне сокета skb. Если sk_buff I<skb> разрешено проходить дальше (т. е., " |
| 4358 |
"если решающая программа eBPF вернула B<SK_PASS>), то оно перенаправляется в " |
| 4359 |
"сокет, на который указывает хэш I<key> в I<map> (с типом " |
| 4360 |
"B<BPF_MAP_TYPE_SOCKHASH>). Для перенаправления можно использовать как " |
| 4361 |
"входящий так и исходящий интерфейсы. В качестве отличительного признака в " |
| 4362 |
"I<flags> используется значение B<BPF_F_INGRESS> (выбирается входящий путь, " |
| 4363 |
"если флаг указан, в противном случае — исходящий). В настоящее время " |
| 4364 |
"поддерживается только этот флаг." |
| 4365 |
|
| 4366 |
#. type: TP |
| 4367 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4368 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4369 |
#, fuzzy, no-wrap |
| 4370 |
#| msgid "B<int bpf_lwt_push_encap(struct sk_buff *>I<skb>B<, u32 >I<type>B<, void *>I<hdr>B<, u32 >I<len>B<)>" |
| 4371 |
msgid "B<long bpf_lwt_push_encap(struct sk_buff *>I<skb>B<, u32 >I<type>B<, void *>I<hdr>B<, u32 >I<len>B<)>" |
| 4372 |
msgstr "B<int bpf_lwt_push_encap(struct sk_buff *>I<skb>B<, u32 >I<type>B<, void *>I<hdr>B<, u32 >I<len>B<)>" |
| 4373 |
|
| 4374 |
#. type: Plain text |
| 4375 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4376 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4377 |
msgid "" |
| 4378 |
"Encapsulate the packet associated to I<skb> within a Layer 3 protocol " |
| 4379 |
"header. This header is provided in the buffer at address I<hdr>, with I<len> " |
| 4380 |
"its size in bytes. I<type> indicates the protocol of the header and can be " |
| 4381 |
"one of:" |
| 4382 |
msgstr "" |
| 4383 |
"Формирует пакет, связанный с I<skb>, с заголовком протокола уровня 3. Этот " |
| 4384 |
"заголовок помещается в буфер по адресу I<hdr> размером I<len> байт. Значение " |
| 4385 |
"I<type> задаёт протокол заголовка и может быть одним из:" |
| 4386 |
|
| 4387 |
#. type: TP |
| 4388 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4389 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4390 |
#, no-wrap |
| 4391 |
msgid "B<BPF_LWT_ENCAP_SEG6>" |
| 4392 |
msgstr "B<BPF_LWT_ENCAP_SEG6>" |
| 4393 |
|
| 4394 |
#. type: Plain text |
| 4395 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4396 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4397 |
msgid "" |
| 4398 |
"IPv6 encapsulation with Segment Routing Header (B<struct ipv6_sr_hdr>). " |
| 4399 |
"I<hdr> only contains the SRH, the IPv6 header is computed by the kernel." |
| 4400 |
msgstr "" |
| 4401 |
"Инкапсуляция IPv6 с заголовком посегментной маршрутизации (Segment Routing " |
| 4402 |
"Header, B<struct ipv6_sr_hdr>). В I<hdr> содержится только SRH, заголовок " |
| 4403 |
"IPv6 вычисляется ядром." |
| 4404 |
|
| 4405 |
#. type: TP |
| 4406 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4407 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4408 |
#, no-wrap |
| 4409 |
msgid "B<BPF_LWT_ENCAP_SEG6_INLINE>" |
| 4410 |
msgstr "B<BPF_LWT_ENCAP_SEG6_INLINE>" |
| 4411 |
|
| 4412 |
#. type: Plain text |
| 4413 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4414 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4415 |
msgid "" |
| 4416 |
"Only works if I<skb> contains an IPv6 packet. Insert a Segment Routing " |
| 4417 |
"Header (B<struct ipv6_sr_hdr>) inside the IPv6 header." |
| 4418 |
msgstr "" |
| 4419 |
"Работает только, если в I<skb> содержится пакет IPv6. Вставляет заголовок " |
| 4420 |
"посегментной маршрутизации (Segment Routing Header, B<struct ipv6_sr_hdr>) в " |
| 4421 |
"заголовок IPv6." |
| 4422 |
|
| 4423 |
#. type: TP |
| 4424 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4425 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4426 |
#, fuzzy, no-wrap |
| 4427 |
#| msgid "B<BPF_LWT_ENCAP_SEG6>" |
| 4428 |
msgid "B<BPF_LWT_ENCAP_IP>" |
| 4429 |
msgstr "B<BPF_LWT_ENCAP_SEG6>" |
| 4430 |
|
| 4431 |
#. type: Plain text |
| 4432 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4433 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4434 |
msgid "" |
| 4435 |
"IP encapsulation (GRE/GUE/IPIP/etc). The outer header must be IPv4 or IPv6, " |
| 4436 |
"followed by zero or more additional headers, up to B<LWT_BPF_MAX_HEADROOM> " |
| 4437 |
"total bytes in all prepended headers. Please note that if " |
| 4438 |
"B<skb_is_gso>(I<skb>) is true, no more than two headers can be prepended, " |
| 4439 |
"and the inner header, if present, should be either GRE or UDP/GUE." |
| 4440 |
msgstr "" |
| 4441 |
|
| 4442 |
#. type: Plain text |
| 4443 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4444 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4445 |
msgid "" |
| 4446 |
"B<BPF_LWT_ENCAP_SEG6>* types can be called by BPF programs of type " |
| 4447 |
"B<BPF_PROG_TYPE_LWT_IN>; B<BPF_LWT_ENCAP_IP> type can be called by bpf " |
| 4448 |
"programs of types B<BPF_PROG_TYPE_LWT_IN> and B<BPF_PROG_TYPE_LWT_XMIT>\\&." |
| 4449 |
msgstr "" |
| 4450 |
|
| 4451 |
#. type: TP |
| 4452 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4453 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4454 |
#, fuzzy, no-wrap |
| 4455 |
#| msgid "B<int bpf_lwt_seg6_store_bytes(struct sk_buff *>I<skb>B<, u32 >I<offset>B<, const void *>I<from>B<, u32 >I<len>B<)>" |
| 4456 |
msgid "B<long bpf_lwt_seg6_store_bytes(struct sk_buff *>I<skb>B<, u32 >I<offset>B<, const void *>I<from>B<, u32 >I<len>B<)>" |
| 4457 |
msgstr "B<int bpf_lwt_seg6_store_bytes(struct sk_buff *>I<skb>B<, u32 >I<offset>B<, const void *>I<from>B<, u32 >I<len>B<)>" |
| 4458 |
|
| 4459 |
#. type: Plain text |
| 4460 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4461 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4462 |
msgid "" |
| 4463 |
"Store I<len> bytes from address I<from> into the packet associated to " |
| 4464 |
"I<skb>, at I<offset>\\&. Only the flags, tag and TLVs inside the outermost " |
| 4465 |
"IPv6 Segment Routing Header can be modified through this helper." |
| 4466 |
msgstr "" |
| 4467 |
"Сохраняет I<len> байт, начиная с адреса I<from> в пакет, связанный с I<skb>, " |
| 4468 |
"по смещению I<offset>\\&. С помощью этого помощника можно изменять только " |
| 4469 |
"флаги, тег и TLV в самом внешнем заголовке IPv6 посегментной маршрутизации " |
| 4470 |
"(Segment Routing Header)." |
| 4471 |
|
| 4472 |
#. type: TP |
| 4473 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4474 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4475 |
#, fuzzy, no-wrap |
| 4476 |
#| msgid "B<int bpf_lwt_seg6_adjust_srh(struct sk_buff *>I<skb>B<, u32 >I<offset>B<, s32 >I<delta>B<)>" |
| 4477 |
msgid "B<long bpf_lwt_seg6_adjust_srh(struct sk_buff *>I<skb>B<, u32 >I<offset>B<, s32 >I<delta>B<)>" |
| 4478 |
msgstr "B<int bpf_lwt_seg6_adjust_srh(struct sk_buff *>I<skb>B<, u32 >I<offset>B<, s32 >I<delta>B<)>" |
| 4479 |
|
| 4480 |
#. type: Plain text |
| 4481 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4482 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4483 |
msgid "" |
| 4484 |
"Adjust the size allocated to TLVs in the outermost IPv6 Segment Routing " |
| 4485 |
"Header contained in the packet associated to I<skb>, at position I<offset> " |
| 4486 |
"by I<delta> bytes. Only offsets after the segments are accepted. I<delta> " |
| 4487 |
"can be as well positive (growing) as negative (shrinking)." |
| 4488 |
msgstr "" |
| 4489 |
"Изменяет размер пространства, выделенного для TLV в самом внешнем заголовке " |
| 4490 |
"IPv6 посегментной маршрутизации из пакета, связанного с I<skb> в " |
| 4491 |
"расположении I<offset>, на I<delta> байт. Допускаются только расположения " |
| 4492 |
"после сегментов. Значение I<delta> может быть как положительным (для " |
| 4493 |
"увеличения), так и отрицательным (для уменьшения)." |
| 4494 |
|
| 4495 |
#. type: TP |
| 4496 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4497 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4498 |
#, fuzzy, no-wrap |
| 4499 |
#| msgid "B<int bpf_lwt_seg6_action(struct sk_buff *>I<skb>B<, u32 >I<action>B<, void *>I<param>B<, u32 >I<param_len>B<)>" |
| 4500 |
msgid "B<long bpf_lwt_seg6_action(struct sk_buff *>I<skb>B<, u32 >I<action>B<, void *>I<param>B<, u32 >I<param_len>B<)>" |
| 4501 |
msgstr "B<int bpf_lwt_seg6_action(struct sk_buff *>I<skb>B<, u32 >I<action>B<, void *>I<param>B<, u32 >I<param_len>B<)>" |
| 4502 |
|
| 4503 |
#. type: Plain text |
| 4504 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4505 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4506 |
msgid "" |
| 4507 |
"Apply an IPv6 Segment Routing action of type I<action> to the packet " |
| 4508 |
"associated to I<skb>\\&. Each action takes a parameter contained at address " |
| 4509 |
"I<param>, and of length I<param_len> bytes. I<action> can be one of:" |
| 4510 |
msgstr "" |
| 4511 |
"Применяет действие с типом I<action> посегментной маршрутизации IPv6 в " |
| 4512 |
"пакету, связанному с I<skb>\\&. Каждое действие учитывает параметр, " |
| 4513 |
"содержащейся по адресу I<param> и длиной I<param_len> байт. Значение " |
| 4514 |
"I<action> может быть одним из:" |
| 4515 |
|
| 4516 |
#. type: TP |
| 4517 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4518 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4519 |
#, no-wrap |
| 4520 |
msgid "B<SEG6_LOCAL_ACTION_END_X>" |
| 4521 |
msgstr "B<SEG6_LOCAL_ACTION_END_X>" |
| 4522 |
|
| 4523 |
#. type: Plain text |
| 4524 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4525 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4526 |
msgid "" |
| 4527 |
"End.X action: Endpoint with Layer-3 cross-connect. Type of I<param>: " |
| 4528 |
"B<struct in6_addr>\\&." |
| 4529 |
msgstr "" |
| 4530 |
"Действие End.X: конечная точка (endpoint) с кроссированием на 3 уровне. Тип " |
| 4531 |
"I<param>: B<struct in6_addr>\\&." |
| 4532 |
|
| 4533 |
#. type: TP |
| 4534 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4535 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4536 |
#, no-wrap |
| 4537 |
msgid "B<SEG6_LOCAL_ACTION_END_T>" |
| 4538 |
msgstr "B<SEG6_LOCAL_ACTION_END_T>" |
| 4539 |
|
| 4540 |
#. type: Plain text |
| 4541 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4542 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4543 |
msgid "" |
| 4544 |
"End.T action: Endpoint with specific IPv6 table lookup. Type of I<param>: " |
| 4545 |
"B<int>\\&." |
| 4546 |
msgstr "" |
| 4547 |
"Действие End.T: конечная точка с заданной таблицей поиска IPv6. Тип " |
| 4548 |
"I<param>: B<int>\\&." |
| 4549 |
|
| 4550 |
#. type: TP |
| 4551 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4552 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4553 |
#, no-wrap |
| 4554 |
msgid "B<SEG6_LOCAL_ACTION_END_B6>" |
| 4555 |
msgstr "B<SEG6_LOCAL_ACTION_END_B6>" |
| 4556 |
|
| 4557 |
#. type: Plain text |
| 4558 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4559 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4560 |
#, fuzzy |
| 4561 |
#| msgid "" |
| 4562 |
#| "End.B6 action: Endpoint bound to an SRv6 policy. Type of param: B<struct " |
| 4563 |
#| "ipv6_sr_hdr>\\&." |
| 4564 |
msgid "" |
| 4565 |
"End.B6 action: Endpoint bound to an SRv6 policy. Type of I<param>: B<struct " |
| 4566 |
"ipv6_sr_hdr>\\&." |
| 4567 |
msgstr "" |
| 4568 |
"Действие End.B6: конечная точка привязана к политике SRv6. Тип параметра: " |
| 4569 |
"B<struct ipv6_sr_hdr>\\&." |
| 4570 |
|
| 4571 |
#. type: TP |
| 4572 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4573 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4574 |
#, no-wrap |
| 4575 |
msgid "B<SEG6_LOCAL_ACTION_END_B6_ENCAP>" |
| 4576 |
msgstr "B<SEG6_LOCAL_ACTION_END_B6_ENCAP>" |
| 4577 |
|
| 4578 |
#. type: Plain text |
| 4579 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4580 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4581 |
#, fuzzy |
| 4582 |
#| msgid "" |
| 4583 |
#| "End.B6.Encap action: Endpoint bound to an SRv6 encapsulation policy. " |
| 4584 |
#| "Type of param: B<struct ipv6_sr_hdr>\\&." |
| 4585 |
msgid "" |
| 4586 |
"End.B6.Encap action: Endpoint bound to an SRv6 encapsulation policy. Type " |
| 4587 |
"of I<param>: B<struct ipv6_sr_hdr>\\&." |
| 4588 |
msgstr "" |
| 4589 |
"Действие End.B6.Encap: конечная точка привязана к политике инкапсуляции " |
| 4590 |
"SRv6. Тип параметра: B<struct ipv6_sr_hdr>\\&." |
| 4591 |
|
| 4592 |
#. type: TP |
| 4593 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4594 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4595 |
#, fuzzy, no-wrap |
| 4596 |
#| msgid "B<int bpf_rc_repeat(void *>I<ctx>B<)>" |
| 4597 |
msgid "B<long bpf_rc_repeat(void *>I<ctx>B<)>" |
| 4598 |
msgstr "B<int bpf_rc_repeat(void *>I<ctx>B<)>" |
| 4599 |
|
| 4600 |
#. type: Plain text |
| 4601 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4602 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4603 |
msgid "" |
| 4604 |
"This helper is used in programs implementing IR decoding, to report a " |
| 4605 |
"successfully decoded repeat key message. This delays the generation of a key " |
| 4606 |
"up event for previously generated key down event." |
| 4607 |
msgstr "" |
| 4608 |
"Этот помощник используется в программах, реализующих декодирование IR, для " |
| 4609 |
"сообщения об успешном декодировании сообщения о повторно нажатой клавише. Он " |
| 4610 |
"задерживает генерацию события об отпускании клавиши для сгенериванного ранее " |
| 4611 |
"события нажатия клавиши." |
| 4612 |
|
| 4613 |
#. type: Plain text |
| 4614 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4615 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4616 |
msgid "" |
| 4617 |
"Some IR protocols like NEC have a special IR message for repeating last " |
| 4618 |
"button, for when a button is held down." |
| 4619 |
msgstr "" |
| 4620 |
"В некоторых протоколах IR, например NEC, есть специальное сообщение IR для " |
| 4621 |
"повтора последней клавиши, чтобы показать, что клавиша остаётся нажатой." |
| 4622 |
|
| 4623 |
#. type: Plain text |
| 4624 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4625 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4626 |
msgid "The I<ctx> should point to the lirc sample as passed into the program." |
| 4627 |
msgstr "" |
| 4628 |
"Значение I<ctx> должно указывать на выборку lirc, переданную программе." |
| 4629 |
|
| 4630 |
#. type: Plain text |
| 4631 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4632 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4633 |
#, fuzzy |
| 4634 |
#| msgid "" |
| 4635 |
#| "This helper is only available is the kernel was compiled with the " |
| 4636 |
#| "B<CONFIG_BPF_LIRC_MODE2> configuration option set to \"B<y>\"." |
| 4637 |
msgid "" |
| 4638 |
"This helper is only available is the kernel was compiled with the " |
| 4639 |
"B<CONFIG_BPF_LIRC_MODE2> configuration option set to \"B<y>\"." |
| 4640 |
msgstr "" |
| 4641 |
"Этот помощник доступен только, если ядро скомпилировано с параметром " |
| 4642 |
"настройки B<CONFIG_BPF_LIRC_MODE2> равным \"B<y>\"." |
| 4643 |
|
| 4644 |
#. type: TP |
| 4645 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4646 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4647 |
#, fuzzy, no-wrap |
| 4648 |
#| msgid "B<int bpf_rc_keydown(void *>I<ctx>B<, u32 >I<protocol>B<, u64 >I<scancode>B<, u32 >I<toggle>B<)>" |
| 4649 |
msgid "B<long bpf_rc_keydown(void *>I<ctx>B<, u32 >I<protocol>B<, u64 >I<scancode>B<, u32 >I<toggle>B<)>" |
| 4650 |
msgstr "B<int bpf_rc_keydown(void *>I<ctx>B<, u32 >I<protocol>B<, u64 >I<scancode>B<, u32 >I<toggle>B<)>" |
| 4651 |
|
| 4652 |
#. type: Plain text |
| 4653 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4654 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4655 |
msgid "" |
| 4656 |
"This helper is used in programs implementing IR decoding, to report a " |
| 4657 |
"successfully decoded key press with I<scancode>, I<toggle> value in the " |
| 4658 |
"given I<protocol>\\&. The scancode will be translated to a keycode using the " |
| 4659 |
"rc keymap, and reported as an input key down event. After a period a key up " |
| 4660 |
"event is generated. This period can be extended by calling either " |
| 4661 |
"B<bpf_rc_keydown>() again with the same values, or calling " |
| 4662 |
"B<bpf_rc_repeat>()." |
| 4663 |
msgstr "" |
| 4664 |
"Этот помощник используется в программах, реализующих декодирование IR, для " |
| 4665 |
"сообщения об успешном декодировании значения нажатой клавиши I<scancode>, " |
| 4666 |
"I<toggle> в заданном I<protocol>\\&. Скан-код будет преобразован в код " |
| 4667 |
"клавиши с помощью карты клавиш rc, и записывается в виде входного события о " |
| 4668 |
"нажатой клавише. После паузы генерируется событие об отпускании клавиши. " |
| 4669 |
"Этот период может быть продлён повторным вызовом B<bpf_rc_keydown>() с теми " |
| 4670 |
"же значениями или вызовом B<bpf_rc_repeat>()." |
| 4671 |
|
| 4672 |
#. type: Plain text |
| 4673 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4674 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4675 |
msgid "" |
| 4676 |
"Some protocols include a toggle bit, in case the button was released and " |
| 4677 |
"pressed again between consecutive scancodes." |
| 4678 |
msgstr "" |
| 4679 |
"Некоторые протоколы имеют бит переключения, который устанавливается, если " |
| 4680 |
"клавиша была отпущена и нажата снова между последовательностью скан-кодов." |
| 4681 |
|
| 4682 |
#. type: Plain text |
| 4683 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4684 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4685 |
msgid "" |
| 4686 |
"The I<protocol> is the decoded protocol number (see B<enum rc_proto> for " |
| 4687 |
"some predefined values)." |
| 4688 |
msgstr "" |
| 4689 |
"Значение I<protocol> это номер декодируемого протокола (предопределённые " |
| 4690 |
"значение смотрите в B<enum rc_proto>)." |
| 4691 |
|
| 4692 |
#. type: TP |
| 4693 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4694 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4695 |
#, fuzzy, no-wrap |
| 4696 |
#| msgid "B<uint64_t bpf_skb_cgroup_id(struct sk_buff *>I<skb>B<)>" |
| 4697 |
msgid "B<u64 bpf_skb_cgroup_id(struct sk_buff *>I<skb>B<)>" |
| 4698 |
msgstr "B<uint64_t bpf_skb_cgroup_id(struct sk_buff *>I<skb>B<)>" |
| 4699 |
|
| 4700 |
#. type: Plain text |
| 4701 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4702 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4703 |
msgid "" |
| 4704 |
"Return the cgroup v2 id of the socket associated with the I<skb>\\&. This " |
| 4705 |
"is roughly similar to the B<bpf_get_cgroup_classid>() helper for cgroup v1 " |
| 4706 |
"by providing a tag resp. identifier that can be matched on or used for map " |
| 4707 |
"lookups e.g. to implement policy. The cgroup v2 id of a given path in the " |
| 4708 |
"hierarchy is exposed in user space through the f_handle API in order to get " |
| 4709 |
"to the same 64-bit id." |
| 4710 |
msgstr "" |
| 4711 |
"Возвращает идентификатор cgroup v2 сокета, связанного с I<skb>\\&. Он, " |
| 4712 |
"приблизительно, похож на помощник B<bpf_get_cgroup_classid>() для cgroup v1, " |
| 4713 |
"предоставляющий тег resp., который можно сравнивать или использовать для " |
| 4714 |
"поиска в картах, например при реализации политики. Идентификатор cgroup v2 " |
| 4715 |
"заданного пути в иерархии отражается в пользовательском пространстве через " |
| 4716 |
"программный интерфейс f_handle, используемого для получения этого же 64-" |
| 4717 |
"битного идентификатора." |
| 4718 |
|
| 4719 |
#. type: Plain text |
| 4720 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4721 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4722 |
msgid "" |
| 4723 |
"This helper can be used on TC egress path, but not on ingress, and is " |
| 4724 |
"available only if the kernel was compiled with the " |
| 4725 |
"B<CONFIG_SOCK_CGROUP_DATA> configuration option." |
| 4726 |
msgstr "" |
| 4727 |
"Этот помощник можно использовать на выходящем пути TC, но не на входящем, и " |
| 4728 |
"он доступен только, если ядро было скомпилировано с параметром настройки " |
| 4729 |
"B<CONFIG_SOCK_CGROUP_DATA>." |
| 4730 |
|
| 4731 |
#. type: Plain text |
| 4732 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4733 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4734 |
msgid "The id is returned or 0 in case the id could not be retrieved." |
| 4735 |
msgstr "" |
| 4736 |
"Возвращается идентификатор или 0, если идентификатор не может быть получен." |
| 4737 |
|
| 4738 |
#. type: TP |
| 4739 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4740 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4741 |
#, no-wrap |
| 4742 |
msgid "B<u64 bpf_get_current_cgroup_id(void)>" |
| 4743 |
msgstr "B<u64 bpf_get_current_cgroup_id(void)>" |
| 4744 |
|
| 4745 |
#. type: Plain text |
| 4746 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4747 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4748 |
#, fuzzy |
| 4749 |
#| msgid "" |
| 4750 |
#| "A 64-bit integer containing the current cgroup id based on the cgroup " |
| 4751 |
#| "within which the current task is running." |
| 4752 |
msgid "" |
| 4753 |
"Get the current cgroup id based on the cgroup within which the current task " |
| 4754 |
"is running." |
| 4755 |
msgstr "" |
| 4756 |
"64-битное целое, содержащее идентификатор текущей cgroup, на основе cgroup, " |
| 4757 |
"в которой выполняется текущая задача." |
| 4758 |
|
| 4759 |
#. type: Plain text |
| 4760 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4761 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4762 |
msgid "" |
| 4763 |
"A 64-bit integer containing the current cgroup id based on the cgroup within " |
| 4764 |
"which the current task is running." |
| 4765 |
msgstr "" |
| 4766 |
"64-битное целое, содержащее идентификатор текущей cgroup, на основе cgroup, " |
| 4767 |
"в которой выполняется текущая задача." |
| 4768 |
|
| 4769 |
#. type: TP |
| 4770 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4771 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4772 |
#, fuzzy, no-wrap |
| 4773 |
#| msgid "B<void* get_local_storage(void *>I<map>B<, u64 >I<flags>B<)>" |
| 4774 |
msgid "B<void *bpf_get_local_storage(void *>I<map>B<, u64 >I<flags>B<)>" |
| 4775 |
msgstr "B<void* get_local_storage(void *>I<map>B<, u64 >I<flags>B<)>" |
| 4776 |
|
| 4777 |
#. type: Plain text |
| 4778 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4779 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4780 |
msgid "" |
| 4781 |
"Get the pointer to the local storage area. The type and the size of the " |
| 4782 |
"local storage is defined by the I<map> argument. The I<flags> meaning is " |
| 4783 |
"specific for each map type, and has to be 0 for cgroup local storage." |
| 4784 |
msgstr "" |
| 4785 |
"Возвращает указатель на область локального хранилища. Тип и размер " |
| 4786 |
"локального хранилища задаётся аргументом I<map>. Значение I<flags> зависит " |
| 4787 |
"от типа карты, и должно быть равно 0 для локального хранилища cgroup." |
| 4788 |
|
| 4789 |
#. type: Plain text |
| 4790 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4791 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4792 |
msgid "" |
| 4793 |
"Depending on the BPF program type, a local storage area can be shared " |
| 4794 |
"between multiple instances of the BPF program, running simultaneously." |
| 4795 |
msgstr "" |
| 4796 |
"В зависимости от типа программы BPF область локального хранилища может " |
| 4797 |
"совместно использоваться несколькими работающими одновременно экземплярами " |
| 4798 |
"программы BPF." |
| 4799 |
|
| 4800 |
#. type: Plain text |
| 4801 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4802 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4803 |
#, fuzzy |
| 4804 |
#| msgid "" |
| 4805 |
#| "A user should care about the synchronization by themself. For example, " |
| 4806 |
#| "by using the B<BPF_STX_XADD> instruction to alter the shared data." |
| 4807 |
msgid "" |
| 4808 |
"A user should care about the synchronization by himself. For example, by " |
| 4809 |
"using the B<BPF_ATOMIC> instructions to alter the shared data." |
| 4810 |
msgstr "" |
| 4811 |
"Пользователь самостоятельно должен решать вопросы синхронизации. Например, " |
| 4812 |
"для изменения общих данных использовать инструкцию B<BPF_STX_XADD>." |
| 4813 |
|
| 4814 |
#. type: Plain text |
| 4815 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4816 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4817 |
msgid "A pointer to the local storage area." |
| 4818 |
msgstr "Указатель на область локального хранилища." |
| 4819 |
|
| 4820 |
#. type: TP |
| 4821 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4822 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4823 |
#, fuzzy, no-wrap |
| 4824 |
#| msgid "B<int bpf_sk_select_reuseport(struct sk_reuseport_md *>I<reuse>B<, struct bpf_map *>I<map>B<, void *>I<key>B<, u64 >I<flags>B<)>" |
| 4825 |
msgid "B<long bpf_sk_select_reuseport(struct sk_reuseport_md *>I<reuse>B<, struct bpf_map *>I<map>B<, void *>I<key>B<, u64 >I<flags>B<)>" |
| 4826 |
msgstr "B<int bpf_sk_select_reuseport(struct sk_reuseport_md *>I<reuse>B<, struct bpf_map *>I<map>B<, void *>I<key>B<, u64 >I<flags>B<)>" |
| 4827 |
|
| 4828 |
#. type: Plain text |
| 4829 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4830 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4831 |
#, fuzzy |
| 4832 |
#| msgid "" |
| 4833 |
#| "Select a B<SO_REUSEPORT> socket from a B<BPF_MAP_TYPE_REUSEPORT_ARRAY> " |
| 4834 |
#| "I<map>\\&. It checks the selected socket is matching the incoming " |
| 4835 |
#| "request in the socket buffer." |
| 4836 |
msgid "" |
| 4837 |
"Select a B<SO_REUSEPORT> socket from a B<BPF_MAP_TYPE_REUSEPORT_SOCKARRAY> " |
| 4838 |
"I<map>\\&. It checks the selected socket is matching the incoming request " |
| 4839 |
"in the socket buffer." |
| 4840 |
msgstr "" |
| 4841 |
"Выбирает сокет B<SO_REUSEPORT> из B<BPF_MAP_TYPE_REUSEPORT_ARRAY> I<map>\\&. " |
| 4842 |
"Проверяется, что выбранный сокет совпадает с входящим запросом в буфере " |
| 4843 |
"сокета." |
| 4844 |
|
| 4845 |
#. type: TP |
| 4846 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4847 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4848 |
#, no-wrap |
| 4849 |
msgid "B<u64 bpf_skb_ancestor_cgroup_id(struct sk_buff *>I<skb>B<, int >I<ancestor_level>B<)>" |
| 4850 |
msgstr "B<u64 bpf_skb_ancestor_cgroup_id(struct sk_buff *>I<skb>B<, int >I<ancestor_level>B<)>" |
| 4851 |
|
| 4852 |
#. type: Plain text |
| 4853 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4854 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4855 |
msgid "" |
| 4856 |
"Return id of cgroup v2 that is ancestor of cgroup associated with the I<skb> " |
| 4857 |
"at the I<ancestor_level>\\&. The root cgroup is at I<ancestor_level> zero " |
| 4858 |
"and each step down the hierarchy increments the level. If I<ancestor_level> " |
| 4859 |
"== level of cgroup associated with I<skb>, then return value will be same as " |
| 4860 |
"that of B<bpf_skb_cgroup_id>()." |
| 4861 |
msgstr "" |
| 4862 |
"Возвращает идентификатор cgroup v2, которая является предком cgroup, " |
| 4863 |
"связанной с I<skb> на уровне I<ancestor_level>\\&. Корневая cgroup " |
| 4864 |
"расположена на уровне I<ancestor_level> равным нулю и каждый шаг вниз по " |
| 4865 |
"иерархии увеличивает значение уровня. Если I<ancestor_level> == уровню " |
| 4866 |
"cgroup, связанной с I<skb>, то возвращаемое значение будет равно " |
| 4867 |
"возвращаемому B<bpf_skb_cgroup_id>()." |
| 4868 |
|
| 4869 |
#. type: Plain text |
| 4870 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4871 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4872 |
msgid "" |
| 4873 |
"The helper is useful to implement policies based on cgroups that are upper " |
| 4874 |
"in hierarchy than immediate cgroup associated with I<skb>\\&." |
| 4875 |
msgstr "" |
| 4876 |
"Помощник полезен при реализации политик на основе cgroup, которые стоят в " |
| 4877 |
"иерархии выше, чем непосредственная cgroup, связанная с I<skb>\\&." |
| 4878 |
|
| 4879 |
#. type: Plain text |
| 4880 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4881 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4882 |
msgid "" |
| 4883 |
"The format of returned id and helper limitations are same as in " |
| 4884 |
"B<bpf_skb_cgroup_id>()." |
| 4885 |
msgstr "" |
| 4886 |
"Формат возвращаемого идентификатора и ограничения помощника такие же как у " |
| 4887 |
"B<bpf_skb_cgroup_id>()." |
| 4888 |
|
| 4889 |
#. type: TP |
| 4890 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4891 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4892 |
#, no-wrap |
| 4893 |
msgid "B<struct bpf_sock *bpf_sk_lookup_tcp(void *>I<ctx>B<, struct bpf_sock_tuple *>I<tuple>B<, u32 >I<tuple_size>B<, u64 >I<netns>B<, u64 >I<flags>B<)>" |
| 4894 |
msgstr "B<struct bpf_sock *bpf_sk_lookup_tcp(void *>I<ctx>B<, struct bpf_sock_tuple *>I<tuple>B<, u32 >I<tuple_size>B<, u64 >I<netns>B<, u64 >I<flags>B<)>" |
| 4895 |
|
| 4896 |
#. type: Plain text |
| 4897 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4898 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4899 |
msgid "" |
| 4900 |
"Look for TCP socket matching I<tuple>, optionally in a child network " |
| 4901 |
"namespace I<netns>\\&. The return value must be checked, and if non-B<NULL>, " |
| 4902 |
"released via B<bpf_sk_release>()." |
| 4903 |
msgstr "" |
| 4904 |
"Ищет сокет TCP, который совпадает с I<tuple>, возможно, в дочернем сетевом " |
| 4905 |
"пространстве имён I<netns>\\&. Возвращаемое значение нужно проверять и если " |
| 4906 |
"оно не равно B<NULL>, то освобождать с помощью B<bpf_sk_release>()." |
| 4907 |
|
| 4908 |
#. type: Plain text |
| 4909 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4910 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4911 |
msgid "" |
| 4912 |
"The I<ctx> should point to the context of the program, such as the skb or " |
| 4913 |
"socket (depending on the hook in use). This is used to determine the base " |
| 4914 |
"network namespace for the lookup." |
| 4915 |
msgstr "" |
| 4916 |
"Значение I<ctx> должно указывать на контекст программы, например, на skb или " |
| 4917 |
"сокета (в зависимости от используемого перехватчика (hook)). Оно " |
| 4918 |
"используется для определения основного сетевого пространства имён, в котором " |
| 4919 |
"нужно искать." |
| 4920 |
|
| 4921 |
#. type: Plain text |
| 4922 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4923 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4924 |
msgid "I<tuple_size> must be one of:" |
| 4925 |
msgstr "Значение I<tuple_size> должно быть одним из:" |
| 4926 |
|
| 4927 |
#. type: TP |
| 4928 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4929 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4930 |
#, no-wrap |
| 4931 |
msgid "B<sizeof(>I<tuple>B<-E<gt>ipv4)>" |
| 4932 |
msgstr "B<sizeof(>I<tuple>B<-E<gt>ipv4)>" |
| 4933 |
|
| 4934 |
#. type: Plain text |
| 4935 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4936 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4937 |
msgid "Look for an IPv4 socket." |
| 4938 |
msgstr "Искать сокет IPv4." |
| 4939 |
|
| 4940 |
#. type: TP |
| 4941 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4942 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4943 |
#, no-wrap |
| 4944 |
msgid "B<sizeof(>I<tuple>B<-E<gt>ipv6)>" |
| 4945 |
msgstr "B<sizeof(>I<tuple>B<-E<gt>ipv6)>" |
| 4946 |
|
| 4947 |
#. type: Plain text |
| 4948 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4949 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4950 |
msgid "Look for an IPv6 socket." |
| 4951 |
msgstr "Искать сокет IPv6." |
| 4952 |
|
| 4953 |
#. type: Plain text |
| 4954 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4955 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4956 |
#, fuzzy |
| 4957 |
#| msgid "" |
| 4958 |
#| "If the I<netns> is a negative signed 32-bit integer, then the socket " |
| 4959 |
#| "lookup table in the netns associated with the I<ctx> will will be used. " |
| 4960 |
#| "For the TC hooks, this is the netns of the device in the skb. For socket " |
| 4961 |
#| "hooks, this is the netns of the socket. If I<netns> is any other signed " |
| 4962 |
#| "32-bit value greater than or equal to zero then it specifies the ID of " |
| 4963 |
#| "the netns relative to the netns associated with the I<ctx>\\&. I<netns> " |
| 4964 |
#| "values beyond the range of 32-bit integers are reserved for future use." |
| 4965 |
msgid "" |
| 4966 |
"If the I<netns> is a negative signed 32-bit integer, then the socket lookup " |
| 4967 |
"table in the netns associated with the I<ctx> will be used. For the TC " |
| 4968 |
"hooks, this is the netns of the device in the skb. For socket hooks, this is " |
| 4969 |
"the netns of the socket. If I<netns> is any other signed 32-bit value " |
| 4970 |
"greater than or equal to zero then it specifies the ID of the netns relative " |
| 4971 |
"to the netns associated with the I<ctx>\\&. I<netns> values beyond the range " |
| 4972 |
"of 32-bit integers are reserved for future use." |
| 4973 |
msgstr "" |
| 4974 |
"Если I<netns> — отрицательное знаковое 32-битное целое, то поиск будет " |
| 4975 |
"производиться в таблице netns, связанной с I<ctx>. Для перехватчиков TC, это " |
| 4976 |
"будет netns устройства в skb. Для перехватчиков сокетов это будет netns " |
| 4977 |
"сокета. Если I<netns> — любое другое знаковое 32-битное значение, большее " |
| 4978 |
"или равное нулю, то им задаётся идентификатор netns, относительно netns, " |
| 4979 |
"связанного с I<ctx>\\&. Значения I<netns> вне диапазона 32-битных целых " |
| 4980 |
"зарезервированы для использования в будущем." |
| 4981 |
|
| 4982 |
#. type: Plain text |
| 4983 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4984 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4985 |
msgid "" |
| 4986 |
"This helper is available only if the kernel was compiled with B<CONFIG_NET> " |
| 4987 |
"configuration option." |
| 4988 |
msgstr "" |
| 4989 |
"Этот помощник доступен только, если ядро скомпилировано с параметром " |
| 4990 |
"настройки B<CONFIG_NET>." |
| 4991 |
|
| 4992 |
#. type: Plain text |
| 4993 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4994 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4995 |
#, fuzzy |
| 4996 |
#| msgid "" |
| 4997 |
#| "Pointer to B<struct bpf_sock>, or B<NULL> in case of failure. For " |
| 4998 |
#| "sockets with reuseport option, the B<struct bpf_sock> result is from " |
| 4999 |
#| "B<reuse-E<gt>socks>[] using the hash of the tuple." |
| 5000 |
msgid "" |
| 5001 |
"Pointer to B<struct bpf_sock>, or B<NULL> in case of failure. For sockets " |
| 5002 |
"with reuseport option, the B<struct bpf_sock> result is from I<reuse>B<-" |
| 5003 |
"E<gt>socks>[] using the hash of the tuple." |
| 5004 |
msgstr "" |
| 5005 |
"Указатель на B<struct bpf_sock>, или B<NULL> при ошибке. Для сокетов с " |
| 5006 |
"параметром reuseport возвращается B<struct bpf_sock> из B<reuse-" |
| 5007 |
"E<gt>socks>[] используя хэш кортежа (tuple)." |
| 5008 |
|
| 5009 |
#. type: TP |
| 5010 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5011 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5012 |
#, no-wrap |
| 5013 |
msgid "B<struct bpf_sock *bpf_sk_lookup_udp(void *>I<ctx>B<, struct bpf_sock_tuple *>I<tuple>B<, u32 >I<tuple_size>B<, u64 >I<netns>B<, u64 >I<flags>B<)>" |
| 5014 |
msgstr "B<struct bpf_sock *bpf_sk_lookup_udp(void *>I<ctx>B<, struct bpf_sock_tuple *>I<tuple>B<, u32 >I<tuple_size>B<, u64 >I<netns>B<, u64 >I<flags>B<)>" |
| 5015 |
|
| 5016 |
#. type: Plain text |
| 5017 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5018 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5019 |
msgid "" |
| 5020 |
"Look for UDP socket matching I<tuple>, optionally in a child network " |
| 5021 |
"namespace I<netns>\\&. The return value must be checked, and if non-B<NULL>, " |
| 5022 |
"released via B<bpf_sk_release>()." |
| 5023 |
msgstr "" |
| 5024 |
"Ищет сокет UDP, который совпадает с I<tuple>, возможно, в дочернем сетевом " |
| 5025 |
"пространстве имён I<netns>\\&. Возвращаемое значение нужно проверять и если " |
| 5026 |
"оно не равно B<NULL>, то освобождать с помощью B<bpf_sk_release>()." |
| 5027 |
|
| 5028 |
#. type: TP |
| 5029 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5030 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5031 |
#, fuzzy, no-wrap |
| 5032 |
#| msgid "B<int bpf_sk_release(struct bpf_sock *>I<sock>B<)>" |
| 5033 |
msgid "B<long bpf_sk_release(void *>I<sock>B<)>" |
| 5034 |
msgstr "B<int bpf_sk_release(struct bpf_sock *>I<sock>B<)>" |
| 5035 |
|
| 5036 |
#. type: Plain text |
| 5037 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5038 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5039 |
msgid "" |
| 5040 |
"Release the reference held by I<sock>\\&. I<sock> must be a non-B<NULL> " |
| 5041 |
"pointer that was returned from B<bpf_sk_lookup_xxx>()." |
| 5042 |
msgstr "" |
| 5043 |
"Освобождает ссылку, удерживаемую I<sock>\\&. Значение I<sock> должно быть не-" |
| 5044 |
"B<NULL> указателем, который был получен из B<bpf_sk_lookup_xxx>()." |
| 5045 |
|
| 5046 |
#. type: TP |
| 5047 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5048 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5049 |
#, fuzzy, no-wrap |
| 5050 |
#| msgid "B<int bpf_map_push_elem(struct bpf_map *>I<map>B<, const void *>I<value>B<, u64 >I<flags>B<)>" |
| 5051 |
msgid "B<long bpf_map_push_elem(struct bpf_map *>I<map>B<, const void *>I<value>B<, u64 >I<flags>B<)>" |
| 5052 |
msgstr "B<int bpf_map_push_elem(struct bpf_map *>I<map>B<, const void *>I<value>B<, u64 >I<flags>B<)>" |
| 5053 |
|
| 5054 |
#. type: Plain text |
| 5055 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5056 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5057 |
msgid "Push an element I<value> in I<map>\\&. I<flags> is one of:" |
| 5058 |
msgstr "" |
| 5059 |
"Заталкивает элемент I<value> в I<map>\\&. В I<flags> может быть одно из:" |
| 5060 |
|
| 5061 |
#. type: Plain text |
| 5062 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5063 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5064 |
#, fuzzy |
| 5065 |
#| msgid "" |
| 5066 |
#| "B<BPF_EXIST> If the queue/stack is full, the oldest element is removed to " |
| 5067 |
#| "make room for this." |
| 5068 |
msgid "" |
| 5069 |
"If the queue/stack is full, the oldest element is removed to make room for " |
| 5070 |
"this." |
| 5071 |
msgstr "" |
| 5072 |
"B<BPF_EXIST> Если очередь/стек полны, то самый старый элемент удаляется, " |
| 5073 |
"освобождая место под указанный." |
| 5074 |
|
| 5075 |
#. type: TP |
| 5076 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5077 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5078 |
#, fuzzy, no-wrap |
| 5079 |
#| msgid "B<int bpf_map_pop_elem(struct bpf_map *>I<map>B<, void *>I<value>B<)>" |
| 5080 |
msgid "B<long bpf_map_pop_elem(struct bpf_map *>I<map>B<, void *>I<value>B<)>" |
| 5081 |
msgstr "B<int bpf_map_pop_elem(struct bpf_map *>I<map>B<, void *>I<value>B<)>" |
| 5082 |
|
| 5083 |
#. type: Plain text |
| 5084 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5085 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5086 |
msgid "Pop an element from I<map>\\&." |
| 5087 |
msgstr "Выталкивает элемент из I<map>\\&." |
| 5088 |
|
| 5089 |
#. type: TP |
| 5090 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5091 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5092 |
#, fuzzy, no-wrap |
| 5093 |
#| msgid "B<int bpf_map_peek_elem(struct bpf_map *>I<map>B<, void *>I<value>B<)>" |
| 5094 |
msgid "B<long bpf_map_peek_elem(struct bpf_map *>I<map>B<, void *>I<value>B<)>" |
| 5095 |
msgstr "B<int bpf_map_peek_elem(struct bpf_map *>I<map>B<, void *>I<value>B<)>" |
| 5096 |
|
| 5097 |
#. type: Plain text |
| 5098 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5099 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5100 |
msgid "Get an element from I<map> without removing it." |
| 5101 |
msgstr "Возвращает элемент из I<map> не удаляя." |
| 5102 |
|
| 5103 |
#. type: TP |
| 5104 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5105 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5106 |
#, fuzzy, no-wrap |
| 5107 |
#| msgid "B<int bpf_msg_pull_data(struct sk_msg_buff *>I<msg>B<, u32 >I<start>B<, u32 >I<end>B<, u64 >I<flags>B<)>" |
| 5108 |
msgid "B<long bpf_msg_push_data(struct sk_msg_buff *>I<msg>B<, u32 >I<start>B<, u32 >I<len>B<, u64 >I<flags>B<)>" |
| 5109 |
msgstr "B<int bpf_msg_pull_data(struct sk_msg_buff *>I<msg>B<, u32 >I<start>B<, u32 >I<end>B<, u64 >I<flags>B<)>" |
| 5110 |
|
| 5111 |
#. type: Plain text |
| 5112 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5113 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5114 |
msgid "" |
| 5115 |
"For socket policies, insert I<len> bytes into I<msg> at offset I<start>\\&." |
| 5116 |
msgstr "" |
| 5117 |
"Для сокетных политик, вставляет I<len> байт в I<msg> по смещению I<start>\\&." |
| 5118 |
|
| 5119 |
#. type: Plain text |
| 5120 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5121 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5122 |
msgid "" |
| 5123 |
"If a program of type B<BPF_PROG_TYPE_SK_MSG> is run on a I<msg> it may want " |
| 5124 |
"to insert metadata or options into the I<msg>\\&. This can later be read " |
| 5125 |
"and used by any of the lower layer BPF hooks." |
| 5126 |
msgstr "" |
| 5127 |
"Если программа типа B<BPF_PROG_TYPE_SK_MSG> выполняется для I<msg>, то в " |
| 5128 |
"I<msg> можно вставлять метаданные или параметры. Позднее они могут быть " |
| 5129 |
"прочитаны и использованы перехватчиком BPF на нижних уровнях." |
| 5130 |
|
| 5131 |
#. type: Plain text |
| 5132 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5133 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5134 |
msgid "" |
| 5135 |
"This helper may fail if under memory pressure (a malloc fails) in these " |
| 5136 |
"cases BPF programs will get an appropriate error and BPF programs will need " |
| 5137 |
"to handle them." |
| 5138 |
msgstr "" |
| 5139 |
"Этот помощник может завершиться ошибкой при нехватке памяти (ошибка malloc); " |
| 5140 |
"при этом программы BPF получат соответствующую ошибку и им её нужно " |
| 5141 |
"обработать." |
| 5142 |
|
| 5143 |
#. type: TP |
| 5144 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5145 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5146 |
#, fuzzy, no-wrap |
| 5147 |
#| msgid "B<int bpf_msg_pop_data(struct sk_msg_buff *>I<msg>B<, u32 >I<start>B<, u32 >I<pop>B<, u64 >I<flags>B<)>" |
| 5148 |
msgid "B<long bpf_msg_pop_data(struct sk_msg_buff *>I<msg>B<, u32 >I<start>B<, u32 >I<len>B<, u64 >I<flags>B<)>" |
| 5149 |
msgstr "B<int bpf_msg_pop_data(struct sk_msg_buff *>I<msg>B<, u32 >I<start>B<, u32 >I<pop>B<, u64 >I<flags>B<)>" |
| 5150 |
|
| 5151 |
#. type: Plain text |
| 5152 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5153 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5154 |
#, fuzzy |
| 5155 |
#| msgid "" |
| 5156 |
#| "Will remove I<pop> bytes from a I<msg> starting at byte I<start>\\&. " |
| 5157 |
#| "This may result in B<ENOMEM> errors under certain situations if an " |
| 5158 |
#| "allocation and copy are required due to a full ring buffer. However, the " |
| 5159 |
#| "helper will try to avoid doing the allocation if possible. Other errors " |
| 5160 |
#| "can occur if input parameters are invalid either due to I<start> byte not " |
| 5161 |
#| "being valid part of I<msg> payload and/or I<pop> value being to large." |
| 5162 |
msgid "" |
| 5163 |
"Will remove I<len> bytes from a I<msg> starting at byte I<start>\\&. This " |
| 5164 |
"may result in B<ENOMEM> errors under certain situations if an allocation and " |
| 5165 |
"copy are required due to a full ring buffer. However, the helper will try " |
| 5166 |
"to avoid doing the allocation if possible. Other errors can occur if input " |
| 5167 |
"parameters are invalid either due to I<start> byte not being valid part of " |
| 5168 |
"I<msg> payload and/or I<pop> value being to large." |
| 5169 |
msgstr "" |
| 5170 |
"Удаляет I<pop> байт из I<msg>, начиная с байта по адресу I<start>\\&. В " |
| 5171 |
"некоторых случаях может приводить к ошибкам B<ENOMEM>, если из-за " |
| 5172 |
"заполненности кольцевого буфера требуется выделение и копирование. Однако, " |
| 5173 |
"помощник, по возможности, будет пытаться избегать выделения. Также могут " |
| 5174 |
"возникать ошибки из-за некорректных входных параметров: адрес I<start> не " |
| 5175 |
"относится к нагрузке I<msg> и/или слишком большое значение I<pop>." |
| 5176 |
|
| 5177 |
#. type: TP |
| 5178 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5179 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5180 |
#, fuzzy, no-wrap |
| 5181 |
#| msgid "B<int bpf_rc_pointer_rel(void *>I<ctx>B<, s32 >I<rel_x>B<, s32 >I<rel_y>B<)>" |
| 5182 |
msgid "B<long bpf_rc_pointer_rel(void *>I<ctx>B<, s32 >I<rel_x>B<, s32 >I<rel_y>B<)>" |
| 5183 |
msgstr "B<int bpf_rc_pointer_rel(void *>I<ctx>B<, s32 >I<rel_x>B<, s32 >I<rel_y>B<)>" |
| 5184 |
|
| 5185 |
#. type: Plain text |
| 5186 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5187 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5188 |
msgid "" |
| 5189 |
"This helper is used in programs implementing IR decoding, to report a " |
| 5190 |
"successfully decoded pointer movement." |
| 5191 |
msgstr "" |
| 5192 |
"Этот помощник используется в программах, реализующих декодирование IR, для " |
| 5193 |
"сообщения об успешном декодировании перемещения указателя." |
| 5194 |
|
| 5195 |
#. type: TP |
| 5196 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5197 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5198 |
#, fuzzy, no-wrap |
| 5199 |
#| msgid "B<int bpf_sk_release(struct bpf_sock *>I<sock>B<)>" |
| 5200 |
msgid "B<long bpf_spin_lock(struct bpf_spin_lock *>I<lock>B<)>" |
| 5201 |
msgstr "B<int bpf_sk_release(struct bpf_sock *>I<sock>B<)>" |
| 5202 |
|
| 5203 |
#. type: Plain text |
| 5204 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5205 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5206 |
msgid "" |
| 5207 |
"Acquire a spinlock represented by the pointer I<lock>, which is stored as " |
| 5208 |
"part of a value of a map. Taking the lock allows to safely update the rest " |
| 5209 |
"of the fields in that value. The spinlock can (and must) later be released " |
| 5210 |
"with a call to B<bpf_spin_unlock>(I<lock>)." |
| 5211 |
msgstr "" |
| 5212 |
|
| 5213 |
#. type: Plain text |
| 5214 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5215 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5216 |
msgid "" |
| 5217 |
"Spinlocks in BPF programs come with a number of restrictions and constraints:" |
| 5218 |
msgstr "" |
| 5219 |
|
| 5220 |
#. type: Plain text |
| 5221 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5222 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5223 |
msgid "" |
| 5224 |
"B<bpf_spin_lock> objects are only allowed inside maps of types " |
| 5225 |
"B<BPF_MAP_TYPE_HASH> and B<BPF_MAP_TYPE_ARRAY> (this list could be extended " |
| 5226 |
"in the future)." |
| 5227 |
msgstr "" |
| 5228 |
|
| 5229 |
#. type: Plain text |
| 5230 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5231 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5232 |
msgid "BTF description of the map is mandatory." |
| 5233 |
msgstr "" |
| 5234 |
|
| 5235 |
#. type: Plain text |
| 5236 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5237 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5238 |
msgid "" |
| 5239 |
"The BPF program can take ONE lock at a time, since taking two or more could " |
| 5240 |
"cause dead locks." |
| 5241 |
msgstr "" |
| 5242 |
|
| 5243 |
#. type: Plain text |
| 5244 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5245 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5246 |
msgid "Only one B<struct bpf_spin_lock> is allowed per map element." |
| 5247 |
msgstr "" |
| 5248 |
|
| 5249 |
#. type: Plain text |
| 5250 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5251 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5252 |
msgid "" |
| 5253 |
"When the lock is taken, calls (either BPF to BPF or helpers) are not " |
| 5254 |
"allowed." |
| 5255 |
msgstr "" |
| 5256 |
|
| 5257 |
#. type: Plain text |
| 5258 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5259 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5260 |
msgid "" |
| 5261 |
"The B<BPF_LD_ABS> and B<BPF_LD_IND> instructions are not allowed inside a " |
| 5262 |
"spinlock-ed region." |
| 5263 |
msgstr "" |
| 5264 |
|
| 5265 |
#. type: Plain text |
| 5266 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5267 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5268 |
msgid "" |
| 5269 |
"The BPF program MUST call B<bpf_spin_unlock>() to release the lock, on all " |
| 5270 |
"execution paths, before it returns." |
| 5271 |
msgstr "" |
| 5272 |
|
| 5273 |
#. type: Plain text |
| 5274 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5275 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5276 |
msgid "" |
| 5277 |
"The BPF program can access B<struct bpf_spin_lock> only via the " |
| 5278 |
"B<bpf_spin_lock>() and B<bpf_spin_unlock>() helpers. Loading or storing " |
| 5279 |
"data into the B<struct bpf_spin_lock> I<lock>B<;> field of a map is not " |
| 5280 |
"allowed." |
| 5281 |
msgstr "" |
| 5282 |
|
| 5283 |
#. type: Plain text |
| 5284 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5285 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5286 |
msgid "" |
| 5287 |
"To use the B<bpf_spin_lock>() helper, the BTF description of the map value " |
| 5288 |
"must be a struct and have B<struct bpf_spin_lock> I<anyname>B<;> field at " |
| 5289 |
"the top level. Nested lock inside another struct is not allowed." |
| 5290 |
msgstr "" |
| 5291 |
|
| 5292 |
#. type: Plain text |
| 5293 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5294 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5295 |
msgid "" |
| 5296 |
"The B<struct bpf_spin_lock> I<lock> field in a map value must be aligned on " |
| 5297 |
"a multiple of 4 bytes in that value." |
| 5298 |
msgstr "" |
| 5299 |
|
| 5300 |
#. type: Plain text |
| 5301 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5302 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5303 |
msgid "" |
| 5304 |
"Syscall with command B<BPF_MAP_LOOKUP_ELEM> does not copy the " |
| 5305 |
"B<bpf_spin_lock> field to user space." |
| 5306 |
msgstr "" |
| 5307 |
|
| 5308 |
#. type: Plain text |
| 5309 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5310 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5311 |
msgid "" |
| 5312 |
"Syscall with command B<BPF_MAP_UPDATE_ELEM>, or update from a BPF program, " |
| 5313 |
"do not update the B<bpf_spin_lock> field." |
| 5314 |
msgstr "" |
| 5315 |
|
| 5316 |
#. type: Plain text |
| 5317 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5318 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5319 |
msgid "" |
| 5320 |
"B<bpf_spin_lock> cannot be on the stack or inside a networking packet (it " |
| 5321 |
"can only be inside of a map values)." |
| 5322 |
msgstr "" |
| 5323 |
|
| 5324 |
#. type: Plain text |
| 5325 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5326 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5327 |
msgid "B<bpf_spin_lock> is available to root only." |
| 5328 |
msgstr "" |
| 5329 |
|
| 5330 |
#. type: Plain text |
| 5331 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5332 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5333 |
msgid "" |
| 5334 |
"Tracing programs and socket filter programs cannot use B<bpf_spin_lock>() " |
| 5335 |
"due to insufficient preemption checks (but this may change in the future)." |
| 5336 |
msgstr "" |
| 5337 |
|
| 5338 |
#. type: Plain text |
| 5339 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5340 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5341 |
msgid "B<bpf_spin_lock> is not allowed in inner maps of map-in-map." |
| 5342 |
msgstr "" |
| 5343 |
|
| 5344 |
#. type: TP |
| 5345 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5346 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5347 |
#, fuzzy, no-wrap |
| 5348 |
#| msgid "B<int bpf_sk_release(struct bpf_sock *>I<sock>B<)>" |
| 5349 |
msgid "B<long bpf_spin_unlock(struct bpf_spin_lock *>I<lock>B<)>" |
| 5350 |
msgstr "B<int bpf_sk_release(struct bpf_sock *>I<sock>B<)>" |
| 5351 |
|
| 5352 |
#. type: Plain text |
| 5353 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5354 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5355 |
msgid "" |
| 5356 |
"Release the I<lock> previously locked by a call to B<bpf_spin_lock>(I<lock>)." |
| 5357 |
msgstr "" |
| 5358 |
|
| 5359 |
#. type: TP |
| 5360 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5361 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5362 |
#, fuzzy, no-wrap |
| 5363 |
#| msgid "B<int bpf_sk_release(struct bpf_sock *>I<sock>B<)>" |
| 5364 |
msgid "B<struct bpf_sock *bpf_sk_fullsock(struct bpf_sock *>I<sk>B<)>" |
| 5365 |
msgstr "B<int bpf_sk_release(struct bpf_sock *>I<sock>B<)>" |
| 5366 |
|
| 5367 |
#. type: Plain text |
| 5368 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5369 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5370 |
msgid "" |
| 5371 |
"This helper gets a B<struct bpf_sock> pointer such that all the fields in " |
| 5372 |
"this B<bpf_sock> can be accessed." |
| 5373 |
msgstr "" |
| 5374 |
|
| 5375 |
#. type: Plain text |
| 5376 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5377 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5378 |
#, fuzzy |
| 5379 |
#| msgid "" |
| 5380 |
#| "The positive or null stack id on success, or a negative error in case of " |
| 5381 |
#| "failure." |
| 5382 |
msgid "A B<struct bpf_sock> pointer on success, or B<NULL> in case of failure." |
| 5383 |
msgstr "" |
| 5384 |
"При успешном выполнении возвращает положительный или null id стека и " |
| 5385 |
"отрицательное значение при ошибке." |
| 5386 |
|
| 5387 |
#. type: TP |
| 5388 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5389 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5390 |
#, fuzzy, no-wrap |
| 5391 |
#| msgid "B<u64 bpf_get_socket_cookie(struct bpf_sock_ops *>I<ctx>B<)>" |
| 5392 |
msgid "B<struct bpf_tcp_sock *bpf_tcp_sock(struct bpf_sock *>I<sk>B<)>" |
| 5393 |
msgstr "B<u64 bpf_get_socket_cookie(struct bpf_sock_ops *>I<ctx>B<)>" |
| 5394 |
|
| 5395 |
#. type: Plain text |
| 5396 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5397 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5398 |
msgid "" |
| 5399 |
"This helper gets a B<struct bpf_tcp_sock> pointer from a B<struct bpf_sock> " |
| 5400 |
"pointer." |
| 5401 |
msgstr "" |
| 5402 |
|
| 5403 |
#. type: Plain text |
| 5404 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5405 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5406 |
#, fuzzy |
| 5407 |
#| msgid "" |
| 5408 |
#| "The positive or null stack id on success, or a negative error in case of " |
| 5409 |
#| "failure." |
| 5410 |
msgid "" |
| 5411 |
"A B<struct bpf_tcp_sock> pointer on success, or B<NULL> in case of failure." |
| 5412 |
msgstr "" |
| 5413 |
"При успешном выполнении возвращает положительный или null id стека и " |
| 5414 |
"отрицательное значение при ошибке." |
| 5415 |
|
| 5416 |
#. type: TP |
| 5417 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5418 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5419 |
#, fuzzy, no-wrap |
| 5420 |
#| msgid "B<int bpf_skb_vlan_pop(struct sk_buff *>I<skb>B<)>" |
| 5421 |
msgid "B<long bpf_skb_ecn_set_ce(struct sk_buff *>I<skb>B<)>" |
| 5422 |
msgstr "B<int bpf_skb_vlan_pop(struct sk_buff *>I<skb>B<)>" |
| 5423 |
|
| 5424 |
#. type: Plain text |
| 5425 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5426 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5427 |
msgid "" |
| 5428 |
"Set ECN (Explicit Congestion Notification) field of IP header to B<CE> " |
| 5429 |
"(Congestion Encountered) if current value is B<ECT> (ECN Capable Transport). " |
| 5430 |
"Otherwise, do nothing. Works with IPv6 and IPv4." |
| 5431 |
msgstr "" |
| 5432 |
|
| 5433 |
#. type: Plain text |
| 5434 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5435 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5436 |
msgid "" |
| 5437 |
"1 if the B<CE> flag is set (either by the current helper call or because it " |
| 5438 |
"was already present), 0 if it is not set." |
| 5439 |
msgstr "" |
| 5440 |
|
| 5441 |
#. type: TP |
| 5442 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5443 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5444 |
#, fuzzy, no-wrap |
| 5445 |
#| msgid "B<int bpf_sk_release(struct bpf_sock *>I<sock>B<)>" |
| 5446 |
msgid "B<struct bpf_sock *bpf_get_listener_sock(struct bpf_sock *>I<sk>B<)>" |
| 5447 |
msgstr "B<int bpf_sk_release(struct bpf_sock *>I<sock>B<)>" |
| 5448 |
|
| 5449 |
#. type: Plain text |
| 5450 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5451 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5452 |
msgid "" |
| 5453 |
"Return a B<struct bpf_sock> pointer in B<TCP_LISTEN> state. " |
| 5454 |
"B<bpf_sk_release>() is unnecessary and not allowed." |
| 5455 |
msgstr "" |
| 5456 |
|
| 5457 |
#. type: TP |
| 5458 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5459 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5460 |
#, fuzzy, no-wrap |
| 5461 |
#| msgid "B<struct bpf_sock *bpf_sk_lookup_tcp(void *>I<ctx>B<, struct bpf_sock_tuple *>I<tuple>B<, u32 >I<tuple_size>B<, u64 >I<netns>B<, u64 >I<flags>B<)>" |
| 5462 |
msgid "B<struct bpf_sock *bpf_skc_lookup_tcp(void *>I<ctx>B<, struct bpf_sock_tuple *>I<tuple>B<, u32 >I<tuple_size>B<, u64 >I<netns>B<, u64 >I<flags>B<)>" |
| 5463 |
msgstr "B<struct bpf_sock *bpf_sk_lookup_tcp(void *>I<ctx>B<, struct bpf_sock_tuple *>I<tuple>B<, u32 >I<tuple_size>B<, u64 >I<netns>B<, u64 >I<flags>B<)>" |
| 5464 |
|
| 5465 |
#. type: Plain text |
| 5466 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5467 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5468 |
msgid "" |
| 5469 |
"This function is identical to B<bpf_sk_lookup_tcp>(), except that it also " |
| 5470 |
"returns timewait or request sockets. Use B<bpf_sk_fullsock>() or " |
| 5471 |
"B<bpf_tcp_sock>() to access the full structure." |
| 5472 |
msgstr "" |
| 5473 |
|
| 5474 |
#. type: TP |
| 5475 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5476 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5477 |
#, fuzzy, no-wrap |
| 5478 |
#| msgid "B<int bpf_lwt_push_encap(struct sk_buff *>I<skb>B<, u32 >I<type>B<, void *>I<hdr>B<, u32 >I<len>B<)>" |
| 5479 |
msgid "B<long bpf_tcp_check_syncookie(void *>I<sk>B<, void *>I<iph>B<, u32 >I<iph_len>B<, struct tcphdr *>I<th>B<, u32 >I<th_len>B<)>" |
| 5480 |
msgstr "B<int bpf_lwt_push_encap(struct sk_buff *>I<skb>B<, u32 >I<type>B<, void *>I<hdr>B<, u32 >I<len>B<)>" |
| 5481 |
|
| 5482 |
#. type: Plain text |
| 5483 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5484 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5485 |
msgid "" |
| 5486 |
"Check whether I<iph> and I<th> contain a valid SYN cookie ACK for the " |
| 5487 |
"listening socket in I<sk>\\&." |
| 5488 |
msgstr "" |
| 5489 |
|
| 5490 |
#. type: Plain text |
| 5491 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5492 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5493 |
msgid "" |
| 5494 |
"I<iph> points to the start of the IPv4 or IPv6 header, while I<iph_len> " |
| 5495 |
"contains B<sizeof>(B<struct iphdr>) or B<sizeof>(B<struct ipv6hdr>)." |
| 5496 |
msgstr "" |
| 5497 |
|
| 5498 |
#. type: Plain text |
| 5499 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5500 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5501 |
msgid "" |
| 5502 |
"I<th> points to the start of the TCP header, while I<th_len> contains the " |
| 5503 |
"length of the TCP header (at least B<sizeof>(B<struct tcphdr>))." |
| 5504 |
msgstr "" |
| 5505 |
|
| 5506 |
#. type: Plain text |
| 5507 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5508 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5509 |
msgid "" |
| 5510 |
"0 if I<iph> and I<th> are a valid SYN cookie ACK, or a negative error " |
| 5511 |
"otherwise." |
| 5512 |
msgstr "" |
| 5513 |
|
| 5514 |
#. type: TP |
| 5515 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5516 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5517 |
#, fuzzy, no-wrap |
| 5518 |
#| msgid "B<int bpf_get_stack(struct pt_regs *>I<regs>B<, void *>I<buf>B<, u32 >I<size>B<, u64 >I<flags>B<)>" |
| 5519 |
msgid "B<long bpf_sysctl_get_name(struct bpf_sysctl *>I<ctx>B<, char *>I<buf>B<, size_t >I<buf_len>B<, u64 >I<flags>B<)>" |
| 5520 |
msgstr "B<int bpf_get_stack(struct pt_regs *>I<regs>B<, void *>I<buf>B<, u32 >I<size>B<, u64 >I<flags>B<)>" |
| 5521 |
|
| 5522 |
#. type: Plain text |
| 5523 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5524 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5525 |
msgid "" |
| 5526 |
"Get name of sysctl in /proc/sys/ and copy it into provided by program buffer " |
| 5527 |
"I<buf> of size I<buf_len>\\&." |
| 5528 |
msgstr "" |
| 5529 |
|
| 5530 |
#. type: Plain text |
| 5531 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5532 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5533 |
msgid "The buffer is always NUL terminated, unless it\\(aqs zero-sized." |
| 5534 |
msgstr "" |
| 5535 |
|
| 5536 |
#. type: Plain text |
| 5537 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5538 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5539 |
msgid "" |
| 5540 |
"If I<flags> is zero, full name (e.g. \"net/ipv4/tcp_mem\") is copied. Use " |
| 5541 |
"B<BPF_F_SYSCTL_BASE_NAME> flag to copy base name only (e.g. \"tcp_mem\")." |
| 5542 |
msgstr "" |
| 5543 |
|
| 5544 |
#. type: Plain text |
| 5545 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5546 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5547 |
msgid "Number of character copied (not including the trailing NUL)." |
| 5548 |
msgstr "" |
| 5549 |
|
| 5550 |
#. type: Plain text |
| 5551 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5552 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5553 |
msgid "" |
| 5554 |
"B<-E2BIG> if the buffer wasn\\(aqt big enough (I<buf> will contain truncated " |
| 5555 |
"name in this case)." |
| 5556 |
msgstr "" |
| 5557 |
|
| 5558 |
#. type: TP |
| 5559 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5560 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5561 |
#, fuzzy, no-wrap |
| 5562 |
#| msgid "B<int bpf_bind(struct bpf_sock_addr *>I<ctx>B<, struct sockaddr *>I<addr>B<, int >I<addr_len>B<)>" |
| 5563 |
msgid "B<long bpf_sysctl_get_current_value(struct bpf_sysctl *>I<ctx>B<, char *>I<buf>B<, size_t >I<buf_len>B<)>" |
| 5564 |
msgstr "B<int bpf_bind(struct bpf_sock_addr *>I<ctx>B<, struct sockaddr *>I<addr>B<, int >I<addr_len>B<)>" |
| 5565 |
|
| 5566 |
#. type: Plain text |
| 5567 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5568 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5569 |
msgid "" |
| 5570 |
"Get current value of sysctl as it is presented in /proc/sys (incl. newline, " |
| 5571 |
"etc), and copy it as a string into provided by program buffer I<buf> of size " |
| 5572 |
"I<buf_len>\\&." |
| 5573 |
msgstr "" |
| 5574 |
|
| 5575 |
#. type: Plain text |
| 5576 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5577 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5578 |
msgid "" |
| 5579 |
"The whole value is copied, no matter what file position user space issued " |
| 5580 |
"e.g. sys_read at." |
| 5581 |
msgstr "" |
| 5582 |
|
| 5583 |
#. type: Plain text |
| 5584 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5585 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5586 |
msgid "" |
| 5587 |
"B<-EINVAL> if current value was unavailable, e.g. because sysctl is " |
| 5588 |
"uninitialized and read returns -EIO for it." |
| 5589 |
msgstr "" |
| 5590 |
|
| 5591 |
#. type: TP |
| 5592 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5593 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5594 |
#, fuzzy, no-wrap |
| 5595 |
#| msgid "B<int bpf_bind(struct bpf_sock_addr *>I<ctx>B<, struct sockaddr *>I<addr>B<, int >I<addr_len>B<)>" |
| 5596 |
msgid "B<long bpf_sysctl_get_new_value(struct bpf_sysctl *>I<ctx>B<, char *>I<buf>B<, size_t >I<buf_len>B<)>" |
| 5597 |
msgstr "B<int bpf_bind(struct bpf_sock_addr *>I<ctx>B<, struct sockaddr *>I<addr>B<, int >I<addr_len>B<)>" |
| 5598 |
|
| 5599 |
#. type: Plain text |
| 5600 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5601 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5602 |
msgid "" |
| 5603 |
"Get new value being written by user space to sysctl (before the actual write " |
| 5604 |
"happens) and copy it as a string into provided by program buffer I<buf> of " |
| 5605 |
"size I<buf_len>\\&." |
| 5606 |
msgstr "" |
| 5607 |
|
| 5608 |
#. type: Plain text |
| 5609 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5610 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5611 |
msgid "User space may write new value at file position E<gt> 0." |
| 5612 |
msgstr "" |
| 5613 |
|
| 5614 |
#. type: Plain text |
| 5615 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5616 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5617 |
msgid "B<-EINVAL> if sysctl is being read." |
| 5618 |
msgstr "" |
| 5619 |
|
| 5620 |
#. type: TP |
| 5621 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5622 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5623 |
#, fuzzy, no-wrap |
| 5624 |
#| msgid "B<int bpf_bind(struct bpf_sock_addr *>I<ctx>B<, struct sockaddr *>I<addr>B<, int >I<addr_len>B<)>" |
| 5625 |
msgid "B<long bpf_sysctl_set_new_value(struct bpf_sysctl *>I<ctx>B<, const char *>I<buf>B<, size_t >I<buf_len>B<)>" |
| 5626 |
msgstr "B<int bpf_bind(struct bpf_sock_addr *>I<ctx>B<, struct sockaddr *>I<addr>B<, int >I<addr_len>B<)>" |
| 5627 |
|
| 5628 |
#. type: Plain text |
| 5629 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5630 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5631 |
msgid "" |
| 5632 |
"Override new value being written by user space to sysctl with value provided " |
| 5633 |
"by program in buffer I<buf> of size I<buf_len>\\&." |
| 5634 |
msgstr "" |
| 5635 |
|
| 5636 |
#. type: Plain text |
| 5637 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5638 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5639 |
msgid "" |
| 5640 |
"I<buf> should contain a string in same form as provided by user space on " |
| 5641 |
"sysctl write." |
| 5642 |
msgstr "" |
| 5643 |
|
| 5644 |
#. type: Plain text |
| 5645 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5646 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5647 |
msgid "" |
| 5648 |
"User space may write new value at file position E<gt> 0. To override the " |
| 5649 |
"whole sysctl value file position should be set to zero." |
| 5650 |
msgstr "" |
| 5651 |
|
| 5652 |
#. type: Plain text |
| 5653 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5654 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5655 |
#, fuzzy |
| 5656 |
#| msgid "Success." |
| 5657 |
msgid "0 on success." |
| 5658 |
msgstr "Успешно." |
| 5659 |
|
| 5660 |
#. type: Plain text |
| 5661 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5662 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5663 |
msgid "B<-E2BIG> if the I<buf_len> is too big." |
| 5664 |
msgstr "" |
| 5665 |
|
| 5666 |
#. type: TP |
| 5667 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5668 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5669 |
#, fuzzy, no-wrap |
| 5670 |
#| msgid "B<int bpf_get_stack(struct pt_regs *>I<regs>B<, void *>I<buf>B<, u32 >I<size>B<, u64 >I<flags>B<)>" |
| 5671 |
msgid "B<long bpf_strtol(const char *>I<buf>B<, size_t >I<buf_len>B<, u64 >I<flags>B<, long *>I<res>B<)>" |
| 5672 |
msgstr "B<int bpf_get_stack(struct pt_regs *>I<regs>B<, void *>I<buf>B<, u32 >I<size>B<, u64 >I<flags>B<)>" |
| 5673 |
|
| 5674 |
#. type: Plain text |
| 5675 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5676 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5677 |
msgid "" |
| 5678 |
"Convert the initial part of the string from buffer I<buf> of size I<buf_len> " |
| 5679 |
"to a long integer according to the given base and save the result in " |
| 5680 |
"I<res>\\&." |
| 5681 |
msgstr "" |
| 5682 |
|
| 5683 |
#. type: Plain text |
| 5684 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5685 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5686 |
msgid "" |
| 5687 |
"The string may begin with an arbitrary amount of white space (as determined " |
| 5688 |
"by B<isspace>(3)) followed by a single optional \\(aqB<->\\(aq sign." |
| 5689 |
msgstr "" |
| 5690 |
|
| 5691 |
#. type: Plain text |
| 5692 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5693 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5694 |
msgid "" |
| 5695 |
"Five least significant bits of I<flags> encode base, other bits are " |
| 5696 |
"currently unused." |
| 5697 |
msgstr "" |
| 5698 |
|
| 5699 |
#. type: Plain text |
| 5700 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5701 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5702 |
msgid "" |
| 5703 |
"Base must be either 8, 10, 16 or 0 to detect it automatically similar to " |
| 5704 |
"user space B<strtol>(3)." |
| 5705 |
msgstr "" |
| 5706 |
|
| 5707 |
#. type: Plain text |
| 5708 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5709 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5710 |
msgid "" |
| 5711 |
"Number of characters consumed on success. Must be positive but no more than " |
| 5712 |
"I<buf_len>\\&." |
| 5713 |
msgstr "" |
| 5714 |
|
| 5715 |
#. type: Plain text |
| 5716 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5717 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5718 |
msgid "" |
| 5719 |
"B<-EINVAL> if no valid digits were found or unsupported base was provided." |
| 5720 |
msgstr "" |
| 5721 |
|
| 5722 |
#. type: Plain text |
| 5723 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5724 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5725 |
#, fuzzy |
| 5726 |
#| msgid "The resulting value was out of range." |
| 5727 |
msgid "B<-ERANGE> if resulting value was out of range." |
| 5728 |
msgstr "Полученное значение вне диапазона." |
| 5729 |
|
| 5730 |
#. type: TP |
| 5731 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5732 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5733 |
#, no-wrap |
| 5734 |
msgid "B<long bpf_strtoul(const char *>I<buf>B<, size_t >I<buf_len>B<, u64 >I<flags>B<, unsigned long *>I<res>B<)>" |
| 5735 |
msgstr "" |
| 5736 |
|
| 5737 |
#. type: Plain text |
| 5738 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5739 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5740 |
msgid "" |
| 5741 |
"Convert the initial part of the string from buffer I<buf> of size I<buf_len> " |
| 5742 |
"to an unsigned long integer according to the given base and save the result " |
| 5743 |
"in I<res>\\&." |
| 5744 |
msgstr "" |
| 5745 |
|
| 5746 |
#. type: Plain text |
| 5747 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5748 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5749 |
msgid "" |
| 5750 |
"The string may begin with an arbitrary amount of white space (as determined " |
| 5751 |
"by B<isspace>(3))." |
| 5752 |
msgstr "" |
| 5753 |
|
| 5754 |
#. type: Plain text |
| 5755 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5756 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5757 |
msgid "" |
| 5758 |
"Base must be either 8, 10, 16 or 0 to detect it automatically similar to " |
| 5759 |
"user space B<strtoul>(3)." |
| 5760 |
msgstr "" |
| 5761 |
|
| 5762 |
#. type: TP |
| 5763 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5764 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5765 |
#, fuzzy, no-wrap |
| 5766 |
#| msgid "B<int bpf_map_update_elem(struct bpf_map *>I<map>B<, const void *>I<key>B<, const void *>I<value>B<, u64 >I<flags>B<)>" |
| 5767 |
msgid "B<void *bpf_sk_storage_get(struct bpf_map *>I<map>B<, void *>I<sk>B<, void *>I<value>B<, u64 >I<flags>B<)>" |
| 5768 |
msgstr "B<int bpf_map_update_elem(struct bpf_map *>I<map>B<, const void *>I<key>B<, const void *>I<value>B<, u64 >I<flags>B<)>" |
| 5769 |
|
| 5770 |
#. type: Plain text |
| 5771 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5772 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5773 |
msgid "Get a bpf-local-storage from a I<sk>\\&." |
| 5774 |
msgstr "" |
| 5775 |
|
| 5776 |
#. type: Plain text |
| 5777 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5778 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5779 |
msgid "" |
| 5780 |
"Logically, it could be thought of getting the value from a I<map> with I<sk> " |
| 5781 |
"as the B<key>\\&. From this perspective, the usage is not much different " |
| 5782 |
"from B<bpf_map_lookup_elem>(I<map>, B<&>I<sk>) except this helper enforces " |
| 5783 |
"the key must be a full socket and the map must be a " |
| 5784 |
"B<BPF_MAP_TYPE_SK_STORAGE> also." |
| 5785 |
msgstr "" |
| 5786 |
|
| 5787 |
#. type: Plain text |
| 5788 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5789 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5790 |
msgid "" |
| 5791 |
"Underneath, the value is stored locally at I<sk> instead of the I<map>\\&. " |
| 5792 |
"The I<map> is used as the bpf-local-storage \"type\". The bpf-local-storage " |
| 5793 |
"\"type\" (i.e. the I<map>) is searched against all bpf-local-storages " |
| 5794 |
"residing at I<sk>\\&." |
| 5795 |
msgstr "" |
| 5796 |
|
| 5797 |
#. type: Plain text |
| 5798 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5799 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5800 |
msgid "" |
| 5801 |
"I<sk> is a kernel B<struct sock> pointer for LSM program. I<sk> is a " |
| 5802 |
"B<struct bpf_sock> pointer for other program types." |
| 5803 |
msgstr "" |
| 5804 |
|
| 5805 |
#. type: Plain text |
| 5806 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5807 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5808 |
msgid "" |
| 5809 |
"An optional I<flags> (B<BPF_SK_STORAGE_GET_F_CREATE>) can be used such that " |
| 5810 |
"a new bpf-local-storage will be created if one does not exist. I<value> can " |
| 5811 |
"be used together with B<BPF_SK_STORAGE_GET_F_CREATE> to specify the initial " |
| 5812 |
"value of a bpf-local-storage. If I<value> is B<NULL>, the new bpf-local-" |
| 5813 |
"storage will be zero initialized." |
| 5814 |
msgstr "" |
| 5815 |
|
| 5816 |
#. type: Plain text |
| 5817 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5818 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5819 |
msgid "A bpf-local-storage pointer is returned on success." |
| 5820 |
msgstr "" |
| 5821 |
|
| 5822 |
#. type: Plain text |
| 5823 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5824 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5825 |
msgid "" |
| 5826 |
"B<NULL> if not found or there was an error in adding a new bpf-local-storage." |
| 5827 |
msgstr "" |
| 5828 |
|
| 5829 |
#. type: TP |
| 5830 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5831 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5832 |
#, fuzzy, no-wrap |
| 5833 |
#| msgid "B<int bpf_map_delete_elem(struct bpf_map *>I<map>B<, const void *>I<key>B<)>" |
| 5834 |
msgid "B<long bpf_sk_storage_delete(struct bpf_map *>I<map>B<, void *>I<sk>B<)>" |
| 5835 |
msgstr "B<int bpf_map_delete_elem(struct bpf_map *>I<map>B<, const void *>I<key>B<)>" |
| 5836 |
|
| 5837 |
#. type: Plain text |
| 5838 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5839 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5840 |
msgid "Delete a bpf-local-storage from a I<sk>\\&." |
| 5841 |
msgstr "" |
| 5842 |
|
| 5843 |
#. type: Plain text |
| 5844 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5845 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5846 |
msgid "" |
| 5847 |
"B<-ENOENT> if the bpf-local-storage cannot be found. B<-EINVAL> if sk is " |
| 5848 |
"not a fullsock (e.g. a request_sock)." |
| 5849 |
msgstr "" |
| 5850 |
|
| 5851 |
#. type: TP |
| 5852 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5853 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5854 |
#, fuzzy, no-wrap |
| 5855 |
#| msgid "B<pidfd_send_signal>(2)" |
| 5856 |
msgid "B<long bpf_send_signal(u32 >I<sig>B<)>" |
| 5857 |
msgstr "B<pidfd_send_signal>(2)" |
| 5858 |
|
| 5859 |
#. type: Plain text |
| 5860 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5861 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5862 |
msgid "" |
| 5863 |
"Send signal I<sig> to the process of the current task. The signal may be " |
| 5864 |
"delivered to any of this process\\(aqs threads." |
| 5865 |
msgstr "" |
| 5866 |
|
| 5867 |
#. type: Plain text |
| 5868 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5869 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5870 |
msgid "0 on success or successfully queued." |
| 5871 |
msgstr "" |
| 5872 |
|
| 5873 |
#. type: Plain text |
| 5874 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5875 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5876 |
msgid "B<-EBUSY> if work queue under nmi is full." |
| 5877 |
msgstr "" |
| 5878 |
|
| 5879 |
#. type: Plain text |
| 5880 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5881 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5882 |
#, fuzzy |
| 5883 |
#| msgid "I<sig> was invalid." |
| 5884 |
msgid "B<-EINVAL> if I<sig> is invalid." |
| 5885 |
msgstr "Значение I<sig> некорректно." |
| 5886 |
|
| 5887 |
#. type: Plain text |
| 5888 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5889 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5890 |
msgid "B<-EPERM> if no permission to send the I<sig>\\&." |
| 5891 |
msgstr "" |
| 5892 |
|
| 5893 |
#. type: Plain text |
| 5894 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5895 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5896 |
msgid "B<-EAGAIN> if bpf program can try again." |
| 5897 |
msgstr "" |
| 5898 |
|
| 5899 |
#. type: TP |
| 5900 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5901 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5902 |
#, fuzzy, no-wrap |
| 5903 |
#| msgid "B<int bpf_lwt_push_encap(struct sk_buff *>I<skb>B<, u32 >I<type>B<, void *>I<hdr>B<, u32 >I<len>B<)>" |
| 5904 |
msgid "B<s64 bpf_tcp_gen_syncookie(void *>I<sk>B<, void *>I<iph>B<, u32 >I<iph_len>B<, struct tcphdr *>I<th>B<, u32 >I<th_len>B<)>" |
| 5905 |
msgstr "B<int bpf_lwt_push_encap(struct sk_buff *>I<skb>B<, u32 >I<type>B<, void *>I<hdr>B<, u32 >I<len>B<)>" |
| 5906 |
|
| 5907 |
#. type: Plain text |
| 5908 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5909 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5910 |
msgid "" |
| 5911 |
"Try to issue a SYN cookie for the packet with corresponding IP/TCP headers, " |
| 5912 |
"I<iph> and I<th>, on the listening socket in I<sk>\\&." |
| 5913 |
msgstr "" |
| 5914 |
|
| 5915 |
#. type: Plain text |
| 5916 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5917 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5918 |
msgid "" |
| 5919 |
"I<th> points to the start of the TCP header, while I<th_len> contains the " |
| 5920 |
"length of the TCP header with options (at least B<sizeof>(B<struct tcphdr>))." |
| 5921 |
msgstr "" |
| 5922 |
|
| 5923 |
#. type: Plain text |
| 5924 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5925 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5926 |
msgid "" |
| 5927 |
"On success, lower 32 bits hold the generated SYN cookie in followed by 16 " |
| 5928 |
"bits which hold the MSS value for that cookie, and the top 16 bits are " |
| 5929 |
"unused." |
| 5930 |
msgstr "" |
| 5931 |
|
| 5932 |
#. type: Plain text |
| 5933 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5934 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5935 |
#, fuzzy |
| 5936 |
#| msgid "On failure, I<errno> will be set to one of the following:" |
| 5937 |
msgid "On failure, the returned value is one of the following:" |
| 5938 |
msgstr "При ошибке I<errno> присваиваются следующие значения:" |
| 5939 |
|
| 5940 |
#. type: Plain text |
| 5941 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5942 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5943 |
msgid "B<-EINVAL> SYN cookie cannot be issued due to error" |
| 5944 |
msgstr "" |
| 5945 |
|
| 5946 |
#. type: Plain text |
| 5947 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5948 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5949 |
msgid "B<-ENOENT> SYN cookie should not be issued (no SYN flood)" |
| 5950 |
msgstr "" |
| 5951 |
|
| 5952 |
#. type: Plain text |
| 5953 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5954 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5955 |
msgid "B<-EOPNOTSUPP> kernel configuration does not enable SYN cookies" |
| 5956 |
msgstr "" |
| 5957 |
|
| 5958 |
#. type: Plain text |
| 5959 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5960 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5961 |
msgid "B<-EPROTONOSUPPORT> IP packet version is not 4 or 6" |
| 5962 |
msgstr "" |
| 5963 |
|
| 5964 |
#. type: TP |
| 5965 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5966 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5967 |
#, fuzzy, no-wrap |
| 5968 |
#| msgid "B<int bpf_perf_event_output(struct pt_reg *>I<ctx>B<, struct bpf_map *>I<map>B<, u64 >I<flags>B<, void *>I<data>B<, u64 >I<size>B<)>" |
| 5969 |
msgid "B<long bpf_skb_output(void *>I<ctx>B<, struct bpf_map *>I<map>B<, u64 >I<flags>B<, void *>I<data>B<, u64 >I<size>B<)>" |
| 5970 |
msgstr "B<int bpf_perf_event_output(struct pt_reg *>I<ctx>B<, struct bpf_map *>I<map>B<, u64 >I<flags>B<, void *>I<data>B<, u64 >I<size>B<)>" |
| 5971 |
|
| 5972 |
#. type: Plain text |
| 5973 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5974 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5975 |
#, fuzzy |
| 5976 |
#| msgid "The I<bpf_context> argument is a pointer to a I<struct __sk_buff>." |
| 5977 |
msgid "I<ctx> is a pointer to in-kernel struct sk_buff." |
| 5978 |
msgstr "" |
| 5979 |
"Аргумент I<bpf_context> представляет собой указатель на I<struct __sk_buff>." |
| 5980 |
|
| 5981 |
#. type: Plain text |
| 5982 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5983 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5984 |
msgid "" |
| 5985 |
"This helper is similar to B<bpf_perf_event_output>() but restricted to " |
| 5986 |
"raw_tracepoint bpf programs." |
| 5987 |
msgstr "" |
| 5988 |
|
| 5989 |
#. type: TP |
| 5990 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5991 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5992 |
#, fuzzy, no-wrap |
| 5993 |
#| msgid "B<int bpf_probe_read_str(void *>I<dst>B<, int >I<size>B<, const void *>I<unsafe_ptr>B<)>" |
| 5994 |
msgid "B<long bpf_probe_read_user(void *>I<dst>B<, u32 >I<size>B<, const void *>I<unsafe_ptr>B<)>" |
| 5995 |
msgstr "B<int bpf_probe_read_str(void *>I<dst>B<, int >I<size>B<, const void *>I<unsafe_ptr>B<)>" |
| 5996 |
|
| 5997 |
#. type: Plain text |
| 5998 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5999 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6000 |
#, fuzzy |
| 6001 |
#| msgid "" |
| 6002 |
#| "For tracing programs, safely attempt to read I<size> bytes from address " |
| 6003 |
#| "I<src> and store the data in I<dst>\\&." |
| 6004 |
msgid "" |
| 6005 |
"Safely attempt to read I<size> bytes from user space address I<unsafe_ptr> " |
| 6006 |
"and store the data in I<dst>\\&." |
| 6007 |
msgstr "" |
| 6008 |
"Для программ трассировки; безопасно попытаться прочитать I<size> байт по " |
| 6009 |
"адресу I<src> и сохранить данные в I<dst>\\&." |
| 6010 |
|
| 6011 |
#. type: TP |
| 6012 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6013 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6014 |
#, fuzzy, no-wrap |
| 6015 |
#| msgid "B<int bpf_probe_read_str(void *>I<dst>B<, int >I<size>B<, const void *>I<unsafe_ptr>B<)>" |
| 6016 |
msgid "B<long bpf_probe_read_kernel(void *>I<dst>B<, u32 >I<size>B<, const void *>I<unsafe_ptr>B<)>" |
| 6017 |
msgstr "B<int bpf_probe_read_str(void *>I<dst>B<, int >I<size>B<, const void *>I<unsafe_ptr>B<)>" |
| 6018 |
|
| 6019 |
#. type: Plain text |
| 6020 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6021 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6022 |
#, fuzzy |
| 6023 |
#| msgid "" |
| 6024 |
#| "For tracing programs, safely attempt to read I<size> bytes from address " |
| 6025 |
#| "I<src> and store the data in I<dst>\\&." |
| 6026 |
msgid "" |
| 6027 |
"Safely attempt to read I<size> bytes from kernel space address I<unsafe_ptr> " |
| 6028 |
"and store the data in I<dst>\\&." |
| 6029 |
msgstr "" |
| 6030 |
"Для программ трассировки; безопасно попытаться прочитать I<size> байт по " |
| 6031 |
"адресу I<src> и сохранить данные в I<dst>\\&." |
| 6032 |
|
| 6033 |
#. type: TP |
| 6034 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6035 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6036 |
#, fuzzy, no-wrap |
| 6037 |
#| msgid "B<int bpf_probe_read_str(void *>I<dst>B<, int >I<size>B<, const void *>I<unsafe_ptr>B<)>" |
| 6038 |
msgid "B<long bpf_probe_read_user_str(void *>I<dst>B<, u32 >I<size>B<, const void *>I<unsafe_ptr>B<)>" |
| 6039 |
msgstr "B<int bpf_probe_read_str(void *>I<dst>B<, int >I<size>B<, const void *>I<unsafe_ptr>B<)>" |
| 6040 |
|
| 6041 |
#. type: Plain text |
| 6042 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6043 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6044 |
#, fuzzy |
| 6045 |
#| msgid "" |
| 6046 |
#| "Copy a NUL terminated string from an unsafe address I<unsafe_ptr> to " |
| 6047 |
#| "I<dst>\\&. The I<size> should include the terminating NUL byte. In case " |
| 6048 |
#| "the string length is smaller than I<size>, the target is not padded with " |
| 6049 |
#| "further NUL bytes. If the string length is larger than I<size>, just " |
| 6050 |
#| "I<size>-1 bytes are copied and the last byte is set to NUL." |
| 6051 |
msgid "" |
| 6052 |
"Copy a NUL terminated string from an unsafe user address I<unsafe_ptr> to " |
| 6053 |
"I<dst>\\&. The I<size> should include the terminating NUL byte. In case the " |
| 6054 |
"string length is smaller than I<size>, the target is not padded with further " |
| 6055 |
"NUL bytes. If the string length is larger than I<size>, just I<size>-1 bytes " |
| 6056 |
"are copied and the last byte is set to NUL." |
| 6057 |
msgstr "" |
| 6058 |
"Копирует строку с NUL в конце с опасного адреса I<unsafe_ptr> в I<dst>\\&. В " |
| 6059 |
"значении I<size> нужно учитывать конечный байт NUL. Если длина строки меньше " |
| 6060 |
"I<size>, то цель не дополняется байтами NUL. Если длина строки больше " |
| 6061 |
"I<size>, то копируется I<size>-1 байт, а в последний байт записывается NUL." |
| 6062 |
|
| 6063 |
#. type: Plain text |
| 6064 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6065 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6066 |
#, fuzzy |
| 6067 |
#| msgid "" |
| 6068 |
#| "On success, the length of the copied string is returned. This makes this " |
| 6069 |
#| "helper useful in tracing programs for reading strings, and more " |
| 6070 |
#| "importantly to get its length at runtime. See the following snippet:" |
| 6071 |
msgid "" |
| 6072 |
"On success, returns the number of bytes that were written, including the " |
| 6073 |
"terminal NUL. This makes this helper useful in tracing programs for reading " |
| 6074 |
"strings, and more importantly to get its length at runtime. See the " |
| 6075 |
"following snippet:" |
| 6076 |
msgstr "" |
| 6077 |
"При успешном выполнении возвращается длина скопированной строки. Это делает " |
| 6078 |
"помощник полезным в трассирующих программах для чтения строк, и где важно " |
| 6079 |
"получать её длину в время выполнения. Посмотрите следующий фрагмент:" |
| 6080 |
|
| 6081 |
#. type: Plain text |
| 6082 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6083 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6084 |
#, fuzzy, no-wrap |
| 6085 |
#| msgid "" |
| 6086 |
#| "SEC(\"kprobe/sys_open\")\n" |
| 6087 |
#| "void bpf_sys_open(struct pt_regs *ctx)\n" |
| 6088 |
#| " char buf[PATHLEN]; // PATHLEN is defined to 256\n" |
| 6089 |
#| " int res = bpf_probe_read_str(buf, sizeof(buf),\n" |
| 6090 |
#| " ctx-E<gt>di);\n" |
| 6091 |
msgid "" |
| 6092 |
"SEC(\"kprobe/sys_open\")\n" |
| 6093 |
"void bpf_sys_open(struct pt_regs *ctx)\n" |
| 6094 |
"{\n" |
| 6095 |
" char buf[PATHLEN]; // PATHLEN is defined to 256\n" |
| 6096 |
" int res = bpf_probe_read_user_str(buf, sizeof(buf),\n" |
| 6097 |
" ctx-E<gt>di);\n" |
| 6098 |
msgstr "" |
| 6099 |
"SEC(\"kprobe/sys_open\")\n" |
| 6100 |
"void bpf_sys_open(struct pt_regs *ctx)\n" |
| 6101 |
" char buf[PATHLEN]; // PATHLEN равно 256\n" |
| 6102 |
" int res = bpf_probe_read_str(buf, sizeof(buf),\n" |
| 6103 |
" ctx-E<gt>di);\n" |
| 6104 |
|
| 6105 |
#. type: Plain text |
| 6106 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6107 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6108 |
#, fuzzy, no-wrap |
| 6109 |
#| msgid "" |
| 6110 |
#| " // Consume buf, for example push it to\n" |
| 6111 |
#| " // userspace via bpf_perf_event_output(); we\n" |
| 6112 |
#| " // can use res (the string length) as event\n" |
| 6113 |
#| " // size, after checking its boundaries.\n" |
| 6114 |
msgid "" |
| 6115 |
" // Consume buf, for example push it to\n" |
| 6116 |
" // userspace via bpf_perf_event_output(); we\n" |
| 6117 |
" // can use res (the string length) as event\n" |
| 6118 |
" // size, after checking its boundaries.\n" |
| 6119 |
"}\n" |
| 6120 |
msgstr "" |
| 6121 |
" // Заполняем buf, например, для отдачи в\n" |
| 6122 |
" // пространство пользователя через bpf_perf_event_output();\n" |
| 6123 |
" // можно использовать res (длину строки) как размер\n" |
| 6124 |
" // события после проверки её границ.\n" |
| 6125 |
|
| 6126 |
#. type: Plain text |
| 6127 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6128 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6129 |
#, fuzzy |
| 6130 |
#| msgid "" |
| 6131 |
#| "In comparison, using B<bpf_probe_read()> helper here instead to read the " |
| 6132 |
#| "string would require to estimate the length at compile time, and would " |
| 6133 |
#| "often result in copying more memory than necessary." |
| 6134 |
msgid "" |
| 6135 |
"In comparison, using B<bpf_probe_read_user>() helper here instead to read " |
| 6136 |
"the string would require to estimate the length at compile time, and would " |
| 6137 |
"often result in copying more memory than necessary." |
| 6138 |
msgstr "" |
| 6139 |
"По сравнению с помощником B<bpf_probe_read()>, ему бы здесь вместо чтения " |
| 6140 |
"строки потребовалось вычислить длину во время компиляции и в результате " |
| 6141 |
"скопировать больше памяти чем нужно." |
| 6142 |
|
| 6143 |
#. type: Plain text |
| 6144 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6145 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6146 |
msgid "" |
| 6147 |
"Another useful use case is when parsing individual process arguments or " |
| 6148 |
"individual environment variables navigating I<current>B<-E<gt>mm-" |
| 6149 |
"E<gt>arg_start> and I<current>B<-E<gt>mm-E<gt>env_start>: using this helper " |
| 6150 |
"and the return value, one can quickly iterate at the right offset of the " |
| 6151 |
"memory area." |
| 6152 |
msgstr "" |
| 6153 |
"Другим полезным применением является разбор отдельных аргументов процесса " |
| 6154 |
"или переменных окружения посредством прохода через I<current>B<-E<gt>mm-" |
| 6155 |
"E<gt>arg_start> и I<current>B<-E<gt>mm-E<gt>env_start>: используя этот " |
| 6156 |
"помощник и возвращаемое значение можно быстро обойти область памяти от " |
| 6157 |
"правого смещения." |
| 6158 |
|
| 6159 |
#. type: Plain text |
| 6160 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6161 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6162 |
#, fuzzy |
| 6163 |
#| msgid "" |
| 6164 |
#| "On success, the strictly positive length of the string, including the " |
| 6165 |
#| "trailing NUL character. On error, a negative value." |
| 6166 |
msgid "" |
| 6167 |
"On success, the strictly positive length of the output string, including the " |
| 6168 |
"trailing NUL character. On error, a negative value." |
| 6169 |
msgstr "" |
| 6170 |
"При успешном выполнении — только положительная длина строки, включая " |
| 6171 |
"конечный символ NUL. При ошибке — отрицательное значение." |
| 6172 |
|
| 6173 |
#. type: TP |
| 6174 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6175 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6176 |
#, fuzzy, no-wrap |
| 6177 |
#| msgid "B<int bpf_probe_read_str(void *>I<dst>B<, int >I<size>B<, const void *>I<unsafe_ptr>B<)>" |
| 6178 |
msgid "B<long bpf_probe_read_kernel_str(void *>I<dst>B<, u32 >I<size>B<, const void *>I<unsafe_ptr>B<)>" |
| 6179 |
msgstr "B<int bpf_probe_read_str(void *>I<dst>B<, int >I<size>B<, const void *>I<unsafe_ptr>B<)>" |
| 6180 |
|
| 6181 |
#. type: Plain text |
| 6182 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6183 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6184 |
msgid "" |
| 6185 |
"Copy a NUL terminated string from an unsafe kernel address I<unsafe_ptr> to " |
| 6186 |
"I<dst>\\&. Same semantics as with B<bpf_probe_read_user_str>() apply." |
| 6187 |
msgstr "" |
| 6188 |
|
| 6189 |
#. type: TP |
| 6190 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6191 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6192 |
#, fuzzy, no-wrap |
| 6193 |
#| msgid "B<int bpf_probe_read(void *>I<dst>B<, u32 >I<size>B<, const void *>I<src>B<)>" |
| 6194 |
msgid "B<long bpf_tcp_send_ack(void *>I<tp>B<, u32 >I<rcv_nxt>B<)>" |
| 6195 |
msgstr "B<int bpf_probe_read(void *>I<dst>B<, u32 >I<size>B<, const void *>I<src>B<)>" |
| 6196 |
|
| 6197 |
#. type: Plain text |
| 6198 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6199 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6200 |
msgid "" |
| 6201 |
"Send out a tcp-ack. I<tp> is the in-kernel struct B<tcp_sock>\\&. " |
| 6202 |
"I<rcv_nxt> is the ack_seq to be sent out." |
| 6203 |
msgstr "" |
| 6204 |
|
| 6205 |
#. type: TP |
| 6206 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6207 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6208 |
#, no-wrap |
| 6209 |
msgid "B<long bpf_send_signal_thread(u32 >I<sig>B<)>" |
| 6210 |
msgstr "" |
| 6211 |
|
| 6212 |
#. type: Plain text |
| 6213 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6214 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6215 |
msgid "Send signal I<sig> to the thread corresponding to the current task." |
| 6216 |
msgstr "" |
| 6217 |
|
| 6218 |
#. type: TP |
| 6219 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6220 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6221 |
#, fuzzy, no-wrap |
| 6222 |
#| msgid "B<u64 bpf_ktime_get_ns(void)>" |
| 6223 |
msgid "B<u64 bpf_jiffies64(void)>" |
| 6224 |
msgstr "B<u64 bpf_ktime_get_ns(void)>" |
| 6225 |
|
| 6226 |
#. type: Plain text |
| 6227 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6228 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6229 |
msgid "Obtain the 64bit jiffies" |
| 6230 |
msgstr "" |
| 6231 |
|
| 6232 |
#. type: Plain text |
| 6233 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6234 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6235 |
msgid "The 64 bit jiffies" |
| 6236 |
msgstr "" |
| 6237 |
|
| 6238 |
#. type: TP |
| 6239 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6240 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6241 |
#, fuzzy, no-wrap |
| 6242 |
#| msgid "B<int bpf_get_stack(struct pt_regs *>I<regs>B<, void *>I<buf>B<, u32 >I<size>B<, u64 >I<flags>B<)>" |
| 6243 |
msgid "B<long bpf_read_branch_records(struct bpf_perf_event_data *>I<ctx>B<, void *>I<buf>B<, u32 >I<size>B<, u64 >I<flags>B<)>" |
| 6244 |
msgstr "B<int bpf_get_stack(struct pt_regs *>I<regs>B<, void *>I<buf>B<, u32 >I<size>B<, u64 >I<flags>B<)>" |
| 6245 |
|
| 6246 |
#. type: Plain text |
| 6247 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6248 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6249 |
#, fuzzy |
| 6250 |
#| msgid "" |
| 6251 |
#| "For en eBPF program attached to a perf event, retrieve the value of the " |
| 6252 |
#| "event counter associated to I<ctx> and store it in the structure pointed " |
| 6253 |
#| "by I<buf> and of size I<buf_size>\\&. Enabled and running times are also " |
| 6254 |
#| "stored in the structure (see description of helper " |
| 6255 |
#| "B<bpf_perf_event_read_value>() for more details)." |
| 6256 |
msgid "" |
| 6257 |
"For an eBPF program attached to a perf event, retrieve the branch records " |
| 6258 |
"(B<struct perf_branch_entry>) associated to I<ctx> and store it in the " |
| 6259 |
"buffer pointed by I<buf> up to size I<size> bytes." |
| 6260 |
msgstr "" |
| 6261 |
"Для программы eBPF, присоединённой к событию perf, возвращает значение " |
| 6262 |
"счётчика события, связанного с I<ctx>, и записывает его в структуру, на " |
| 6263 |
"которую указывает I<buf> и размер I<buf_size>\\&. Время включения и " |
| 6264 |
"выполнения также записываются в структуру (смотрите описание помощника " |
| 6265 |
"B<bpf_perf_event_read_value>())." |
| 6266 |
|
| 6267 |
#. type: Plain text |
| 6268 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6269 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6270 |
#, fuzzy |
| 6271 |
#| msgid "" |
| 6272 |
#| "The number of bytes written to the buffer, or a negative error in case of " |
| 6273 |
#| "failure." |
| 6274 |
msgid "" |
| 6275 |
"On success, number of bytes written to I<buf>\\&. On error, a negative value." |
| 6276 |
msgstr "Количество байт, записанных в буфер, или отрицательный номер ошибки." |
| 6277 |
|
| 6278 |
#. type: Plain text |
| 6279 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6280 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6281 |
msgid "" |
| 6282 |
"The I<flags> can be set to B<BPF_F_GET_BRANCH_RECORDS_SIZE> to instead " |
| 6283 |
"return the number of bytes required to store all the branch entries. If this " |
| 6284 |
"flag is set, I<buf> may be NULL." |
| 6285 |
msgstr "" |
| 6286 |
|
| 6287 |
#. type: Plain text |
| 6288 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6289 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6290 |
msgid "" |
| 6291 |
"B<-EINVAL> if arguments invalid or B<size> not a multiple of " |
| 6292 |
"B<sizeof>(B<struct perf_branch_entry>)." |
| 6293 |
msgstr "" |
| 6294 |
|
| 6295 |
#. type: Plain text |
| 6296 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6297 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6298 |
msgid "B<-ENOENT> if architecture does not support branch records." |
| 6299 |
msgstr "" |
| 6300 |
|
| 6301 |
#. type: TP |
| 6302 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6303 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6304 |
#, fuzzy, no-wrap |
| 6305 |
#| msgid "B<int bpf_perf_event_read_value(struct bpf_map *>I<map>B<, u64 >I<flags>B<, struct bpf_perf_event_value *>I<buf>B<, u32 >I<buf_size>B<)>" |
| 6306 |
msgid "B<long bpf_get_ns_current_pid_tgid(u64 >I<dev>B<, u64 >I<ino>B<, struct bpf_pidns_info *>I<nsdata>B<, u32 >I<size>B<)>" |
| 6307 |
msgstr "B<int bpf_perf_event_read_value(struct bpf_map *>I<map>B<, u64 >I<flags>B<, struct bpf_perf_event_value *>I<buf>B<, u32 >I<buf_size>B<)>" |
| 6308 |
|
| 6309 |
#. type: Plain text |
| 6310 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6311 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6312 |
msgid "" |
| 6313 |
"Returns 0 on success, values for I<pid> and I<tgid> as seen from the current " |
| 6314 |
"I<namespace> will be returned in I<nsdata>\\&." |
| 6315 |
msgstr "" |
| 6316 |
|
| 6317 |
#. type: Plain text |
| 6318 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6319 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6320 |
#, fuzzy |
| 6321 |
#| msgid "0 on success, or a negative error in case of failure." |
| 6322 |
msgid "0 on success, or one of the following in case of failure:" |
| 6323 |
msgstr "При успешном выполнении 0 и отрицательное значение при ошибке." |
| 6324 |
|
| 6325 |
#. type: Plain text |
| 6326 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6327 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6328 |
msgid "" |
| 6329 |
"B<-EINVAL> if dev and inum supplied don\\(aqt match dev_t and inode number " |
| 6330 |
"with nsfs of current task, or if dev conversion to dev_t lost high bits." |
| 6331 |
msgstr "" |
| 6332 |
|
| 6333 |
#. type: Plain text |
| 6334 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6335 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6336 |
#, fuzzy |
| 6337 |
#| msgid "B<telnet> is the name of the current task." |
| 6338 |
msgid "B<-ENOENT> if pidns does not exists for the current task." |
| 6339 |
msgstr "B<telnet> — имя текущей задачи." |
| 6340 |
|
| 6341 |
#. type: TP |
| 6342 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6343 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6344 |
#, fuzzy, no-wrap |
| 6345 |
#| msgid "B<int bpf_perf_event_output(struct pt_reg *>I<ctx>B<, struct bpf_map *>I<map>B<, u64 >I<flags>B<, void *>I<data>B<, u64 >I<size>B<)>" |
| 6346 |
msgid "B<long bpf_xdp_output(void *>I<ctx>B<, struct bpf_map *>I<map>B<, u64 >I<flags>B<, void *>I<data>B<, u64 >I<size>B<)>" |
| 6347 |
msgstr "B<int bpf_perf_event_output(struct pt_reg *>I<ctx>B<, struct bpf_map *>I<map>B<, u64 >I<flags>B<, void *>I<data>B<, u64 >I<size>B<)>" |
| 6348 |
|
| 6349 |
#. type: Plain text |
| 6350 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6351 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6352 |
#, fuzzy |
| 6353 |
#| msgid "The I<bpf_context> argument is a pointer to a I<struct __sk_buff>." |
| 6354 |
msgid "I<ctx> is a pointer to in-kernel struct xdp_buff." |
| 6355 |
msgstr "" |
| 6356 |
"Аргумент I<bpf_context> представляет собой указатель на I<struct __sk_buff>." |
| 6357 |
|
| 6358 |
#. type: Plain text |
| 6359 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6360 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6361 |
msgid "" |
| 6362 |
"This helper is similar to B<bpf_perf_eventoutput>() but restricted to " |
| 6363 |
"raw_tracepoint bpf programs." |
| 6364 |
msgstr "" |
| 6365 |
|
| 6366 |
#. type: TP |
| 6367 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6368 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6369 |
#, fuzzy, no-wrap |
| 6370 |
#| msgid "B<u64 bpf_get_socket_cookie(struct bpf_sock_addr *>I<ctx>B<)>" |
| 6371 |
msgid "B<u64 bpf_get_netns_cookie(void *>I<ctx>B<)>" |
| 6372 |
msgstr "B<u64 bpf_get_socket_cookie(struct bpf_sock_addr *>I<ctx>B<)>" |
| 6373 |
|
| 6374 |
#. type: Plain text |
| 6375 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6376 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6377 |
msgid "" |
| 6378 |
"Retrieve the cookie (generated by the kernel) of the network namespace the " |
| 6379 |
"input I<ctx> is associated with. The network namespace cookie remains stable " |
| 6380 |
"for its lifetime and provides a global identifier that can be assumed " |
| 6381 |
"unique. If I<ctx> is NULL, then the helper returns the cookie for the " |
| 6382 |
"initial network namespace. The cookie itself is very similar to that of " |
| 6383 |
"B<bpf_get_socket_cookie>() helper, but for network namespaces instead of " |
| 6384 |
"sockets." |
| 6385 |
msgstr "" |
| 6386 |
|
| 6387 |
#. type: Plain text |
| 6388 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6389 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6390 |
#, fuzzy |
| 6391 |
#| msgid "A 8-byte long non-decreasing number." |
| 6392 |
msgid "A 8-byte long opaque number." |
| 6393 |
msgstr "При успешном выполнении — 8-байтовое длинное неуменьшающееся число." |
| 6394 |
|
| 6395 |
#. type: TP |
| 6396 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6397 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6398 |
#, fuzzy, no-wrap |
| 6399 |
#| msgid "B<u64 bpf_skb_ancestor_cgroup_id(struct sk_buff *>I<skb>B<, int >I<ancestor_level>B<)>" |
| 6400 |
msgid "B<u64 bpf_get_current_ancestor_cgroup_id(int >I<ancestor_level>B<)>" |
| 6401 |
msgstr "B<u64 bpf_skb_ancestor_cgroup_id(struct sk_buff *>I<skb>B<, int >I<ancestor_level>B<)>" |
| 6402 |
|
| 6403 |
#. type: Plain text |
| 6404 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6405 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6406 |
#, fuzzy |
| 6407 |
#| msgid "" |
| 6408 |
#| "Return id of cgroup v2 that is ancestor of cgroup associated with the " |
| 6409 |
#| "I<skb> at the I<ancestor_level>\\&. The root cgroup is at " |
| 6410 |
#| "I<ancestor_level> zero and each step down the hierarchy increments the " |
| 6411 |
#| "level. If I<ancestor_level> == level of cgroup associated with I<skb>, " |
| 6412 |
#| "then return value will be same as that of B<bpf_skb_cgroup_id>()." |
| 6413 |
msgid "" |
| 6414 |
"Return id of cgroup v2 that is ancestor of the cgroup associated with the " |
| 6415 |
"current task at the I<ancestor_level>\\&. The root cgroup is at " |
| 6416 |
"I<ancestor_level> zero and each step down the hierarchy increments the " |
| 6417 |
"level. If I<ancestor_level> == level of cgroup associated with the current " |
| 6418 |
"task, then return value will be the same as that of " |
| 6419 |
"B<bpf_get_current_cgroup_id>()." |
| 6420 |
msgstr "" |
| 6421 |
"Возвращает идентификатор cgroup v2, которая является предком cgroup, " |
| 6422 |
"связанной с I<skb> на уровне I<ancestor_level>\\&. Корневая cgroup " |
| 6423 |
"расположена на уровне I<ancestor_level> равным нулю и каждый шаг вниз по " |
| 6424 |
"иерархии увеличивает значение уровня. Если I<ancestor_level> == уровню " |
| 6425 |
"cgroup, связанной с I<skb>, то возвращаемое значение будет равно " |
| 6426 |
"возвращаемому B<bpf_skb_cgroup_id>()." |
| 6427 |
|
| 6428 |
#. type: Plain text |
| 6429 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6430 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6431 |
#, fuzzy |
| 6432 |
#| msgid "" |
| 6433 |
#| "The helper is useful to implement policies based on cgroups that are " |
| 6434 |
#| "upper in hierarchy than immediate cgroup associated with I<skb>\\&." |
| 6435 |
msgid "" |
| 6436 |
"The helper is useful to implement policies based on cgroups that are upper " |
| 6437 |
"in hierarchy than immediate cgroup associated with the current task." |
| 6438 |
msgstr "" |
| 6439 |
"Помощник полезен при реализации политик на основе cgroup, которые стоят в " |
| 6440 |
"иерархии выше, чем непосредственная cgroup, связанная с I<skb>\\&." |
| 6441 |
|
| 6442 |
#. type: Plain text |
| 6443 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6444 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6445 |
#, fuzzy |
| 6446 |
#| msgid "" |
| 6447 |
#| "The format of returned id and helper limitations are same as in " |
| 6448 |
#| "B<bpf_skb_cgroup_id>()." |
| 6449 |
msgid "" |
| 6450 |
"The format of returned id and helper limitations are same as in " |
| 6451 |
"B<bpf_get_current_cgroup_id>()." |
| 6452 |
msgstr "" |
| 6453 |
"Формат возвращаемого идентификатора и ограничения помощника такие же как у " |
| 6454 |
"B<bpf_skb_cgroup_id>()." |
| 6455 |
|
| 6456 |
#. type: TP |
| 6457 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6458 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6459 |
#, fuzzy, no-wrap |
| 6460 |
#| msgid "B<int bpf_skb_change_tail(struct sk_buff *>I<skb>B<, u32 >I<len>B<, u64 >I<flags>B<)>" |
| 6461 |
msgid "B<long bpf_sk_assign(struct sk_buff *>I<skb>B<, void *>I<sk>B<, u64 >I<flags>B<)>" |
| 6462 |
msgstr "B<int bpf_skb_change_tail(struct sk_buff *>I<skb>B<, u32 >I<len>B<, u64 >I<flags>B<)>" |
| 6463 |
|
| 6464 |
#. type: Plain text |
| 6465 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6466 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6467 |
msgid "" |
| 6468 |
"Helper is overloaded depending on BPF program type. This description applies " |
| 6469 |
"to B<BPF_PROG_TYPE_SCHED_CLS> and B<BPF_PROG_TYPE_SCHED_ACT> programs." |
| 6470 |
msgstr "" |
| 6471 |
|
| 6472 |
#. type: Plain text |
| 6473 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6474 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6475 |
msgid "" |
| 6476 |
"Assign the I<sk> to the I<skb>\\&. When combined with appropriate routing " |
| 6477 |
"configuration to receive the packet towards the socket, will cause I<skb> to " |
| 6478 |
"be delivered to the specified socket. Subsequent redirection of I<skb> via " |
| 6479 |
"B<bpf_redirect>(), B<bpf_clone_redirect>() or other methods outside of BPF " |
| 6480 |
"may interfere with successful delivery to the socket." |
| 6481 |
msgstr "" |
| 6482 |
|
| 6483 |
#. type: Plain text |
| 6484 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6485 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6486 |
msgid "This operation is only valid from TC ingress path." |
| 6487 |
msgstr "" |
| 6488 |
|
| 6489 |
#. type: Plain text |
| 6490 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6491 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6492 |
#, fuzzy |
| 6493 |
#| msgid "The flags argument" |
| 6494 |
msgid "The I<flags> argument must be zero." |
| 6495 |
msgstr "Аргумент флагов" |
| 6496 |
|
| 6497 |
#. type: Plain text |
| 6498 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6499 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6500 |
#, fuzzy |
| 6501 |
#| msgid "0 on success, or a negative error in case of failure." |
| 6502 |
msgid "0 on success, or a negative error in case of failure:" |
| 6503 |
msgstr "При успешном выполнении 0 и отрицательное значение при ошибке." |
| 6504 |
|
| 6505 |
#. type: Plain text |
| 6506 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6507 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6508 |
msgid "B<-EINVAL> if specified I<flags> are not supported." |
| 6509 |
msgstr "" |
| 6510 |
|
| 6511 |
#. type: Plain text |
| 6512 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6513 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6514 |
msgid "B<-ENOENT> if the socket is unavailable for assignment." |
| 6515 |
msgstr "" |
| 6516 |
|
| 6517 |
#. type: Plain text |
| 6518 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6519 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6520 |
msgid "B<-ENETUNREACH> if the socket is unreachable (wrong netns)." |
| 6521 |
msgstr "" |
| 6522 |
|
| 6523 |
#. type: Plain text |
| 6524 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6525 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6526 |
msgid "" |
| 6527 |
"B<-EOPNOTSUPP> if the operation is not supported, for example a call from " |
| 6528 |
"outside of TC ingress." |
| 6529 |
msgstr "" |
| 6530 |
|
| 6531 |
#. type: TP |
| 6532 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6533 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6534 |
#, fuzzy, no-wrap |
| 6535 |
#| msgid "B<int bpf_get_stackid(struct pt_reg *>I<ctx>B<, struct bpf_map *>I<map>B<, u64 >I<flags>B<)>" |
| 6536 |
msgid "B<long bpf_sk_assign(struct bpf_sk_lookup *>I<ctx>B<, struct bpf_sock *>I<sk>B<, u64 >I<flags>B<)>" |
| 6537 |
msgstr "B<int bpf_get_stackid(struct pt_reg *>I<ctx>B<, struct bpf_map *>I<map>B<, u64 >I<flags>B<)>" |
| 6538 |
|
| 6539 |
#. type: Plain text |
| 6540 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6541 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6542 |
msgid "" |
| 6543 |
"Helper is overloaded depending on BPF program type. This description applies " |
| 6544 |
"to B<BPF_PROG_TYPE_SK_LOOKUP> programs." |
| 6545 |
msgstr "" |
| 6546 |
|
| 6547 |
#. type: Plain text |
| 6548 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6549 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6550 |
msgid "Select the I<sk> as a result of a socket lookup." |
| 6551 |
msgstr "" |
| 6552 |
|
| 6553 |
#. type: Plain text |
| 6554 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6555 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6556 |
msgid "" |
| 6557 |
"For the operation to succeed passed socket must be compatible with the " |
| 6558 |
"packet description provided by the I<ctx> object." |
| 6559 |
msgstr "" |
| 6560 |
|
| 6561 |
#. type: Plain text |
| 6562 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6563 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6564 |
msgid "" |
| 6565 |
"L4 protocol (B<IPPROTO_TCP> or B<IPPROTO_UDP>) must be an exact match. While " |
| 6566 |
"IP family (B<AF_INET> or B<AF_INET6>) must be compatible, that is IPv6 " |
| 6567 |
"sockets that are not v6-only can be selected for IPv4 packets." |
| 6568 |
msgstr "" |
| 6569 |
|
| 6570 |
#. type: Plain text |
| 6571 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6572 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6573 |
msgid "" |
| 6574 |
"Only TCP listeners and UDP unconnected sockets can be selected. I<sk> can " |
| 6575 |
"also be NULL to reset any previous selection." |
| 6576 |
msgstr "" |
| 6577 |
|
| 6578 |
#. type: Plain text |
| 6579 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6580 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6581 |
#, fuzzy |
| 6582 |
#| msgid "The I<mode> argument must include one of the following values:" |
| 6583 |
msgid "I<flags> argument can combination of following values:" |
| 6584 |
msgstr "Аргумент I<mode> должен включать одно из следующих значений:" |
| 6585 |
|
| 6586 |
#. type: Plain text |
| 6587 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6588 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6589 |
msgid "" |
| 6590 |
"B<BPF_SK_LOOKUP_F_REPLACE> to override the previous socket selection, " |
| 6591 |
"potentially done by a BPF program that ran before us." |
| 6592 |
msgstr "" |
| 6593 |
|
| 6594 |
#. type: Plain text |
| 6595 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6596 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6597 |
msgid "" |
| 6598 |
"B<BPF_SK_LOOKUP_F_NO_REUSEPORT> to skip load-balancing within reuseport " |
| 6599 |
"group for the socket being selected." |
| 6600 |
msgstr "" |
| 6601 |
|
| 6602 |
#. type: Plain text |
| 6603 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6604 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6605 |
msgid "On success I<ctx-E<gt>sk> will point to the selected socket." |
| 6606 |
msgstr "" |
| 6607 |
|
| 6608 |
#. type: Plain text |
| 6609 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6610 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6611 |
#, fuzzy |
| 6612 |
#| msgid "0 on success, or a negative error in case of failure." |
| 6613 |
msgid "0 on success, or a negative errno in case of failure." |
| 6614 |
msgstr "При успешном выполнении 0 и отрицательное значение при ошибке." |
| 6615 |
|
| 6616 |
#. type: Plain text |
| 6617 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6618 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6619 |
msgid "" |
| 6620 |
"B<-EAFNOSUPPORT> if socket family (I<sk-E<gt>family>) is not compatible with " |
| 6621 |
"packet family (I<ctx-E<gt>family>)." |
| 6622 |
msgstr "" |
| 6623 |
|
| 6624 |
#. type: Plain text |
| 6625 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6626 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6627 |
msgid "" |
| 6628 |
"B<-EEXIST> if socket has been already selected, potentially by another " |
| 6629 |
"program, and B<BPF_SK_LOOKUP_F_REPLACE> flag was not specified." |
| 6630 |
msgstr "" |
| 6631 |
|
| 6632 |
#. type: Plain text |
| 6633 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6634 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6635 |
msgid "B<-EINVAL> if unsupported flags were specified." |
| 6636 |
msgstr "" |
| 6637 |
|
| 6638 |
#. type: Plain text |
| 6639 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6640 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6641 |
msgid "" |
| 6642 |
"B<-EPROTOTYPE> if socket L4 protocol (I<sk-E<gt>protocol>) doesn\\(aqt match " |
| 6643 |
"packet protocol (I<ctx-E<gt>protocol>)." |
| 6644 |
msgstr "" |
| 6645 |
|
| 6646 |
#. type: Plain text |
| 6647 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6648 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6649 |
msgid "" |
| 6650 |
"B<-ESOCKTNOSUPPORT> if socket is not in allowed state (TCP listening or UDP " |
| 6651 |
"unconnected)." |
| 6652 |
msgstr "" |
| 6653 |
|
| 6654 |
#. type: TP |
| 6655 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6656 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6657 |
#, fuzzy, no-wrap |
| 6658 |
#| msgid "B<u64 bpf_ktime_get_ns(void)>" |
| 6659 |
msgid "B<u64 bpf_ktime_get_boot_ns(void)>" |
| 6660 |
msgstr "B<u64 bpf_ktime_get_ns(void)>" |
| 6661 |
|
| 6662 |
#. type: Plain text |
| 6663 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6664 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6665 |
msgid "" |
| 6666 |
"Return the time elapsed since system boot, in nanoseconds. Does include the " |
| 6667 |
"time the system was suspended. See: B<clock_gettime>(B<CLOCK_BOOTTIME>)" |
| 6668 |
msgstr "" |
| 6669 |
|
| 6670 |
#. type: TP |
| 6671 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6672 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6673 |
#, fuzzy, no-wrap |
| 6674 |
#| msgid "B<int bpf_lwt_seg6_store_bytes(struct sk_buff *>I<skb>B<, u32 >I<offset>B<, const void *>I<from>B<, u32 >I<len>B<)>" |
| 6675 |
msgid "B<long bpf_seq_printf(struct seq_file *>I<m>B<, const char *>I<fmt>B<, u32 >I<fmt_size>B<, const void *>I<data>B<, u32 >I<data_len>B<)>" |
| 6676 |
msgstr "B<int bpf_lwt_seg6_store_bytes(struct sk_buff *>I<skb>B<, u32 >I<offset>B<, const void *>I<from>B<, u32 >I<len>B<)>" |
| 6677 |
|
| 6678 |
#. type: Plain text |
| 6679 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6680 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6681 |
msgid "" |
| 6682 |
"B<bpf_seq_printf>() uses seq_file B<seq_printf>() to print out the format " |
| 6683 |
"string. The I<m> represents the seq_file. The I<fmt> and I<fmt_size> are " |
| 6684 |
"for the format string itself. The I<data> and I<data_len> are format string " |
| 6685 |
"arguments. The I<data> are a B<u64> array and corresponding format string " |
| 6686 |
"values are stored in the array. For strings and pointers where pointees are " |
| 6687 |
"accessed, only the pointer values are stored in the I<data> array. The " |
| 6688 |
"I<data_len> is the size of I<data> in bytes - must be a multiple of 8." |
| 6689 |
msgstr "" |
| 6690 |
|
| 6691 |
#. type: Plain text |
| 6692 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6693 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6694 |
msgid "" |
| 6695 |
"Formats B<%s>, B<%p{i,I}{4,6}> requires to read kernel memory. Reading " |
| 6696 |
"kernel memory may fail due to either invalid address or valid address but " |
| 6697 |
"requiring a major memory fault. If reading kernel memory fails, the string " |
| 6698 |
"for B<%s> will be an empty string, and the ip address for B<%p{i,I}{4,6}> " |
| 6699 |
"will be 0. Not returning error to bpf program is consistent with what " |
| 6700 |
"B<bpf_trace_printk>() does for now." |
| 6701 |
msgstr "" |
| 6702 |
|
| 6703 |
#. type: Plain text |
| 6704 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6705 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6706 |
msgid "" |
| 6707 |
"B<-EBUSY> if per-CPU memory copy buffer is busy, can try again by returning " |
| 6708 |
"1 from bpf program." |
| 6709 |
msgstr "" |
| 6710 |
|
| 6711 |
#. type: Plain text |
| 6712 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6713 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6714 |
msgid "" |
| 6715 |
"B<-EINVAL> if arguments are invalid, or if I<fmt> is invalid/unsupported." |
| 6716 |
msgstr "" |
| 6717 |
|
| 6718 |
#. type: Plain text |
| 6719 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6720 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6721 |
msgid "B<-E2BIG> if I<fmt> contains too many format specifiers." |
| 6722 |
msgstr "" |
| 6723 |
|
| 6724 |
#. type: Plain text |
| 6725 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6726 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6727 |
msgid "" |
| 6728 |
"B<-EOVERFLOW> if an overflow happened: The same object will be tried again." |
| 6729 |
msgstr "" |
| 6730 |
|
| 6731 |
#. type: TP |
| 6732 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6733 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6734 |
#, fuzzy, no-wrap |
| 6735 |
#| msgid "B<int bpf_probe_write_user(void *>I<dst>B<, const void *>I<src>B<, u32 >I<len>B<)>" |
| 6736 |
msgid "B<long bpf_seq_write(struct seq_file *>I<m>B<, const void *>I<data>B<, u32 >I<len>B<)>" |
| 6737 |
msgstr "B<int bpf_probe_write_user(void *>I<dst>B<, const void *>I<src>B<, u32 >I<len>B<)>" |
| 6738 |
|
| 6739 |
#. type: Plain text |
| 6740 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6741 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6742 |
msgid "" |
| 6743 |
"B<bpf_seq_write>() uses seq_file B<seq_write>() to write the data. The I<m> " |
| 6744 |
"represents the seq_file. The I<data> and I<len> represent the data to write " |
| 6745 |
"in bytes." |
| 6746 |
msgstr "" |
| 6747 |
|
| 6748 |
#. type: TP |
| 6749 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6750 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6751 |
#, fuzzy, no-wrap |
| 6752 |
#| msgid "B<uint64_t bpf_skb_cgroup_id(struct sk_buff *>I<skb>B<)>" |
| 6753 |
msgid "B<u64 bpf_sk_cgroup_id(void *>I<sk>B<)>" |
| 6754 |
msgstr "B<uint64_t bpf_skb_cgroup_id(struct sk_buff *>I<skb>B<)>" |
| 6755 |
|
| 6756 |
#. type: Plain text |
| 6757 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6758 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6759 |
msgid "Return the cgroup v2 id of the socket I<sk>\\&." |
| 6760 |
msgstr "" |
| 6761 |
|
| 6762 |
#. type: Plain text |
| 6763 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6764 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6765 |
msgid "" |
| 6766 |
"I<sk> must be a non-B<NULL> pointer to a socket, e.g. one returned from " |
| 6767 |
"B<bpf_sk_lookup_xxx>(), B<bpf_sk_fullsock>(), etc. The format of returned id " |
| 6768 |
"is same as in B<bpf_skb_cgroup_id>()." |
| 6769 |
msgstr "" |
| 6770 |
|
| 6771 |
#. type: Plain text |
| 6772 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6773 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6774 |
#, fuzzy |
| 6775 |
#| msgid "" |
| 6776 |
#| "This helper is available only if the kernel was compiled with " |
| 6777 |
#| "B<CONFIG_NET> configuration option." |
| 6778 |
msgid "" |
| 6779 |
"This helper is available only if the kernel was compiled with the " |
| 6780 |
"B<CONFIG_SOCK_CGROUP_DATA> configuration option." |
| 6781 |
msgstr "" |
| 6782 |
"Этот помощник доступен только, если ядро скомпилировано с параметром " |
| 6783 |
"настройки B<CONFIG_NET>." |
| 6784 |
|
| 6785 |
#. type: TP |
| 6786 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6787 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6788 |
#, fuzzy, no-wrap |
| 6789 |
#| msgid "B<u64 bpf_skb_ancestor_cgroup_id(struct sk_buff *>I<skb>B<, int >I<ancestor_level>B<)>" |
| 6790 |
msgid "B<u64 bpf_sk_ancestor_cgroup_id(void *>I<sk>B<, int >I<ancestor_level>B<)>" |
| 6791 |
msgstr "B<u64 bpf_skb_ancestor_cgroup_id(struct sk_buff *>I<skb>B<, int >I<ancestor_level>B<)>" |
| 6792 |
|
| 6793 |
#. type: Plain text |
| 6794 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6795 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6796 |
#, fuzzy |
| 6797 |
#| msgid "" |
| 6798 |
#| "Return id of cgroup v2 that is ancestor of cgroup associated with the " |
| 6799 |
#| "I<skb> at the I<ancestor_level>\\&. The root cgroup is at " |
| 6800 |
#| "I<ancestor_level> zero and each step down the hierarchy increments the " |
| 6801 |
#| "level. If I<ancestor_level> == level of cgroup associated with I<skb>, " |
| 6802 |
#| "then return value will be same as that of B<bpf_skb_cgroup_id>()." |
| 6803 |
msgid "" |
| 6804 |
"Return id of cgroup v2 that is ancestor of cgroup associated with the I<sk> " |
| 6805 |
"at the I<ancestor_level>\\&. The root cgroup is at I<ancestor_level> zero " |
| 6806 |
"and each step down the hierarchy increments the level. If I<ancestor_level> " |
| 6807 |
"== level of cgroup associated with I<sk>, then return value will be same as " |
| 6808 |
"that of B<bpf_sk_cgroup_id>()." |
| 6809 |
msgstr "" |
| 6810 |
"Возвращает идентификатор cgroup v2, которая является предком cgroup, " |
| 6811 |
"связанной с I<skb> на уровне I<ancestor_level>\\&. Корневая cgroup " |
| 6812 |
"расположена на уровне I<ancestor_level> равным нулю и каждый шаг вниз по " |
| 6813 |
"иерархии увеличивает значение уровня. Если I<ancestor_level> == уровню " |
| 6814 |
"cgroup, связанной с I<skb>, то возвращаемое значение будет равно " |
| 6815 |
"возвращаемому B<bpf_skb_cgroup_id>()." |
| 6816 |
|
| 6817 |
#. type: Plain text |
| 6818 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6819 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6820 |
#, fuzzy |
| 6821 |
#| msgid "" |
| 6822 |
#| "The helper is useful to implement policies based on cgroups that are " |
| 6823 |
#| "upper in hierarchy than immediate cgroup associated with I<skb>\\&." |
| 6824 |
msgid "" |
| 6825 |
"The helper is useful to implement policies based on cgroups that are upper " |
| 6826 |
"in hierarchy than immediate cgroup associated with I<sk>\\&." |
| 6827 |
msgstr "" |
| 6828 |
"Помощник полезен при реализации политик на основе cgroup, которые стоят в " |
| 6829 |
"иерархии выше, чем непосредственная cgroup, связанная с I<skb>\\&." |
| 6830 |
|
| 6831 |
#. type: Plain text |
| 6832 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6833 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6834 |
#, fuzzy |
| 6835 |
#| msgid "" |
| 6836 |
#| "The format of returned id and helper limitations are same as in " |
| 6837 |
#| "B<bpf_skb_cgroup_id>()." |
| 6838 |
msgid "" |
| 6839 |
"The format of returned id and helper limitations are same as in " |
| 6840 |
"B<bpf_sk_cgroup_id>()." |
| 6841 |
msgstr "" |
| 6842 |
"Формат возвращаемого идентификатора и ограничения помощника такие же как у " |
| 6843 |
"B<bpf_skb_cgroup_id>()." |
| 6844 |
|
| 6845 |
#. type: TP |
| 6846 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6847 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6848 |
#, fuzzy, no-wrap |
| 6849 |
#| msgid "B<int bpf_get_stack(struct pt_regs *>I<regs>B<, void *>I<buf>B<, u32 >I<size>B<, u64 >I<flags>B<)>" |
| 6850 |
msgid "B<long bpf_ringbuf_output(void *>I<ringbuf>B<, void *>I<data>B<, u64 >I<size>B<, u64 >I<flags>B<)>" |
| 6851 |
msgstr "B<int bpf_get_stack(struct pt_regs *>I<regs>B<, void *>I<buf>B<, u32 >I<size>B<, u64 >I<flags>B<)>" |
| 6852 |
|
| 6853 |
#. type: Plain text |
| 6854 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6855 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6856 |
msgid "" |
| 6857 |
"Copy I<size> bytes from I<data> into a ring buffer I<ringbuf>\\&. If " |
| 6858 |
"B<BPF_RB_NO_WAKEUP> is specified in I<flags>, no notification of new data " |
| 6859 |
"availability is sent. If B<BPF_RB_FORCE_WAKEUP> is specified in I<flags>, " |
| 6860 |
"notification of new data availability is sent unconditionally. If B<0> is " |
| 6861 |
"specified in I<flags>, an adaptive notification of new data availability is " |
| 6862 |
"sent." |
| 6863 |
msgstr "" |
| 6864 |
|
| 6865 |
#. type: Plain text |
| 6866 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6867 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6868 |
msgid "" |
| 6869 |
"An adaptive notification is a notification sent whenever the user-space " |
| 6870 |
"process has caught up and consumed all available payloads. In case the user-" |
| 6871 |
"space process is still processing a previous payload, then no notification " |
| 6872 |
"is needed as it will process the newly added payload automatically." |
| 6873 |
msgstr "" |
| 6874 |
|
| 6875 |
#. type: TP |
| 6876 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6877 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6878 |
#, fuzzy, no-wrap |
| 6879 |
#| msgid "B<int bpf_get_stack(struct pt_regs *>I<regs>B<, void *>I<buf>B<, u32 >I<size>B<, u64 >I<flags>B<)>" |
| 6880 |
msgid "B<void *bpf_ringbuf_reserve(void *>I<ringbuf>B<, u64 >I<size>B<, u64 >I<flags>B<)>" |
| 6881 |
msgstr "B<int bpf_get_stack(struct pt_regs *>I<regs>B<, void *>I<buf>B<, u32 >I<size>B<, u64 >I<flags>B<)>" |
| 6882 |
|
| 6883 |
#. type: Plain text |
| 6884 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6885 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6886 |
msgid "" |
| 6887 |
"Reserve I<size> bytes of payload in a ring buffer I<ringbuf>\\&. I<flags> " |
| 6888 |
"must be 0." |
| 6889 |
msgstr "" |
| 6890 |
|
| 6891 |
#. type: Plain text |
| 6892 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6893 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6894 |
msgid "Valid pointer with I<size> bytes of memory available; NULL, otherwise." |
| 6895 |
msgstr "" |
| 6896 |
|
| 6897 |
#. type: TP |
| 6898 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6899 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6900 |
#, fuzzy, no-wrap |
| 6901 |
#| msgid "B<void* get_local_storage(void *>I<map>B<, u64 >I<flags>B<)>" |
| 6902 |
msgid "B<void bpf_ringbuf_submit(void *>I<data>B<, u64 >I<flags>B<)>" |
| 6903 |
msgstr "B<void* get_local_storage(void *>I<map>B<, u64 >I<flags>B<)>" |
| 6904 |
|
| 6905 |
#. type: Plain text |
| 6906 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6907 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6908 |
msgid "" |
| 6909 |
"Submit reserved ring buffer sample, pointed to by I<data>\\&. If " |
| 6910 |
"B<BPF_RB_NO_WAKEUP> is specified in I<flags>, no notification of new data " |
| 6911 |
"availability is sent. If B<BPF_RB_FORCE_WAKEUP> is specified in I<flags>, " |
| 6912 |
"notification of new data availability is sent unconditionally. If B<0> is " |
| 6913 |
"specified in I<flags>, an adaptive notification of new data availability is " |
| 6914 |
"sent." |
| 6915 |
msgstr "" |
| 6916 |
|
| 6917 |
#. type: Plain text |
| 6918 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6919 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6920 |
msgid "" |
| 6921 |
"See \\(aqbpf_ringbuf_output()\\(aq for the definition of adaptive " |
| 6922 |
"notification." |
| 6923 |
msgstr "" |
| 6924 |
|
| 6925 |
#. type: Plain text |
| 6926 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6927 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6928 |
#, fuzzy |
| 6929 |
#| msgid "This function always succeeds." |
| 6930 |
msgid "Nothing. Always succeeds." |
| 6931 |
msgstr "Данная функция всегда завершается успешно." |
| 6932 |
|
| 6933 |
#. type: TP |
| 6934 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6935 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6936 |
#, fuzzy, no-wrap |
| 6937 |
#| msgid "B<void* get_local_storage(void *>I<map>B<, u64 >I<flags>B<)>" |
| 6938 |
msgid "B<void bpf_ringbuf_discard(void *>I<data>B<, u64 >I<flags>B<)>" |
| 6939 |
msgstr "B<void* get_local_storage(void *>I<map>B<, u64 >I<flags>B<)>" |
| 6940 |
|
| 6941 |
#. type: Plain text |
| 6942 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6943 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6944 |
msgid "" |
| 6945 |
"Discard reserved ring buffer sample, pointed to by I<data>\\&. If " |
| 6946 |
"B<BPF_RB_NO_WAKEUP> is specified in I<flags>, no notification of new data " |
| 6947 |
"availability is sent. If B<BPF_RB_FORCE_WAKEUP> is specified in I<flags>, " |
| 6948 |
"notification of new data availability is sent unconditionally. If B<0> is " |
| 6949 |
"specified in I<flags>, an adaptive notification of new data availability is " |
| 6950 |
"sent." |
| 6951 |
msgstr "" |
| 6952 |
|
| 6953 |
#. type: TP |
| 6954 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6955 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6956 |
#, fuzzy, no-wrap |
| 6957 |
#| msgid "B<int bpf_redirect(u32 >I<ifindex>B<, u64 >I<flags>B<)>" |
| 6958 |
msgid "B<u64 bpf_ringbuf_query(void *>I<ringbuf>B<, u64 >I<flags>B<)>" |
| 6959 |
msgstr "B<int bpf_redirect(u32 >I<ifindex>B<, u64 >I<flags>B<)>" |
| 6960 |
|
| 6961 |
#. type: Plain text |
| 6962 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6963 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6964 |
msgid "" |
| 6965 |
"Query various characteristics of provided ring buffer. What exactly is " |
| 6966 |
"queries is determined by I<flags>:" |
| 6967 |
msgstr "" |
| 6968 |
|
| 6969 |
#. type: Plain text |
| 6970 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6971 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6972 |
msgid "B<BPF_RB_AVAIL_DATA>: Amount of data not yet consumed." |
| 6973 |
msgstr "" |
| 6974 |
|
| 6975 |
#. type: Plain text |
| 6976 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6977 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6978 |
msgid "B<BPF_RB_RING_SIZE>: The size of ring buffer." |
| 6979 |
msgstr "" |
| 6980 |
|
| 6981 |
#. type: Plain text |
| 6982 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6983 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6984 |
msgid "B<BPF_RB_CONS_POS>: Consumer position (can wrap around)." |
| 6985 |
msgstr "" |
| 6986 |
|
| 6987 |
#. type: Plain text |
| 6988 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6989 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6990 |
msgid "B<BPF_RB_PROD_POS>: Producer(s) position (can wrap around)." |
| 6991 |
msgstr "" |
| 6992 |
|
| 6993 |
#. type: Plain text |
| 6994 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6995 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6996 |
msgid "" |
| 6997 |
"Data returned is just a momentary snapshot of actual values and could be " |
| 6998 |
"inaccurate, so this facility should be used to power heuristics and for " |
| 6999 |
"reporting, not to make 100% correct calculation." |
| 7000 |
msgstr "" |
| 7001 |
|
| 7002 |
#. type: Plain text |
| 7003 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7004 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7005 |
msgid "Requested value, or 0, if I<flags> are not recognized." |
| 7006 |
msgstr "" |
| 7007 |
|
| 7008 |
#. type: TP |
| 7009 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7010 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7011 |
#, fuzzy, no-wrap |
| 7012 |
#| msgid "B<int bpf_skb_pull_data(struct sk_buff *>I<skb>B<, u32 >I<len>B<)>" |
| 7013 |
msgid "B<long bpf_csum_level(struct sk_buff *>I<skb>B<, u64 >I<level>B<)>" |
| 7014 |
msgstr "B<int bpf_skb_pull_data(struct sk_buff *>I<skb>B<, u32 >I<len>B<)>" |
| 7015 |
|
| 7016 |
#. type: Plain text |
| 7017 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7018 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7019 |
msgid "" |
| 7020 |
"Change the skbs checksum level by one layer up or down, or reset it entirely " |
| 7021 |
"to none in order to have the stack perform checksum validation. The level is " |
| 7022 |
"applicable to the following protocols: TCP, UDP, GRE, SCTP, FCOE. For " |
| 7023 |
"example, a decap of | ETH | IP | UDP | GUE | IP | TCP | into | ETH | IP | " |
| 7024 |
"TCP | through B<bpf_skb_adjust_room>() helper with passing in " |
| 7025 |
"B<BPF_F_ADJ_ROOM_NO_CSUM_RESET> flag would require one call to " |
| 7026 |
"B<bpf_csum_level>() with B<BPF_CSUM_LEVEL_DEC> since the UDP header is " |
| 7027 |
"removed. Similarly, an encap of the latter into the former could be " |
| 7028 |
"accompanied by a helper call to B<bpf_csum_level>() with " |
| 7029 |
"B<BPF_CSUM_LEVEL_INC> if the skb is still intended to be processed in higher " |
| 7030 |
"layers of the stack instead of just egressing at tc." |
| 7031 |
msgstr "" |
| 7032 |
|
| 7033 |
#. type: Plain text |
| 7034 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7035 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7036 |
#, fuzzy |
| 7037 |
#| msgid "There is a single supported mode at this time:" |
| 7038 |
msgid "There are three supported level settings at this time:" |
| 7039 |
msgstr "На данный момент поддерживается только один режим:" |
| 7040 |
|
| 7041 |
#. type: Plain text |
| 7042 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7043 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7044 |
msgid "" |
| 7045 |
"B<BPF_CSUM_LEVEL_INC>: Increases skb-E<gt>csum_level for skbs with " |
| 7046 |
"CHECKSUM_UNNECESSARY." |
| 7047 |
msgstr "" |
| 7048 |
|
| 7049 |
#. type: Plain text |
| 7050 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7051 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7052 |
msgid "" |
| 7053 |
"B<BPF_CSUM_LEVEL_DEC>: Decreases skb-E<gt>csum_level for skbs with " |
| 7054 |
"CHECKSUM_UNNECESSARY." |
| 7055 |
msgstr "" |
| 7056 |
|
| 7057 |
#. type: Plain text |
| 7058 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7059 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7060 |
msgid "" |
| 7061 |
"B<BPF_CSUM_LEVEL_RESET>: Resets skb-E<gt>csum_level to 0 and sets " |
| 7062 |
"CHECKSUM_NONE to force checksum validation by the stack." |
| 7063 |
msgstr "" |
| 7064 |
|
| 7065 |
#. type: Plain text |
| 7066 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7067 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7068 |
msgid "" |
| 7069 |
"B<BPF_CSUM_LEVEL_QUERY>: No-op, returns the current skb-E<gt>csum_level." |
| 7070 |
msgstr "" |
| 7071 |
|
| 7072 |
#. type: Plain text |
| 7073 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7074 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7075 |
msgid "" |
| 7076 |
"0 on success, or a negative error in case of failure. In the case of " |
| 7077 |
"B<BPF_CSUM_LEVEL_QUERY>, the current skb-E<gt>csum_level is returned or the " |
| 7078 |
"error code -EACCES in case the skb is not subject to CHECKSUM_UNNECESSARY." |
| 7079 |
msgstr "" |
| 7080 |
|
| 7081 |
#. type: TP |
| 7082 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7083 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7084 |
#, no-wrap |
| 7085 |
msgid "B<struct tcp6_sock *bpf_skc_to_tcp6_sock(void *>I<sk>B<)>" |
| 7086 |
msgstr "" |
| 7087 |
|
| 7088 |
#. type: Plain text |
| 7089 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7090 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7091 |
msgid "Dynamically cast a I<sk> pointer to a I<tcp6_sock> pointer." |
| 7092 |
msgstr "" |
| 7093 |
|
| 7094 |
#. type: Plain text |
| 7095 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7096 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7097 |
msgid "I<sk> if casting is valid, or B<NULL> otherwise." |
| 7098 |
msgstr "" |
| 7099 |
|
| 7100 |
#. type: TP |
| 7101 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7102 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7103 |
#, no-wrap |
| 7104 |
msgid "B<struct tcp_sock *bpf_skc_to_tcp_sock(void *>I<sk>B<)>" |
| 7105 |
msgstr "" |
| 7106 |
|
| 7107 |
#. type: Plain text |
| 7108 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7109 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7110 |
msgid "Dynamically cast a I<sk> pointer to a I<tcp_sock> pointer." |
| 7111 |
msgstr "" |
| 7112 |
|
| 7113 |
#. type: TP |
| 7114 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7115 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7116 |
#, no-wrap |
| 7117 |
msgid "B<struct tcp_timewait_sock *bpf_skc_to_tcp_timewait_sock(void *>I<sk>B<)>" |
| 7118 |
msgstr "" |
| 7119 |
|
| 7120 |
#. type: Plain text |
| 7121 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7122 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7123 |
msgid "Dynamically cast a I<sk> pointer to a I<tcp_timewait_sock> pointer." |
| 7124 |
msgstr "" |
| 7125 |
|
| 7126 |
#. type: TP |
| 7127 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7128 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7129 |
#, no-wrap |
| 7130 |
msgid "B<struct tcp_request_sock *bpf_skc_to_tcp_request_sock(void *>I<sk>B<)>" |
| 7131 |
msgstr "" |
| 7132 |
|
| 7133 |
#. type: Plain text |
| 7134 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7135 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7136 |
msgid "Dynamically cast a I<sk> pointer to a I<tcp_request_sock> pointer." |
| 7137 |
msgstr "" |
| 7138 |
|
| 7139 |
#. type: TP |
| 7140 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7141 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7142 |
#, no-wrap |
| 7143 |
msgid "B<struct udp6_sock *bpf_skc_to_udp6_sock(void *>I<sk>B<)>" |
| 7144 |
msgstr "" |
| 7145 |
|
| 7146 |
#. type: Plain text |
| 7147 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7148 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7149 |
msgid "Dynamically cast a I<sk> pointer to a I<udp6_sock> pointer." |
| 7150 |
msgstr "" |
| 7151 |
|
| 7152 |
#. type: TP |
| 7153 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7154 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7155 |
#, fuzzy, no-wrap |
| 7156 |
#| msgid "B<int bpf_get_stack(struct pt_regs *>I<regs>B<, void *>I<buf>B<, u32 >I<size>B<, u64 >I<flags>B<)>" |
| 7157 |
msgid "B<long bpf_get_task_stack(struct task_struct *>I<task>B<, void *>I<buf>B<, u32 >I<size>B<, u64 >I<flags>B<)>" |
| 7158 |
msgstr "B<int bpf_get_stack(struct pt_regs *>I<regs>B<, void *>I<buf>B<, u32 >I<size>B<, u64 >I<flags>B<)>" |
| 7159 |
|
| 7160 |
#. type: Plain text |
| 7161 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7162 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7163 |
#, fuzzy |
| 7164 |
#| msgid "" |
| 7165 |
#| "Return a user or a kernel stack in bpf program provided buffer. To " |
| 7166 |
#| "achieve this, the helper needs I<ctx>, which is a pointer to the context " |
| 7167 |
#| "on which the tracing program is executed. To store the stacktrace, the " |
| 7168 |
#| "bpf program provides I<buf> with a nonnegative I<size>\\&." |
| 7169 |
msgid "" |
| 7170 |
"Return a user or a kernel stack in bpf program provided buffer. Note: the " |
| 7171 |
"user stack will only be populated if the I<task> is the current task; all " |
| 7172 |
"other tasks will return -EOPNOTSUPP. To achieve this, the helper needs " |
| 7173 |
"I<task>, which is a valid pointer to B<struct task_struct>\\&. To store the " |
| 7174 |
"stacktrace, the bpf program provides I<buf> with a nonnegative I<size>\\&." |
| 7175 |
msgstr "" |
| 7176 |
"Возвращает пользовательский и ядерный стек в буфер, предоставляемый " |
| 7177 |
"программой bpf. Для этого помощнику требуется I<ctx> — указатель на контекст " |
| 7178 |
"выполнения трассирующей программы. Для сохранения stacktrace программа bpf " |
| 7179 |
"предоставляет I<buf> с неотрицательным I<size>\\&." |
| 7180 |
|
| 7181 |
#. type: Plain text |
| 7182 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7183 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7184 |
#, fuzzy |
| 7185 |
#| msgid "Collect a user space stack instead of a kernel stack." |
| 7186 |
msgid "" |
| 7187 |
"Collect a user space stack instead of a kernel stack. The I<task> must be " |
| 7188 |
"the current task." |
| 7189 |
msgstr "Проходить по стеку пользовательского пространства, а не по стеку ядра." |
| 7190 |
|
| 7191 |
#. type: Plain text |
| 7192 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7193 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7194 |
msgid "" |
| 7195 |
"Collect buildid+offset instead of ips for user stack, only valid if " |
| 7196 |
"B<BPF_F_USER_STACK> is also specified." |
| 7197 |
msgstr "" |
| 7198 |
"Собирать buildid+смещение вместо ips пользовательского стека, доступен " |
| 7199 |
"только, если также указан B<BPF_F_USER_STACK>." |
| 7200 |
|
| 7201 |
#. type: Plain text |
| 7202 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7203 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7204 |
#, fuzzy |
| 7205 |
#| msgid "" |
| 7206 |
#| "B<bpf_get_stack>() can collect up to B<PERF_MAX_STACK_DEPTH> both kernel " |
| 7207 |
#| "and user frames, subject to sufficient large buffer size. Note that this " |
| 7208 |
#| "limit can be controlled with the B<sysctl> program, and that it should be " |
| 7209 |
#| "manually increased in order to profile long user stacks (such as stacks " |
| 7210 |
#| "for Java programs). To do so, use:" |
| 7211 |
msgid "" |
| 7212 |
"B<bpf_get_task_stack>() can collect up to B<PERF_MAX_STACK_DEPTH> both " |
| 7213 |
"kernel and user frames, subject to sufficient large buffer size. Note that " |
| 7214 |
"this limit can be controlled with the B<sysctl> program, and that it should " |
| 7215 |
"be manually increased in order to profile long user stacks (such as stacks " |
| 7216 |
"for Java programs). To do so, use:" |
| 7217 |
msgstr "" |
| 7218 |
"Помощник B<bpf_get_stack>() может собирать до B<PERF_MAX_STACK_DEPTH> " |
| 7219 |
"ядерных и пользовательских кадров, что требует значительно большего размера " |
| 7220 |
"буфера. Заметим, что это ограничение можно изменять программой B<sysctl>, и " |
| 7221 |
"что его нужно вручную увеличивать, если нужно отсматривать длинные " |
| 7222 |
"пользовательские стеки (например, стеки программ Java). Для этого выполните:" |
| 7223 |
|
| 7224 |
#. type: TP |
| 7225 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7226 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7227 |
#, fuzzy, no-wrap |
| 7228 |
#| msgid "B<int bpf_msg_push_data(struct sk_buff *>I<skb>B<, u32 >I<start>B<, u32 >I<len>B<, u64 >I<flags>B<)>" |
| 7229 |
msgid "B<long bpf_load_hdr_opt(struct bpf_sock_ops *>I<skops>B<, void *>I<searchby_res>B<, u32 >I<len>B<, u64 >I<flags>B<)>" |
| 7230 |
msgstr "B<int bpf_msg_push_data(struct sk_buff *>I<skb>B<, u32 >I<start>B<, u32 >I<len>B<, u64 >I<flags>B<)>" |
| 7231 |
|
| 7232 |
#. type: Plain text |
| 7233 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7234 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7235 |
msgid "" |
| 7236 |
"Load header option. Support reading a particular TCP header option for bpf " |
| 7237 |
"program (B<BPF_PROG_TYPE_SOCK_OPS>)." |
| 7238 |
msgstr "" |
| 7239 |
|
| 7240 |
#. type: Plain text |
| 7241 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7242 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7243 |
msgid "" |
| 7244 |
"If I<flags> is 0, it will search the option from the I<skops>B<-" |
| 7245 |
"E<gt>skb_data>\\&. The comment in B<struct bpf_sock_ops> has details on " |
| 7246 |
"what skb_data contains under different I<skops>B<-E<gt>op>\\&." |
| 7247 |
msgstr "" |
| 7248 |
|
| 7249 |
#. type: Plain text |
| 7250 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7251 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7252 |
msgid "" |
| 7253 |
"The first byte of the I<searchby_res> specifies the kind that it wants to " |
| 7254 |
"search." |
| 7255 |
msgstr "" |
| 7256 |
|
| 7257 |
#. type: Plain text |
| 7258 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7259 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7260 |
msgid "" |
| 7261 |
"If the searching kind is an experimental kind (i.e. 253 or 254 according to " |
| 7262 |
"RFC6994). It also needs to specify the \"magic\" which is either 2 bytes or " |
| 7263 |
"4 bytes. It then also needs to specify the size of the magic by using the " |
| 7264 |
"2nd byte which is \"kind-length\" of a TCP header option and the \"kind-" |
| 7265 |
"length\" also includes the first 2 bytes \"kind\" and \"kind-length\" itself " |
| 7266 |
"as a normal TCP header option also does." |
| 7267 |
msgstr "" |
| 7268 |
|
| 7269 |
#. type: Plain text |
| 7270 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7271 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7272 |
msgid "" |
| 7273 |
"For example, to search experimental kind 254 with 2 byte magic 0xeB9F, the " |
| 7274 |
"searchby_res should be [ 254, 4, 0xeB, 0x9F, 0, 0, .... 0 ]." |
| 7275 |
msgstr "" |
| 7276 |
|
| 7277 |
#. type: Plain text |
| 7278 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7279 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7280 |
msgid "" |
| 7281 |
"To search for the standard window scale option (3), the I<searchby_res> " |
| 7282 |
"should be [ 3, 0, 0, .... 0 ]. Note, kind-length must be 0 for regular " |
| 7283 |
"option." |
| 7284 |
msgstr "" |
| 7285 |
|
| 7286 |
#. type: Plain text |
| 7287 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7288 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7289 |
msgid "Searching for No-Op (0) and End-of-Option-List (1) are not supported." |
| 7290 |
msgstr "" |
| 7291 |
|
| 7292 |
#. type: Plain text |
| 7293 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7294 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7295 |
msgid "" |
| 7296 |
"I<len> must be at least 2 bytes which is the minimal size of a header option." |
| 7297 |
msgstr "" |
| 7298 |
|
| 7299 |
#. type: Plain text |
| 7300 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7301 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7302 |
#, fuzzy |
| 7303 |
#| msgid "Supported hardware" |
| 7304 |
msgid "Supported flags:" |
| 7305 |
msgstr "Поддерживаемое оборудование" |
| 7306 |
|
| 7307 |
#. type: Plain text |
| 7308 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7309 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7310 |
msgid "" |
| 7311 |
"B<BPF_LOAD_HDR_OPT_TCP_SYN> to search from the saved_syn packet or the just-" |
| 7312 |
"received syn packet." |
| 7313 |
msgstr "" |
| 7314 |
|
| 7315 |
#. type: Plain text |
| 7316 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7317 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7318 |
msgid "" |
| 7319 |
"E<gt> 0 when found, the header option is copied to I<searchby_res>\\&. The " |
| 7320 |
"return value is the total length copied. On failure, a negative error code " |
| 7321 |
"is returned:" |
| 7322 |
msgstr "" |
| 7323 |
|
| 7324 |
#. type: Plain text |
| 7325 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7326 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7327 |
#, fuzzy |
| 7328 |
#| msgid "E<lt> 0 if any input argument is invalid" |
| 7329 |
msgid "B<-EINVAL> if a parameter is invalid." |
| 7330 |
msgstr "E<lt> 0, если какой-то из входных параметров некорректен" |
| 7331 |
|
| 7332 |
#. type: Plain text |
| 7333 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7334 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7335 |
msgid "B<-ENOMSG> if the option is not found." |
| 7336 |
msgstr "" |
| 7337 |
|
| 7338 |
#. type: Plain text |
| 7339 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7340 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7341 |
msgid "" |
| 7342 |
"B<-ENOENT> if no syn packet is available when B<BPF_LOAD_HDR_OPT_TCP_SYN> is " |
| 7343 |
"used." |
| 7344 |
msgstr "" |
| 7345 |
|
| 7346 |
#. type: Plain text |
| 7347 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7348 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7349 |
msgid "" |
| 7350 |
"B<-ENOSPC> if there is not enough space. Only I<len> number of bytes are " |
| 7351 |
"copied." |
| 7352 |
msgstr "" |
| 7353 |
|
| 7354 |
#. type: Plain text |
| 7355 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7356 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7357 |
msgid "B<-EFAULT> on failure to parse the header options in the packet." |
| 7358 |
msgstr "" |
| 7359 |
|
| 7360 |
#. type: Plain text |
| 7361 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7362 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7363 |
msgid "" |
| 7364 |
"B<-EPERM> if the helper cannot be used under the current I<skops>B<-" |
| 7365 |
"E<gt>op>\\&." |
| 7366 |
msgstr "" |
| 7367 |
|
| 7368 |
#. type: TP |
| 7369 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7370 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7371 |
#, fuzzy, no-wrap |
| 7372 |
#| msgid "B<int bpf_skb_store_bytes(struct sk_buff *>I<skb>B<, u32 >I<offset>B<, const void *>I<from>B<, u32 >I<len>B<, u64 >I<flags>B<)>" |
| 7373 |
msgid "B<long bpf_store_hdr_opt(struct bpf_sock_ops *>I<skops>B<, const void *>I<from>B<, u32 >I<len>B<, u64 >I<flags>B<)>" |
| 7374 |
msgstr "B<int bpf_skb_store_bytes(struct sk_buff *>I<skb>B<, u32 >I<offset>B<, const void *>I<from>B<, u32 >I<len>B<, u64 >I<flags>B<)>" |
| 7375 |
|
| 7376 |
#. type: Plain text |
| 7377 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7378 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7379 |
msgid "" |
| 7380 |
"Store header option. The data will be copied from buffer I<from> with " |
| 7381 |
"length I<len> to the TCP header." |
| 7382 |
msgstr "" |
| 7383 |
|
| 7384 |
#. type: Plain text |
| 7385 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7386 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7387 |
msgid "" |
| 7388 |
"The buffer I<from> should have the whole option that includes the kind, kind-" |
| 7389 |
"length, and the actual option data. The I<len> must be at least kind-length " |
| 7390 |
"long. The kind-length does not have to be 4 byte aligned. The kernel will " |
| 7391 |
"take care of the padding and setting the 4 bytes aligned value to th-" |
| 7392 |
"E<gt>doff." |
| 7393 |
msgstr "" |
| 7394 |
|
| 7395 |
#. type: Plain text |
| 7396 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7397 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7398 |
msgid "" |
| 7399 |
"This helper will check for duplicated option by searching the same option in " |
| 7400 |
"the outgoing skb." |
| 7401 |
msgstr "" |
| 7402 |
|
| 7403 |
#. type: Plain text |
| 7404 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7405 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7406 |
msgid "" |
| 7407 |
"This helper can only be called during B<BPF_SOCK_OPS_WRITE_HDR_OPT_CB>\\&." |
| 7408 |
msgstr "" |
| 7409 |
|
| 7410 |
#. type: Plain text |
| 7411 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7412 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7413 |
#, fuzzy |
| 7414 |
#| msgid "0 on success, or a negative error in case of failure." |
| 7415 |
msgid "0 on success, or negative error in case of failure:" |
| 7416 |
msgstr "При успешном выполнении 0 и отрицательное значение при ошибке." |
| 7417 |
|
| 7418 |
#. type: Plain text |
| 7419 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7420 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7421 |
#, fuzzy |
| 7422 |
#| msgid "I<name> is invalid." |
| 7423 |
msgid "B<-EINVAL> If param is invalid." |
| 7424 |
msgstr "Неверное значение I<name>." |
| 7425 |
|
| 7426 |
#. type: Plain text |
| 7427 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7428 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7429 |
msgid "" |
| 7430 |
"B<-ENOSPC> if there is not enough space in the header. Nothing has been " |
| 7431 |
"written" |
| 7432 |
msgstr "" |
| 7433 |
|
| 7434 |
#. type: Plain text |
| 7435 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7436 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7437 |
msgid "B<-EEXIST> if the option already exists." |
| 7438 |
msgstr "" |
| 7439 |
|
| 7440 |
#. type: Plain text |
| 7441 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7442 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7443 |
msgid "B<-EFAULT> on failure to parse the existing header options." |
| 7444 |
msgstr "" |
| 7445 |
|
| 7446 |
#. type: TP |
| 7447 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7448 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7449 |
#, fuzzy, no-wrap |
| 7450 |
#| msgid "B<int bpf_redirect_map(struct bpf_map *>I<map>B<, u32 >I<key>B<, u64 >I<flags>B<)>" |
| 7451 |
msgid "B<long bpf_reserve_hdr_opt(struct bpf_sock_ops *>I<skops>B<, u32 >I<len>B<, u64 >I<flags>B<)>" |
| 7452 |
msgstr "B<int bpf_redirect_map(struct bpf_map *>I<map>B<, u32 >I<key>B<, u64 >I<flags>B<)>" |
| 7453 |
|
| 7454 |
#. type: Plain text |
| 7455 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7456 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7457 |
msgid "" |
| 7458 |
"Reserve I<len> bytes for the bpf header option. The space will be used by " |
| 7459 |
"B<bpf_store_hdr_opt>() later in B<BPF_SOCK_OPS_WRITE_HDR_OPT_CB>\\&." |
| 7460 |
msgstr "" |
| 7461 |
|
| 7462 |
#. type: Plain text |
| 7463 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7464 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7465 |
msgid "" |
| 7466 |
"If B<bpf_reserve_hdr_opt>() is called multiple times, the total number of " |
| 7467 |
"bytes will be reserved." |
| 7468 |
msgstr "" |
| 7469 |
|
| 7470 |
#. type: Plain text |
| 7471 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7472 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7473 |
msgid "" |
| 7474 |
"This helper can only be called during B<BPF_SOCK_OPS_HDR_OPT_LEN_CB>\\&." |
| 7475 |
msgstr "" |
| 7476 |
|
| 7477 |
#. type: Plain text |
| 7478 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7479 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7480 |
msgid "B<-ENOSPC> if there is not enough space in the header." |
| 7481 |
msgstr "" |
| 7482 |
|
| 7483 |
#. type: TP |
| 7484 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7485 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7486 |
#, fuzzy, no-wrap |
| 7487 |
#| msgid "B<int bpf_map_update_elem(struct bpf_map *>I<map>B<, const void *>I<key>B<, const void *>I<value>B<, u64 >I<flags>B<)>" |
| 7488 |
msgid "B<void *bpf_inode_storage_get(struct bpf_map *>I<map>B<, void *>I<inode>B<, void *>I<value>B<, u64 >I<flags>B<)>" |
| 7489 |
msgstr "B<int bpf_map_update_elem(struct bpf_map *>I<map>B<, const void *>I<key>B<, const void *>I<value>B<, u64 >I<flags>B<)>" |
| 7490 |
|
| 7491 |
#. type: Plain text |
| 7492 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7493 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7494 |
msgid "Get a bpf_local_storage from an I<inode>\\&." |
| 7495 |
msgstr "" |
| 7496 |
|
| 7497 |
#. type: Plain text |
| 7498 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7499 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7500 |
msgid "" |
| 7501 |
"Logically, it could be thought of as getting the value from a I<map> with " |
| 7502 |
"I<inode> as the B<key>\\&. From this perspective, the usage is not much " |
| 7503 |
"different from B<bpf_map_lookup_elem>(I<map>, B<&>I<inode>) except this " |
| 7504 |
"helper enforces the key must be an inode and the map must also be a " |
| 7505 |
"B<BPF_MAP_TYPE_INODE_STORAGE>\\&." |
| 7506 |
msgstr "" |
| 7507 |
|
| 7508 |
#. type: Plain text |
| 7509 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7510 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7511 |
msgid "" |
| 7512 |
"Underneath, the value is stored locally at I<inode> instead of the " |
| 7513 |
"I<map>\\&. The I<map> is used as the bpf-local-storage \"type\". The bpf-" |
| 7514 |
"local-storage \"type\" (i.e. the I<map>) is searched against all " |
| 7515 |
"bpf_local_storage residing at I<inode>\\&." |
| 7516 |
msgstr "" |
| 7517 |
|
| 7518 |
#. type: Plain text |
| 7519 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7520 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7521 |
msgid "" |
| 7522 |
"An optional I<flags> (B<BPF_LOCAL_STORAGE_GET_F_CREATE>) can be used such " |
| 7523 |
"that a new bpf_local_storage will be created if one does not exist. " |
| 7524 |
"I<value> can be used together with B<BPF_LOCAL_STORAGE_GET_F_CREATE> to " |
| 7525 |
"specify the initial value of a bpf_local_storage. If I<value> is B<NULL>, " |
| 7526 |
"the new bpf_local_storage will be zero initialized." |
| 7527 |
msgstr "" |
| 7528 |
|
| 7529 |
#. type: Plain text |
| 7530 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7531 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7532 |
msgid "A bpf_local_storage pointer is returned on success." |
| 7533 |
msgstr "" |
| 7534 |
|
| 7535 |
#. type: Plain text |
| 7536 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7537 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7538 |
msgid "" |
| 7539 |
"B<NULL> if not found or there was an error in adding a new bpf_local_storage." |
| 7540 |
msgstr "" |
| 7541 |
|
| 7542 |
#. type: TP |
| 7543 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7544 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7545 |
#, fuzzy, no-wrap |
| 7546 |
#| msgid "B<int bpf_map_pop_elem(struct bpf_map *>I<map>B<, void *>I<value>B<)>" |
| 7547 |
msgid "B<int bpf_inode_storage_delete(struct bpf_map *>I<map>B<, void *>I<inode>B<)>" |
| 7548 |
msgstr "B<int bpf_map_pop_elem(struct bpf_map *>I<map>B<, void *>I<value>B<)>" |
| 7549 |
|
| 7550 |
#. type: Plain text |
| 7551 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7552 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7553 |
msgid "Delete a bpf_local_storage from an I<inode>\\&." |
| 7554 |
msgstr "" |
| 7555 |
|
| 7556 |
#. type: Plain text |
| 7557 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7558 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7559 |
msgid "B<-ENOENT> if the bpf_local_storage cannot be found." |
| 7560 |
msgstr "" |
| 7561 |
|
| 7562 |
#. type: TP |
| 7563 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 7564 |
#, fuzzy, no-wrap |
| 7565 |
#| msgid "B<int bpf_redirect_map(struct bpf_map *>I<map>B<, u32 >I<key>B<, u64 >I<flags>B<)>" |
| 7566 |
msgid "B<long bpf_d_path(const struct path *>I<path>B<, char *>I<buf>B<, u32 >I<sz>B<)>" |
| 7567 |
msgstr "B<int bpf_redirect_map(struct bpf_map *>I<map>B<, u32 >I<key>B<, u64 >I<flags>B<)>" |
| 7568 |
|
| 7569 |
#. type: Plain text |
| 7570 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7571 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7572 |
msgid "" |
| 7573 |
"Return full path for given B<struct path> object, which needs to be the " |
| 7574 |
"kernel BTF I<path> object. The path is returned in the provided buffer " |
| 7575 |
"I<buf> of size I<sz> and is zero terminated." |
| 7576 |
msgstr "" |
| 7577 |
|
| 7578 |
#. type: TP |
| 7579 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7580 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7581 |
#, fuzzy, no-wrap |
| 7582 |
#| msgid "B<int bpf_probe_read(void *>I<dst>B<, u32 >I<size>B<, const void *>I<src>B<)>" |
| 7583 |
msgid "B<long bpf_copy_from_user(void *>I<dst>B<, u32 >I<size>B<, const void *>I<user_ptr>B<)>" |
| 7584 |
msgstr "B<int bpf_probe_read(void *>I<dst>B<, u32 >I<size>B<, const void *>I<src>B<)>" |
| 7585 |
|
| 7586 |
#. type: Plain text |
| 7587 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7588 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7589 |
msgid "" |
| 7590 |
"Read I<size> bytes from user space address I<user_ptr> and store the data in " |
| 7591 |
"I<dst>\\&. This is a wrapper of B<copy_from_user>()." |
| 7592 |
msgstr "" |
| 7593 |
|
| 7594 |
#. type: TP |
| 7595 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7596 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7597 |
#, fuzzy, no-wrap |
| 7598 |
#| msgid "B<int bpf_skb_get_xfrm_state(struct sk_buff *>I<skb>B<, u32 >I<index>B<, struct bpf_xfrm_state *>I<xfrm_state>B<, u32 >I<size>B<, u64 >I<flags>B<)>" |
| 7599 |
msgid "B<long bpf_snprintf_btf(char *>I<str>B<, u32 >I<str_size>B<, struct btf_ptr *>I<ptr>B<, u32 >I<btf_ptr_size>B<, u64 >I<flags>B<)>" |
| 7600 |
msgstr "B<int bpf_skb_get_xfrm_state(struct sk_buff *>I<skb>B<, u32 >I<index>B<, struct bpf_xfrm_state *>I<xfrm_state>B<, u32 >I<size>B<, u64 >I<flags>B<)>" |
| 7601 |
|
| 7602 |
#. type: Plain text |
| 7603 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7604 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7605 |
msgid "" |
| 7606 |
"Use BTF to store a string representation of I<ptr>-E<gt>ptr in I<str>, using " |
| 7607 |
"I<ptr>-E<gt>type_id. This value should specify the type that I<ptr>-" |
| 7608 |
"E<gt>ptr points to. LLVM __builtin_btf_type_id(type, 1) can be used to look " |
| 7609 |
"up vmlinux BTF type ids. Traversing the data structure using BTF, the type " |
| 7610 |
"information and values are stored in the first I<str_size> - 1 bytes of " |
| 7611 |
"I<str>\\&. Safe copy of the pointer data is carried out to avoid kernel " |
| 7612 |
"crashes during operation. Smaller types can use string space on the stack; " |
| 7613 |
"larger programs can use map data to store the string representation." |
| 7614 |
msgstr "" |
| 7615 |
|
| 7616 |
#. type: Plain text |
| 7617 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7618 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7619 |
msgid "" |
| 7620 |
"The string can be subsequently shared with userspace via " |
| 7621 |
"bpf_perf_event_output() or ring buffer interfaces. bpf_trace_printk() is to " |
| 7622 |
"be avoided as it places too small a limit on string size to be useful." |
| 7623 |
msgstr "" |
| 7624 |
|
| 7625 |
#. type: Plain text |
| 7626 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7627 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7628 |
#, fuzzy |
| 7629 |
#| msgid "I<flags> is invalid." |
| 7630 |
msgid "I<flags> is a combination of" |
| 7631 |
msgstr "Значение I<flags> неверно." |
| 7632 |
|
| 7633 |
#. type: TP |
| 7634 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7635 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7636 |
#, no-wrap |
| 7637 |
msgid "B<BTF_F_COMPACT>" |
| 7638 |
msgstr "" |
| 7639 |
|
| 7640 |
#. type: Plain text |
| 7641 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7642 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7643 |
msgid "no formatting around type information" |
| 7644 |
msgstr "" |
| 7645 |
|
| 7646 |
#. type: TP |
| 7647 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7648 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7649 |
#, fuzzy, no-wrap |
| 7650 |
#| msgid "B<EAI_NONAME>" |
| 7651 |
msgid "B<BTF_F_NONAME>" |
| 7652 |
msgstr "B<EAI_NONAME>" |
| 7653 |
|
| 7654 |
#. type: Plain text |
| 7655 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7656 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7657 |
msgid "no struct/union member names/types" |
| 7658 |
msgstr "" |
| 7659 |
|
| 7660 |
#. type: TP |
| 7661 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7662 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7663 |
#, fuzzy, no-wrap |
| 7664 |
#| msgid "B<BPF_F_DONT_FRAGMENT>" |
| 7665 |
msgid "B<BTF_F_PTR_RAW>" |
| 7666 |
msgstr "B<BPF_F_DONT_FRAGMENT>" |
| 7667 |
|
| 7668 |
#. type: Plain text |
| 7669 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7670 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7671 |
msgid "" |
| 7672 |
"show raw (unobfuscated) pointer values; equivalent to printk specifier %px." |
| 7673 |
msgstr "" |
| 7674 |
|
| 7675 |
#. type: TP |
| 7676 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7677 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7678 |
#, fuzzy, no-wrap |
| 7679 |
#| msgid "B<BPF_F_ZERO_CSUM_TX>" |
| 7680 |
msgid "B<BTF_F_ZERO>" |
| 7681 |
msgstr "B<BPF_F_ZERO_CSUM_TX>" |
| 7682 |
|
| 7683 |
#. type: Plain text |
| 7684 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7685 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7686 |
msgid "" |
| 7687 |
"show zero-valued struct/union members; they are not displayed by default" |
| 7688 |
msgstr "" |
| 7689 |
|
| 7690 |
#. type: Plain text |
| 7691 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7692 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7693 |
#, fuzzy |
| 7694 |
#| msgid "" |
| 7695 |
#| "The number of bytes written to the buffer, or a negative error in case of " |
| 7696 |
#| "failure." |
| 7697 |
msgid "" |
| 7698 |
"The number of bytes that were written (or would have been written if output " |
| 7699 |
"had to be truncated due to string size), or a negative error in cases of " |
| 7700 |
"failure." |
| 7701 |
msgstr "Количество байт, записанных в буфер, или отрицательный номер ошибки." |
| 7702 |
|
| 7703 |
#. type: TP |
| 7704 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7705 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7706 |
#, fuzzy, no-wrap |
| 7707 |
#| msgid "B<int bpf_msg_redirect_map(struct sk_msg_buff *>I<msg>B<, struct bpf_map *>I<map>B<, u32 >I<key>B<, u64 >I<flags>B<)>" |
| 7708 |
msgid "B<long bpf_seq_printf_btf(struct seq_file *>I<m>B<, struct btf_ptr *>I<ptr>B<, u32 >I<ptr_size>B<, u64 >I<flags>B<)>" |
| 7709 |
msgstr "B<int bpf_msg_redirect_map(struct sk_msg_buff *>I<msg>B<, struct bpf_map *>I<map>B<, u32 >I<key>B<, u64 >I<flags>B<)>" |
| 7710 |
|
| 7711 |
#. type: Plain text |
| 7712 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7713 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7714 |
msgid "" |
| 7715 |
"Use BTF to write to seq_write a string representation of I<ptr>-E<gt>ptr, " |
| 7716 |
"using I<ptr>-E<gt>type_id as per bpf_snprintf_btf(). I<flags> are identical " |
| 7717 |
"to those used for bpf_snprintf_btf." |
| 7718 |
msgstr "" |
| 7719 |
|
| 7720 |
#. type: Plain text |
| 7721 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7722 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7723 |
#, fuzzy |
| 7724 |
#| msgid "0 on success, or a negative error in case of failure." |
| 7725 |
msgid "0 on success or a negative error in case of failure." |
| 7726 |
msgstr "При успешном выполнении 0 и отрицательное значение при ошибке." |
| 7727 |
|
| 7728 |
#. type: TP |
| 7729 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7730 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7731 |
#, fuzzy, no-wrap |
| 7732 |
#| msgid "B<u32 bpf_get_cgroup_classid(struct sk_buff *>I<skb>B<)>" |
| 7733 |
msgid "B<u64 bpf_skb_cgroup_classid(struct sk_buff *>I<skb>B<)>" |
| 7734 |
msgstr "B<u32 bpf_get_cgroup_classid(struct sk_buff *>I<skb>B<)>" |
| 7735 |
|
| 7736 |
#. type: Plain text |
| 7737 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7738 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7739 |
msgid "" |
| 7740 |
"See B<bpf_get_cgroup_classid>() for the main description. This helper " |
| 7741 |
"differs from B<bpf_get_cgroup_classid>() in that the cgroup v1 net_cls class " |
| 7742 |
"is retrieved only from the I<skb>\\(aqs associated socket instead of the " |
| 7743 |
"current process." |
| 7744 |
msgstr "" |
| 7745 |
|
| 7746 |
#. type: TP |
| 7747 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7748 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7749 |
#, fuzzy, no-wrap |
| 7750 |
#| msgid "B<int bpf_fib_lookup(void *>I<ctx>B<, struct bpf_fib_lookup *>I<params>B<, int >I<plen>B<, u32 >I<flags>B<)>" |
| 7751 |
msgid "B<long bpf_redirect_neigh(u32 >I<ifindex>B<, struct bpf_redir_neigh *>I<params>B<, int >I<plen>B<, u64 >I<flags>B<)>" |
| 7752 |
msgstr "B<int bpf_fib_lookup(void *>I<ctx>B<, struct bpf_fib_lookup *>I<params>B<, int >I<plen>B<, u32 >I<flags>B<)>" |
| 7753 |
|
| 7754 |
#. type: Plain text |
| 7755 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7756 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7757 |
#, fuzzy |
| 7758 |
#| msgid "" |
| 7759 |
#| "Redirect the packet to another net device of index I<ifindex>\\&. This " |
| 7760 |
#| "helper is somewhat similar to B<bpf_clone_redirect>(), except that the " |
| 7761 |
#| "packet is not cloned, which provides increased performance." |
| 7762 |
msgid "" |
| 7763 |
"Redirect the packet to another net device of index I<ifindex> and fill in L2 " |
| 7764 |
"addresses from neighboring subsystem. This helper is somewhat similar to " |
| 7765 |
"B<bpf_redirect>(), except that it populates L2 addresses as well, meaning, " |
| 7766 |
"internally, the helper relies on the neighbor lookup for the L2 address of " |
| 7767 |
"the nexthop." |
| 7768 |
msgstr "" |
| 7769 |
"Перенаправляет пакет в другое сетевое устройство с индексом I<ifindex>\\&. " |
| 7770 |
"Этот помощник похож на B<bpf_clone_redirect>(), но пакет не клонируется, что " |
| 7771 |
"увеличивает производительность." |
| 7772 |
|
| 7773 |
#. type: Plain text |
| 7774 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7775 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7776 |
msgid "" |
| 7777 |
"The helper will perform a FIB lookup based on the skb\\(aqs networking " |
| 7778 |
"header to get the address of the next hop, unless this is supplied by the " |
| 7779 |
"caller in the I<params> argument. The I<plen> argument indicates the len of " |
| 7780 |
"I<params> and should be set to 0 if I<params> is NULL." |
| 7781 |
msgstr "" |
| 7782 |
|
| 7783 |
#. type: Plain text |
| 7784 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7785 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7786 |
msgid "" |
| 7787 |
"The I<flags> argument is reserved and must be 0. The helper is currently " |
| 7788 |
"only supported for tc BPF program types, and enabled for IPv4 and IPv6 " |
| 7789 |
"protocols." |
| 7790 |
msgstr "" |
| 7791 |
|
| 7792 |
#. type: Plain text |
| 7793 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7794 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7795 |
#, fuzzy |
| 7796 |
#| msgid "B<XDP_REDIRECT> on success, or B<XDP_ABORTED> on error." |
| 7797 |
msgid "" |
| 7798 |
"The helper returns B<TC_ACT_REDIRECT> on success or B<TC_ACT_SHOT> on error." |
| 7799 |
msgstr "" |
| 7800 |
"При успешном выполнении — B<XDP_REDIRECT>, B<XDP_ABORTED> — при ошибке." |
| 7801 |
|
| 7802 |
#. type: TP |
| 7803 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7804 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7805 |
#, fuzzy, no-wrap |
| 7806 |
#| msgid "B<int bpf_probe_write_user(void *>I<dst>B<, const void *>I<src>B<, u32 >I<len>B<)>" |
| 7807 |
msgid "B<void *bpf_per_cpu_ptr(const void *>I<percpu_ptr>B<, u32 >I<cpu>B<)>" |
| 7808 |
msgstr "B<int bpf_probe_write_user(void *>I<dst>B<, const void *>I<src>B<, u32 >I<len>B<)>" |
| 7809 |
|
| 7810 |
#. type: Plain text |
| 7811 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7812 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7813 |
msgid "" |
| 7814 |
"Take a pointer to a percpu ksym, I<percpu_ptr>, and return a pointer to the " |
| 7815 |
"percpu kernel variable on I<cpu>\\&. A ksym is an extern variable decorated " |
| 7816 |
"with \\(aq__ksym\\(aq. For ksym, there is a global var (either static or " |
| 7817 |
"global) defined of the same name in the kernel. The ksym is percpu if the " |
| 7818 |
"global var is percpu. The returned pointer points to the global percpu var " |
| 7819 |
"on I<cpu>\\&." |
| 7820 |
msgstr "" |
| 7821 |
|
| 7822 |
#. type: Plain text |
| 7823 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7824 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7825 |
msgid "" |
| 7826 |
"bpf_per_cpu_ptr() has the same semantic as per_cpu_ptr() in the kernel, " |
| 7827 |
"except that bpf_per_cpu_ptr() may return NULL. This happens if I<cpu> is " |
| 7828 |
"larger than nr_cpu_ids. The caller of bpf_per_cpu_ptr() must check the " |
| 7829 |
"returned value." |
| 7830 |
msgstr "" |
| 7831 |
|
| 7832 |
#. type: Plain text |
| 7833 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7834 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7835 |
msgid "" |
| 7836 |
"A pointer pointing to the kernel percpu variable on I<cpu>, or NULL, if " |
| 7837 |
"I<cpu> is invalid." |
| 7838 |
msgstr "" |
| 7839 |
|
| 7840 |
#. type: TP |
| 7841 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7842 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7843 |
#, fuzzy, no-wrap |
| 7844 |
#| msgid "B<int bpf_rc_repeat(void *>I<ctx>B<)>" |
| 7845 |
msgid "B<void *bpf_this_cpu_ptr(const void *>I<percpu_ptr>B<)>" |
| 7846 |
msgstr "B<int bpf_rc_repeat(void *>I<ctx>B<)>" |
| 7847 |
|
| 7848 |
#. type: Plain text |
| 7849 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7850 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7851 |
msgid "" |
| 7852 |
"Take a pointer to a percpu ksym, I<percpu_ptr>, and return a pointer to the " |
| 7853 |
"percpu kernel variable on this cpu. See the description of \\(aqksym\\(aq in " |
| 7854 |
"B<bpf_per_cpu_ptr>()." |
| 7855 |
msgstr "" |
| 7856 |
|
| 7857 |
#. type: Plain text |
| 7858 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7859 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7860 |
msgid "" |
| 7861 |
"bpf_this_cpu_ptr() has the same semantic as this_cpu_ptr() in the kernel. " |
| 7862 |
"Different from B<bpf_per_cpu_ptr>(), it would never return NULL." |
| 7863 |
msgstr "" |
| 7864 |
|
| 7865 |
#. type: Plain text |
| 7866 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7867 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7868 |
msgid "A pointer pointing to the kernel percpu variable on this cpu." |
| 7869 |
msgstr "" |
| 7870 |
|
| 7871 |
#. type: TP |
| 7872 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7873 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7874 |
#, fuzzy, no-wrap |
| 7875 |
#| msgid "B<int bpf_redirect(u32 >I<ifindex>B<, u64 >I<flags>B<)>" |
| 7876 |
msgid "B<long bpf_redirect_peer(u32 >I<ifindex>B<, u64 >I<flags>B<)>" |
| 7877 |
msgstr "B<int bpf_redirect(u32 >I<ifindex>B<, u64 >I<flags>B<)>" |
| 7878 |
|
| 7879 |
#. type: Plain text |
| 7880 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7881 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7882 |
#, fuzzy |
| 7883 |
#| msgid "" |
| 7884 |
#| "Redirect the packet to another net device of index I<ifindex>\\&. This " |
| 7885 |
#| "helper is somewhat similar to B<bpf_clone_redirect>(), except that the " |
| 7886 |
#| "packet is not cloned, which provides increased performance." |
| 7887 |
msgid "" |
| 7888 |
"Redirect the packet to another net device of index I<ifindex>\\&. This " |
| 7889 |
"helper is somewhat similar to B<bpf_redirect>(), except that the redirection " |
| 7890 |
"happens to the I<ifindex>\\(aq peer device and the netns switch takes place " |
| 7891 |
"from ingress to ingress without going through the CPU\\(aqs backlog queue." |
| 7892 |
msgstr "" |
| 7893 |
"Перенаправляет пакет в другое сетевое устройство с индексом I<ifindex>\\&. " |
| 7894 |
"Этот помощник похож на B<bpf_clone_redirect>(), но пакет не клонируется, что " |
| 7895 |
"увеличивает производительность." |
| 7896 |
|
| 7897 |
#. type: Plain text |
| 7898 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 7899 |
msgid "" |
| 7900 |
"I<skb>B<-E<gt>mark> and I<skb>B<-E<gt>tstamp> are not cleared during the " |
| 7901 |
"netns switch." |
| 7902 |
msgstr "" |
| 7903 |
|
| 7904 |
#. type: Plain text |
| 7905 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7906 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7907 |
msgid "" |
| 7908 |
"The I<flags> argument is reserved and must be 0. The helper is currently " |
| 7909 |
"only supported for tc BPF program types at the ingress hook and for veth and " |
| 7910 |
"netkit target device types. The peer device must reside in a different " |
| 7911 |
"network namespace." |
| 7912 |
msgstr "" |
| 7913 |
|
| 7914 |
#. type: TP |
| 7915 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7916 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7917 |
#, fuzzy, no-wrap |
| 7918 |
#| msgid "B<int bpf_map_update_elem(struct bpf_map *>I<map>B<, const void *>I<key>B<, const void *>I<value>B<, u64 >I<flags>B<)>" |
| 7919 |
msgid "B<void *bpf_task_storage_get(struct bpf_map *>I<map>B<, struct task_struct *>I<task>B<, void *>I<value>B<, u64 >I<flags>B<)>" |
| 7920 |
msgstr "B<int bpf_map_update_elem(struct bpf_map *>I<map>B<, const void *>I<key>B<, const void *>I<value>B<, u64 >I<flags>B<)>" |
| 7921 |
|
| 7922 |
#. type: Plain text |
| 7923 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7924 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7925 |
msgid "Get a bpf_local_storage from the I<task>\\&." |
| 7926 |
msgstr "" |
| 7927 |
|
| 7928 |
#. type: Plain text |
| 7929 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7930 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7931 |
msgid "" |
| 7932 |
"Logically, it could be thought of as getting the value from a I<map> with " |
| 7933 |
"I<task> as the B<key>\\&. From this perspective, the usage is not much " |
| 7934 |
"different from B<bpf_map_lookup_elem>(I<map>, B<&>I<task>) except this " |
| 7935 |
"helper enforces the key must be a task_struct and the map must also be a " |
| 7936 |
"B<BPF_MAP_TYPE_TASK_STORAGE>\\&." |
| 7937 |
msgstr "" |
| 7938 |
|
| 7939 |
#. type: Plain text |
| 7940 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7941 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7942 |
msgid "" |
| 7943 |
"Underneath, the value is stored locally at I<task> instead of the " |
| 7944 |
"I<map>\\&. The I<map> is used as the bpf-local-storage \"type\". The bpf-" |
| 7945 |
"local-storage \"type\" (i.e. the I<map>) is searched against all " |
| 7946 |
"bpf_local_storage residing at I<task>\\&." |
| 7947 |
msgstr "" |
| 7948 |
|
| 7949 |
#. type: TP |
| 7950 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7951 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7952 |
#, fuzzy, no-wrap |
| 7953 |
#| msgid "B<int bpf_map_delete_elem(struct bpf_map *>I<map>B<, const void *>I<key>B<)>" |
| 7954 |
msgid "B<long bpf_task_storage_delete(struct bpf_map *>I<map>B<, struct task_struct *>I<task>B<)>" |
| 7955 |
msgstr "B<int bpf_map_delete_elem(struct bpf_map *>I<map>B<, const void *>I<key>B<)>" |
| 7956 |
|
| 7957 |
#. type: Plain text |
| 7958 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7959 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7960 |
msgid "Delete a bpf_local_storage from a I<task>\\&." |
| 7961 |
msgstr "" |
| 7962 |
|
| 7963 |
#. type: TP |
| 7964 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7965 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7966 |
#, fuzzy, no-wrap |
| 7967 |
#| msgid "B<u64 bpf_get_current_task(void)>" |
| 7968 |
msgid "B<struct task_struct *bpf_get_current_task_btf(void)>" |
| 7969 |
msgstr "B<u64 bpf_get_current_task(void)>" |
| 7970 |
|
| 7971 |
#. type: Plain text |
| 7972 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7973 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7974 |
msgid "" |
| 7975 |
"Return a BTF pointer to the \"current\" task. This pointer can also be used " |
| 7976 |
"in helpers that accept an I<ARG_PTR_TO_BTF_ID> of type I<task_struct>\\&." |
| 7977 |
msgstr "" |
| 7978 |
|
| 7979 |
#. type: Plain text |
| 7980 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7981 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7982 |
#, fuzzy |
| 7983 |
#| msgid "A pointer to the current task struct." |
| 7984 |
msgid "Pointer to the current task." |
| 7985 |
msgstr "Указатель на структуру текущей задачи." |
| 7986 |
|
| 7987 |
#. type: TP |
| 7988 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7989 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7990 |
#, fuzzy, no-wrap |
| 7991 |
#| msgid "B<u64 bpf_perf_event_read(struct bpf_map *>I<map>B<, u64 >I<flags>B<)>" |
| 7992 |
msgid "B<long bpf_bprm_opts_set(struct linux_binprm *>I<bprm>B<, u64 >I<flags>B<)>" |
| 7993 |
msgstr "B<u64 bpf_perf_event_read(struct bpf_map *>I<map>B<, u64 >I<flags>B<)>" |
| 7994 |
|
| 7995 |
#. type: Plain text |
| 7996 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7997 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7998 |
msgid "Set or clear certain options on I<bprm>:" |
| 7999 |
msgstr "" |
| 8000 |
|
| 8001 |
#. type: Plain text |
| 8002 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8003 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8004 |
msgid "" |
| 8005 |
"B<BPF_F_BPRM_SECUREEXEC> Set the secureexec bit which sets the B<AT_SECURE> " |
| 8006 |
"auxv for glibc. The bit is cleared if the flag is not specified." |
| 8007 |
msgstr "" |
| 8008 |
|
| 8009 |
#. type: Plain text |
| 8010 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8011 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8012 |
msgid "B<-EINVAL> if invalid I<flags> are passed, zero otherwise." |
| 8013 |
msgstr "" |
| 8014 |
|
| 8015 |
#. type: TP |
| 8016 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8017 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8018 |
#, fuzzy, no-wrap |
| 8019 |
#| msgid "B<u64 bpf_ktime_get_ns(void)>" |
| 8020 |
msgid "B<u64 bpf_ktime_get_coarse_ns(void)>" |
| 8021 |
msgstr "B<u64 bpf_ktime_get_ns(void)>" |
| 8022 |
|
| 8023 |
#. type: Plain text |
| 8024 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8025 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8026 |
#, fuzzy |
| 8027 |
#| msgid "Return the time elapsed since system boot, in nanoseconds." |
| 8028 |
msgid "" |
| 8029 |
"Return a coarse-grained version of the time elapsed since system boot, in " |
| 8030 |
"nanoseconds. Does not include time the system was suspended." |
| 8031 |
msgstr "Возвращает время, прошедшее с момента запуска системы, в наносекундах." |
| 8032 |
|
| 8033 |
#. type: Plain text |
| 8034 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8035 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8036 |
msgid "See: B<clock_gettime>(B<CLOCK_MONOTONIC_COARSE>)" |
| 8037 |
msgstr "" |
| 8038 |
|
| 8039 |
#. type: TP |
| 8040 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8041 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8042 |
#, fuzzy, no-wrap |
| 8043 |
#| msgid "B<int bpf_get_stack(struct pt_regs *>I<regs>B<, void *>I<buf>B<, u32 >I<size>B<, u64 >I<flags>B<)>" |
| 8044 |
msgid "B<long bpf_ima_inode_hash(struct inode *>I<inode>B<, void *>I<dst>B<, u32 >I<size>B<)>" |
| 8045 |
msgstr "B<int bpf_get_stack(struct pt_regs *>I<regs>B<, void *>I<buf>B<, u32 >I<size>B<, u64 >I<flags>B<)>" |
| 8046 |
|
| 8047 |
#. type: Plain text |
| 8048 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8049 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8050 |
msgid "" |
| 8051 |
"Returns the stored IMA hash of the I<inode> (if it\\(aqs available). If the " |
| 8052 |
"hash is larger than I<size>, then only I<size> bytes will be copied to I<dst>" |
| 8053 |
msgstr "" |
| 8054 |
|
| 8055 |
#. type: Plain text |
| 8056 |
#: archlinux debian-unstable fedora-44 fedora-rawhide opensuse-leap-16-1 |
| 8057 |
#: opensuse-tumbleweed |
| 8058 |
msgid "" |
| 8059 |
"The B<hash_algo> is returned on success, B<-EOPNOTSUPP> if IMA is disabled " |
| 8060 |
"or B<-EINVAL> if invalid arguments are passed." |
| 8061 |
msgstr "" |
| 8062 |
|
| 8063 |
#. type: TP |
| 8064 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8065 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8066 |
#, fuzzy, no-wrap |
| 8067 |
#| msgid "B<uint64_t bpf_skb_cgroup_id(struct sk_buff *>I<skb>B<)>" |
| 8068 |
msgid "B<struct socket *bpf_sock_from_file(struct file *>I<file>B<)>" |
| 8069 |
msgstr "B<uint64_t bpf_skb_cgroup_id(struct sk_buff *>I<skb>B<)>" |
| 8070 |
|
| 8071 |
#. type: Plain text |
| 8072 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8073 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8074 |
msgid "If the given file represents a socket, returns the associated socket." |
| 8075 |
msgstr "" |
| 8076 |
|
| 8077 |
#. type: Plain text |
| 8078 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8079 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8080 |
msgid "" |
| 8081 |
"A pointer to a struct socket on success or NULL if the file is not a socket." |
| 8082 |
msgstr "" |
| 8083 |
|
| 8084 |
#. type: TP |
| 8085 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8086 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8087 |
#, fuzzy, no-wrap |
| 8088 |
#| msgid "B<int bpf_skb_store_bytes(struct sk_buff *>I<skb>B<, u32 >I<offset>B<, const void *>I<from>B<, u32 >I<len>B<, u64 >I<flags>B<)>" |
| 8089 |
msgid "B<long bpf_check_mtu(void *>I<ctx>B<, u32 >I<ifindex>B<, u32 *>I<mtu_len>B<, s32 >I<len_diff>B<, u64 >I<flags>B<)>" |
| 8090 |
msgstr "B<int bpf_skb_store_bytes(struct sk_buff *>I<skb>B<, u32 >I<offset>B<, const void *>I<from>B<, u32 >I<len>B<, u64 >I<flags>B<)>" |
| 8091 |
|
| 8092 |
#. type: Plain text |
| 8093 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8094 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8095 |
msgid "" |
| 8096 |
"Check packet size against exceeding MTU of net device (based on " |
| 8097 |
"I<ifindex>). This helper will likely be used in combination with helpers " |
| 8098 |
"that adjust/change the packet size." |
| 8099 |
msgstr "" |
| 8100 |
|
| 8101 |
#. type: Plain text |
| 8102 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8103 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8104 |
msgid "" |
| 8105 |
"The argument I<len_diff> can be used for querying with a planned size " |
| 8106 |
"change. This allows to check MTU prior to changing packet ctx. Providing a " |
| 8107 |
"I<len_diff> adjustment that is larger than the actual packet size (resulting " |
| 8108 |
"in negative packet size) will in principle not exceed the MTU, which is why " |
| 8109 |
"it is not considered a failure. Other BPF helpers are needed for performing " |
| 8110 |
"the planned size change; therefore the responsibility for catching a " |
| 8111 |
"negative packet size belongs in those helpers." |
| 8112 |
msgstr "" |
| 8113 |
|
| 8114 |
#. type: Plain text |
| 8115 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8116 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8117 |
msgid "" |
| 8118 |
"Specifying I<ifindex> zero means the MTU check is performed against the " |
| 8119 |
"current net device. This is practical if this isn\\(aqt used prior to " |
| 8120 |
"redirect." |
| 8121 |
msgstr "" |
| 8122 |
|
| 8123 |
#. type: Plain text |
| 8124 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8125 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8126 |
msgid "" |
| 8127 |
"On input I<mtu_len> must be a valid pointer, else verifier will reject BPF " |
| 8128 |
"program. If the value I<mtu_len> is initialized to zero then the ctx packet " |
| 8129 |
"size is use. When value I<mtu_len> is provided as input this specify the L3 " |
| 8130 |
"length that the MTU check is done against. Remember XDP and TC length " |
| 8131 |
"operate at L2, but this value is L3 as this correlate to MTU and IP-header " |
| 8132 |
"tot_len values which are L3 (similar behavior as bpf_fib_lookup)." |
| 8133 |
msgstr "" |
| 8134 |
|
| 8135 |
#. type: Plain text |
| 8136 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8137 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8138 |
msgid "" |
| 8139 |
"The Linux kernel route table can configure MTUs on a more specific per route " |
| 8140 |
"level, which is not provided by this helper. For route level MTU checks use " |
| 8141 |
"the B<bpf_fib_lookup>() helper." |
| 8142 |
msgstr "" |
| 8143 |
|
| 8144 |
#. type: Plain text |
| 8145 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8146 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8147 |
#, fuzzy |
| 8148 |
#| msgid "" |
| 8149 |
#| "I<ctx> is either B<struct xdp_md> for XDP programs or B<struct sk_buff> " |
| 8150 |
#| "tc cls_act programs." |
| 8151 |
msgid "" |
| 8152 |
"I<ctx> is either B<struct xdp_md> for XDP programs or B<struct sk_buff> for " |
| 8153 |
"tc cls_act programs." |
| 8154 |
msgstr "" |
| 8155 |
"Для программ XDP тип I<ctx> равен B<struct xdp_md>, а для программ tc " |
| 8156 |
"cls_act — B<struct sk_buff>." |
| 8157 |
|
| 8158 |
#. type: Plain text |
| 8159 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8160 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8161 |
#, fuzzy |
| 8162 |
#| msgid "" |
| 8163 |
#| "I<plen> argument is the size of the passed in struct. I<flags> argument " |
| 8164 |
#| "can be a combination of one or more of the following values:" |
| 8165 |
msgid "" |
| 8166 |
"The I<flags> argument can be a combination of one or more of the following " |
| 8167 |
"values:" |
| 8168 |
msgstr "" |
| 8169 |
"В аргументе I<plen> указывается размер передаваемой структуры. В аргументе " |
| 8170 |
"I<flags> может быть комбинация одного и более следующих значений:" |
| 8171 |
|
| 8172 |
#. type: TP |
| 8173 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8174 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8175 |
#, fuzzy, no-wrap |
| 8176 |
#| msgid "B<BPF_LWT_ENCAP_SEG6>" |
| 8177 |
msgid "B<BPF_MTU_CHK_SEGS>" |
| 8178 |
msgstr "B<BPF_LWT_ENCAP_SEG6>" |
| 8179 |
|
| 8180 |
#. type: Plain text |
| 8181 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8182 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8183 |
msgid "" |
| 8184 |
"This flag will only works for I<ctx> B<struct sk_buff>\\&. If packet " |
| 8185 |
"context contains extra packet segment buffers (often knows as GSO skb), then " |
| 8186 |
"MTU check is harder to check at this point, because in transmit path it is " |
| 8187 |
"possible for the skb packet to get re-segmented (depending on net device " |
| 8188 |
"features). This could still be a MTU violation, so this flag enables " |
| 8189 |
"performing MTU check against segments, with a different violation return " |
| 8190 |
"code to tell it apart. Check cannot use len_diff." |
| 8191 |
msgstr "" |
| 8192 |
|
| 8193 |
#. type: Plain text |
| 8194 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8195 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8196 |
msgid "" |
| 8197 |
"On return I<mtu_len> pointer contains the MTU value of the net device. " |
| 8198 |
"Remember the net device configured MTU is the L3 size, which is returned " |
| 8199 |
"here and XDP and TC length operate at L2. Helper take this into account for " |
| 8200 |
"you, but remember when using MTU value in your BPF-code." |
| 8201 |
msgstr "" |
| 8202 |
|
| 8203 |
#. type: Plain text |
| 8204 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8205 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8206 |
msgid "0 on success, and populate MTU value in I<mtu_len> pointer." |
| 8207 |
msgstr "" |
| 8208 |
|
| 8209 |
#. type: Plain text |
| 8210 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8211 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8212 |
#, fuzzy |
| 8213 |
#| msgid "E<lt> 0 if any input argument is invalid" |
| 8214 |
msgid "E<lt> 0 if any input argument is invalid (I<mtu_len> not updated)" |
| 8215 |
msgstr "E<lt> 0, если какой-то из входных параметров некорректен" |
| 8216 |
|
| 8217 |
#. type: Plain text |
| 8218 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8219 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8220 |
msgid "" |
| 8221 |
"MTU violations return positive values, but also populate MTU value in " |
| 8222 |
"I<mtu_len> pointer, as this can be needed for implementing PMTU handing:" |
| 8223 |
msgstr "" |
| 8224 |
|
| 8225 |
#. type: Plain text |
| 8226 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8227 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8228 |
msgid "B<BPF_MTU_CHK_RET_FRAG_NEEDED>" |
| 8229 |
msgstr "" |
| 8230 |
|
| 8231 |
#. type: Plain text |
| 8232 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8233 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8234 |
msgid "B<BPF_MTU_CHK_RET_SEGS_TOOBIG>" |
| 8235 |
msgstr "" |
| 8236 |
|
| 8237 |
#. type: TP |
| 8238 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8239 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8240 |
#, fuzzy, no-wrap |
| 8241 |
#| msgid "B<int bpf_map_update_elem(struct bpf_map *>I<map>B<, const void *>I<key>B<, const void *>I<value>B<, u64 >I<flags>B<)>" |
| 8242 |
msgid "B<long bpf_for_each_map_elem(struct bpf_map *>I<map>B<, void *>I<callback_fn>B<, void *>I<callback_ctx>B<, u64 >I<flags>B<)>" |
| 8243 |
msgstr "B<int bpf_map_update_elem(struct bpf_map *>I<map>B<, const void *>I<key>B<, const void *>I<value>B<, u64 >I<flags>B<)>" |
| 8244 |
|
| 8245 |
#. type: Plain text |
| 8246 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8247 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8248 |
msgid "" |
| 8249 |
"For each element in B<map>, call B<callback_fn> function with B<map>, " |
| 8250 |
"B<callback_ctx> and other map-specific parameters. The B<callback_fn> " |
| 8251 |
"should be a static function and the B<callback_ctx> should be a pointer to " |
| 8252 |
"the stack. The B<flags> is used to control certain aspects of the helper. " |
| 8253 |
"Currently, the B<flags> must be 0." |
| 8254 |
msgstr "" |
| 8255 |
|
| 8256 |
#. type: Plain text |
| 8257 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8258 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8259 |
msgid "" |
| 8260 |
"The following are a list of supported map types and their respective " |
| 8261 |
"expected callback signatures:" |
| 8262 |
msgstr "" |
| 8263 |
|
| 8264 |
#. type: Plain text |
| 8265 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8266 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8267 |
msgid "" |
| 8268 |
"BPF_MAP_TYPE_HASH, BPF_MAP_TYPE_PERCPU_HASH, BPF_MAP_TYPE_LRU_HASH, " |
| 8269 |
"BPF_MAP_TYPE_LRU_PERCPU_HASH, BPF_MAP_TYPE_ARRAY, BPF_MAP_TYPE_PERCPU_ARRAY" |
| 8270 |
msgstr "" |
| 8271 |
|
| 8272 |
#. type: Plain text |
| 8273 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8274 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8275 |
msgid "" |
| 8276 |
"long (*callback_fn)(struct bpf_map *map, const void *key, void *value, void " |
| 8277 |
"*ctx);" |
| 8278 |
msgstr "" |
| 8279 |
|
| 8280 |
#. type: Plain text |
| 8281 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8282 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8283 |
msgid "" |
| 8284 |
"For per_cpu maps, the map_value is the value on the cpu where the bpf_prog " |
| 8285 |
"is running." |
| 8286 |
msgstr "" |
| 8287 |
|
| 8288 |
#. type: Plain text |
| 8289 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8290 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8291 |
msgid "" |
| 8292 |
"If B<callback_fn> return 0, the helper will continue to the next element. If " |
| 8293 |
"return value is 1, the helper will skip the rest of elements and return. " |
| 8294 |
"Other return values are not used now." |
| 8295 |
msgstr "" |
| 8296 |
|
| 8297 |
#. type: Plain text |
| 8298 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8299 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8300 |
msgid "" |
| 8301 |
"The number of traversed map elements for success, B<-EINVAL> for invalid " |
| 8302 |
"B<flags>\\&." |
| 8303 |
msgstr "" |
| 8304 |
|
| 8305 |
#. type: TP |
| 8306 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8307 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8308 |
#, fuzzy, no-wrap |
| 8309 |
#| msgid "B<int bpf_skb_store_bytes(struct sk_buff *>I<skb>B<, u32 >I<offset>B<, const void *>I<from>B<, u32 >I<len>B<, u64 >I<flags>B<)>" |
| 8310 |
msgid "B<long bpf_snprintf(char *>I<str>B<, u32 >I<str_size>B<, const char *>I<fmt>B<, u64 *>I<data>B<, u32 >I<data_len>B<)>" |
| 8311 |
msgstr "B<int bpf_skb_store_bytes(struct sk_buff *>I<skb>B<, u32 >I<offset>B<, const void *>I<from>B<, u32 >I<len>B<, u64 >I<flags>B<)>" |
| 8312 |
|
| 8313 |
#. type: Plain text |
| 8314 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8315 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8316 |
msgid "" |
| 8317 |
"Outputs a string into the B<str> buffer of size B<str_size> based on a " |
| 8318 |
"format string stored in a read-only map pointed by B<fmt>\\&." |
| 8319 |
msgstr "" |
| 8320 |
|
| 8321 |
#. type: Plain text |
| 8322 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8323 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8324 |
msgid "" |
| 8325 |
"Each format specifier in B<fmt> corresponds to one u64 element in the " |
| 8326 |
"B<data> array. For strings and pointers where pointees are accessed, only " |
| 8327 |
"the pointer values are stored in the I<data> array. The I<data_len> is the " |
| 8328 |
"size of I<data> in bytes - must be a multiple of 8." |
| 8329 |
msgstr "" |
| 8330 |
|
| 8331 |
#. type: Plain text |
| 8332 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8333 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8334 |
msgid "" |
| 8335 |
"Formats B<%s> and B<%p{i,I}{4,6}> require to read kernel memory. Reading " |
| 8336 |
"kernel memory may fail due to either invalid address or valid address but " |
| 8337 |
"requiring a major memory fault. If reading kernel memory fails, the string " |
| 8338 |
"for B<%s> will be an empty string, and the ip address for B<%p{i,I}{4,6}> " |
| 8339 |
"will be 0. Not returning error to bpf program is consistent with what " |
| 8340 |
"B<bpf_trace_printk>() does for now." |
| 8341 |
msgstr "" |
| 8342 |
|
| 8343 |
#. type: Plain text |
| 8344 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8345 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8346 |
msgid "" |
| 8347 |
"The strictly positive length of the formatted string, including the trailing " |
| 8348 |
"zero character. If the return value is greater than B<str_size>, B<str> " |
| 8349 |
"contains a truncated string, guaranteed to be zero-terminated except when " |
| 8350 |
"B<str_size> is 0." |
| 8351 |
msgstr "" |
| 8352 |
|
| 8353 |
#. type: Plain text |
| 8354 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8355 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8356 |
msgid "Or B<-EBUSY> if the per-CPU memory copy buffer is busy." |
| 8357 |
msgstr "" |
| 8358 |
|
| 8359 |
#. type: TP |
| 8360 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8361 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8362 |
#, fuzzy, no-wrap |
| 8363 |
#| msgid "B<int bpf(int >I<cmd>B<, union bpf_attr *>I<attr>B<, unsigned int >I<size>B<);>\n" |
| 8364 |
msgid "B<long bpf_sys_bpf(u32 >I<cmd>B<, void *>I<attr>B<, u32 >I<attr_size>B<)>" |
| 8365 |
msgstr "B<int bpf(int >I<cmd>B<, union bpf_attr *>I<attr>B<, unsigned int >I<size>B<);>\n" |
| 8366 |
|
| 8367 |
#. type: Plain text |
| 8368 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8369 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8370 |
msgid "Execute bpf syscall with given arguments." |
| 8371 |
msgstr "" |
| 8372 |
|
| 8373 |
#. type: Plain text |
| 8374 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8375 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8376 |
msgid "A syscall result." |
| 8377 |
msgstr "" |
| 8378 |
|
| 8379 |
#. type: TP |
| 8380 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8381 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8382 |
#, fuzzy, no-wrap |
| 8383 |
#| msgid "B<int bpf_get_stack(struct pt_regs *>I<regs>B<, void *>I<buf>B<, u32 >I<size>B<, u64 >I<flags>B<)>" |
| 8384 |
msgid "B<long bpf_btf_find_by_name_kind(char *>I<name>B<, int >I<name_sz>B<, u32 >I<kind>B<, int >I<flags>B<)>" |
| 8385 |
msgstr "B<int bpf_get_stack(struct pt_regs *>I<regs>B<, void *>I<buf>B<, u32 >I<size>B<, u64 >I<flags>B<)>" |
| 8386 |
|
| 8387 |
#. type: Plain text |
| 8388 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8389 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8390 |
msgid "" |
| 8391 |
"Find BTF type with given name and kind in vmlinux BTF or in module\\(aqs " |
| 8392 |
"BTFs." |
| 8393 |
msgstr "" |
| 8394 |
|
| 8395 |
#. type: Plain text |
| 8396 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8397 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8398 |
msgid "Returns btf_id and btf_obj_fd in lower and upper 32 bits." |
| 8399 |
msgstr "" |
| 8400 |
|
| 8401 |
#. type: TP |
| 8402 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8403 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8404 |
#, no-wrap |
| 8405 |
msgid "B<long bpf_sys_close(u32 >I<fd>B<)>" |
| 8406 |
msgstr "" |
| 8407 |
|
| 8408 |
#. type: Plain text |
| 8409 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8410 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8411 |
msgid "Execute close syscall for given FD." |
| 8412 |
msgstr "" |
| 8413 |
|
| 8414 |
#. type: TP |
| 8415 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8416 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8417 |
#, fuzzy, no-wrap |
| 8418 |
#| msgid "B<int bpf_get_stackid(struct pt_reg *>I<ctx>B<, struct bpf_map *>I<map>B<, u64 >I<flags>B<)>" |
| 8419 |
msgid "B<long bpf_timer_init(struct bpf_timer *>I<timer>B<, struct bpf_map *>I<map>B<, u64 >I<flags>B<)>" |
| 8420 |
msgstr "B<int bpf_get_stackid(struct pt_reg *>I<ctx>B<, struct bpf_map *>I<map>B<, u64 >I<flags>B<)>" |
| 8421 |
|
| 8422 |
#. type: Plain text |
| 8423 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8424 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8425 |
msgid "" |
| 8426 |
"Initialize the timer. First 4 bits of I<flags> specify clockid. Only " |
| 8427 |
"CLOCK_MONOTONIC, CLOCK_REALTIME, CLOCK_BOOTTIME are allowed. All other bits " |
| 8428 |
"of I<flags> are reserved. The verifier will reject the program if I<timer> " |
| 8429 |
"is not from the same I<map>\\&." |
| 8430 |
msgstr "" |
| 8431 |
|
| 8432 |
#. type: Plain text |
| 8433 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8434 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8435 |
msgid "" |
| 8436 |
"0 on success. B<-EBUSY> if I<timer> is already initialized. B<-EINVAL> if " |
| 8437 |
"invalid I<flags> are passed. B<-EPERM> if I<timer> is in a map that doesn\\" |
| 8438 |
"(aqt have any user references. The user space should either hold a file " |
| 8439 |
"descriptor to a map with timers or pin such map in bpffs. When map is " |
| 8440 |
"unpinned or file descriptor is closed all timers in the map will be " |
| 8441 |
"cancelled and freed." |
| 8442 |
msgstr "" |
| 8443 |
|
| 8444 |
#. type: TP |
| 8445 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8446 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8447 |
#, fuzzy, no-wrap |
| 8448 |
#| msgid "B<int bpf_map_peek_elem(struct bpf_map *>I<map>B<, void *>I<value>B<)>" |
| 8449 |
msgid "B<long bpf_timer_set_callback(struct bpf_timer *>I<timer>B<, void *>I<callback_fn>B<)>" |
| 8450 |
msgstr "B<int bpf_map_peek_elem(struct bpf_map *>I<map>B<, void *>I<value>B<)>" |
| 8451 |
|
| 8452 |
#. type: Plain text |
| 8453 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8454 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8455 |
msgid "Configure the timer to call I<callback_fn> static function." |
| 8456 |
msgstr "" |
| 8457 |
|
| 8458 |
#. type: Plain text |
| 8459 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8460 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8461 |
msgid "" |
| 8462 |
"0 on success. B<-EINVAL> if I<timer> was not initialized with " |
| 8463 |
"bpf_timer_init() earlier. B<-EPERM> if I<timer> is in a map that doesn\\" |
| 8464 |
"(aqt have any user references. The user space should either hold a file " |
| 8465 |
"descriptor to a map with timers or pin such map in bpffs. When map is " |
| 8466 |
"unpinned or file descriptor is closed all timers in the map will be " |
| 8467 |
"cancelled and freed." |
| 8468 |
msgstr "" |
| 8469 |
|
| 8470 |
#. type: TP |
| 8471 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8472 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8473 |
#, fuzzy, no-wrap |
| 8474 |
#| msgid "B<int bpf_redirect_map(struct bpf_map *>I<map>B<, u32 >I<key>B<, u64 >I<flags>B<)>" |
| 8475 |
msgid "B<long bpf_timer_start(struct bpf_timer *>I<timer>B<, u64 >I<nsecs>B<, u64 >I<flags>B<)>" |
| 8476 |
msgstr "B<int bpf_redirect_map(struct bpf_map *>I<map>B<, u32 >I<key>B<, u64 >I<flags>B<)>" |
| 8477 |
|
| 8478 |
#. type: Plain text |
| 8479 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8480 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8481 |
msgid "" |
| 8482 |
"Set timer expiration N nanoseconds from the current time. The configured " |
| 8483 |
"callback will be invoked in soft irq context on some cpu and will not repeat " |
| 8484 |
"unless another bpf_timer_start() is made. In such case the next invocation " |
| 8485 |
"can migrate to a different cpu. Since struct bpf_timer is a field inside " |
| 8486 |
"map element the map owns the timer. The bpf_timer_set_callback() will " |
| 8487 |
"increment refcnt of BPF program to make sure that callback_fn code stays " |
| 8488 |
"valid. When user space reference to a map reaches zero all timers in a map " |
| 8489 |
"are cancelled and corresponding program\\(aqs refcnts are decremented. This " |
| 8490 |
"is done to make sure that Ctrl-C of a user process doesn\\(aqt leave any " |
| 8491 |
"timers running. If map is pinned in bpffs the callback_fn can re-arm itself " |
| 8492 |
"indefinitely. bpf_map_update/delete_elem() helpers and user space sys_bpf " |
| 8493 |
"commands cancel and free the timer in the given map element. The map can " |
| 8494 |
"contain timers that invoke callback_fn-s from different programs. The same " |
| 8495 |
"callback_fn can serve different timers from different maps if key/value " |
| 8496 |
"layout matches across maps. Every bpf_timer_set_callback() can have " |
| 8497 |
"different callback_fn." |
| 8498 |
msgstr "" |
| 8499 |
|
| 8500 |
#. type: Plain text |
| 8501 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8502 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8503 |
#, fuzzy |
| 8504 |
#| msgid "I<flags> is invalid." |
| 8505 |
msgid "I<flags> can be one of:" |
| 8506 |
msgstr "Значение I<flags> неверно." |
| 8507 |
|
| 8508 |
#. type: TP |
| 8509 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8510 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8511 |
#, fuzzy, no-wrap |
| 8512 |
#| msgid "B<BPF_F_DONT_FRAGMENT>" |
| 8513 |
msgid "B<BPF_F_TIMER_ABS>" |
| 8514 |
msgstr "B<BPF_F_DONT_FRAGMENT>" |
| 8515 |
|
| 8516 |
#. type: Plain text |
| 8517 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8518 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8519 |
msgid "" |
| 8520 |
"Start the timer in absolute expire value instead of the default relative one." |
| 8521 |
msgstr "" |
| 8522 |
|
| 8523 |
#. type: TP |
| 8524 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8525 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8526 |
#, fuzzy, no-wrap |
| 8527 |
#| msgid "B<BPF_F_ZERO_CSUM_TX>" |
| 8528 |
msgid "B<BPF_F_TIMER_CPU_PIN>" |
| 8529 |
msgstr "B<BPF_F_ZERO_CSUM_TX>" |
| 8530 |
|
| 8531 |
#. type: Plain text |
| 8532 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8533 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8534 |
msgid "Timer will be pinned to the CPU of the caller." |
| 8535 |
msgstr "" |
| 8536 |
|
| 8537 |
#. type: Plain text |
| 8538 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8539 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8540 |
msgid "" |
| 8541 |
"0 on success. B<-EINVAL> if I<timer> was not initialized with " |
| 8542 |
"bpf_timer_init() earlier or invalid I<flags> are passed." |
| 8543 |
msgstr "" |
| 8544 |
|
| 8545 |
#. type: TP |
| 8546 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8547 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8548 |
#, fuzzy, no-wrap |
| 8549 |
#| msgid "B<int bpf_sk_release(struct bpf_sock *>I<sock>B<)>" |
| 8550 |
msgid "B<long bpf_timer_cancel(struct bpf_timer *>I<timer>B<)>" |
| 8551 |
msgstr "B<int bpf_sk_release(struct bpf_sock *>I<sock>B<)>" |
| 8552 |
|
| 8553 |
#. type: Plain text |
| 8554 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8555 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8556 |
msgid "Cancel the timer and wait for callback_fn to finish if it was running." |
| 8557 |
msgstr "" |
| 8558 |
|
| 8559 |
#. type: Plain text |
| 8560 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8561 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8562 |
msgid "" |
| 8563 |
"0 if the timer was not active. 1 if the timer was active. B<-EINVAL> if " |
| 8564 |
"I<timer> was not initialized with bpf_timer_init() earlier. B<-EDEADLK> if " |
| 8565 |
"callback_fn tried to call bpf_timer_cancel() on its own timer which would " |
| 8566 |
"have led to a deadlock otherwise." |
| 8567 |
msgstr "" |
| 8568 |
|
| 8569 |
#. type: TP |
| 8570 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8571 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8572 |
#, fuzzy, no-wrap |
| 8573 |
#| msgid "B<int bpf_rc_repeat(void *>I<ctx>B<)>" |
| 8574 |
msgid "B<u64 bpf_get_func_ip(void *>I<ctx>B<)>" |
| 8575 |
msgstr "B<int bpf_rc_repeat(void *>I<ctx>B<)>" |
| 8576 |
|
| 8577 |
#. type: Plain text |
| 8578 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8579 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8580 |
msgid "Get address of the traced function (for tracing and kprobe programs)." |
| 8581 |
msgstr "" |
| 8582 |
|
| 8583 |
#. type: Plain text |
| 8584 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8585 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8586 |
msgid "" |
| 8587 |
"When called for kprobe program attached as uprobe it returns probe address " |
| 8588 |
"for both entry and return uprobe." |
| 8589 |
msgstr "" |
| 8590 |
|
| 8591 |
#. type: Plain text |
| 8592 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8593 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8594 |
msgid "" |
| 8595 |
"Address of the traced function for kprobe. 0 for kprobes placed within the " |
| 8596 |
"function (not at the entry). Address of the probe for uprobe and return " |
| 8597 |
"uprobe." |
| 8598 |
msgstr "" |
| 8599 |
|
| 8600 |
#. type: TP |
| 8601 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8602 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8603 |
#, fuzzy, no-wrap |
| 8604 |
#| msgid "B<u64 bpf_get_socket_cookie(struct bpf_sock_addr *>I<ctx>B<)>" |
| 8605 |
msgid "B<u64 bpf_get_attach_cookie(void *>I<ctx>B<)>" |
| 8606 |
msgstr "B<u64 bpf_get_socket_cookie(struct bpf_sock_addr *>I<ctx>B<)>" |
| 8607 |
|
| 8608 |
#. type: Plain text |
| 8609 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8610 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8611 |
msgid "" |
| 8612 |
"Get bpf_cookie value provided (optionally) during the program attachment. It " |
| 8613 |
"might be different for each individual attachment, even if BPF program " |
| 8614 |
"itself is the same. Expects BPF program context I<ctx> as a first argument." |
| 8615 |
msgstr "" |
| 8616 |
|
| 8617 |
#. type: TP |
| 8618 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8619 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8620 |
#, fuzzy, no-wrap |
| 8621 |
#| msgid "The following program types are supported:" |
| 8622 |
msgid "B<Supported for the following program types:>" |
| 8623 |
msgstr "Поддерживаются следующие типы программ:" |
| 8624 |
|
| 8625 |
#. type: Plain text |
| 8626 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8627 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8628 |
msgid "kprobe/uprobe;" |
| 8629 |
msgstr "" |
| 8630 |
|
| 8631 |
#. type: Plain text |
| 8632 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8633 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8634 |
msgid "tracepoint;" |
| 8635 |
msgstr "" |
| 8636 |
|
| 8637 |
#. type: Plain text |
| 8638 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8639 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8640 |
msgid "perf_event." |
| 8641 |
msgstr "" |
| 8642 |
|
| 8643 |
#. type: Plain text |
| 8644 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8645 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8646 |
msgid "" |
| 8647 |
"Value specified by user at BPF link creation/attachment time or 0, if it was " |
| 8648 |
"not specified." |
| 8649 |
msgstr "" |
| 8650 |
|
| 8651 |
#. type: TP |
| 8652 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8653 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8654 |
#, fuzzy, no-wrap |
| 8655 |
#| msgid "B<int bpf_sk_release(struct bpf_sock *>I<sock>B<)>" |
| 8656 |
msgid "B<long bpf_task_pt_regs(struct task_struct *>I<task>B<)>" |
| 8657 |
msgstr "B<int bpf_sk_release(struct bpf_sock *>I<sock>B<)>" |
| 8658 |
|
| 8659 |
#. type: Plain text |
| 8660 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8661 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8662 |
msgid "Get the struct pt_regs associated with B<task>\\&." |
| 8663 |
msgstr "" |
| 8664 |
|
| 8665 |
#. type: Plain text |
| 8666 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8667 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8668 |
#, fuzzy |
| 8669 |
#| msgid "A pointer to the local storage area." |
| 8670 |
msgid "A pointer to struct pt_regs." |
| 8671 |
msgstr "Указатель на область локального хранилища." |
| 8672 |
|
| 8673 |
#. type: TP |
| 8674 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8675 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8676 |
#, fuzzy, no-wrap |
| 8677 |
#| msgid "B<int bpf_get_stack(struct pt_regs *>I<regs>B<, void *>I<buf>B<, u32 >I<size>B<, u64 >I<flags>B<)>" |
| 8678 |
msgid "B<long bpf_get_branch_snapshot(void *>I<entries>B<, u32 >I<size>B<, u64 >I<flags>B<)>" |
| 8679 |
msgstr "B<int bpf_get_stack(struct pt_regs *>I<regs>B<, void *>I<buf>B<, u32 >I<size>B<, u64 >I<flags>B<)>" |
| 8680 |
|
| 8681 |
#. type: Plain text |
| 8682 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8683 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8684 |
msgid "" |
| 8685 |
"Get branch trace from hardware engines like Intel LBR. The hardware engine " |
| 8686 |
"is stopped shortly after the helper is called. Therefore, the user need to " |
| 8687 |
"filter branch entries based on the actual use case. To capture branch trace " |
| 8688 |
"before the trigger point of the BPF program, the helper should be called at " |
| 8689 |
"the beginning of the BPF program." |
| 8690 |
msgstr "" |
| 8691 |
|
| 8692 |
#. type: Plain text |
| 8693 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8694 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8695 |
msgid "" |
| 8696 |
"The data is stored as struct perf_branch_entry into output buffer " |
| 8697 |
"I<entries>\\&. I<size> is the size of I<entries> in bytes. I<flags> is " |
| 8698 |
"reserved for now and must be zero." |
| 8699 |
msgstr "" |
| 8700 |
|
| 8701 |
#. type: Plain text |
| 8702 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8703 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8704 |
#, fuzzy |
| 8705 |
#| msgid "I<flags> is not 0." |
| 8706 |
msgid "B<-EINVAL> if I<flags> is not zero." |
| 8707 |
msgstr "Значение I<flags> не равно 0." |
| 8708 |
|
| 8709 |
#. type: TP |
| 8710 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8711 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8712 |
#, fuzzy, no-wrap |
| 8713 |
#| msgid "B<int bpf_trace_printk(const char *>I<fmt>B<, u32 >I<fmt_size>B<, ...)>" |
| 8714 |
msgid "B<long bpf_trace_vprintk(const char *>I<fmt>B<, u32 >I<fmt_size>B<, const void *>I<data>B<, u32 >I<data_len>B<)>" |
| 8715 |
msgstr "B<int bpf_trace_printk(const char *>I<fmt>B<, u32 >I<fmt_size>B<, ...)>" |
| 8716 |
|
| 8717 |
#. type: Plain text |
| 8718 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8719 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8720 |
msgid "" |
| 8721 |
"Behaves like B<bpf_trace_printk>() helper, but takes an array of u64 to " |
| 8722 |
"format and can handle more format args as a result." |
| 8723 |
msgstr "" |
| 8724 |
|
| 8725 |
#. type: Plain text |
| 8726 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8727 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8728 |
msgid "Arguments are to be used as in B<bpf_seq_printf>() helper." |
| 8729 |
msgstr "" |
| 8730 |
|
| 8731 |
#. type: TP |
| 8732 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8733 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8734 |
#, no-wrap |
| 8735 |
msgid "B<struct unix_sock *bpf_skc_to_unix_sock(void *>I<sk>B<)>" |
| 8736 |
msgstr "" |
| 8737 |
|
| 8738 |
#. type: Plain text |
| 8739 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8740 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8741 |
msgid "Dynamically cast a I<sk> pointer to a I<unix_sock> pointer." |
| 8742 |
msgstr "" |
| 8743 |
|
| 8744 |
#. type: TP |
| 8745 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8746 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8747 |
#, no-wrap |
| 8748 |
msgid "B<long bpf_kallsyms_lookup_name(const char *>I<name>B<, int >I<name_sz>B<, int >I<flags>B<, u64 *>I<res>B<)>" |
| 8749 |
msgstr "" |
| 8750 |
|
| 8751 |
#. type: Plain text |
| 8752 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8753 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8754 |
msgid "" |
| 8755 |
"Get the address of a kernel symbol, returned in I<res>\\&. I<res> is set to " |
| 8756 |
"0 if the symbol is not found." |
| 8757 |
msgstr "" |
| 8758 |
|
| 8759 |
#. type: Plain text |
| 8760 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8761 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8762 |
#, fuzzy |
| 8763 |
#| msgid "0 on success, or a negative error in case of failure." |
| 8764 |
msgid "On success, zero. On error, a negative value." |
| 8765 |
msgstr "При успешном выполнении 0 и отрицательное значение при ошибке." |
| 8766 |
|
| 8767 |
#. type: Plain text |
| 8768 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8769 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8770 |
msgid "B<-EINVAL> if string I<name> is not the same size as I<name_sz>\\&." |
| 8771 |
msgstr "" |
| 8772 |
|
| 8773 |
#. type: Plain text |
| 8774 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8775 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8776 |
msgid "B<-ENOENT> if symbol is not found." |
| 8777 |
msgstr "" |
| 8778 |
|
| 8779 |
#. type: Plain text |
| 8780 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8781 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8782 |
msgid "B<-EPERM> if caller does not have permission to obtain kernel address." |
| 8783 |
msgstr "" |
| 8784 |
|
| 8785 |
#. type: TP |
| 8786 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8787 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8788 |
#, fuzzy, no-wrap |
| 8789 |
#| msgid "B<int bpf_skb_store_bytes(struct sk_buff *>I<skb>B<, u32 >I<offset>B<, const void *>I<from>B<, u32 >I<len>B<, u64 >I<flags>B<)>" |
| 8790 |
msgid "B<long bpf_find_vma(struct task_struct *>I<task>B<, u64 >I<addr>B<, void *>I<callback_fn>B<, void *>I<callback_ctx>B<, u64 >I<flags>B<)>" |
| 8791 |
msgstr "B<int bpf_skb_store_bytes(struct sk_buff *>I<skb>B<, u32 >I<offset>B<, const void *>I<from>B<, u32 >I<len>B<, u64 >I<flags>B<)>" |
| 8792 |
|
| 8793 |
#. type: Plain text |
| 8794 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8795 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8796 |
msgid "" |
| 8797 |
"Find vma of I<task> that contains I<addr>, call I<callback_fn> function with " |
| 8798 |
"I<task>, I<vma>, and I<callback_ctx>\\&. The I<callback_fn> should be a " |
| 8799 |
"static function and the I<callback_ctx> should be a pointer to the stack. " |
| 8800 |
"The I<flags> is used to control certain aspects of the helper. Currently, " |
| 8801 |
"the I<flags> must be 0." |
| 8802 |
msgstr "" |
| 8803 |
|
| 8804 |
#. type: Plain text |
| 8805 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8806 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8807 |
msgid "The expected callback signature is" |
| 8808 |
msgstr "" |
| 8809 |
|
| 8810 |
#. type: Plain text |
| 8811 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8812 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8813 |
msgid "" |
| 8814 |
"long (*callback_fn)(struct task_struct *task, struct vm_area_struct *vma, " |
| 8815 |
"void *callback_ctx);" |
| 8816 |
msgstr "" |
| 8817 |
|
| 8818 |
#. type: Plain text |
| 8819 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8820 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8821 |
msgid "" |
| 8822 |
"0 on success. B<-ENOENT> if I<task-E<gt>mm> is NULL, or no vma contains " |
| 8823 |
"I<addr>\\&. B<-EBUSY> if failed to try lock mmap_lock. B<-EINVAL> for " |
| 8824 |
"invalid B<flags>\\&." |
| 8825 |
msgstr "" |
| 8826 |
|
| 8827 |
#. type: TP |
| 8828 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8829 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8830 |
#, fuzzy, no-wrap |
| 8831 |
#| msgid "B<int bpf_get_stack(struct pt_regs *>I<regs>B<, void *>I<buf>B<, u32 >I<size>B<, u64 >I<flags>B<)>" |
| 8832 |
msgid "B<long bpf_loop(u32 >I<nr_loops>B<, void *>I<callback_fn>B<, void *>I<callback_ctx>B<, u64 >I<flags>B<)>" |
| 8833 |
msgstr "B<int bpf_get_stack(struct pt_regs *>I<regs>B<, void *>I<buf>B<, u32 >I<size>B<, u64 >I<flags>B<)>" |
| 8834 |
|
| 8835 |
#. type: Plain text |
| 8836 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8837 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8838 |
msgid "" |
| 8839 |
"For B<nr_loops>, call B<callback_fn> function with B<callback_ctx> as the " |
| 8840 |
"context parameter. The B<callback_fn> should be a static function and the " |
| 8841 |
"B<callback_ctx> should be a pointer to the stack. The B<flags> is used to " |
| 8842 |
"control certain aspects of the helper. Currently, the B<flags> must be 0. " |
| 8843 |
"Currently, nr_loops is limited to 1 E<lt>E<lt> 23 (~8 million) loops." |
| 8844 |
msgstr "" |
| 8845 |
|
| 8846 |
#. type: Plain text |
| 8847 |
#: archlinux debian-unstable fedora-44 fedora-rawhide opensuse-leap-16-1 |
| 8848 |
#: opensuse-tumbleweed |
| 8849 |
msgid "long (*callback_fn)(u64 index, void *ctx);" |
| 8850 |
msgstr "" |
| 8851 |
|
| 8852 |
#. type: Plain text |
| 8853 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8854 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8855 |
msgid "" |
| 8856 |
"where B<index> is the current index in the loop. The index is zero-indexed." |
| 8857 |
msgstr "" |
| 8858 |
|
| 8859 |
#. type: Plain text |
| 8860 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8861 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8862 |
msgid "" |
| 8863 |
"If B<callback_fn> returns 0, the helper will continue to the next loop. If " |
| 8864 |
"return value is 1, the helper will skip the rest of the loops and return. " |
| 8865 |
"Other return values are not used now, and will be rejected by the verifier." |
| 8866 |
msgstr "" |
| 8867 |
|
| 8868 |
#. type: Plain text |
| 8869 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8870 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8871 |
msgid "" |
| 8872 |
"The number of loops performed, B<-EINVAL> for invalid B<flags>, B<-E2BIG> if " |
| 8873 |
"B<nr_loops> exceeds the maximum number of loops." |
| 8874 |
msgstr "" |
| 8875 |
|
| 8876 |
#. type: TP |
| 8877 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8878 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8879 |
#, fuzzy, no-wrap |
| 8880 |
#| msgid "B<int bpf_probe_read(void *>I<dst>B<, u32 >I<size>B<, const void *>I<src>B<)>" |
| 8881 |
msgid "B<long bpf_strncmp(const char *>I<s1>B<, u32 >I<s1_sz>B<, const char *>I<s2>B<)>" |
| 8882 |
msgstr "B<int bpf_probe_read(void *>I<dst>B<, u32 >I<size>B<, const void *>I<src>B<)>" |
| 8883 |
|
| 8884 |
#. type: Plain text |
| 8885 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8886 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8887 |
msgid "" |
| 8888 |
"Do strncmp() between B<s1> and B<s2>\\&. B<s1> doesn\\(aqt need to be null-" |
| 8889 |
"terminated and B<s1_sz> is the maximum storage size of B<s1>\\&. B<s2> must " |
| 8890 |
"be a read-only string." |
| 8891 |
msgstr "" |
| 8892 |
|
| 8893 |
#. type: Plain text |
| 8894 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8895 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8896 |
msgid "" |
| 8897 |
"An integer less than, equal to, or greater than zero if the first B<s1_sz> " |
| 8898 |
"bytes of B<s1> is found to be less than, to match, or be greater than " |
| 8899 |
"B<s2>\\&." |
| 8900 |
msgstr "" |
| 8901 |
|
| 8902 |
#. type: TP |
| 8903 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8904 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8905 |
#, fuzzy, no-wrap |
| 8906 |
#| msgid "B<int bpf_rc_pointer_rel(void *>I<ctx>B<, s32 >I<rel_x>B<, s32 >I<rel_y>B<)>" |
| 8907 |
msgid "B<long bpf_get_func_arg(void *>I<ctx>B<, u32 >I<n>B<, u64 *>I<value>B<)>" |
| 8908 |
msgstr "B<int bpf_rc_pointer_rel(void *>I<ctx>B<, s32 >I<rel_x>B<, s32 >I<rel_y>B<)>" |
| 8909 |
|
| 8910 |
#. type: Plain text |
| 8911 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8912 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8913 |
msgid "" |
| 8914 |
"Get B<n>-th argument register (zero based) of the traced function (for " |
| 8915 |
"tracing programs) returned in B<value>\\&." |
| 8916 |
msgstr "" |
| 8917 |
|
| 8918 |
#. type: Plain text |
| 8919 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8920 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8921 |
msgid "" |
| 8922 |
"0 on success. B<-EINVAL> if n E<gt>= argument register count of traced " |
| 8923 |
"function." |
| 8924 |
msgstr "" |
| 8925 |
|
| 8926 |
#. type: TP |
| 8927 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8928 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8929 |
#, fuzzy, no-wrap |
| 8930 |
#| msgid "B<void* get_local_storage(void *>I<map>B<, u64 >I<flags>B<)>" |
| 8931 |
msgid "B<long bpf_get_func_ret(void *>I<ctx>B<, u64 *>I<value>B<)>" |
| 8932 |
msgstr "B<void* get_local_storage(void *>I<map>B<, u64 >I<flags>B<)>" |
| 8933 |
|
| 8934 |
#. type: Plain text |
| 8935 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8936 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8937 |
msgid "" |
| 8938 |
"Get return value of the traced function (for tracing programs) in " |
| 8939 |
"B<value>\\&." |
| 8940 |
msgstr "" |
| 8941 |
|
| 8942 |
#. type: Plain text |
| 8943 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8944 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8945 |
msgid "" |
| 8946 |
"0 on success. B<-EOPNOTSUPP> for tracing programs other than " |
| 8947 |
"BPF_TRACE_FEXIT or BPF_MODIFY_RETURN." |
| 8948 |
msgstr "" |
| 8949 |
|
| 8950 |
#. type: TP |
| 8951 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8952 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8953 |
#, fuzzy, no-wrap |
| 8954 |
#| msgid "B<int bpf_rc_repeat(void *>I<ctx>B<)>" |
| 8955 |
msgid "B<long bpf_get_func_arg_cnt(void *>I<ctx>B<)>" |
| 8956 |
msgstr "B<int bpf_rc_repeat(void *>I<ctx>B<)>" |
| 8957 |
|
| 8958 |
#. type: Plain text |
| 8959 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8960 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8961 |
msgid "" |
| 8962 |
"Get number of registers of the traced function (for tracing programs) where " |
| 8963 |
"function arguments are stored in these registers." |
| 8964 |
msgstr "" |
| 8965 |
|
| 8966 |
#. type: Plain text |
| 8967 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8968 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8969 |
msgid "The number of argument registers of the traced function." |
| 8970 |
msgstr "" |
| 8971 |
|
| 8972 |
#. type: TP |
| 8973 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8974 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8975 |
#, fuzzy, no-wrap |
| 8976 |
#| msgid "B<int bpf_get_numa_node_id(void)>" |
| 8977 |
msgid "B<int bpf_get_retval(void)>" |
| 8978 |
msgstr "B<int bpf_get_numa_node_id(void)>" |
| 8979 |
|
| 8980 |
#. type: Plain text |
| 8981 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8982 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8983 |
msgid "" |
| 8984 |
"Get the BPF program\\(aqs return value that will be returned to the upper " |
| 8985 |
"layers." |
| 8986 |
msgstr "" |
| 8987 |
|
| 8988 |
#. type: Plain text |
| 8989 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8990 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8991 |
msgid "" |
| 8992 |
"This helper is currently supported by cgroup programs and only by the hooks " |
| 8993 |
"where BPF program\\(aqs return value is returned to the userspace via errno." |
| 8994 |
msgstr "" |
| 8995 |
|
| 8996 |
#. type: Plain text |
| 8997 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8998 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8999 |
msgid "The BPF program\\(aqs return value." |
| 9000 |
msgstr "" |
| 9001 |
|
| 9002 |
#. type: TP |
| 9003 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9004 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9005 |
#, fuzzy, no-wrap |
| 9006 |
#| msgid "B<int bpf_rc_repeat(void *>I<ctx>B<)>" |
| 9007 |
msgid "B<int bpf_set_retval(int >I<retval>B<)>" |
| 9008 |
msgstr "B<int bpf_rc_repeat(void *>I<ctx>B<)>" |
| 9009 |
|
| 9010 |
#. type: Plain text |
| 9011 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9012 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9013 |
msgid "" |
| 9014 |
"Set the BPF program\\(aqs return value that will be returned to the upper " |
| 9015 |
"layers." |
| 9016 |
msgstr "" |
| 9017 |
|
| 9018 |
#. type: Plain text |
| 9019 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9020 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9021 |
msgid "" |
| 9022 |
"Note that there is the following corner case where the program exports an " |
| 9023 |
"error via bpf_set_retval but signals success via \\(aqreturn 1\\(aq:" |
| 9024 |
msgstr "" |
| 9025 |
|
| 9026 |
#. type: Plain text |
| 9027 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9028 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9029 |
msgid "bpf_set_retval(-EPERM); return 1;" |
| 9030 |
msgstr "" |
| 9031 |
|
| 9032 |
#. type: Plain text |
| 9033 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9034 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9035 |
msgid "" |
| 9036 |
"In this case, the BPF program\\(aqs return value will use helper\\(aqs " |
| 9037 |
"-EPERM. This still holds true for cgroup/bind{4,6} which supports extra \\" |
| 9038 |
"(aqreturn 3\\(aq success case." |
| 9039 |
msgstr "" |
| 9040 |
|
| 9041 |
#. type: TP |
| 9042 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9043 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9044 |
#, fuzzy, no-wrap |
| 9045 |
#| msgid "B<int bpf_xdp_adjust_head(struct xdp_buff *>I<xdp_md>B<, int >I<delta>B<)>" |
| 9046 |
msgid "B<u64 bpf_xdp_get_buff_len(struct xdp_buff *>I<xdp_md>B<)>" |
| 9047 |
msgstr "B<int bpf_xdp_adjust_head(struct xdp_buff *>I<xdp_md>B<, int >I<delta>B<)>" |
| 9048 |
|
| 9049 |
#. type: Plain text |
| 9050 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9051 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9052 |
msgid "Get the total size of a given xdp buff (linear and paged area)" |
| 9053 |
msgstr "" |
| 9054 |
|
| 9055 |
#. type: Plain text |
| 9056 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9057 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9058 |
msgid "The total size of a given xdp buffer." |
| 9059 |
msgstr "" |
| 9060 |
|
| 9061 |
#. type: TP |
| 9062 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9063 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9064 |
#, fuzzy, no-wrap |
| 9065 |
#| msgid "B<int bpf_skb_load_bytes(const struct sk_buff *>I<skb>B<, u32 >I<offset>B<, void *>I<to>B<, u32 >I<len>B<)>" |
| 9066 |
msgid "B<long bpf_xdp_load_bytes(struct xdp_buff *>I<xdp_md>B<, u32 >I<offset>B<, void *>I<buf>B<, u32 >I<len>B<)>" |
| 9067 |
msgstr "B<int bpf_skb_load_bytes(const struct sk_buff *>I<skb>B<, u32 >I<offset>B<, void *>I<to>B<, u32 >I<len>B<)>" |
| 9068 |
|
| 9069 |
#. type: Plain text |
| 9070 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9071 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9072 |
#, fuzzy |
| 9073 |
#| msgid "" |
| 9074 |
#| "This helper was provided as an easy way to load data from a packet. It " |
| 9075 |
#| "can be used to load I<len> bytes from I<offset> from the packet " |
| 9076 |
#| "associated to I<skb>, into the buffer pointed by I<to>\\&." |
| 9077 |
msgid "" |
| 9078 |
"This helper is provided as an easy way to load data from a xdp buffer. It " |
| 9079 |
"can be used to load I<len> bytes from I<offset> from the frame associated to " |
| 9080 |
"I<xdp_md>, into the buffer pointed by I<buf>\\&." |
| 9081 |
msgstr "" |
| 9082 |
"Предназначен для облегчения загрузки данных из пакета. Он загружает I<len> " |
| 9083 |
"байт с адреса I<offset> из пакета, связанного с I<skb>, в буфер, на который " |
| 9084 |
"указывает I<to>\\&." |
| 9085 |
|
| 9086 |
#. type: TP |
| 9087 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9088 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9089 |
#, fuzzy, no-wrap |
| 9090 |
#| msgid "B<int bpf_lwt_seg6_store_bytes(struct sk_buff *>I<skb>B<, u32 >I<offset>B<, const void *>I<from>B<, u32 >I<len>B<)>" |
| 9091 |
msgid "B<long bpf_xdp_store_bytes(struct xdp_buff *>I<xdp_md>B<, u32 >I<offset>B<, void *>I<buf>B<, u32 >I<len>B<)>" |
| 9092 |
msgstr "B<int bpf_lwt_seg6_store_bytes(struct sk_buff *>I<skb>B<, u32 >I<offset>B<, const void *>I<from>B<, u32 >I<len>B<)>" |
| 9093 |
|
| 9094 |
#. type: Plain text |
| 9095 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9096 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9097 |
msgid "" |
| 9098 |
"Store I<len> bytes from buffer I<buf> into the frame associated to " |
| 9099 |
"I<xdp_md>, at I<offset>\\&." |
| 9100 |
msgstr "" |
| 9101 |
|
| 9102 |
#. type: TP |
| 9103 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9104 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9105 |
#, fuzzy, no-wrap |
| 9106 |
#| msgid "B<int bpf_skb_store_bytes(struct sk_buff *>I<skb>B<, u32 >I<offset>B<, const void *>I<from>B<, u32 >I<len>B<, u64 >I<flags>B<)>" |
| 9107 |
msgid "B<long bpf_copy_from_user_task(void *>I<dst>B<, u32 >I<size>B<, const void *>I<user_ptr>B<, struct task_struct *>I<tsk>B<, u64 >I<flags>B<)>" |
| 9108 |
msgstr "B<int bpf_skb_store_bytes(struct sk_buff *>I<skb>B<, u32 >I<offset>B<, const void *>I<from>B<, u32 >I<len>B<, u64 >I<flags>B<)>" |
| 9109 |
|
| 9110 |
#. type: Plain text |
| 9111 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9112 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9113 |
msgid "" |
| 9114 |
"Read I<size> bytes from user space address I<user_ptr> in I<tsk>\\(aqs " |
| 9115 |
"address space, and stores the data in I<dst>\\&. I<flags> is not used yet " |
| 9116 |
"and is provided for future extensibility. This helper can only be used by " |
| 9117 |
"sleepable programs." |
| 9118 |
msgstr "" |
| 9119 |
|
| 9120 |
#. type: Plain text |
| 9121 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9122 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9123 |
#, fuzzy |
| 9124 |
#| msgid "0 on success, or a negative error in case of failure." |
| 9125 |
msgid "" |
| 9126 |
"0 on success, or a negative error in case of failure. On error I<dst> buffer " |
| 9127 |
"is zeroed out." |
| 9128 |
msgstr "При успешном выполнении 0 и отрицательное значение при ошибке." |
| 9129 |
|
| 9130 |
#. type: TP |
| 9131 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9132 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9133 |
#, fuzzy, no-wrap |
| 9134 |
#| msgid "B<int bpf_skb_set_tunnel_opt(struct sk_buff *>I<skb>B<, u8 *>I<opt>B<, u32 >I<size>B<)>" |
| 9135 |
msgid "B<long bpf_skb_set_tstamp(struct sk_buff *>I<skb>B<, u64 >I<tstamp>B<, u32 >I<tstamp_type>B<)>" |
| 9136 |
msgstr "B<int bpf_skb_set_tunnel_opt(struct sk_buff *>I<skb>B<, u8 *>I<opt>B<, u32 >I<size>B<)>" |
| 9137 |
|
| 9138 |
#. type: Plain text |
| 9139 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9140 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9141 |
msgid "" |
| 9142 |
"Change the __sk_buff-E<gt>tstamp_type to I<tstamp_type> and set I<tstamp> to " |
| 9143 |
"the __sk_buff-E<gt>tstamp together." |
| 9144 |
msgstr "" |
| 9145 |
|
| 9146 |
#. type: Plain text |
| 9147 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9148 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9149 |
msgid "" |
| 9150 |
"If there is no need to change the __sk_buff-E<gt>tstamp_type, the tstamp " |
| 9151 |
"value can be directly written to __sk_buff-E<gt>tstamp instead." |
| 9152 |
msgstr "" |
| 9153 |
|
| 9154 |
#. type: Plain text |
| 9155 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9156 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9157 |
msgid "" |
| 9158 |
"BPF_SKB_TSTAMP_DELIVERY_MONO is the only tstamp that will be kept during " |
| 9159 |
"bpf_redirect_*(). A non zero I<tstamp> must be used with the " |
| 9160 |
"BPF_SKB_TSTAMP_DELIVERY_MONO I<tstamp_type>\\&." |
| 9161 |
msgstr "" |
| 9162 |
|
| 9163 |
#. type: Plain text |
| 9164 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9165 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9166 |
msgid "" |
| 9167 |
"A BPF_SKB_TSTAMP_UNSPEC I<tstamp_type> can only be used with a zero " |
| 9168 |
"I<tstamp>\\&." |
| 9169 |
msgstr "" |
| 9170 |
|
| 9171 |
#. type: Plain text |
| 9172 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9173 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9174 |
msgid "Only IPv4 and IPv6 skb-E<gt>protocol are supported." |
| 9175 |
msgstr "" |
| 9176 |
|
| 9177 |
#. type: Plain text |
| 9178 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 9179 |
msgid "" |
| 9180 |
"This function is most useful when it needs to set a mono delivery time to " |
| 9181 |
"__sk_buff-E<gt>tstamp and then bpf_redirect_*() to the egress of an iface. " |
| 9182 |
"For example, changing the (rcv) timestamp in __sk_buff-E<gt>tstamp at " |
| 9183 |
"ingress to a mono delivery time and then bpf_redirect_*() to \\" |
| 9184 |
"%E<lt>sch_fq@\\:phy-devE<gt>\\&." |
| 9185 |
msgstr "" |
| 9186 |
|
| 9187 |
#. type: Plain text |
| 9188 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9189 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9190 |
msgid "" |
| 9191 |
"0 on success. B<-EINVAL> for invalid input B<-EOPNOTSUPP> for unsupported " |
| 9192 |
"protocol" |
| 9193 |
msgstr "" |
| 9194 |
|
| 9195 |
#. type: TP |
| 9196 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9197 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9198 |
#, fuzzy, no-wrap |
| 9199 |
#| msgid "B<int bpf_get_stack(struct pt_regs *>I<regs>B<, void *>I<buf>B<, u32 >I<size>B<, u64 >I<flags>B<)>" |
| 9200 |
msgid "B<long bpf_ima_file_hash(struct file *>I<file>B<, void *>I<dst>B<, u32 >I<size>B<)>" |
| 9201 |
msgstr "B<int bpf_get_stack(struct pt_regs *>I<regs>B<, void *>I<buf>B<, u32 >I<size>B<, u64 >I<flags>B<)>" |
| 9202 |
|
| 9203 |
#. type: Plain text |
| 9204 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9205 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9206 |
msgid "" |
| 9207 |
"Returns a calculated IMA hash of the I<file>\\&. If the hash is larger than " |
| 9208 |
"I<size>, then only I<size> bytes will be copied to I<dst>" |
| 9209 |
msgstr "" |
| 9210 |
|
| 9211 |
#. type: Plain text |
| 9212 |
#: archlinux debian-unstable fedora-44 fedora-rawhide opensuse-leap-16-1 |
| 9213 |
#: opensuse-tumbleweed |
| 9214 |
msgid "" |
| 9215 |
"The B<hash_algo> is returned on success, B<-EOPNOTSUPP> if the hash " |
| 9216 |
"calculation failed or B<-EINVAL> if invalid arguments are passed." |
| 9217 |
msgstr "" |
| 9218 |
|
| 9219 |
#. type: TP |
| 9220 |
#: archlinux debian-unstable fedora-44 fedora-rawhide opensuse-leap-16-1 |
| 9221 |
#: opensuse-tumbleweed |
| 9222 |
#, fuzzy, no-wrap |
| 9223 |
#| msgid "B<void *memfrob(void *>I<s>B<, size_t >I<n>B<);>\n" |
| 9224 |
msgid "B<void *bpf_kptr_xchg(void *>I<dst>B<, void *>I<ptr>B<)>" |
| 9225 |
msgstr "B<void *memfrob(void *>I<s>B<, size_t >I<n>B<);>\n" |
| 9226 |
|
| 9227 |
#. type: Plain text |
| 9228 |
#: archlinux debian-unstable fedora-44 fedora-rawhide opensuse-leap-16-1 |
| 9229 |
#: opensuse-tumbleweed |
| 9230 |
msgid "" |
| 9231 |
"Exchange kptr at pointer I<dst> with I<ptr>, and return the old value. " |
| 9232 |
"I<dst> can be map value or local kptr. I<ptr> can be NULL, otherwise it must " |
| 9233 |
"be a referenced pointer which will be released when this helper is called." |
| 9234 |
msgstr "" |
| 9235 |
|
| 9236 |
#. type: Plain text |
| 9237 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9238 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9239 |
msgid "" |
| 9240 |
"The old value of kptr (which can be NULL). The returned pointer if not NULL, " |
| 9241 |
"is a reference which must be released using its corresponding release " |
| 9242 |
"function, or moved into a BPF map before program exit." |
| 9243 |
msgstr "" |
| 9244 |
|
| 9245 |
#. type: TP |
| 9246 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9247 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9248 |
#, fuzzy, no-wrap |
| 9249 |
#| msgid "B<void *bpf_map_lookup_elem(struct bpf_map *>I<map>B<, const void *>I<key>B<)>" |
| 9250 |
msgid "B<void *bpf_map_lookup_percpu_elem(struct bpf_map *>I<map>B<, const void *>I<key>B<, u32 >I<cpu>B<)>" |
| 9251 |
msgstr "B<void *bpf_map_lookup_elem(struct bpf_map *>I<map>B<, const void *>I<key>B<)>" |
| 9252 |
|
| 9253 |
#. type: Plain text |
| 9254 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9255 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9256 |
#, fuzzy |
| 9257 |
#| msgid "Perform a lookup in I<map> for an entry associated to I<key>\\&." |
| 9258 |
msgid "" |
| 9259 |
"Perform a lookup in I<percpu map> for an entry associated to I<key> on " |
| 9260 |
"I<cpu>\\&." |
| 9261 |
msgstr "Выполняет в I<map> поиск записи, связанной с I<key>\\&." |
| 9262 |
|
| 9263 |
#. type: Plain text |
| 9264 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9265 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9266 |
#, fuzzy |
| 9267 |
#| msgid "Map value associated to I<key>, or B<NULL> if no entry was found." |
| 9268 |
msgid "" |
| 9269 |
"Map value associated to I<key> on I<cpu>, or B<NULL> if no entry was found " |
| 9270 |
"or I<cpu> is invalid." |
| 9271 |
msgstr "" |
| 9272 |
"Значение карты, связанное с I<key>, или B<NULL>, если запись не найдена." |
| 9273 |
|
| 9274 |
#. type: TP |
| 9275 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9276 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9277 |
#, no-wrap |
| 9278 |
msgid "B<struct mptcp_sock *bpf_skc_to_mptcp_sock(void *>I<sk>B<)>" |
| 9279 |
msgstr "" |
| 9280 |
|
| 9281 |
#. type: Plain text |
| 9282 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9283 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9284 |
msgid "Dynamically cast a I<sk> pointer to a I<mptcp_sock> pointer." |
| 9285 |
msgstr "" |
| 9286 |
|
| 9287 |
#. type: TP |
| 9288 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 9289 |
#, fuzzy, no-wrap |
| 9290 |
#| msgid "B<int bpf_probe_read(void *>I<dst>B<, u32 >I<size>B<, const void *>I<src>B<)>" |
| 9291 |
msgid "B<long bpf_dynptr_from_mem(void *>I<data>B<, u64 >I<size>B<, u64 >I<flags>B<, struct bpf_dynptr *>I<ptr>B<)>" |
| 9292 |
msgstr "B<int bpf_probe_read(void *>I<dst>B<, u32 >I<size>B<, const void *>I<src>B<)>" |
| 9293 |
|
| 9294 |
#. type: Plain text |
| 9295 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9296 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9297 |
msgid "Get a dynptr to local memory I<data>\\&." |
| 9298 |
msgstr "" |
| 9299 |
|
| 9300 |
#. type: Plain text |
| 9301 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9302 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9303 |
msgid "" |
| 9304 |
"I<data> must be a ptr to a map value. The maximum I<size> supported is " |
| 9305 |
"DYNPTR_MAX_SIZE. I<flags> is currently unused." |
| 9306 |
msgstr "" |
| 9307 |
|
| 9308 |
#. type: Plain text |
| 9309 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9310 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9311 |
msgid "" |
| 9312 |
"0 on success, -E2BIG if the size exceeds DYNPTR_MAX_SIZE, -EINVAL if flags " |
| 9313 |
"is not 0." |
| 9314 |
msgstr "" |
| 9315 |
|
| 9316 |
#. type: TP |
| 9317 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9318 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9319 |
#, fuzzy, no-wrap |
| 9320 |
#| msgid "B<int bpf_probe_read(void *>I<dst>B<, u32 >I<size>B<, const void *>I<src>B<)>" |
| 9321 |
msgid "B<long bpf_ringbuf_reserve_dynptr(void *>I<ringbuf>B<, u32 >I<size>B<, u64 >I<flags>B<, struct bpf_dynptr *>I<ptr>B<)>" |
| 9322 |
msgstr "B<int bpf_probe_read(void *>I<dst>B<, u32 >I<size>B<, const void *>I<src>B<)>" |
| 9323 |
|
| 9324 |
#. type: Plain text |
| 9325 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9326 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9327 |
msgid "" |
| 9328 |
"Reserve I<size> bytes of payload in a ring buffer I<ringbuf> through the " |
| 9329 |
"dynptr interface. I<flags> must be 0." |
| 9330 |
msgstr "" |
| 9331 |
|
| 9332 |
#. type: Plain text |
| 9333 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9334 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9335 |
msgid "" |
| 9336 |
"Please note that a corresponding bpf_ringbuf_submit_dynptr or " |
| 9337 |
"bpf_ringbuf_discard_dynptr must be called on I<ptr>, even if the reservation " |
| 9338 |
"fails. This is enforced by the verifier." |
| 9339 |
msgstr "" |
| 9340 |
|
| 9341 |
#. type: TP |
| 9342 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9343 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9344 |
#, fuzzy, no-wrap |
| 9345 |
#| msgid "B<u64 bpf_perf_event_read(struct bpf_map *>I<map>B<, u64 >I<flags>B<)>" |
| 9346 |
msgid "B<void bpf_ringbuf_submit_dynptr(struct bpf_dynptr *>I<ptr>B<, u64 >I<flags>B<)>" |
| 9347 |
msgstr "B<u64 bpf_perf_event_read(struct bpf_map *>I<map>B<, u64 >I<flags>B<)>" |
| 9348 |
|
| 9349 |
#. type: Plain text |
| 9350 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9351 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9352 |
msgid "" |
| 9353 |
"Submit reserved ring buffer sample, pointed to by I<data>, through the " |
| 9354 |
"dynptr interface. This is a no-op if the dynptr is invalid/null." |
| 9355 |
msgstr "" |
| 9356 |
|
| 9357 |
#. type: Plain text |
| 9358 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9359 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9360 |
msgid "" |
| 9361 |
"For more information on I<flags>, please see \\(aqbpf_ringbuf_submit\\(aq." |
| 9362 |
msgstr "" |
| 9363 |
|
| 9364 |
#. type: TP |
| 9365 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9366 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9367 |
#, fuzzy, no-wrap |
| 9368 |
#| msgid "B<u64 bpf_perf_event_read(struct bpf_map *>I<map>B<, u64 >I<flags>B<)>" |
| 9369 |
msgid "B<void bpf_ringbuf_discard_dynptr(struct bpf_dynptr *>I<ptr>B<, u64 >I<flags>B<)>" |
| 9370 |
msgstr "B<u64 bpf_perf_event_read(struct bpf_map *>I<map>B<, u64 >I<flags>B<)>" |
| 9371 |
|
| 9372 |
#. type: Plain text |
| 9373 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9374 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9375 |
msgid "" |
| 9376 |
"Discard reserved ring buffer sample through the dynptr interface. This is a " |
| 9377 |
"no-op if the dynptr is invalid/null." |
| 9378 |
msgstr "" |
| 9379 |
|
| 9380 |
#. type: Plain text |
| 9381 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9382 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9383 |
msgid "" |
| 9384 |
"For more information on I<flags>, please see \\(aqbpf_ringbuf_discard\\(aq." |
| 9385 |
msgstr "" |
| 9386 |
|
| 9387 |
#. type: TP |
| 9388 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 9389 |
#, fuzzy, no-wrap |
| 9390 |
#| msgid "B<int bpf_skb_get_xfrm_state(struct sk_buff *>I<skb>B<, u32 >I<index>B<, struct bpf_xfrm_state *>I<xfrm_state>B<, u32 >I<size>B<, u64 >I<flags>B<)>" |
| 9391 |
msgid "B<long bpf_dynptr_read(void *>I<dst>B<, u64 >I<len>B<, const struct bpf_dynptr *>I<src>B<, u64 >I<offset>B<, u64 >I<flags>B<)>" |
| 9392 |
msgstr "B<int bpf_skb_get_xfrm_state(struct sk_buff *>I<skb>B<, u32 >I<index>B<, struct bpf_xfrm_state *>I<xfrm_state>B<, u32 >I<size>B<, u64 >I<flags>B<)>" |
| 9393 |
|
| 9394 |
#. type: Plain text |
| 9395 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9396 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9397 |
msgid "" |
| 9398 |
"Read I<len> bytes from I<src> into I<dst>, starting from I<offset> into " |
| 9399 |
"I<src>\\&. I<flags> is currently unused." |
| 9400 |
msgstr "" |
| 9401 |
|
| 9402 |
#. type: Plain text |
| 9403 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9404 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9405 |
msgid "" |
| 9406 |
"0 on success, -E2BIG if I<offset> + I<len> exceeds the length of I<src>\\" |
| 9407 |
"(aqs data, -EINVAL if I<src> is an invalid dynptr or if I<flags> is not 0." |
| 9408 |
msgstr "" |
| 9409 |
|
| 9410 |
#. type: TP |
| 9411 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 9412 |
#, fuzzy, no-wrap |
| 9413 |
#| msgid "B<int bpf_skb_store_bytes(struct sk_buff *>I<skb>B<, u32 >I<offset>B<, const void *>I<from>B<, u32 >I<len>B<, u64 >I<flags>B<)>" |
| 9414 |
msgid "B<long bpf_dynptr_write(const struct bpf_dynptr *>I<dst>B<, u64 >I<offset>B<, void *>I<src>B<, u64 >I<len>B<, u64 >I<flags>B<)>" |
| 9415 |
msgstr "B<int bpf_skb_store_bytes(struct sk_buff *>I<skb>B<, u32 >I<offset>B<, const void *>I<from>B<, u32 >I<len>B<, u64 >I<flags>B<)>" |
| 9416 |
|
| 9417 |
#. type: Plain text |
| 9418 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9419 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9420 |
msgid "" |
| 9421 |
"Write I<len> bytes from I<src> into I<dst>, starting from I<offset> into " |
| 9422 |
"I<dst>\\&." |
| 9423 |
msgstr "" |
| 9424 |
|
| 9425 |
#. type: Plain text |
| 9426 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9427 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9428 |
msgid "I<flags> must be 0 except for skb-type dynptrs." |
| 9429 |
msgstr "" |
| 9430 |
|
| 9431 |
#. type: TP |
| 9432 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9433 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9434 |
#, no-wrap |
| 9435 |
msgid "B<For skb-type dynptrs:>" |
| 9436 |
msgstr "" |
| 9437 |
|
| 9438 |
#. type: Plain text |
| 9439 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9440 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9441 |
msgid "" |
| 9442 |
"All data slices of the dynptr are automatically invalidated after " |
| 9443 |
"B<bpf_dynptr_write>(). This is because writing may pull the skb and change " |
| 9444 |
"the underlying packet buffer." |
| 9445 |
msgstr "" |
| 9446 |
|
| 9447 |
#. type: Plain text |
| 9448 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9449 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9450 |
msgid "" |
| 9451 |
"For I<flags>, please see the flags accepted by B<bpf_skb_store_bytes>()." |
| 9452 |
msgstr "" |
| 9453 |
|
| 9454 |
#. type: Plain text |
| 9455 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9456 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9457 |
msgid "" |
| 9458 |
"0 on success, -E2BIG if I<offset> + I<len> exceeds the length of I<dst>\\" |
| 9459 |
"(aqs data, -EINVAL if I<dst> is an invalid dynptr or if I<dst> is a read-" |
| 9460 |
"only dynptr or if I<flags> is not correct. For skb-type dynptrs, other " |
| 9461 |
"errors correspond to errors returned by B<bpf_skb_store_bytes>()." |
| 9462 |
msgstr "" |
| 9463 |
|
| 9464 |
#. type: TP |
| 9465 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 9466 |
#, fuzzy, no-wrap |
| 9467 |
#| msgid "B<int bpf_redirect_map(struct bpf_map *>I<map>B<, u32 >I<key>B<, u64 >I<flags>B<)>" |
| 9468 |
msgid "B<void *bpf_dynptr_data(const struct bpf_dynptr *>I<ptr>B<, u64 >I<offset>B<, u64 >I<len>B<)>" |
| 9469 |
msgstr "B<int bpf_redirect_map(struct bpf_map *>I<map>B<, u32 >I<key>B<, u64 >I<flags>B<)>" |
| 9470 |
|
| 9471 |
#. type: Plain text |
| 9472 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9473 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9474 |
#, fuzzy |
| 9475 |
#| msgid "A pointer to the local storage area." |
| 9476 |
msgid "Get a pointer to the underlying dynptr data." |
| 9477 |
msgstr "Указатель на область локального хранилища." |
| 9478 |
|
| 9479 |
#. type: Plain text |
| 9480 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9481 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9482 |
msgid "" |
| 9483 |
"I<len> must be a statically known value. The returned data slice is " |
| 9484 |
"invalidated whenever the dynptr is invalidated." |
| 9485 |
msgstr "" |
| 9486 |
|
| 9487 |
#. type: Plain text |
| 9488 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9489 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9490 |
msgid "" |
| 9491 |
"skb and xdp type dynptrs may not use bpf_dynptr_data. They should instead " |
| 9492 |
"use bpf_dynptr_slice and bpf_dynptr_slice_rdwr." |
| 9493 |
msgstr "" |
| 9494 |
|
| 9495 |
#. type: Plain text |
| 9496 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9497 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9498 |
msgid "" |
| 9499 |
"Pointer to the underlying dynptr data, NULL if the dynptr is read-only, if " |
| 9500 |
"the dynptr is invalid, or if the offset and length is out of bounds." |
| 9501 |
msgstr "" |
| 9502 |
|
| 9503 |
#. type: TP |
| 9504 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9505 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9506 |
#, fuzzy, no-wrap |
| 9507 |
#| msgid "B<int bpf_get_stackid(struct pt_reg *>I<ctx>B<, struct bpf_map *>I<map>B<, u64 >I<flags>B<)>" |
| 9508 |
msgid "B<s64 bpf_tcp_raw_gen_syncookie_ipv4(struct iphdr *>I<iph>B<, struct tcphdr *>I<th>B<, u32 >I<th_len>B<)>" |
| 9509 |
msgstr "B<int bpf_get_stackid(struct pt_reg *>I<ctx>B<, struct bpf_map *>I<map>B<, u64 >I<flags>B<)>" |
| 9510 |
|
| 9511 |
#. type: Plain text |
| 9512 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9513 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9514 |
msgid "" |
| 9515 |
"Try to issue a SYN cookie for the packet with corresponding IPv4/TCP " |
| 9516 |
"headers, I<iph> and I<th>, without depending on a listening socket." |
| 9517 |
msgstr "" |
| 9518 |
|
| 9519 |
#. type: Plain text |
| 9520 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9521 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9522 |
#, fuzzy |
| 9523 |
#| msgid "I<shmid> points to a removed identifier." |
| 9524 |
msgid "I<iph> points to the IPv4 header." |
| 9525 |
msgstr "Значение I<shmid> указывает на удалённый идентификатор." |
| 9526 |
|
| 9527 |
#. type: Plain text |
| 9528 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9529 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9530 |
msgid "B<-EINVAL> if I<th_len> is invalid." |
| 9531 |
msgstr "" |
| 9532 |
|
| 9533 |
#. type: TP |
| 9534 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9535 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9536 |
#, fuzzy, no-wrap |
| 9537 |
#| msgid "B<int bpf_get_stackid(struct pt_reg *>I<ctx>B<, struct bpf_map *>I<map>B<, u64 >I<flags>B<)>" |
| 9538 |
msgid "B<s64 bpf_tcp_raw_gen_syncookie_ipv6(struct ipv6hdr *>I<iph>B<, struct tcphdr *>I<th>B<, u32 >I<th_len>B<)>" |
| 9539 |
msgstr "B<int bpf_get_stackid(struct pt_reg *>I<ctx>B<, struct bpf_map *>I<map>B<, u64 >I<flags>B<)>" |
| 9540 |
|
| 9541 |
#. type: Plain text |
| 9542 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9543 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9544 |
msgid "" |
| 9545 |
"Try to issue a SYN cookie for the packet with corresponding IPv6/TCP " |
| 9546 |
"headers, I<iph> and I<th>, without depending on a listening socket." |
| 9547 |
msgstr "" |
| 9548 |
|
| 9549 |
#. type: Plain text |
| 9550 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9551 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9552 |
#, fuzzy |
| 9553 |
#| msgid "I<shmid> points to a removed identifier." |
| 9554 |
msgid "I<iph> points to the IPv6 header." |
| 9555 |
msgstr "Значение I<shmid> указывает на удалённый идентификатор." |
| 9556 |
|
| 9557 |
#. type: Plain text |
| 9558 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9559 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9560 |
msgid "B<-EPROTONOSUPPORT> if CONFIG_IPV6 is not builtin." |
| 9561 |
msgstr "" |
| 9562 |
|
| 9563 |
#. type: TP |
| 9564 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9565 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9566 |
#, no-wrap |
| 9567 |
msgid "B<long bpf_tcp_raw_check_syncookie_ipv4(struct iphdr *>I<iph>B<, struct tcphdr *>I<th>B<)>" |
| 9568 |
msgstr "" |
| 9569 |
|
| 9570 |
#. type: Plain text |
| 9571 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9572 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9573 |
msgid "" |
| 9574 |
"Check whether I<iph> and I<th> contain a valid SYN cookie ACK without " |
| 9575 |
"depending on a listening socket." |
| 9576 |
msgstr "" |
| 9577 |
|
| 9578 |
#. type: Plain text |
| 9579 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9580 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9581 |
msgid "I<th> points to the TCP header." |
| 9582 |
msgstr "" |
| 9583 |
|
| 9584 |
#. type: Plain text |
| 9585 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9586 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9587 |
msgid "0 if I<iph> and I<th> are a valid SYN cookie ACK." |
| 9588 |
msgstr "" |
| 9589 |
|
| 9590 |
#. type: Plain text |
| 9591 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9592 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9593 |
msgid "B<-EACCES> if the SYN cookie is not valid." |
| 9594 |
msgstr "" |
| 9595 |
|
| 9596 |
#. type: TP |
| 9597 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9598 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9599 |
#, no-wrap |
| 9600 |
msgid "B<long bpf_tcp_raw_check_syncookie_ipv6(struct ipv6hdr *>I<iph>B<, struct tcphdr *>I<th>B<)>" |
| 9601 |
msgstr "" |
| 9602 |
|
| 9603 |
#. type: TP |
| 9604 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9605 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9606 |
#, fuzzy, no-wrap |
| 9607 |
#| msgid "B<u64 bpf_ktime_get_ns(void)>" |
| 9608 |
msgid "B<u64 bpf_ktime_get_tai_ns(void)>" |
| 9609 |
msgstr "B<u64 bpf_ktime_get_ns(void)>" |
| 9610 |
|
| 9611 |
#. type: Plain text |
| 9612 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9613 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9614 |
msgid "" |
| 9615 |
"A nonsettable system-wide clock derived from wall-clock time but ignoring " |
| 9616 |
"leap seconds. This clock does not experience discontinuities and backwards " |
| 9617 |
"jumps caused by NTP inserting leap seconds as CLOCK_REALTIME does." |
| 9618 |
msgstr "" |
| 9619 |
|
| 9620 |
#. type: Plain text |
| 9621 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9622 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9623 |
#, fuzzy |
| 9624 |
#| msgid "B<clock_gettime>(2)" |
| 9625 |
msgid "See: B<clock_gettime>(B<CLOCK_TAI>)" |
| 9626 |
msgstr "B<clock_gettime>(2)" |
| 9627 |
|
| 9628 |
#. type: TP |
| 9629 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9630 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9631 |
#, fuzzy, no-wrap |
| 9632 |
#| msgid "B<int bpf_map_update_elem(struct bpf_map *>I<map>B<, const void *>I<key>B<, const void *>I<value>B<, u64 >I<flags>B<)>" |
| 9633 |
msgid "B<long bpf_user_ringbuf_drain(struct bpf_map *>I<map>B<, void *>I<callback_fn>B<, void *>I<ctx>B<, u64 >I<flags>B<)>" |
| 9634 |
msgstr "B<int bpf_map_update_elem(struct bpf_map *>I<map>B<, const void *>I<key>B<, const void *>I<value>B<, u64 >I<flags>B<)>" |
| 9635 |
|
| 9636 |
#. type: Plain text |
| 9637 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9638 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9639 |
msgid "" |
| 9640 |
"Drain samples from the specified user ring buffer, and invoke the provided " |
| 9641 |
"callback for each such sample:" |
| 9642 |
msgstr "" |
| 9643 |
|
| 9644 |
#. type: Plain text |
| 9645 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9646 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9647 |
msgid "long (*callback_fn)(const struct bpf_dynptr *dynptr, void *ctx);" |
| 9648 |
msgstr "" |
| 9649 |
|
| 9650 |
#. type: Plain text |
| 9651 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9652 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9653 |
msgid "" |
| 9654 |
"If B<callback_fn> returns 0, the helper will continue to try and drain the " |
| 9655 |
"next sample, up to a maximum of BPF_MAX_USER_RINGBUF_SAMPLES samples. If the " |
| 9656 |
"return value is 1, the helper will skip the rest of the samples and return. " |
| 9657 |
"Other return values are not used now, and will be rejected by the verifier." |
| 9658 |
msgstr "" |
| 9659 |
|
| 9660 |
#. type: Plain text |
| 9661 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9662 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9663 |
msgid "" |
| 9664 |
"The number of drained samples if no error was encountered while draining " |
| 9665 |
"samples, or 0 if no samples were present in the ring buffer. If a user-space " |
| 9666 |
"producer was epoll-waiting on this map, and at least one sample was drained, " |
| 9667 |
"they will receive an event notification notifying them of available space in " |
| 9668 |
"the ring buffer. If the BPF_RB_NO_WAKEUP flag is passed to this function, no " |
| 9669 |
"wakeup notification will be sent. If the BPF_RB_FORCE_WAKEUP flag is passed, " |
| 9670 |
"a wakeup notification will be sent even if no sample was drained." |
| 9671 |
msgstr "" |
| 9672 |
|
| 9673 |
#. type: Plain text |
| 9674 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9675 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9676 |
msgid "" |
| 9677 |
"B<-EBUSY> if the ring buffer is contended, and another calling context was " |
| 9678 |
"concurrently draining the ring buffer." |
| 9679 |
msgstr "" |
| 9680 |
|
| 9681 |
#. type: Plain text |
| 9682 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9683 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9684 |
msgid "" |
| 9685 |
"B<-EINVAL> if user-space is not properly tracking the ring buffer due to the " |
| 9686 |
"producer position not being aligned to 8 bytes, a sample not being aligned " |
| 9687 |
"to 8 bytes, or the producer position not matching the advertised length of a " |
| 9688 |
"sample." |
| 9689 |
msgstr "" |
| 9690 |
|
| 9691 |
#. type: Plain text |
| 9692 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9693 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9694 |
msgid "" |
| 9695 |
"B<-E2BIG> if user-space has tried to publish a sample which is larger than " |
| 9696 |
"the size of the ring buffer, or which cannot fit within a struct bpf_dynptr." |
| 9697 |
msgstr "" |
| 9698 |
|
| 9699 |
#. type: TP |
| 9700 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9701 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9702 |
#, fuzzy, no-wrap |
| 9703 |
#| msgid "B<int bpf_map_update_elem(struct bpf_map *>I<map>B<, const void *>I<key>B<, const void *>I<value>B<, u64 >I<flags>B<)>" |
| 9704 |
msgid "B<void *bpf_cgrp_storage_get(struct bpf_map *>I<map>B<, struct cgroup *>I<cgroup>B<, void *>I<value>B<, u64 >I<flags>B<)>" |
| 9705 |
msgstr "B<int bpf_map_update_elem(struct bpf_map *>I<map>B<, const void *>I<key>B<, const void *>I<value>B<, u64 >I<flags>B<)>" |
| 9706 |
|
| 9707 |
#. type: Plain text |
| 9708 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9709 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9710 |
msgid "Get a bpf_local_storage from the I<cgroup>\\&." |
| 9711 |
msgstr "" |
| 9712 |
|
| 9713 |
#. type: Plain text |
| 9714 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9715 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9716 |
msgid "" |
| 9717 |
"Logically, it could be thought of as getting the value from a I<map> with " |
| 9718 |
"I<cgroup> as the B<key>\\&. From this perspective, the usage is not much " |
| 9719 |
"different from B<bpf_map_lookup_elem>(I<map>, B<&>I<cgroup>) except this " |
| 9720 |
"helper enforces the key must be a cgroup struct and the map must also be a " |
| 9721 |
"B<BPF_MAP_TYPE_CGRP_STORAGE>\\&." |
| 9722 |
msgstr "" |
| 9723 |
|
| 9724 |
#. type: Plain text |
| 9725 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9726 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9727 |
msgid "" |
| 9728 |
"In reality, the local-storage value is embedded directly inside of the " |
| 9729 |
"I<cgroup> object itself, rather than being located in the " |
| 9730 |
"B<BPF_MAP_TYPE_CGRP_STORAGE> map. When the local-storage value is queried " |
| 9731 |
"for some I<map> on a I<cgroup> object, the kernel will perform an O(n) " |
| 9732 |
"iteration over all of the live local-storage values for that I<cgroup> " |
| 9733 |
"object until the local-storage value for the I<map> is found." |
| 9734 |
msgstr "" |
| 9735 |
|
| 9736 |
#. type: TP |
| 9737 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9738 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9739 |
#, fuzzy, no-wrap |
| 9740 |
#| msgid "B<int bpf_map_delete_elem(struct bpf_map *>I<map>B<, const void *>I<key>B<)>" |
| 9741 |
msgid "B<long bpf_cgrp_storage_delete(struct bpf_map *>I<map>B<, struct cgroup *>I<cgroup>B<)>" |
| 9742 |
msgstr "B<int bpf_map_delete_elem(struct bpf_map *>I<map>B<, const void *>I<key>B<)>" |
| 9743 |
|
| 9744 |
#. type: Plain text |
| 9745 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9746 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9747 |
msgid "Delete a bpf_local_storage from a I<cgroup>\\&." |
| 9748 |
msgstr "" |
| 9749 |
|
| 9750 |
#. type: SH |
| 9751 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9752 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9753 |
#, no-wrap |
| 9754 |
msgid "EXAMPLES" |
| 9755 |
msgstr "ПРИМЕРЫ" |
| 9756 |
|
| 9757 |
#. type: Plain text |
| 9758 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9759 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9760 |
msgid "" |
| 9761 |
"Example usage for most of the eBPF helpers listed in this manual page are " |
| 9762 |
"available within the Linux kernel sources, at the following locations:" |
| 9763 |
msgstr "" |
| 9764 |
"В этой справочной странице перечислены примеры использования большинства " |
| 9765 |
"помощников eBPF, которые доступны в исходном коде ядра Linux:" |
| 9766 |
|
| 9767 |
#. type: Plain text |
| 9768 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9769 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9770 |
msgid "I<samples/bpf/>" |
| 9771 |
msgstr "I<samples/bpf/>" |
| 9772 |
|
| 9773 |
#. type: Plain text |
| 9774 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9775 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9776 |
msgid "I<tools/testing/selftests/bpf/>" |
| 9777 |
msgstr "I<tools/testing/selftests/bpf/>" |
| 9778 |
|
| 9779 |
#. type: SH |
| 9780 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9781 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9782 |
#, no-wrap |
| 9783 |
msgid "LICENSE" |
| 9784 |
msgstr "ЛИЦЕНЗИЯ" |
| 9785 |
|
| 9786 |
#. type: Plain text |
| 9787 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9788 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9789 |
#, fuzzy |
| 9790 |
#| msgid "" |
| 9791 |
#| "eBPF programs can have an associated license, passed along with the " |
| 9792 |
#| "bytecode instructions to the kernel when the programs are loaded. The " |
| 9793 |
#| "format for that string is identical to the one in use for kernel modules " |
| 9794 |
#| "(Dual licenses, such as \"Dual BSD/GPL\", may be used). Some helper " |
| 9795 |
#| "functions are only accessible to programs that are compatible with the " |
| 9796 |
#| "GNU Privacy License (GPL)." |
| 9797 |
msgid "" |
| 9798 |
"eBPF programs can have an associated license, passed along with the bytecode " |
| 9799 |
"instructions to the kernel when the programs are loaded. The format for that " |
| 9800 |
"string is identical to the one in use for kernel modules (Dual licenses, " |
| 9801 |
"such as \"Dual BSD/GPL\", may be used). Some helper functions are only " |
| 9802 |
"accessible to programs that are compatible with the GNU General Public " |
| 9803 |
"License (GNU GPL)." |
| 9804 |
msgstr "" |
| 9805 |
"Программы eBPF могут иметь собственную лицензию, передаваемую вместе с " |
| 9806 |
"инструкциями байткода в ядро при загрузке программы. Формат этой строки " |
| 9807 |
"совпадает с используемым в модулях ядра (могут использоваться двойные " |
| 9808 |
"лицензии, например «Dual BSD/GPL»). Некоторые вспомогательные функции " |
| 9809 |
"доступны только программам, которые совместимы с GNU Privacy License (GPL)." |
| 9810 |
|
| 9811 |
#. type: Plain text |
| 9812 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9813 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9814 |
msgid "" |
| 9815 |
"In order to use such helpers, the eBPF program must be loaded with the " |
| 9816 |
"correct license string passed (via B<attr>) to the B<bpf>() system call, and " |
| 9817 |
"this generally translates into the C source code of the program containing a " |
| 9818 |
"line similar to the following:" |
| 9819 |
msgstr "" |
| 9820 |
"Для использования таких помощников, программа eBPF должна загружаться с " |
| 9821 |
"строкой правильной лицензии, передаваемой (через B<attr>) системный вызов " |
| 9822 |
"B<bpf>(); обычно, она транслируется из кода на C программы, содержащей " |
| 9823 |
"подобную строку:" |
| 9824 |
|
| 9825 |
#. type: Plain text |
| 9826 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9827 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9828 |
#, fuzzy, no-wrap |
| 9829 |
#| msgid "char ____license[] __attribute__((section(\"license\"), used)) = \"GPL\";\n" |
| 9830 |
msgid "char ____license[] __attribute__((section(\"license\"), used)) = \"GPL\";\n" |
| 9831 |
msgstr "char ____license[] __attribute__((section(\"license\"), used)) = \"GPL\";\n" |
| 9832 |
|
| 9833 |
#. type: SH |
| 9834 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9835 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9836 |
#, no-wrap |
| 9837 |
msgid "IMPLEMENTATION" |
| 9838 |
msgstr "РЕАЛИЗАЦИЯ" |
| 9839 |
|
| 9840 |
#. type: Plain text |
| 9841 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9842 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9843 |
msgid "" |
| 9844 |
"This manual page is an effort to document the existing eBPF helper " |
| 9845 |
"functions. But as of this writing, the BPF sub-system is under heavy " |
| 9846 |
"development. New eBPF program or map types are added, along with new helper " |
| 9847 |
"functions. Some helpers are occasionally made available for additional " |
| 9848 |
"program types. So in spite of the efforts of the community, this page might " |
| 9849 |
"not be up-to-date. If you want to check by yourself what helper functions " |
| 9850 |
"exist in your kernel, or what types of programs they can support, here are " |
| 9851 |
"some files among the kernel tree that you may be interested in:" |
| 9852 |
msgstr "" |
| 9853 |
"Эта справочная страница предназначена для описания существующих " |
| 9854 |
"вспомогательных функций eBPF. В данный момент подсистема BPF часто меняется. " |
| 9855 |
"Добавляются новые программы eBPF и типы карт, а также новые вспомогательные " |
| 9856 |
"функции. Некоторые помощники иногда делают доступными дополнительные типы " |
| 9857 |
"программ. Таким образом, несмотря на усилия сообщества, эта страница может " |
| 9858 |
"уже устареть. Если вы хотите самостоятельно проверить, существует ли " |
| 9859 |
"помощник в ядре, или какие типы программ они поддерживают, вот некоторые " |
| 9860 |
"файлы дерева ядра, которые могут быть интересны:" |
| 9861 |
|
| 9862 |
#. type: Plain text |
| 9863 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9864 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9865 |
msgid "" |
| 9866 |
"I<include/uapi/linux/bpf.h> is the main BPF header. It contains the full " |
| 9867 |
"list of all helper functions, as well as many other BPF definitions " |
| 9868 |
"including most of the flags, structs or constants used by the helpers." |
| 9869 |
msgstr "" |
| 9870 |
"I<include/uapi/linux/bpf.h> — основной заголовочный файл BPF. Он содержит " |
| 9871 |
"полный список всех вспомогательных функций, а также много других определений " |
| 9872 |
"BPF, включая большинство флагов, структур или констант, используемых " |
| 9873 |
"помощниками." |
| 9874 |
|
| 9875 |
#. type: Plain text |
| 9876 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9877 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9878 |
msgid "" |
| 9879 |
"I<net/core/filter.c> contains the definition of most network-related helper " |
| 9880 |
"functions, and the list of program types from which they can be used." |
| 9881 |
msgstr "" |
| 9882 |
"В I<net/core/filter.c> содержатся определения большинства вспомогательных " |
| 9883 |
"функций, относящихся к сети, и список типов программ, в которых их можно " |
| 9884 |
"использовать." |
| 9885 |
|
| 9886 |
#. type: Plain text |
| 9887 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9888 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9889 |
msgid "" |
| 9890 |
"I<kernel/trace/bpf_trace.c> is the equivalent for most tracing program-" |
| 9891 |
"related helpers." |
| 9892 |
msgstr "" |
| 9893 |
"В I<kernel/trace/bpf_trace.c> содержится большинство помощников, относящихся " |
| 9894 |
"к трассирующим программам." |
| 9895 |
|
| 9896 |
#. type: Plain text |
| 9897 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9898 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9899 |
msgid "" |
| 9900 |
"I<kernel/bpf/verifier.c> contains the functions used to check that valid " |
| 9901 |
"types of eBPF maps are used with a given helper function." |
| 9902 |
msgstr "" |
| 9903 |
"В I<kernel/bpf/verifier.c> содержатся функции, используемые для проверки " |
| 9904 |
"корректности типов карт eBPF для заданной вспомогательной функции." |
| 9905 |
|
| 9906 |
#. type: Plain text |
| 9907 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9908 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9909 |
msgid "" |
| 9910 |
"I<kernel/bpf/> directory contains other files in which additional helpers " |
| 9911 |
"are defined (for cgroups, sockmaps, etc.)." |
| 9912 |
msgstr "" |
| 9913 |
"В каталоге I<kernel/bpf/> содержатся другие файлы, в которых определены " |
| 9914 |
"дополнительные помощники (для cgroups, sockmaps и т. п.)." |
| 9915 |
|
| 9916 |
#. type: Plain text |
| 9917 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9918 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9919 |
msgid "" |
| 9920 |
"The bpftool utility can be used to probe the availability of helper " |
| 9921 |
"functions on the system (as well as supported program and map types, and a " |
| 9922 |
"number of other parameters). To do so, run B<bpftool feature probe> (see " |
| 9923 |
"B<bpftool-feature>(8) for details). Add the B<unprivileged> keyword to list " |
| 9924 |
"features available to unprivileged users." |
| 9925 |
msgstr "" |
| 9926 |
|
| 9927 |
#. type: Plain text |
| 9928 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9929 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9930 |
msgid "" |
| 9931 |
"Compatibility between helper functions and program types can generally be " |
| 9932 |
"found in the files where helper functions are defined. Look for the B<struct " |
| 9933 |
"bpf_func_proto> objects and for functions returning them: these functions " |
| 9934 |
"contain a list of helpers that a given program type can call. Note that the " |
| 9935 |
"B<default:> label of the B<switch ... case> used to filter helpers can call " |
| 9936 |
"other functions, themselves allowing access to additional helpers. The " |
| 9937 |
"requirement for GPL license is also in those B<struct bpf_func_proto>\\&." |
| 9938 |
msgstr "" |
| 9939 |
"Совместимость помощника и типа программы, обычно, можно определить из файлов " |
| 9940 |
"определения помощников. Ищите объекты B<struct bpf_func_proto> и " |
| 9941 |
"возвращающие их функции: эти функции содержат списки помощников, которые " |
| 9942 |
"может вызывать определённый тип программы. Заметим, что метка B<default:> в " |
| 9943 |
"B<switch ... case> используется для фильтрации помощников, которые могут " |
| 9944 |
"вызывать другие функции, тем самым сами обращающиеся к дополнительным " |
| 9945 |
"помощникам. Требование лицензии GPL также описаны в этих B<struct " |
| 9946 |
"bpf_func_proto>\\&." |
| 9947 |
|
| 9948 |
#. type: Plain text |
| 9949 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9950 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9951 |
msgid "" |
| 9952 |
"Compatibility between helper functions and map types can be found in the " |
| 9953 |
"B<check_map_func_compatibility>() function in file I<kernel/bpf/" |
| 9954 |
"verifier.c>\\&." |
| 9955 |
msgstr "" |
| 9956 |
"Совместимость между вспомогательными функциями и типами карт можно найти в " |
| 9957 |
"функции B<check_map_func_compatibility>() в файле I<kernel/bpf/" |
| 9958 |
"verifier.c>\\&." |
| 9959 |
|
| 9960 |
#. type: Plain text |
| 9961 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9962 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9963 |
msgid "" |
| 9964 |
"Helper functions that invalidate the checks on B<data> and B<data_end> " |
| 9965 |
"pointers for network processing are listed in function " |
| 9966 |
"B<bpf_helper_changes_pkt_data>() in file I<net/core/filter.c>\\&." |
| 9967 |
msgstr "" |
| 9968 |
"Вспомогательные функции, не проверяющие указатели B<data> и B<data_end> при " |
| 9969 |
"сетевой обработке, перечислены в функции B<bpf_helper_changes_pkt_data>() в " |
| 9970 |
"файле I<net/core/filter.c>\\&." |
| 9971 |
|
| 9972 |
#. type: SH |
| 9973 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9974 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9975 |
#, no-wrap |
| 9976 |
msgid "SEE ALSO" |
| 9977 |
msgstr "СМОТРИТЕ ТАКЖЕ" |
| 9978 |
|
| 9979 |
#. #-#-#-#-# archlinux: bpf-helpers.7.pot (PACKAGE VERSION) #-#-#-#-# |
| 9980 |
#. type: Plain text |
| 9981 |
#. #-#-#-#-# debian-trixie: bpf-helpers.7.pot (PACKAGE VERSION) #-#-#-#-# |
| 9982 |
#. Generated by docutils manpage writer. |
| 9983 |
#. type: Plain text |
| 9984 |
#. #-#-#-#-# debian-unstable: bpf-helpers.7.pot (PACKAGE VERSION) #-#-#-#-# |
| 9985 |
#. type: Plain text |
| 9986 |
#. #-#-#-#-# fedora-44: bpf-helpers.7.pot (PACKAGE VERSION) #-#-#-#-# |
| 9987 |
#. Generated by docutils manpage writer. |
| 9988 |
#. type: Plain text |
| 9989 |
#. #-#-#-#-# fedora-rawhide: bpf-helpers.7.pot (PACKAGE VERSION) #-#-#-#-# |
| 9990 |
#. Generated by docutils manpage writer. |
| 9991 |
#. type: Plain text |
| 9992 |
#. #-#-#-#-# opensuse-leap-16-1: bpf-helpers.7.pot (PACKAGE VERSION) #-#-#-#-# |
| 9993 |
#. type: Plain text |
| 9994 |
#. #-#-#-#-# opensuse-tumbleweed: bpf-helpers.7.pot (PACKAGE VERSION) #-#-#-#-# |
| 9995 |
#. type: Plain text |
| 9996 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 9997 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 9998 |
#, fuzzy |
| 9999 |
#| msgid "" |
| 10000 |
#| "B<bpf>(2), B<cgroups>(7), B<ip>(8), B<perf_event_open>(2), B<sendmsg>(2), " |
| 10001 |
#| "B<socket>(7), B<tc-bpf>(8)" |
| 10002 |
msgid "" |
| 10003 |
"B<bpf>(2), B<bpftool>(8), B<cgroups>(7), B<ip>(8), B<perf_event_open>(2), " |
| 10004 |
"B<sendmsg>(2), B<socket>(7), B<tc-bpf>(8)" |
| 10005 |
msgstr "" |
| 10006 |
"B<bpf>(2), B<cgroups>(7), B<ip>(8), B<perf_event_open>(2), B<sendmsg>(2), " |
| 10007 |
"B<socket>(7), B<tc-bpf>(8)" |
| 10008 |
|
| 10009 |
#. type: TH |
| 10010 |
#: debian-trixie |
| 10011 |
#, no-wrap |
| 10012 |
msgid "2024-01-23" |
| 10013 |
msgstr "23 января 2024 г." |
| 10014 |
|
| 10015 |
#. type: TH |
| 10016 |
#: debian-trixie |
| 10017 |
#, fuzzy, no-wrap |
| 10018 |
#| msgid "Linux" |
| 10019 |
msgid "Linux v6.9" |
| 10020 |
msgstr "Linux" |
| 10021 |
|
| 10022 |
#. type: SH |
| 10023 |
#: debian-trixie fedora-44 fedora-rawhide |
| 10024 |
#, no-wrap |
| 10025 |
msgid "NAME" |
| 10026 |
msgstr "НАИМЕНОВАНИЕ" |
| 10027 |
|
| 10028 |
#. type: Plain text |
| 10029 |
#: debian-trixie fedora-44 fedora-rawhide |
| 10030 |
msgid "" |
| 10031 |
"Store I<len> bytes from address I<from> into the packet associated to " |
| 10032 |
"I<skb>, at I<offset>\\&. I<flags> are a combination of " |
| 10033 |
"B<BPF_F_RECOMPUTE_CSUM> (automatically recompute the checksum for the packet " |
| 10034 |
"after storing the bytes) and B<BPF_F_INVALIDATE_HASH> (set I<skb>B<-" |
| 10035 |
"E<gt>hash>, I<skb>B<-E<gt>swhash> and I<skb>B<-E<gt>l4hash> to 0)." |
| 10036 |
msgstr "" |
| 10037 |
"Записывает I<len> байт из адреса I<from> в пакет, связанный с I<skb>, по " |
| 10038 |
"смещению I<offset>\\&. Значением I<flags> является комбинация " |
| 10039 |
"B<BPF_F_RECOMPUTE_CSUM> (повторное автоматическое вычисление контрольной " |
| 10040 |
"суммы пакета после записи байт) и B<BPF_F_INVALIDATE_HASH> (присваивает " |
| 10041 |
"I<skb>B<-E<gt>hash>, I<skb>B<-E<gt>swhash> и I<skb>B<-E<gt>l4hash> значение " |
| 10042 |
"0)." |
| 10043 |
|
| 10044 |
#. type: Plain text |
| 10045 |
#: debian-trixie fedora-44 fedora-rawhide |
| 10046 |
msgid "" |
| 10047 |
"Recompute the layer 4 (e.g. TCP, UDP or ICMP) checksum for the packet " |
| 10048 |
"associated to I<skb>\\&. Computation is incremental, so the helper must know " |
| 10049 |
"the former value of the header field that was modified (I<from>), the new " |
| 10050 |
"value of this field (I<to>), and the number of bytes (2 or 4) for this " |
| 10051 |
"field, stored on the lowest four bits of I<flags>\\&. Alternatively, it is " |
| 10052 |
"possible to store the difference between the previous and the new values of " |
| 10053 |
"the header field in I<to>, by setting I<from> and the four lowest bits of " |
| 10054 |
"I<flags> to 0. For both methods, I<offset> indicates the location of the IP " |
| 10055 |
"checksum within the packet. In addition to the size of the field, I<flags> " |
| 10056 |
"can be added (bitwise OR) actual flags. With B<BPF_F_MARK_MANGLED_0>, a null " |
| 10057 |
"checksum is left untouched (unless B<BPF_F_MARK_ENFORCE> is added as well), " |
| 10058 |
"and for updates resulting in a null checksum the value is set to " |
| 10059 |
"B<CSUM_MANGLED_0> instead. Flag B<BPF_F_PSEUDO_HDR> indicates the checksum " |
| 10060 |
"is to be computed against a pseudo-header." |
| 10061 |
msgstr "" |
| 10062 |
"Повторно вычисляет контрольную сумму заголовка 4-го уровня (например, TCP, " |
| 10063 |
"UDP или ICMP) из пакета, связанного с I<skb>\\&. Вычисление является " |
| 10064 |
"поступательным, поэтому помощник должен знать предыдущее значение поля " |
| 10065 |
"заголовка, которое было изменено (I<from>), новое значение этого поля " |
| 10066 |
"(I<to>) и количество байт (2 или 4) этого поля, хранящиеся в младших четырёх " |
| 10067 |
"битах I<flags>\\&. Или же можно сохранить различие между предыдущим и новым " |
| 10068 |
"значениями поля заголовка в I<to>, установив I<from> и четыре младших бита " |
| 10069 |
"I<flags> равными 0. В обоих способах в I<offset> задаётся расположение " |
| 10070 |
"контрольной суммы IP внутри пакета. В дополнении размера поля в I<flags> " |
| 10071 |
"можно добавить (побитовым ИЛИ) нужные флаги. При указании " |
| 10072 |
"B<BPF_F_MARK_MANGLED_0> контрольная сумма null остаётся неизменяемой (если " |
| 10073 |
"также не указан B<BPF_F_MARK_ENFORCE>), а чтобы обновить результат в " |
| 10074 |
"контрольной сумме null нужно задать значение B<CSUM_MANGLED_0>. Флаг " |
| 10075 |
"B<BPF_F_PSEUDO_HDR> задаёт, что контрольная сумма будет вычислена повторно " |
| 10076 |
"на уровне псевдо-заголовка." |
| 10077 |
|
| 10078 |
#. type: Plain text |
| 10079 |
#: debian-trixie fedora-44 fedora-rawhide |
| 10080 |
msgid "" |
| 10081 |
"On user space, a program willing to read the values needs to call " |
| 10082 |
"B<perf_event_open>() on the perf event (either for one or for all CPUs) and " |
| 10083 |
"to store the file descriptor into the I<map>\\&. This must be done before " |
| 10084 |
"the eBPF program can send data into it. An example is available in file " |
| 10085 |
"I<samples/bpf/trace_output_user.c> in the Linux kernel source tree (the eBPF " |
| 10086 |
"program counterpart is in I<samples/bpf/trace_output_kern.c>)." |
| 10087 |
msgstr "" |
| 10088 |
"В пользовательском пространстве программе, которая будет читать значения, " |
| 10089 |
"нужно вызвать B<perf_event_open>() при событии perf (или для одного или для " |
| 10090 |
"всех ЦП) и сохранить файловый дескриптор в I<map>\\&. Это нужно сделать до " |
| 10091 |
"того как программа eBPF может послать в него данные. Пример показан в файле " |
| 10092 |
"I<samples/bpf/trace_output_user.c> из дерева исходного кода ядра Linux " |
| 10093 |
"(программа eBPF приведена в файле I<samples/bpf/trace_output_kern.c>)." |
| 10094 |
|
| 10095 |
#. type: Plain text |
| 10096 |
#: debian-trixie |
| 10097 |
#, fuzzy |
| 10098 |
#| msgid "" |
| 10099 |
#| "B<IPPROTO_TCP>, which supports the following I<optname>s: " |
| 10100 |
#| "B<TCP_CONGESTION>, B<TCP_BPF_IW>, B<TCP_BPF_SNDCWND_CLAMP>\\&." |
| 10101 |
msgid "" |
| 10102 |
"B<IPPROTO_TCP>, which supports the following I<optname>s: B<TCP_CONGESTION>, " |
| 10103 |
"B<TCP_BPF_IW>, B<TCP_BPF_SNDCWND_CLAMP>, B<TCP_SAVE_SYN>, B<TCP_KEEPIDLE>, " |
| 10104 |
"B<TCP_KEEPINTVL>, B<TCP_KEEPCNT>, B<TCP_SYNCNT>, B<TCP_USER_TIMEOUT>, " |
| 10105 |
"B<TCP_NOTSENT_LOWAT>, B<TCP_NODELAY>, B<TCP_MAXSEG>, B<TCP_WINDOW_CLAMP>, " |
| 10106 |
"B<TCP_THIN_LINEAR_TIMEOUTS>, B<TCP_BPF_DELACK_MAX>, B<TCP_BPF_RTO_MIN>\\&." |
| 10107 |
msgstr "" |
| 10108 |
"B<IPPROTO_TCP>, который поддерживает следующие I<optname>: " |
| 10109 |
"B<TCP_CONGESTION>, B<TCP_BPF_IW>, B<TCP_BPF_SNDCWND_CLAMP>\\&." |
| 10110 |
|
| 10111 |
#. type: Plain text |
| 10112 |
#: debian-trixie |
| 10113 |
msgid "" |
| 10114 |
"Also, the helper is only available for the architectures having the " |
| 10115 |
"CONFIG_FUNCTION_ERROR_INJECTION option. As of this writing, x86 architecture " |
| 10116 |
"is the only one to support this feature." |
| 10117 |
msgstr "" |
| 10118 |
"Также помощник доступен только на архитектурах, имеющих параметр " |
| 10119 |
"CONFIG_FUNCTION_ERROR_INJECTION. На момент написания справки, только " |
| 10120 |
"архитектура x86 поддерживает данное свойство." |
| 10121 |
|
| 10122 |
#. type: TP |
| 10123 |
#: debian-trixie fedora-44 fedora-rawhide |
| 10124 |
#, fuzzy, no-wrap |
| 10125 |
#| msgid "B<int bpf_redirect_map(struct bpf_map *>I<map>B<, u32 >I<key>B<, u64 >I<flags>B<)>" |
| 10126 |
msgid "B<long bpf_d_path(struct path *>I<path>B<, char *>I<buf>B<, u32 >I<sz>B<)>" |
| 10127 |
msgstr "B<int bpf_redirect_map(struct bpf_map *>I<map>B<, u32 >I<key>B<, u64 >I<flags>B<)>" |
| 10128 |
|
| 10129 |
#. type: Plain text |
| 10130 |
#: debian-trixie |
| 10131 |
msgid "" |
| 10132 |
"The B<hash_algo> is returned on success, B<-EOPNOTSUP> if IMA is disabled or " |
| 10133 |
"B<-EINVAL> if invalid arguments are passed." |
| 10134 |
msgstr "" |
| 10135 |
|
| 10136 |
#. type: Plain text |
| 10137 |
#: debian-trixie |
| 10138 |
msgid "long (*callback_fn)(u32 index, void *ctx);" |
| 10139 |
msgstr "" |
| 10140 |
|
| 10141 |
#. type: Plain text |
| 10142 |
#: debian-trixie |
| 10143 |
msgid "" |
| 10144 |
"This function is most useful when it needs to set a mono delivery time to " |
| 10145 |
"__sk_buff-E<gt>tstamp and then bpf_redirect_*() to the egress of an iface. " |
| 10146 |
"For example, changing the (rcv) timestamp in __sk_buff-E<gt>tstamp at " |
| 10147 |
"ingress to a mono delivery time and then bpf_redirect_*() to I<\\" |
| 10148 |
"%sch_fq@phy-dev>\\&." |
| 10149 |
msgstr "" |
| 10150 |
|
| 10151 |
#. type: Plain text |
| 10152 |
#: debian-trixie |
| 10153 |
msgid "" |
| 10154 |
"The B<hash_algo> is returned on success, B<-EOPNOTSUP> if the hash " |
| 10155 |
"calculation failed or B<-EINVAL> if invalid arguments are passed." |
| 10156 |
msgstr "" |
| 10157 |
|
| 10158 |
#. type: TP |
| 10159 |
#: debian-trixie |
| 10160 |
#, fuzzy, no-wrap |
| 10161 |
#| msgid "B<void *memfrob(void *>I<s>B<, size_t >I<n>B<);>\n" |
| 10162 |
msgid "B<void *bpf_kptr_xchg(void *>I<map_value>B<, void *>I<ptr>B<)>" |
| 10163 |
msgstr "B<void *memfrob(void *>I<s>B<, size_t >I<n>B<);>\n" |
| 10164 |
|
| 10165 |
#. type: Plain text |
| 10166 |
#: debian-trixie |
| 10167 |
msgid "" |
| 10168 |
"Exchange kptr at pointer I<map_value> with I<ptr>, and return the old value. " |
| 10169 |
"I<ptr> can be NULL, otherwise it must be a referenced pointer which will be " |
| 10170 |
"released when this helper is called." |
| 10171 |
msgstr "" |
| 10172 |
|
| 10173 |
#. type: TP |
| 10174 |
#: debian-trixie fedora-44 fedora-rawhide |
| 10175 |
#, fuzzy, no-wrap |
| 10176 |
#| msgid "B<int bpf_probe_read(void *>I<dst>B<, u32 >I<size>B<, const void *>I<src>B<)>" |
| 10177 |
msgid "B<long bpf_dynptr_from_mem(void *>I<data>B<, u32 >I<size>B<, u64 >I<flags>B<, struct bpf_dynptr *>I<ptr>B<)>" |
| 10178 |
msgstr "B<int bpf_probe_read(void *>I<dst>B<, u32 >I<size>B<, const void *>I<src>B<)>" |
| 10179 |
|
| 10180 |
#. type: TP |
| 10181 |
#: debian-trixie fedora-44 fedora-rawhide |
| 10182 |
#, fuzzy, no-wrap |
| 10183 |
#| msgid "B<int bpf_skb_get_xfrm_state(struct sk_buff *>I<skb>B<, u32 >I<index>B<, struct bpf_xfrm_state *>I<xfrm_state>B<, u32 >I<size>B<, u64 >I<flags>B<)>" |
| 10184 |
msgid "B<long bpf_dynptr_read(void *>I<dst>B<, u32 >I<len>B<, const struct bpf_dynptr *>I<src>B<, u32 >I<offset>B<, u64 >I<flags>B<)>" |
| 10185 |
msgstr "B<int bpf_skb_get_xfrm_state(struct sk_buff *>I<skb>B<, u32 >I<index>B<, struct bpf_xfrm_state *>I<xfrm_state>B<, u32 >I<size>B<, u64 >I<flags>B<)>" |
| 10186 |
|
| 10187 |
#. type: TP |
| 10188 |
#: debian-trixie fedora-44 fedora-rawhide |
| 10189 |
#, fuzzy, no-wrap |
| 10190 |
#| msgid "B<int bpf_skb_store_bytes(struct sk_buff *>I<skb>B<, u32 >I<offset>B<, const void *>I<from>B<, u32 >I<len>B<, u64 >I<flags>B<)>" |
| 10191 |
msgid "B<long bpf_dynptr_write(const struct bpf_dynptr *>I<dst>B<, u32 >I<offset>B<, void *>I<src>B<, u32 >I<len>B<, u64 >I<flags>B<)>" |
| 10192 |
msgstr "B<int bpf_skb_store_bytes(struct sk_buff *>I<skb>B<, u32 >I<offset>B<, const void *>I<from>B<, u32 >I<len>B<, u64 >I<flags>B<)>" |
| 10193 |
|
| 10194 |
#. type: TP |
| 10195 |
#: debian-trixie fedora-44 fedora-rawhide |
| 10196 |
#, fuzzy, no-wrap |
| 10197 |
#| msgid "B<int bpf_redirect_map(struct bpf_map *>I<map>B<, u32 >I<key>B<, u64 >I<flags>B<)>" |
| 10198 |
msgid "B<void *bpf_dynptr_data(const struct bpf_dynptr *>I<ptr>B<, u32 >I<offset>B<, u32 >I<len>B<)>" |
| 10199 |
msgstr "B<int bpf_redirect_map(struct bpf_map *>I<map>B<, u32 >I<key>B<, u64 >I<flags>B<)>" |
| 10200 |
|
| 10201 |
#. type: TH |
| 10202 |
#: fedora-44 fedora-rawhide |
| 10203 |
#, no-wrap |
| 10204 |
msgid "2024-10-10" |
| 10205 |
msgstr "10 октября 2024 г." |
| 10206 |
|
| 10207 |
#. type: TH |
| 10208 |
#: fedora-44 fedora-rawhide |
| 10209 |
#, fuzzy, no-wrap |
| 10210 |
#| msgid "Linux" |
| 10211 |
msgid "Linux v6.13" |
| 10212 |
msgstr "Linux" |
| 10213 |
|
| 10214 |
#. type: Plain text |
| 10215 |
#: fedora-44 fedora-rawhide |
| 10216 |
msgid "" |
| 10217 |
"This function is most useful when it needs to set a mono delivery time to " |
| 10218 |
"__sk_buff-E<gt>tstamp and then bpf_redirect_*() to the egress of an iface. " |
| 10219 |
"For example, changing the (rcv) timestamp in __sk_buff-E<gt>tstamp at " |
| 10220 |
"ingress to a mono delivery time and then bpf_redirect_*() to " |
| 10221 |
"E<lt>sch_fq@phy-devE<gt> \\&." |
| 10222 |
msgstr "" |