| 1 |
# SOME DESCRIPTIVE TITLE |
| 2 |
# Copyright (C) YEAR Free Software Foundation, Inc. |
| 3 |
# This file is distributed under the same license as the PACKAGE package. |
| 4 |
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. |
| 5 |
# |
| 6 |
#, fuzzy |
| 7 |
msgid "" |
| 8 |
msgstr "" |
| 9 |
"Project-Id-Version: PACKAGE VERSION\n" |
| 10 |
"POT-Creation-Date: 2026-06-05 06:19+0200\n" |
| 11 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" |
| 12 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" |
| 13 |
"Language-Team: LANGUAGE <[email protected]>\n" |
| 14 |
"Language: \n" |
| 15 |
"MIME-Version: 1.0\n" |
| 16 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 17 |
"Content-Transfer-Encoding: 8bit\n" |
| 18 |
|
| 19 |
#. type: TH |
| 20 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 21 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 22 |
#, no-wrap |
| 23 |
msgid "BPF-HELPERS" |
| 24 |
msgstr "" |
| 25 |
|
| 26 |
#. type: TH |
| 27 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 28 |
#, no-wrap |
| 29 |
msgid "2025-10-27" |
| 30 |
msgstr "" |
| 31 |
|
| 32 |
#. type: TH |
| 33 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 34 |
#, no-wrap |
| 35 |
msgid "Linux v7.0" |
| 36 |
msgstr "" |
| 37 |
|
| 38 |
#. type: SH |
| 39 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 40 |
#, no-wrap |
| 41 |
msgid "Name" |
| 42 |
msgstr "" |
| 43 |
|
| 44 |
#. Copyright (C) All BPF authors and contributors from 2014 to present. |
| 45 |
#. type: Plain text |
| 46 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 47 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 48 |
msgid "BPF-HELPERS - list of eBPF helper functions" |
| 49 |
msgstr "" |
| 50 |
|
| 51 |
#. type: SH |
| 52 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 53 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 54 |
#, no-wrap |
| 55 |
msgid "DESCRIPTION" |
| 56 |
msgstr "" |
| 57 |
|
| 58 |
#. type: Plain text |
| 59 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 60 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 61 |
msgid "" |
| 62 |
"The extended Berkeley Packet Filter (eBPF) subsystem consists in programs " |
| 63 |
"written in a pseudo-assembly language, then attached to one of the several " |
| 64 |
"kernel hooks and run in reaction of specific events. This framework differs " |
| 65 |
"from the older, \"classic\" BPF (or \"cBPF\") in several aspects, one of " |
| 66 |
"them being the ability to call special functions (or \"helpers\") from " |
| 67 |
"within a program. These functions are restricted to a white-list of helpers " |
| 68 |
"defined in the kernel." |
| 69 |
msgstr "" |
| 70 |
|
| 71 |
#. type: Plain text |
| 72 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 73 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 74 |
msgid "" |
| 75 |
"These helpers are used by eBPF programs to interact with the system, or with " |
| 76 |
"the context in which they work. For instance, they can be used to print " |
| 77 |
"debugging messages, to get the time since the system was booted, to interact " |
| 78 |
"with eBPF maps, or to manipulate network packets. Since there are several " |
| 79 |
"eBPF program types, and that they do not run in the same context, each " |
| 80 |
"program type can only call a subset of those helpers." |
| 81 |
msgstr "" |
| 82 |
|
| 83 |
#. type: Plain text |
| 84 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 85 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 86 |
msgid "" |
| 87 |
"Due to eBPF conventions, a helper can not have more than five arguments." |
| 88 |
msgstr "" |
| 89 |
|
| 90 |
#. type: Plain text |
| 91 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 92 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 93 |
msgid "" |
| 94 |
"Internally, eBPF programs call directly into the compiled helper functions " |
| 95 |
"without requiring any foreign-function interface. As a result, calling " |
| 96 |
"helpers introduces no overhead, thus offering excellent performance." |
| 97 |
msgstr "" |
| 98 |
|
| 99 |
#. type: Plain text |
| 100 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 101 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 102 |
msgid "" |
| 103 |
"This document is an attempt to list and document the helpers available to " |
| 104 |
"eBPF developers. They are sorted by chronological order (the oldest helpers " |
| 105 |
"in the kernel at the top)." |
| 106 |
msgstr "" |
| 107 |
|
| 108 |
#. type: SH |
| 109 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 110 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 111 |
#, no-wrap |
| 112 |
msgid "HELPERS" |
| 113 |
msgstr "" |
| 114 |
|
| 115 |
#. type: TP |
| 116 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 117 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 118 |
#, no-wrap |
| 119 |
msgid "B<void *bpf_map_lookup_elem(struct bpf_map *>I<map>B<, const void *>I<key>B<)>" |
| 120 |
msgstr "" |
| 121 |
|
| 122 |
#. type: TP |
| 123 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 124 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 125 |
#, no-wrap |
| 126 |
msgid "B<Description>" |
| 127 |
msgstr "" |
| 128 |
|
| 129 |
#. type: Plain text |
| 130 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 131 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 132 |
msgid "Perform a lookup in I<map> for an entry associated to I<key>\\&." |
| 133 |
msgstr "" |
| 134 |
|
| 135 |
#. type: TP |
| 136 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 137 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 138 |
#, no-wrap |
| 139 |
msgid "B<Return>" |
| 140 |
msgstr "" |
| 141 |
|
| 142 |
#. type: Plain text |
| 143 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 144 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 145 |
msgid "Map value associated to I<key>, or B<NULL> if no entry was found." |
| 146 |
msgstr "" |
| 147 |
|
| 148 |
#. type: TP |
| 149 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 150 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 151 |
#, no-wrap |
| 152 |
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<)>" |
| 153 |
msgstr "" |
| 154 |
|
| 155 |
#. type: Plain text |
| 156 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 157 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 158 |
msgid "" |
| 159 |
"Add or update the value of the entry associated to I<key> in I<map> with " |
| 160 |
"I<value>\\&. I<flags> is one of:" |
| 161 |
msgstr "" |
| 162 |
|
| 163 |
#. type: TP |
| 164 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 165 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 166 |
#, no-wrap |
| 167 |
msgid "B<BPF_NOEXIST>" |
| 168 |
msgstr "" |
| 169 |
|
| 170 |
#. type: Plain text |
| 171 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 172 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 173 |
msgid "The entry for I<key> must not exist in the map." |
| 174 |
msgstr "" |
| 175 |
|
| 176 |
#. type: TP |
| 177 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 178 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 179 |
#, no-wrap |
| 180 |
msgid "B<BPF_EXIST>" |
| 181 |
msgstr "" |
| 182 |
|
| 183 |
#. type: Plain text |
| 184 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 185 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 186 |
msgid "The entry for I<key> must already exist in the map." |
| 187 |
msgstr "" |
| 188 |
|
| 189 |
#. type: TP |
| 190 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 191 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 192 |
#, no-wrap |
| 193 |
msgid "B<BPF_ANY>" |
| 194 |
msgstr "" |
| 195 |
|
| 196 |
#. type: Plain text |
| 197 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 198 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 199 |
msgid "No condition on the existence of the entry for I<key>\\&." |
| 200 |
msgstr "" |
| 201 |
|
| 202 |
#. type: Plain text |
| 203 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 204 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 205 |
msgid "" |
| 206 |
"Flag value B<BPF_NOEXIST> cannot be used for maps of types " |
| 207 |
"B<BPF_MAP_TYPE_ARRAY> or B<BPF_MAP_TYPE_PERCPU_ARRAY> (all elements always " |
| 208 |
"exist), the helper would return an error." |
| 209 |
msgstr "" |
| 210 |
|
| 211 |
#. type: Plain text |
| 212 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 213 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 214 |
msgid "0 on success, or a negative error in case of failure." |
| 215 |
msgstr "" |
| 216 |
|
| 217 |
#. type: TP |
| 218 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 219 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 220 |
#, no-wrap |
| 221 |
msgid "B<long bpf_map_delete_elem(struct bpf_map *>I<map>B<, const void *>I<key>B<)>" |
| 222 |
msgstr "" |
| 223 |
|
| 224 |
#. type: Plain text |
| 225 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 226 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 227 |
msgid "Delete entry with I<key> from I<map>\\&." |
| 228 |
msgstr "" |
| 229 |
|
| 230 |
#. type: TP |
| 231 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 232 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 233 |
#, no-wrap |
| 234 |
msgid "B<long bpf_probe_read(void *>I<dst>B<, u32 >I<size>B<, const void *>I<unsafe_ptr>B<)>" |
| 235 |
msgstr "" |
| 236 |
|
| 237 |
#. type: Plain text |
| 238 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 239 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 240 |
msgid "" |
| 241 |
"For tracing programs, safely attempt to read I<size> bytes from kernel space " |
| 242 |
"address I<unsafe_ptr> and store the data in I<dst>\\&." |
| 243 |
msgstr "" |
| 244 |
|
| 245 |
#. type: Plain text |
| 246 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 247 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 248 |
msgid "" |
| 249 |
"Generally, use B<bpf_probe_read_user>() or B<bpf_probe_read_kernel>() " |
| 250 |
"instead." |
| 251 |
msgstr "" |
| 252 |
|
| 253 |
#. type: TP |
| 254 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 255 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 256 |
#, no-wrap |
| 257 |
msgid "B<u64 bpf_ktime_get_ns(void)>" |
| 258 |
msgstr "" |
| 259 |
|
| 260 |
#. type: Plain text |
| 261 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 262 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 263 |
msgid "" |
| 264 |
"Return the time elapsed since system boot, in nanoseconds. Does not include " |
| 265 |
"time the system was suspended. See: B<clock_gettime>(B<CLOCK_MONOTONIC>)" |
| 266 |
msgstr "" |
| 267 |
|
| 268 |
#. type: Plain text |
| 269 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 270 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 271 |
msgid "Current I<ktime>\\&." |
| 272 |
msgstr "" |
| 273 |
|
| 274 |
#. type: TP |
| 275 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 276 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 277 |
#, no-wrap |
| 278 |
msgid "B<long bpf_trace_printk(const char *>I<fmt>B<, u32 >I<fmt_size>B<, ...)>" |
| 279 |
msgstr "" |
| 280 |
|
| 281 |
#. type: Plain text |
| 282 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 283 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 284 |
msgid "" |
| 285 |
"This helper is a \"printk()-like\" facility for debugging. It prints a " |
| 286 |
"message defined by format I<fmt> (of size I<fmt_size>) to file I</sys/" |
| 287 |
"kernel/tracing/trace> from TraceFS, if available. It can take up to three " |
| 288 |
"additional B<u64> arguments (as an eBPF helpers, the total number of " |
| 289 |
"arguments is limited to five)." |
| 290 |
msgstr "" |
| 291 |
|
| 292 |
#. type: Plain text |
| 293 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 294 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 295 |
msgid "" |
| 296 |
"Each time the helper is called, it appends a line to the trace. Lines are " |
| 297 |
"discarded while I</sys/kernel/tracing/trace> is open, use I</sys/kernel/" |
| 298 |
"tracing/trace_pipe> to avoid this. The format of the trace is customizable, " |
| 299 |
"and the exact output one will get depends on the options set in I</sys/" |
| 300 |
"kernel/tracing/trace_options> (see also the I<README> file under the same " |
| 301 |
"directory). However, it usually defaults to something like:" |
| 302 |
msgstr "" |
| 303 |
|
| 304 |
#. type: Plain text |
| 305 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 306 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 307 |
#, no-wrap |
| 308 |
msgid "telnet-470 [001] .N.. 419421.045894: 0x00000001: E<lt>formatted msgE<gt>\n" |
| 309 |
msgstr "" |
| 310 |
|
| 311 |
#. type: Plain text |
| 312 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 313 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 314 |
msgid "In the above:" |
| 315 |
msgstr "" |
| 316 |
|
| 317 |
#. type: IP |
| 318 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 319 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 320 |
#, no-wrap |
| 321 |
msgid "\\(bu" |
| 322 |
msgstr "" |
| 323 |
|
| 324 |
#. type: Plain text |
| 325 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 326 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 327 |
msgid "B<telnet> is the name of the current task." |
| 328 |
msgstr "" |
| 329 |
|
| 330 |
#. type: Plain text |
| 331 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 332 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 333 |
msgid "B<470> is the PID of the current task." |
| 334 |
msgstr "" |
| 335 |
|
| 336 |
#. type: Plain text |
| 337 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 338 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 339 |
msgid "B<001> is the CPU number on which the task is running." |
| 340 |
msgstr "" |
| 341 |
|
| 342 |
#. type: Plain text |
| 343 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 344 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 345 |
msgid "" |
| 346 |
"In B<\\&.N..>, each character refers to a set of options (whether irqs are " |
| 347 |
"enabled, scheduling options, whether hard/softirqs are running, level of " |
| 348 |
"preempt_disabled respectively). B<N> means that B<TIF_NEED_RESCHED> and " |
| 349 |
"B<PREEMPT_NEED_RESCHED> are set." |
| 350 |
msgstr "" |
| 351 |
|
| 352 |
#. type: Plain text |
| 353 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 354 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 355 |
msgid "B<419421.045894> is a timestamp." |
| 356 |
msgstr "" |
| 357 |
|
| 358 |
#. type: Plain text |
| 359 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 360 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 361 |
msgid "" |
| 362 |
"B<0x00000001> is a fake value used by BPF for the instruction pointer " |
| 363 |
"register." |
| 364 |
msgstr "" |
| 365 |
|
| 366 |
#. type: Plain text |
| 367 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 368 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 369 |
msgid "B<E<lt>formatted msgE<gt>> is the message formatted with I<fmt>\\&." |
| 370 |
msgstr "" |
| 371 |
|
| 372 |
#. type: Plain text |
| 373 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 374 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 375 |
msgid "" |
| 376 |
"The conversion specifiers supported by I<fmt> are similar, but more limited " |
| 377 |
"than for printk(). They are B<%d>, B<%i>, B<%u>, B<%x>, B<%ld>, B<%li>, " |
| 378 |
"B<%lu>, B<%lx>, B<%lld>, B<%lli>, B<%llu>, B<%llx>, B<%p>, B<%s>\\&. No " |
| 379 |
"modifier (size of field, padding with zeroes, etc.) is available, and the " |
| 380 |
"helper will return B<-EINVAL> (but print nothing) if it encounters an " |
| 381 |
"unknown specifier." |
| 382 |
msgstr "" |
| 383 |
|
| 384 |
#. type: Plain text |
| 385 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 386 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 387 |
msgid "" |
| 388 |
"Also, note that B<bpf_trace_printk>() is slow, and should only be used for " |
| 389 |
"debugging purposes. For this reason, a notice block (spanning several lines) " |
| 390 |
"is printed to kernel logs and states that the helper should not be used " |
| 391 |
"\"for production use\" the first time this helper is used (or more " |
| 392 |
"precisely, when B<trace_printk>() buffers are allocated). For passing values " |
| 393 |
"to user space, perf events should be preferred." |
| 394 |
msgstr "" |
| 395 |
|
| 396 |
#. type: Plain text |
| 397 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 398 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 399 |
msgid "" |
| 400 |
"The number of bytes written to the buffer, or a negative error in case of " |
| 401 |
"failure." |
| 402 |
msgstr "" |
| 403 |
|
| 404 |
#. type: TP |
| 405 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 406 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 407 |
#, no-wrap |
| 408 |
msgid "B<u32 bpf_get_prandom_u32(void)>" |
| 409 |
msgstr "" |
| 410 |
|
| 411 |
#. type: Plain text |
| 412 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 413 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 414 |
msgid "Get a pseudo-random number." |
| 415 |
msgstr "" |
| 416 |
|
| 417 |
#. type: Plain text |
| 418 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 419 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 420 |
msgid "" |
| 421 |
"From a security point of view, this helper uses its own pseudo-random " |
| 422 |
"internal state, and cannot be used to infer the seed of other random " |
| 423 |
"functions in the kernel. However, it is essential to note that the generator " |
| 424 |
"used by the helper is not cryptographically secure." |
| 425 |
msgstr "" |
| 426 |
|
| 427 |
#. type: Plain text |
| 428 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 429 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 430 |
msgid "A random 32-bit unsigned value." |
| 431 |
msgstr "" |
| 432 |
|
| 433 |
#. type: TP |
| 434 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 435 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 436 |
#, no-wrap |
| 437 |
msgid "B<u32 bpf_get_smp_processor_id(void)>" |
| 438 |
msgstr "" |
| 439 |
|
| 440 |
#. type: Plain text |
| 441 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 442 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 443 |
msgid "" |
| 444 |
"Get the SMP (symmetric multiprocessing) processor id. Note that all programs " |
| 445 |
"run with migration disabled, which means that the SMP processor id is stable " |
| 446 |
"during all the execution of the program." |
| 447 |
msgstr "" |
| 448 |
|
| 449 |
#. type: Plain text |
| 450 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 451 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 452 |
msgid "The SMP id of the processor running the program." |
| 453 |
msgstr "" |
| 454 |
|
| 455 |
#. type: TP |
| 456 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 457 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 458 |
#, no-wrap |
| 459 |
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<)>" |
| 460 |
msgstr "" |
| 461 |
|
| 462 |
#. type: Plain text |
| 463 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 464 |
msgid "" |
| 465 |
"Store I<len> bytes from address I<from> into the packet associated to " |
| 466 |
"I<skb>, at I<offset>\\&. The I<flags> are a combination of the following " |
| 467 |
"values:" |
| 468 |
msgstr "" |
| 469 |
|
| 470 |
#. type: TP |
| 471 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 472 |
#, no-wrap |
| 473 |
msgid "B<BPF_F_RECOMPUTE_CSUM>" |
| 474 |
msgstr "" |
| 475 |
|
| 476 |
#. type: Plain text |
| 477 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 478 |
msgid "Automatically update I<skb>B<-E<gt>csum> after storing the bytes." |
| 479 |
msgstr "" |
| 480 |
|
| 481 |
#. type: TP |
| 482 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 483 |
#, no-wrap |
| 484 |
msgid "B<BPF_F_INVALIDATE_HASH>" |
| 485 |
msgstr "" |
| 486 |
|
| 487 |
#. type: Plain text |
| 488 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 489 |
msgid "" |
| 490 |
"Set I<skb>B<-E<gt>hash>, I<skb>B<-E<gt>swhash> and I<skb>B<-E<gt>l4hash> to " |
| 491 |
"0." |
| 492 |
msgstr "" |
| 493 |
|
| 494 |
#. type: Plain text |
| 495 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 496 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 497 |
msgid "" |
| 498 |
"A call to this helper is susceptible to change the underlying packet buffer. " |
| 499 |
"Therefore, at load time, all checks on pointers previously done by the " |
| 500 |
"verifier are invalidated and must be performed again, if the helper is used " |
| 501 |
"in combination with direct packet access." |
| 502 |
msgstr "" |
| 503 |
|
| 504 |
#. type: TP |
| 505 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 506 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 507 |
#, no-wrap |
| 508 |
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<)>" |
| 509 |
msgstr "" |
| 510 |
|
| 511 |
#. type: Plain text |
| 512 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 513 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 514 |
msgid "" |
| 515 |
"Recompute the layer 3 (e.g. IP) checksum for the packet associated to " |
| 516 |
"I<skb>\\&. Computation is incremental, so the helper must know the former " |
| 517 |
"value of the header field that was modified (I<from>), the new value of this " |
| 518 |
"field (I<to>), and the number of bytes (2 or 4) for this field, stored in " |
| 519 |
"I<size>\\&. Alternatively, it is possible to store the difference between " |
| 520 |
"the previous and the new values of the header field in I<to>, by setting " |
| 521 |
"I<from> and I<size> to 0. For both methods, I<offset> indicates the location " |
| 522 |
"of the IP checksum within the packet." |
| 523 |
msgstr "" |
| 524 |
|
| 525 |
#. type: Plain text |
| 526 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 527 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 528 |
msgid "" |
| 529 |
"This helper works in combination with B<bpf_csum_diff>(), which does not " |
| 530 |
"update the checksum in-place, but offers more flexibility and can handle " |
| 531 |
"sizes larger than 2 or 4 for the checksum to update." |
| 532 |
msgstr "" |
| 533 |
|
| 534 |
#. type: TP |
| 535 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 536 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 537 |
#, no-wrap |
| 538 |
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<)>" |
| 539 |
msgstr "" |
| 540 |
|
| 541 |
#. type: Plain text |
| 542 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 543 |
msgid "" |
| 544 |
"Recompute the layer 4 (e.g. TCP, UDP or ICMP) checksum for the packet " |
| 545 |
"associated to I<skb>\\&. Computation is incremental, so the helper must know " |
| 546 |
"the former value of the header field that was modified (I<from>), the new " |
| 547 |
"value of this field (I<to>), and the number of bytes (2 or 4) for this " |
| 548 |
"field, stored on the lowest four bits of I<flags>\\&. Alternatively, it is " |
| 549 |
"possible to store the difference between the previous and the new values of " |
| 550 |
"the header field in I<to>, by setting I<from> and the four lowest bits of " |
| 551 |
"I<flags> to 0. For both methods, I<offset> indicates the location of the IP " |
| 552 |
"checksum within the packet. In addition to the size of the field, I<flags> " |
| 553 |
"can be added (bitwise OR) actual flags. With B<BPF_F_MARK_MANGLED_0>, a null " |
| 554 |
"checksum is left untouched (unless B<BPF_F_MARK_ENFORCE> is added as well), " |
| 555 |
"and for updates resulting in a null checksum the value is set to " |
| 556 |
"B<CSUM_MANGLED_0> instead. Flag B<BPF_F_PSEUDO_HDR> indicates that the " |
| 557 |
"modified header field is part of the pseudo-header. Flag B<BPF_F_IPV6> " |
| 558 |
"should be set for IPv6 packets." |
| 559 |
msgstr "" |
| 560 |
|
| 561 |
#. type: TP |
| 562 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 563 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 564 |
#, no-wrap |
| 565 |
msgid "B<long bpf_tail_call(void *>I<ctx>B<, struct bpf_map *>I<prog_array_map>B<, u32 >I<index>B<)>" |
| 566 |
msgstr "" |
| 567 |
|
| 568 |
#. type: Plain text |
| 569 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 570 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 571 |
msgid "" |
| 572 |
"This special helper is used to trigger a \"tail call\", or in other words, " |
| 573 |
"to jump into another eBPF program. The same stack frame is used (but values " |
| 574 |
"on stack and in registers for the caller are not accessible to the callee). " |
| 575 |
"This mechanism allows for program chaining, either for raising the maximum " |
| 576 |
"number of available eBPF instructions, or to execute given programs in " |
| 577 |
"conditional blocks. For security reasons, there is an upper limit to the " |
| 578 |
"number of successive tail calls that can be performed." |
| 579 |
msgstr "" |
| 580 |
|
| 581 |
#. type: Plain text |
| 582 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 583 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 584 |
msgid "" |
| 585 |
"Upon call of this helper, the program attempts to jump into a program " |
| 586 |
"referenced at index I<index> in I<prog_array_map>, a special map of type " |
| 587 |
"B<BPF_MAP_TYPE_PROG_ARRAY>, and passes I<ctx>, a pointer to the context." |
| 588 |
msgstr "" |
| 589 |
|
| 590 |
#. type: Plain text |
| 591 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 592 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 593 |
msgid "" |
| 594 |
"If the call succeeds, the kernel immediately runs the first instruction of " |
| 595 |
"the new program. This is not a function call, and it never returns to the " |
| 596 |
"previous program. If the call fails, then the helper has no effect, and the " |
| 597 |
"caller continues to run its subsequent instructions. A call can fail if the " |
| 598 |
"destination program for the jump does not exist (i.e. I<index> is superior " |
| 599 |
"to the number of entries in I<prog_array_map>), or if the maximum number of " |
| 600 |
"tail calls has been reached for this chain of programs. This limit is " |
| 601 |
"defined in the kernel by the macro B<MAX_TAIL_CALL_CNT> (not accessible to " |
| 602 |
"user space), which is currently set to 33." |
| 603 |
msgstr "" |
| 604 |
|
| 605 |
#. type: TP |
| 606 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 607 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 608 |
#, no-wrap |
| 609 |
msgid "B<long bpf_clone_redirect(struct sk_buff *>I<skb>B<, u32 >I<ifindex>B<, u64 >I<flags>B<)>" |
| 610 |
msgstr "" |
| 611 |
|
| 612 |
#. type: Plain text |
| 613 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 614 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 615 |
msgid "" |
| 616 |
"Clone and redirect the packet associated to I<skb> to another net device of " |
| 617 |
"index I<ifindex>\\&. Both ingress and egress interfaces can be used for " |
| 618 |
"redirection. The B<BPF_F_INGRESS> value in I<flags> is used to make the " |
| 619 |
"distinction (ingress path is selected if the flag is present, egress path " |
| 620 |
"otherwise). This is the only flag supported for now." |
| 621 |
msgstr "" |
| 622 |
|
| 623 |
#. type: Plain text |
| 624 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 625 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 626 |
msgid "" |
| 627 |
"In comparison with B<bpf_redirect>() helper, B<bpf_clone_redirect>() has the " |
| 628 |
"associated cost of duplicating the packet buffer, but this can be executed " |
| 629 |
"out of the eBPF program. Conversely, B<bpf_redirect>() is more efficient, " |
| 630 |
"but it is handled through an action code where the redirection happens only " |
| 631 |
"after the eBPF program has returned." |
| 632 |
msgstr "" |
| 633 |
|
| 634 |
#. type: Plain text |
| 635 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 636 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 637 |
msgid "" |
| 638 |
"0 on success, or a negative error in case of failure. Positive error " |
| 639 |
"indicates a potential drop or congestion in the target device. The " |
| 640 |
"particular positive error codes are not defined." |
| 641 |
msgstr "" |
| 642 |
|
| 643 |
#. type: TP |
| 644 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 645 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 646 |
#, no-wrap |
| 647 |
msgid "B<u64 bpf_get_current_pid_tgid(void)>" |
| 648 |
msgstr "" |
| 649 |
|
| 650 |
#. type: Plain text |
| 651 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 652 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 653 |
msgid "Get the current pid and tgid." |
| 654 |
msgstr "" |
| 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 |
"A 64-bit integer containing the current tgid and pid, and created as such: " |
| 661 |
"I<current_task>B<-E<gt>tgid E<lt>E<lt> 32 |> I<current_task>B<-E<gt>pid>\\&." |
| 662 |
msgstr "" |
| 663 |
|
| 664 |
#. type: TP |
| 665 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 666 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 667 |
#, no-wrap |
| 668 |
msgid "B<u64 bpf_get_current_uid_gid(void)>" |
| 669 |
msgstr "" |
| 670 |
|
| 671 |
#. type: Plain text |
| 672 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 673 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 674 |
msgid "Get the current uid and gid." |
| 675 |
msgstr "" |
| 676 |
|
| 677 |
#. type: Plain text |
| 678 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 679 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 680 |
msgid "" |
| 681 |
"A 64-bit integer containing the current GID and UID, and created as such: " |
| 682 |
"I<current_gid> B<E<lt>E<lt> 32 |> I<current_uid>\\&." |
| 683 |
msgstr "" |
| 684 |
|
| 685 |
#. type: TP |
| 686 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 687 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 688 |
#, no-wrap |
| 689 |
msgid "B<long bpf_get_current_comm(void *>I<buf>B<, u32 >I<size_of_buf>B<)>" |
| 690 |
msgstr "" |
| 691 |
|
| 692 |
#. type: Plain text |
| 693 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 694 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 695 |
msgid "" |
| 696 |
"Copy the B<comm> attribute of the current task into I<buf> of " |
| 697 |
"I<size_of_buf>\\&. The B<comm> attribute contains the name of the executable " |
| 698 |
"(excluding the path) for the current task. The I<size_of_buf> must be " |
| 699 |
"strictly positive. On success, the helper makes sure that the I<buf> is NUL-" |
| 700 |
"terminated. On failure, it is filled with zeroes." |
| 701 |
msgstr "" |
| 702 |
|
| 703 |
#. type: TP |
| 704 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 705 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 706 |
#, no-wrap |
| 707 |
msgid "B<u32 bpf_get_cgroup_classid(struct sk_buff *>I<skb>B<)>" |
| 708 |
msgstr "" |
| 709 |
|
| 710 |
#. type: Plain text |
| 711 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 712 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 713 |
msgid "" |
| 714 |
"Retrieve the classid for the current task, i.e. for the net_cls cgroup to " |
| 715 |
"which I<skb> belongs." |
| 716 |
msgstr "" |
| 717 |
|
| 718 |
#. type: Plain text |
| 719 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 720 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 721 |
msgid "This helper can be used on TC egress path, but not on ingress." |
| 722 |
msgstr "" |
| 723 |
|
| 724 |
#. type: Plain text |
| 725 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 726 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 727 |
msgid "" |
| 728 |
"The net_cls cgroup provides an interface to tag network packets based on a " |
| 729 |
"user-provided identifier for all traffic coming from the tasks belonging to " |
| 730 |
"the related cgroup. See also the related kernel documentation, available " |
| 731 |
"from the Linux sources in file I<Documentation/admin-guide/cgroup-v1/" |
| 732 |
"net_cls.rst>\\&." |
| 733 |
msgstr "" |
| 734 |
|
| 735 |
#. type: Plain text |
| 736 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 737 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 738 |
msgid "" |
| 739 |
"The Linux kernel has two versions for cgroups: there are cgroups v1 and " |
| 740 |
"cgroups v2. Both are available to users, who can use a mixture of them, but " |
| 741 |
"note that the net_cls cgroup is for cgroup v1 only. This makes it " |
| 742 |
"incompatible with BPF programs run on cgroups, which is a cgroup-v2-only " |
| 743 |
"feature (a socket can only hold data for one version of cgroups at a time)." |
| 744 |
msgstr "" |
| 745 |
|
| 746 |
#. type: Plain text |
| 747 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 748 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 749 |
msgid "" |
| 750 |
"This helper is only available is the kernel was compiled with the " |
| 751 |
"B<CONFIG_CGROUP_NET_CLASSID> configuration option set to \"B<y>\" or to " |
| 752 |
"\"B<m>\"." |
| 753 |
msgstr "" |
| 754 |
|
| 755 |
#. type: Plain text |
| 756 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 757 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 758 |
msgid "The classid, or 0 for the default unconfigured classid." |
| 759 |
msgstr "" |
| 760 |
|
| 761 |
#. type: TP |
| 762 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 763 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 764 |
#, no-wrap |
| 765 |
msgid "B<long bpf_skb_vlan_push(struct sk_buff *>I<skb>B<, __be16 >I<vlan_proto>B<, u16 >I<vlan_tci>B<)>" |
| 766 |
msgstr "" |
| 767 |
|
| 768 |
#. type: Plain text |
| 769 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 770 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 771 |
msgid "" |
| 772 |
"Push a I<vlan_tci> (VLAN tag control information) of protocol I<vlan_proto> " |
| 773 |
"to the packet associated to I<skb>, then update the checksum. Note that if " |
| 774 |
"I<vlan_proto> is different from B<ETH_P_8021Q> and B<ETH_P_8021AD>, it is " |
| 775 |
"considered to be B<ETH_P_8021Q>\\&." |
| 776 |
msgstr "" |
| 777 |
|
| 778 |
#. type: TP |
| 779 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 780 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 781 |
#, no-wrap |
| 782 |
msgid "B<long bpf_skb_vlan_pop(struct sk_buff *>I<skb>B<)>" |
| 783 |
msgstr "" |
| 784 |
|
| 785 |
#. type: Plain text |
| 786 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 787 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 788 |
msgid "Pop a VLAN header from the packet associated to I<skb>\\&." |
| 789 |
msgstr "" |
| 790 |
|
| 791 |
#. type: TP |
| 792 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 793 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 794 |
#, no-wrap |
| 795 |
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<)>" |
| 796 |
msgstr "" |
| 797 |
|
| 798 |
#. type: Plain text |
| 799 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 800 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 801 |
msgid "" |
| 802 |
"Get tunnel metadata. This helper takes a pointer I<key> to an empty B<struct " |
| 803 |
"bpf_tunnel_key> of B<size>, that will be filled with tunnel metadata for the " |
| 804 |
"packet associated to I<skb>\\&. The I<flags> can be set to " |
| 805 |
"B<BPF_F_TUNINFO_IPV6>, which indicates that the tunnel is based on IPv6 " |
| 806 |
"protocol instead of IPv4." |
| 807 |
msgstr "" |
| 808 |
|
| 809 |
#. type: Plain text |
| 810 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 811 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 812 |
msgid "" |
| 813 |
"The B<struct bpf_tunnel_key> is an object that generalizes the principal " |
| 814 |
"parameters used by various tunneling protocols into a single struct. This " |
| 815 |
"way, it can be used to easily make a decision based on the contents of the " |
| 816 |
"encapsulation header, \"summarized\" in this struct. In particular, it holds " |
| 817 |
"the IP address of the remote end (IPv4 or IPv6, depending on the case) in " |
| 818 |
"I<key>B<-E<gt>remote_ipv4> or I<key>B<-E<gt>remote_ipv6>\\&. Also, this " |
| 819 |
"struct exposes the I<key>B<-E<gt>tunnel_id>, which is generally mapped to a " |
| 820 |
"VNI (Virtual Network Identifier), making it programmable together with the " |
| 821 |
"B<bpf_skb_set_tunnel_key>() helper." |
| 822 |
msgstr "" |
| 823 |
|
| 824 |
#. type: Plain text |
| 825 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 826 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 827 |
msgid "" |
| 828 |
"Let\\(aqs imagine that the following code is part of a program attached to " |
| 829 |
"the TC ingress interface, on one end of a GRE tunnel, and is supposed to " |
| 830 |
"filter out all messages coming from remote ends with IPv4 address other than " |
| 831 |
"10.0.0.1:" |
| 832 |
msgstr "" |
| 833 |
|
| 834 |
#. type: Plain text |
| 835 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 836 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 837 |
#, no-wrap |
| 838 |
msgid "" |
| 839 |
"int ret;\n" |
| 840 |
"struct bpf_tunnel_key key = {};\n" |
| 841 |
msgstr "" |
| 842 |
|
| 843 |
#. type: Plain text |
| 844 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 845 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 846 |
#, no-wrap |
| 847 |
msgid "" |
| 848 |
"ret = bpf_skb_get_tunnel_key(skb, &key, sizeof(key), 0);\n" |
| 849 |
"if (ret E<lt> 0)\n" |
| 850 |
" return TC_ACT_SHOT; // drop packet\n" |
| 851 |
msgstr "" |
| 852 |
|
| 853 |
#. type: Plain text |
| 854 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 855 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 856 |
#, no-wrap |
| 857 |
msgid "" |
| 858 |
"if (key.remote_ipv4 != 0x0a000001)\n" |
| 859 |
" return TC_ACT_SHOT; // drop packet\n" |
| 860 |
msgstr "" |
| 861 |
|
| 862 |
#. type: Plain text |
| 863 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 864 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 865 |
#, no-wrap |
| 866 |
msgid "return TC_ACT_OK; // accept packet\n" |
| 867 |
msgstr "" |
| 868 |
|
| 869 |
#. type: Plain text |
| 870 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 871 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 872 |
msgid "" |
| 873 |
"This interface can also be used with all encapsulation devices that can " |
| 874 |
"operate in \"collect metadata\" mode: instead of having one network device " |
| 875 |
"per specific configuration, the \"collect metadata\" mode only requires a " |
| 876 |
"single device where the configuration can be extracted from this helper." |
| 877 |
msgstr "" |
| 878 |
|
| 879 |
#. type: Plain text |
| 880 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 881 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 882 |
msgid "" |
| 883 |
"This can be used together with various tunnels such as VXLan, Geneve, GRE or " |
| 884 |
"IP in IP (IPIP)." |
| 885 |
msgstr "" |
| 886 |
|
| 887 |
#. type: TP |
| 888 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 889 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 890 |
#, no-wrap |
| 891 |
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<)>" |
| 892 |
msgstr "" |
| 893 |
|
| 894 |
#. type: Plain text |
| 895 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 896 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 897 |
msgid "" |
| 898 |
"Populate tunnel metadata for packet associated to I<skb.> The tunnel " |
| 899 |
"metadata is set to the contents of I<key>, of I<size>\\&. The I<flags> can " |
| 900 |
"be set to a combination of the following values:" |
| 901 |
msgstr "" |
| 902 |
|
| 903 |
#. type: TP |
| 904 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 905 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 906 |
#, no-wrap |
| 907 |
msgid "B<BPF_F_TUNINFO_IPV6>" |
| 908 |
msgstr "" |
| 909 |
|
| 910 |
#. type: Plain text |
| 911 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 912 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 913 |
msgid "Indicate that the tunnel is based on IPv6 protocol instead of IPv4." |
| 914 |
msgstr "" |
| 915 |
|
| 916 |
#. type: TP |
| 917 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 918 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 919 |
#, no-wrap |
| 920 |
msgid "B<BPF_F_ZERO_CSUM_TX>" |
| 921 |
msgstr "" |
| 922 |
|
| 923 |
#. type: Plain text |
| 924 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 925 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 926 |
msgid "" |
| 927 |
"For IPv4 packets, add a flag to tunnel metadata indicating that checksum " |
| 928 |
"computation should be skipped and checksum set to zeroes." |
| 929 |
msgstr "" |
| 930 |
|
| 931 |
#. type: TP |
| 932 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 933 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 934 |
#, no-wrap |
| 935 |
msgid "B<BPF_F_DONT_FRAGMENT>" |
| 936 |
msgstr "" |
| 937 |
|
| 938 |
#. type: Plain text |
| 939 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 940 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 941 |
msgid "" |
| 942 |
"Add a flag to tunnel metadata indicating that the packet should not be " |
| 943 |
"fragmented." |
| 944 |
msgstr "" |
| 945 |
|
| 946 |
#. type: TP |
| 947 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 948 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 949 |
#, no-wrap |
| 950 |
msgid "B<BPF_F_SEQ_NUMBER>" |
| 951 |
msgstr "" |
| 952 |
|
| 953 |
#. type: Plain text |
| 954 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 955 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 956 |
msgid "" |
| 957 |
"Add a flag to tunnel metadata indicating that a sequence number should be " |
| 958 |
"added to tunnel header before sending the packet. This flag was added for " |
| 959 |
"GRE encapsulation, but might be used with other protocols as well in the " |
| 960 |
"future." |
| 961 |
msgstr "" |
| 962 |
|
| 963 |
#. type: TP |
| 964 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 965 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 966 |
#, no-wrap |
| 967 |
msgid "B<BPF_F_NO_TUNNEL_KEY>" |
| 968 |
msgstr "" |
| 969 |
|
| 970 |
#. type: Plain text |
| 971 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 972 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 973 |
msgid "" |
| 974 |
"Add a flag to tunnel metadata indicating that no tunnel key should be set in " |
| 975 |
"the resulting tunnel header." |
| 976 |
msgstr "" |
| 977 |
|
| 978 |
#. type: Plain text |
| 979 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 980 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 981 |
msgid "Here is a typical usage on the transmit path:" |
| 982 |
msgstr "" |
| 983 |
|
| 984 |
#. type: Plain text |
| 985 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 986 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 987 |
#, no-wrap |
| 988 |
msgid "" |
| 989 |
"struct bpf_tunnel_key key;\n" |
| 990 |
" populate key ...\n" |
| 991 |
"bpf_skb_set_tunnel_key(skb, &key, sizeof(key), 0);\n" |
| 992 |
"bpf_clone_redirect(skb, vxlan_dev_ifindex, 0);\n" |
| 993 |
msgstr "" |
| 994 |
|
| 995 |
#. type: Plain text |
| 996 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 997 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 998 |
msgid "" |
| 999 |
"See also the description of the B<bpf_skb_get_tunnel_key>() helper for " |
| 1000 |
"additional information." |
| 1001 |
msgstr "" |
| 1002 |
|
| 1003 |
#. type: TP |
| 1004 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1005 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1006 |
#, no-wrap |
| 1007 |
msgid "B<u64 bpf_perf_event_read(struct bpf_map *>I<map>B<, u64 >I<flags>B<)>" |
| 1008 |
msgstr "" |
| 1009 |
|
| 1010 |
#. type: Plain text |
| 1011 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1012 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1013 |
msgid "" |
| 1014 |
"Read the value of a perf event counter. This helper relies on a I<map> of " |
| 1015 |
"type B<BPF_MAP_TYPE_PERF_EVENT_ARRAY>\\&. The nature of the perf event " |
| 1016 |
"counter is selected when I<map> is updated with perf event file descriptors. " |
| 1017 |
"The I<map> is an array whose size is the number of available CPUs, and each " |
| 1018 |
"cell contains a value relative to one CPU. The value to retrieve is " |
| 1019 |
"indicated by I<flags>, that contains the index of the CPU to look up, masked " |
| 1020 |
"with B<BPF_F_INDEX_MASK>\\&. Alternatively, I<flags> can be set to " |
| 1021 |
"B<BPF_F_CURRENT_CPU> to indicate that the value for the current CPU should " |
| 1022 |
"be retrieved." |
| 1023 |
msgstr "" |
| 1024 |
|
| 1025 |
#. type: Plain text |
| 1026 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1027 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1028 |
msgid "Note that before Linux 4.13, only hardware perf event can be retrieved." |
| 1029 |
msgstr "" |
| 1030 |
|
| 1031 |
#. type: Plain text |
| 1032 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1033 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1034 |
msgid "" |
| 1035 |
"Also, be aware that the newer helper B<bpf_perf_event_read_value>() is " |
| 1036 |
"recommended over B<bpf_perf_event_read>() in general. The latter has some " |
| 1037 |
"ABI quirks where error and counter value are used as a return code (which is " |
| 1038 |
"wrong to do since ranges may overlap). This issue is fixed with " |
| 1039 |
"B<bpf_perf_event_read_value>(), which at the same time provides more " |
| 1040 |
"features over the B<bpf_perf_event_read>() interface. Please refer to the " |
| 1041 |
"description of B<bpf_perf_event_read_value>() for details." |
| 1042 |
msgstr "" |
| 1043 |
|
| 1044 |
#. type: Plain text |
| 1045 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1046 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1047 |
msgid "" |
| 1048 |
"The value of the perf event counter read from the map, or a negative error " |
| 1049 |
"code in case of failure." |
| 1050 |
msgstr "" |
| 1051 |
|
| 1052 |
#. type: TP |
| 1053 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1054 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1055 |
#, no-wrap |
| 1056 |
msgid "B<long bpf_redirect(u32 >I<ifindex>B<, u64 >I<flags>B<)>" |
| 1057 |
msgstr "" |
| 1058 |
|
| 1059 |
#. type: Plain text |
| 1060 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1061 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1062 |
msgid "" |
| 1063 |
"Redirect the packet to another net device of index I<ifindex>\\&. This " |
| 1064 |
"helper is somewhat similar to B<bpf_clone_redirect>(), except that the " |
| 1065 |
"packet is not cloned, which provides increased performance." |
| 1066 |
msgstr "" |
| 1067 |
|
| 1068 |
#. type: Plain text |
| 1069 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1070 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1071 |
msgid "" |
| 1072 |
"Except for XDP, both ingress and egress interfaces can be used for " |
| 1073 |
"redirection. The B<BPF_F_INGRESS> value in I<flags> is used to make the " |
| 1074 |
"distinction (ingress path is selected if the flag is present, egress path " |
| 1075 |
"otherwise). Currently, XDP only supports redirection to the egress " |
| 1076 |
"interface, and accepts no flag at all." |
| 1077 |
msgstr "" |
| 1078 |
|
| 1079 |
#. type: Plain text |
| 1080 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1081 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1082 |
msgid "" |
| 1083 |
"The same effect can also be attained with the more generic " |
| 1084 |
"B<bpf_redirect_map>(), which uses a BPF map to store the redirect target " |
| 1085 |
"instead of providing it directly to the helper." |
| 1086 |
msgstr "" |
| 1087 |
|
| 1088 |
#. type: Plain text |
| 1089 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1090 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1091 |
msgid "" |
| 1092 |
"For XDP, the helper returns B<XDP_REDIRECT> on success or B<XDP_ABORTED> on " |
| 1093 |
"error. For other program types, the values are B<TC_ACT_REDIRECT> on success " |
| 1094 |
"or B<TC_ACT_SHOT> on error." |
| 1095 |
msgstr "" |
| 1096 |
|
| 1097 |
#. type: TP |
| 1098 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1099 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1100 |
#, no-wrap |
| 1101 |
msgid "B<u32 bpf_get_route_realm(struct sk_buff *>I<skb>B<)>" |
| 1102 |
msgstr "" |
| 1103 |
|
| 1104 |
#. type: Plain text |
| 1105 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1106 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1107 |
msgid "" |
| 1108 |
"Retrieve the realm or the route, that is to say the B<tclassid> field of the " |
| 1109 |
"destination for the I<skb>\\&. The identifier retrieved is a user-provided " |
| 1110 |
"tag, similar to the one used with the net_cls cgroup (see description for " |
| 1111 |
"B<bpf_get_cgroup_classid>() helper), but here this tag is held by a route (a " |
| 1112 |
"destination entry), not by a task." |
| 1113 |
msgstr "" |
| 1114 |
|
| 1115 |
#. type: Plain text |
| 1116 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1117 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1118 |
msgid "" |
| 1119 |
"Retrieving this identifier works with the clsact TC egress hook (see also " |
| 1120 |
"B<tc-bpf(8)>), or alternatively on conventional classful egress qdiscs, but " |
| 1121 |
"not on TC ingress path. In case of clsact TC egress hook, this has the " |
| 1122 |
"advantage that, internally, the destination entry has not been dropped yet " |
| 1123 |
"in the transmit path. Therefore, the destination entry does not need to be " |
| 1124 |
"artificially held via B<netif_keep_dst>() for a classful qdisc until the " |
| 1125 |
"I<skb> is freed." |
| 1126 |
msgstr "" |
| 1127 |
|
| 1128 |
#. type: Plain text |
| 1129 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1130 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1131 |
msgid "" |
| 1132 |
"This helper is available only if the kernel was compiled with " |
| 1133 |
"B<CONFIG_IP_ROUTE_CLASSID> configuration option." |
| 1134 |
msgstr "" |
| 1135 |
|
| 1136 |
#. type: Plain text |
| 1137 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1138 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1139 |
msgid "" |
| 1140 |
"The realm of the route for the packet associated to I<skb>, or 0 if none was " |
| 1141 |
"found." |
| 1142 |
msgstr "" |
| 1143 |
|
| 1144 |
#. type: TP |
| 1145 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1146 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1147 |
#, no-wrap |
| 1148 |
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<)>" |
| 1149 |
msgstr "" |
| 1150 |
|
| 1151 |
#. type: Plain text |
| 1152 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1153 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1154 |
msgid "" |
| 1155 |
"Write raw I<data> blob into a special BPF perf event held by I<map> of type " |
| 1156 |
"B<BPF_MAP_TYPE_PERF_EVENT_ARRAY>\\&. This perf event must have the following " |
| 1157 |
"attributes: B<PERF_SAMPLE_RAW> as B<sample_type>, B<PERF_TYPE_SOFTWARE> as " |
| 1158 |
"B<type>, and B<PERF_COUNT_SW_BPF_OUTPUT> as B<config>\\&." |
| 1159 |
msgstr "" |
| 1160 |
|
| 1161 |
#. type: Plain text |
| 1162 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1163 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1164 |
msgid "" |
| 1165 |
"The I<flags> are used to indicate the index in I<map> for which the value " |
| 1166 |
"must be put, masked with B<BPF_F_INDEX_MASK>\\&. Alternatively, I<flags> " |
| 1167 |
"can be set to B<BPF_F_CURRENT_CPU> to indicate that the index of the current " |
| 1168 |
"CPU core should be used." |
| 1169 |
msgstr "" |
| 1170 |
|
| 1171 |
#. type: Plain text |
| 1172 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1173 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1174 |
msgid "" |
| 1175 |
"The value to write, of I<size>, is passed through eBPF stack and pointed by " |
| 1176 |
"I<data>\\&." |
| 1177 |
msgstr "" |
| 1178 |
|
| 1179 |
#. type: Plain text |
| 1180 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1181 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1182 |
msgid "The context of the program I<ctx> needs also be passed to the helper." |
| 1183 |
msgstr "" |
| 1184 |
|
| 1185 |
#. type: Plain text |
| 1186 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 1187 |
msgid "" |
| 1188 |
"On user space, a program willing to read the values needs to call " |
| 1189 |
"B<perf_event_open>() on the perf event (either for one or for all CPUs) and " |
| 1190 |
"to store the file descriptor into the I<map>\\&. This must be done before " |
| 1191 |
"the eBPF program can send data into it. An example is available in file " |
| 1192 |
"I<samples/bpf/trace_output_user.c> in the Linux kernel source tree (the eBPF " |
| 1193 |
"program counterpart is in I<samples/bpf/trace_output.bpf.c>)." |
| 1194 |
msgstr "" |
| 1195 |
|
| 1196 |
#. type: Plain text |
| 1197 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1198 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1199 |
msgid "" |
| 1200 |
"B<bpf_perf_event_output>() achieves better performance than " |
| 1201 |
"B<bpf_trace_printk>() for sharing data with user space, and is much better " |
| 1202 |
"suitable for streaming data from eBPF programs." |
| 1203 |
msgstr "" |
| 1204 |
|
| 1205 |
#. type: Plain text |
| 1206 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1207 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1208 |
msgid "" |
| 1209 |
"Note that this helper is not restricted to tracing use cases and can be used " |
| 1210 |
"with programs attached to TC or XDP as well, where it allows for passing " |
| 1211 |
"data to user space listeners. Data can be:" |
| 1212 |
msgstr "" |
| 1213 |
|
| 1214 |
#. type: Plain text |
| 1215 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1216 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1217 |
msgid "Only custom structs," |
| 1218 |
msgstr "" |
| 1219 |
|
| 1220 |
#. type: Plain text |
| 1221 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1222 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1223 |
msgid "Only the packet payload, or" |
| 1224 |
msgstr "" |
| 1225 |
|
| 1226 |
#. type: Plain text |
| 1227 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1228 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1229 |
msgid "A combination of both." |
| 1230 |
msgstr "" |
| 1231 |
|
| 1232 |
#. type: TP |
| 1233 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1234 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1235 |
#, no-wrap |
| 1236 |
msgid "B<long bpf_skb_load_bytes(const void *>I<skb>B<, u32 >I<offset>B<, void *>I<to>B<, u32 >I<len>B<)>" |
| 1237 |
msgstr "" |
| 1238 |
|
| 1239 |
#. type: Plain text |
| 1240 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1241 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1242 |
msgid "" |
| 1243 |
"This helper was provided as an easy way to load data from a packet. It can " |
| 1244 |
"be used to load I<len> bytes from I<offset> from the packet associated to " |
| 1245 |
"I<skb>, into the buffer pointed by I<to>\\&." |
| 1246 |
msgstr "" |
| 1247 |
|
| 1248 |
#. type: Plain text |
| 1249 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1250 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1251 |
msgid "" |
| 1252 |
"Since Linux 4.7, usage of this helper has mostly been replaced by \"direct " |
| 1253 |
"packet access\", enabling packet data to be manipulated with I<skb>B<-" |
| 1254 |
"E<gt>data> and I<skb>B<-E<gt>data_end> pointing respectively to the first " |
| 1255 |
"byte of packet data and to the byte after the last byte of packet data. " |
| 1256 |
"However, it remains useful if one wishes to read large quantities of data at " |
| 1257 |
"once from a packet into the eBPF stack." |
| 1258 |
msgstr "" |
| 1259 |
|
| 1260 |
#. type: TP |
| 1261 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1262 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1263 |
#, no-wrap |
| 1264 |
msgid "B<long bpf_get_stackid(void *>I<ctx>B<, struct bpf_map *>I<map>B<, u64 >I<flags>B<)>" |
| 1265 |
msgstr "" |
| 1266 |
|
| 1267 |
#. type: Plain text |
| 1268 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1269 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1270 |
msgid "" |
| 1271 |
"Walk a user or a kernel stack and return its id. To achieve this, the helper " |
| 1272 |
"needs I<ctx>, which is a pointer to the context on which the tracing program " |
| 1273 |
"is executed, and a pointer to a I<map> of type " |
| 1274 |
"B<BPF_MAP_TYPE_STACK_TRACE>\\&." |
| 1275 |
msgstr "" |
| 1276 |
|
| 1277 |
#. type: Plain text |
| 1278 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1279 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1280 |
msgid "" |
| 1281 |
"The last argument, I<flags>, holds the number of stack frames to skip (from " |
| 1282 |
"0 to 255), masked with B<BPF_F_SKIP_FIELD_MASK>\\&. The next bits can be " |
| 1283 |
"used to set a combination of the following flags:" |
| 1284 |
msgstr "" |
| 1285 |
|
| 1286 |
#. type: TP |
| 1287 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1288 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1289 |
#, no-wrap |
| 1290 |
msgid "B<BPF_F_USER_STACK>" |
| 1291 |
msgstr "" |
| 1292 |
|
| 1293 |
#. type: Plain text |
| 1294 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1295 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1296 |
msgid "Collect a user space stack instead of a kernel stack." |
| 1297 |
msgstr "" |
| 1298 |
|
| 1299 |
#. type: TP |
| 1300 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1301 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1302 |
#, no-wrap |
| 1303 |
msgid "B<BPF_F_FAST_STACK_CMP>" |
| 1304 |
msgstr "" |
| 1305 |
|
| 1306 |
#. type: Plain text |
| 1307 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1308 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1309 |
msgid "Compare stacks by hash only." |
| 1310 |
msgstr "" |
| 1311 |
|
| 1312 |
#. type: TP |
| 1313 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1314 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1315 |
#, no-wrap |
| 1316 |
msgid "B<BPF_F_REUSE_STACKID>" |
| 1317 |
msgstr "" |
| 1318 |
|
| 1319 |
#. type: Plain text |
| 1320 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1321 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1322 |
msgid "" |
| 1323 |
"If two different stacks hash into the same I<stackid>, discard the old one." |
| 1324 |
msgstr "" |
| 1325 |
|
| 1326 |
#. type: Plain text |
| 1327 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1328 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1329 |
msgid "" |
| 1330 |
"The stack id retrieved is a 32 bit long integer handle which can be further " |
| 1331 |
"combined with other data (including other stack ids) and used as a key into " |
| 1332 |
"maps. This can be useful for generating a variety of graphs (such as flame " |
| 1333 |
"graphs or off-cpu graphs)." |
| 1334 |
msgstr "" |
| 1335 |
|
| 1336 |
#. type: Plain text |
| 1337 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1338 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1339 |
msgid "" |
| 1340 |
"For walking a stack, this helper is an improvement over B<bpf_probe_read>(), " |
| 1341 |
"which can be used with unrolled loops but is not efficient and consumes a " |
| 1342 |
"lot of eBPF instructions. Instead, B<bpf_get_stackid>() can collect up to " |
| 1343 |
"B<PERF_MAX_STACK_DEPTH> both kernel and user frames. Note that this limit " |
| 1344 |
"can be controlled with the B<sysctl> program, and that it should be manually " |
| 1345 |
"increased in order to profile long user stacks (such as stacks for Java " |
| 1346 |
"programs). To do so, use:" |
| 1347 |
msgstr "" |
| 1348 |
|
| 1349 |
#. type: Plain text |
| 1350 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1351 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1352 |
#, no-wrap |
| 1353 |
msgid "# sysctl kernel.perf_event_max_stack=E<lt>new valueE<gt>\n" |
| 1354 |
msgstr "" |
| 1355 |
|
| 1356 |
#. type: Plain text |
| 1357 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1358 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1359 |
msgid "" |
| 1360 |
"The positive or null stack id on success, or a negative error in case of " |
| 1361 |
"failure." |
| 1362 |
msgstr "" |
| 1363 |
|
| 1364 |
#. type: TP |
| 1365 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1366 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1367 |
#, no-wrap |
| 1368 |
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<)>" |
| 1369 |
msgstr "" |
| 1370 |
|
| 1371 |
#. type: Plain text |
| 1372 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1373 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1374 |
msgid "" |
| 1375 |
"Compute a checksum difference, from the raw buffer pointed by I<from>, of " |
| 1376 |
"length I<from_size> (that must be a multiple of 4), towards the raw buffer " |
| 1377 |
"pointed by I<to>, of size I<to_size> (same remark). An optional I<seed> can " |
| 1378 |
"be added to the value (this can be cascaded, the seed may come from a " |
| 1379 |
"previous call to the helper)." |
| 1380 |
msgstr "" |
| 1381 |
|
| 1382 |
#. type: Plain text |
| 1383 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1384 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1385 |
msgid "This is flexible enough to be used in several ways:" |
| 1386 |
msgstr "" |
| 1387 |
|
| 1388 |
#. type: Plain text |
| 1389 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1390 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1391 |
msgid "" |
| 1392 |
"With I<from_size> == 0, I<to_size> E<gt> 0 and I<seed> set to checksum, it " |
| 1393 |
"can be used when pushing new data." |
| 1394 |
msgstr "" |
| 1395 |
|
| 1396 |
#. type: Plain text |
| 1397 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1398 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1399 |
msgid "" |
| 1400 |
"With I<from_size> E<gt> 0, I<to_size> == 0 and I<seed> set to checksum, it " |
| 1401 |
"can be used when removing data from a packet." |
| 1402 |
msgstr "" |
| 1403 |
|
| 1404 |
#. type: Plain text |
| 1405 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1406 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1407 |
msgid "" |
| 1408 |
"With I<from_size> E<gt> 0, I<to_size> E<gt> 0 and I<seed> set to 0, it can " |
| 1409 |
"be used to compute a diff. Note that I<from_size> and I<to_size> do not need " |
| 1410 |
"to be equal." |
| 1411 |
msgstr "" |
| 1412 |
|
| 1413 |
#. type: Plain text |
| 1414 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1415 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1416 |
msgid "" |
| 1417 |
"This helper can be used in combination with B<bpf_l3_csum_replace>() and " |
| 1418 |
"B<bpf_l4_csum_replace>(), to which one can feed in the difference computed " |
| 1419 |
"with B<bpf_csum_diff>()." |
| 1420 |
msgstr "" |
| 1421 |
|
| 1422 |
#. type: Plain text |
| 1423 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1424 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1425 |
msgid "The checksum result, or a negative error code in case of failure." |
| 1426 |
msgstr "" |
| 1427 |
|
| 1428 |
#. type: TP |
| 1429 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1430 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1431 |
#, no-wrap |
| 1432 |
msgid "B<long bpf_skb_get_tunnel_opt(struct sk_buff *>I<skb>B<, void *>I<opt>B<, u32 >I<size>B<)>" |
| 1433 |
msgstr "" |
| 1434 |
|
| 1435 |
#. type: Plain text |
| 1436 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1437 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1438 |
msgid "" |
| 1439 |
"Retrieve tunnel options metadata for the packet associated to I<skb>, and " |
| 1440 |
"store the raw tunnel option data to the buffer I<opt> of I<size>\\&." |
| 1441 |
msgstr "" |
| 1442 |
|
| 1443 |
#. type: Plain text |
| 1444 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1445 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1446 |
msgid "" |
| 1447 |
"This helper can be used with encapsulation devices that can operate in " |
| 1448 |
"\"collect metadata\" mode (please refer to the related note in the " |
| 1449 |
"description of B<bpf_skb_get_tunnel_key>() for more details). A particular " |
| 1450 |
"example where this can be used is in combination with the Geneve " |
| 1451 |
"encapsulation protocol, where it allows for pushing (with " |
| 1452 |
"B<bpf_skb_get_tunnel_opt>() helper) and retrieving arbitrary TLVs (Type-" |
| 1453 |
"Length-Value headers) from the eBPF program. This allows for full " |
| 1454 |
"customization of these headers." |
| 1455 |
msgstr "" |
| 1456 |
|
| 1457 |
#. type: Plain text |
| 1458 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1459 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1460 |
msgid "The size of the option data retrieved." |
| 1461 |
msgstr "" |
| 1462 |
|
| 1463 |
#. type: TP |
| 1464 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1465 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1466 |
#, no-wrap |
| 1467 |
msgid "B<long bpf_skb_set_tunnel_opt(struct sk_buff *>I<skb>B<, void *>I<opt>B<, u32 >I<size>B<)>" |
| 1468 |
msgstr "" |
| 1469 |
|
| 1470 |
#. type: Plain text |
| 1471 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1472 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1473 |
msgid "" |
| 1474 |
"Set tunnel options metadata for the packet associated to I<skb> to the " |
| 1475 |
"option data contained in the raw buffer I<opt> of I<size>\\&." |
| 1476 |
msgstr "" |
| 1477 |
|
| 1478 |
#. type: Plain text |
| 1479 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1480 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1481 |
msgid "" |
| 1482 |
"See also the description of the B<bpf_skb_get_tunnel_opt>() helper for " |
| 1483 |
"additional information." |
| 1484 |
msgstr "" |
| 1485 |
|
| 1486 |
#. type: TP |
| 1487 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1488 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1489 |
#, no-wrap |
| 1490 |
msgid "B<long bpf_skb_change_proto(struct sk_buff *>I<skb>B<, __be16 >I<proto>B<, u64 >I<flags>B<)>" |
| 1491 |
msgstr "" |
| 1492 |
|
| 1493 |
#. type: Plain text |
| 1494 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1495 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1496 |
msgid "" |
| 1497 |
"Change the protocol of the I<skb> to I<proto>\\&. Currently supported are " |
| 1498 |
"transition from IPv4 to IPv6, and from IPv6 to IPv4. The helper takes care " |
| 1499 |
"of the groundwork for the transition, including resizing the socket buffer. " |
| 1500 |
"The eBPF program is expected to fill the new headers, if any, via " |
| 1501 |
"B<skb_store_bytes>() and to recompute the checksums with " |
| 1502 |
"B<bpf_l3_csum_replace>() and B<bpf_l4_csum_replace>(). The main case for " |
| 1503 |
"this helper is to perform NAT64 operations out of an eBPF program." |
| 1504 |
msgstr "" |
| 1505 |
|
| 1506 |
#. type: Plain text |
| 1507 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1508 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1509 |
msgid "" |
| 1510 |
"Internally, the GSO type is marked as dodgy so that headers are checked and " |
| 1511 |
"segments are recalculated by the GSO/GRO engine. The size for GSO target is " |
| 1512 |
"adapted as well." |
| 1513 |
msgstr "" |
| 1514 |
|
| 1515 |
#. type: Plain text |
| 1516 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1517 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1518 |
msgid "" |
| 1519 |
"All values for I<flags> are reserved for future usage, and must be left at " |
| 1520 |
"zero." |
| 1521 |
msgstr "" |
| 1522 |
|
| 1523 |
#. type: TP |
| 1524 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1525 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1526 |
#, no-wrap |
| 1527 |
msgid "B<long bpf_skb_change_type(struct sk_buff *>I<skb>B<, u32 >I<type>B<)>" |
| 1528 |
msgstr "" |
| 1529 |
|
| 1530 |
#. type: Plain text |
| 1531 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1532 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1533 |
msgid "" |
| 1534 |
"Change the packet type for the packet associated to I<skb>\\&. This comes " |
| 1535 |
"down to setting I<skb>B<-E<gt>pkt_type> to I<type>, except the eBPF program " |
| 1536 |
"does not have a write access to I<skb>B<-E<gt>pkt_type> beside this helper. " |
| 1537 |
"Using a helper here allows for graceful handling of errors." |
| 1538 |
msgstr "" |
| 1539 |
|
| 1540 |
#. type: Plain text |
| 1541 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1542 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1543 |
msgid "" |
| 1544 |
"The major use case is to change incoming I<skb*s to **PACKET_HOST*> in a " |
| 1545 |
"programmatic way instead of having to recirculate via B<redirect>(..., " |
| 1546 |
"B<BPF_F_INGRESS>), for example." |
| 1547 |
msgstr "" |
| 1548 |
|
| 1549 |
#. type: Plain text |
| 1550 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1551 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1552 |
msgid "Note that I<type> only allows certain values. At this time, they are:" |
| 1553 |
msgstr "" |
| 1554 |
|
| 1555 |
#. type: TP |
| 1556 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1557 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1558 |
#, no-wrap |
| 1559 |
msgid "B<PACKET_HOST>" |
| 1560 |
msgstr "" |
| 1561 |
|
| 1562 |
#. type: Plain text |
| 1563 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1564 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1565 |
msgid "Packet is for us." |
| 1566 |
msgstr "" |
| 1567 |
|
| 1568 |
#. type: TP |
| 1569 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1570 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1571 |
#, no-wrap |
| 1572 |
msgid "B<PACKET_BROADCAST>" |
| 1573 |
msgstr "" |
| 1574 |
|
| 1575 |
#. type: Plain text |
| 1576 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1577 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1578 |
msgid "Send packet to all." |
| 1579 |
msgstr "" |
| 1580 |
|
| 1581 |
#. type: TP |
| 1582 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1583 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1584 |
#, no-wrap |
| 1585 |
msgid "B<PACKET_MULTICAST>" |
| 1586 |
msgstr "" |
| 1587 |
|
| 1588 |
#. type: Plain text |
| 1589 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1590 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1591 |
msgid "Send packet to group." |
| 1592 |
msgstr "" |
| 1593 |
|
| 1594 |
#. type: TP |
| 1595 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1596 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1597 |
#, no-wrap |
| 1598 |
msgid "B<PACKET_OTHERHOST>" |
| 1599 |
msgstr "" |
| 1600 |
|
| 1601 |
#. type: Plain text |
| 1602 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1603 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1604 |
msgid "Send packet to someone else." |
| 1605 |
msgstr "" |
| 1606 |
|
| 1607 |
#. type: TP |
| 1608 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1609 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1610 |
#, no-wrap |
| 1611 |
msgid "B<long bpf_skb_under_cgroup(struct sk_buff *>I<skb>B<, struct bpf_map *>I<map>B<, u32 >I<index>B<)>" |
| 1612 |
msgstr "" |
| 1613 |
|
| 1614 |
#. type: Plain text |
| 1615 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1616 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1617 |
msgid "" |
| 1618 |
"Check whether I<skb> is a descendant of the cgroup2 held by I<map> of type " |
| 1619 |
"B<BPF_MAP_TYPE_CGROUP_ARRAY>, at I<index>\\&." |
| 1620 |
msgstr "" |
| 1621 |
|
| 1622 |
#. type: Plain text |
| 1623 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1624 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1625 |
msgid "The return value depends on the result of the test, and can be:" |
| 1626 |
msgstr "" |
| 1627 |
|
| 1628 |
#. type: Plain text |
| 1629 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1630 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1631 |
msgid "0, if the I<skb> failed the cgroup2 descendant test." |
| 1632 |
msgstr "" |
| 1633 |
|
| 1634 |
#. type: Plain text |
| 1635 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1636 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1637 |
msgid "1, if the I<skb> succeeded the cgroup2 descendant test." |
| 1638 |
msgstr "" |
| 1639 |
|
| 1640 |
#. type: Plain text |
| 1641 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1642 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1643 |
msgid "A negative error code, if an error occurred." |
| 1644 |
msgstr "" |
| 1645 |
|
| 1646 |
#. type: TP |
| 1647 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1648 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1649 |
#, no-wrap |
| 1650 |
msgid "B<u32 bpf_get_hash_recalc(struct sk_buff *>I<skb>B<)>" |
| 1651 |
msgstr "" |
| 1652 |
|
| 1653 |
#. type: Plain text |
| 1654 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1655 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1656 |
msgid "" |
| 1657 |
"Retrieve the hash of the packet, I<skb>B<-E<gt>hash>\\&. If it is not set, " |
| 1658 |
"in particular if the hash was cleared due to mangling, recompute this hash. " |
| 1659 |
"Later accesses to the hash can be done directly with I<skb>B<-E<gt>hash>\\&." |
| 1660 |
msgstr "" |
| 1661 |
|
| 1662 |
#. type: Plain text |
| 1663 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1664 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1665 |
msgid "" |
| 1666 |
"Calling B<bpf_set_hash_invalid>(), changing a packet prototype with " |
| 1667 |
"B<bpf_skb_change_proto>(), or calling B<bpf_skb_store_bytes>() with the " |
| 1668 |
"B<BPF_F_INVALIDATE_HASH> are actions susceptible to clear the hash and to " |
| 1669 |
"trigger a new computation for the next call to B<bpf_get_hash_recalc>()." |
| 1670 |
msgstr "" |
| 1671 |
|
| 1672 |
#. type: Plain text |
| 1673 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1674 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1675 |
msgid "The 32-bit hash." |
| 1676 |
msgstr "" |
| 1677 |
|
| 1678 |
#. type: TP |
| 1679 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1680 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1681 |
#, no-wrap |
| 1682 |
msgid "B<u64 bpf_get_current_task(void)>" |
| 1683 |
msgstr "" |
| 1684 |
|
| 1685 |
#. type: Plain text |
| 1686 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1687 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1688 |
msgid "Get the current task." |
| 1689 |
msgstr "" |
| 1690 |
|
| 1691 |
#. type: Plain text |
| 1692 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1693 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1694 |
msgid "A pointer to the current task struct." |
| 1695 |
msgstr "" |
| 1696 |
|
| 1697 |
#. type: TP |
| 1698 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1699 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1700 |
#, no-wrap |
| 1701 |
msgid "B<long bpf_probe_write_user(void *>I<dst>B<, const void *>I<src>B<, u32 >I<len>B<)>" |
| 1702 |
msgstr "" |
| 1703 |
|
| 1704 |
#. type: Plain text |
| 1705 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1706 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1707 |
msgid "" |
| 1708 |
"Attempt in a safe way to write I<len> bytes from the buffer I<src> to I<dst> " |
| 1709 |
"in memory. It only works for threads that are in user context, and I<dst> " |
| 1710 |
"must be a valid user space address." |
| 1711 |
msgstr "" |
| 1712 |
|
| 1713 |
#. type: Plain text |
| 1714 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1715 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1716 |
msgid "" |
| 1717 |
"This helper should not be used to implement any kind of security mechanism " |
| 1718 |
"because of TOC-TOU attacks, but rather to debug, divert, and manipulate " |
| 1719 |
"execution of semi-cooperative processes." |
| 1720 |
msgstr "" |
| 1721 |
|
| 1722 |
#. type: Plain text |
| 1723 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1724 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1725 |
msgid "" |
| 1726 |
"Keep in mind that this feature is meant for experiments, and it has a risk " |
| 1727 |
"of crashing the system and running programs. Therefore, when an eBPF " |
| 1728 |
"program using this helper is attached, a warning including PID and process " |
| 1729 |
"name is printed to kernel logs." |
| 1730 |
msgstr "" |
| 1731 |
|
| 1732 |
#. type: TP |
| 1733 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1734 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1735 |
#, no-wrap |
| 1736 |
msgid "B<long bpf_current_task_under_cgroup(struct bpf_map *>I<map>B<, u32 >I<index>B<)>" |
| 1737 |
msgstr "" |
| 1738 |
|
| 1739 |
#. type: Plain text |
| 1740 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1741 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1742 |
msgid "" |
| 1743 |
"Check whether the probe is being run is the context of a given subset of the " |
| 1744 |
"cgroup2 hierarchy. The cgroup2 to test is held by I<map> of type " |
| 1745 |
"B<BPF_MAP_TYPE_CGROUP_ARRAY>, at I<index>\\&." |
| 1746 |
msgstr "" |
| 1747 |
|
| 1748 |
#. type: Plain text |
| 1749 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1750 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1751 |
msgid "1, if current task belongs to the cgroup2." |
| 1752 |
msgstr "" |
| 1753 |
|
| 1754 |
#. type: Plain text |
| 1755 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1756 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1757 |
msgid "0, if current task does not belong to the cgroup2." |
| 1758 |
msgstr "" |
| 1759 |
|
| 1760 |
#. type: TP |
| 1761 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1762 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1763 |
#, no-wrap |
| 1764 |
msgid "B<long bpf_skb_change_tail(struct sk_buff *>I<skb>B<, u32 >I<len>B<, u64 >I<flags>B<)>" |
| 1765 |
msgstr "" |
| 1766 |
|
| 1767 |
#. type: Plain text |
| 1768 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1769 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1770 |
msgid "" |
| 1771 |
"Resize (trim or grow) the packet associated to I<skb> to the new I<len>\\&. " |
| 1772 |
"The I<flags> are reserved for future usage, and must be left at zero." |
| 1773 |
msgstr "" |
| 1774 |
|
| 1775 |
#. type: Plain text |
| 1776 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1777 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1778 |
msgid "" |
| 1779 |
"The basic idea is that the helper performs the needed work to change the " |
| 1780 |
"size of the packet, then the eBPF program rewrites the rest via helpers like " |
| 1781 |
"B<bpf_skb_store_bytes>(), B<bpf_l3_csum_replace>(), " |
| 1782 |
"B<bpf_l3_csum_replace>() and others. This helper is a slow path utility " |
| 1783 |
"intended for replies with control messages. And because it is targeted for " |
| 1784 |
"slow path, the helper itself can afford to be slow: it implicitly " |
| 1785 |
"linearizes, unclones and drops offloads from the I<skb>\\&." |
| 1786 |
msgstr "" |
| 1787 |
|
| 1788 |
#. type: TP |
| 1789 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1790 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1791 |
#, no-wrap |
| 1792 |
msgid "B<long bpf_skb_pull_data(struct sk_buff *>I<skb>B<, u32 >I<len>B<)>" |
| 1793 |
msgstr "" |
| 1794 |
|
| 1795 |
#. type: Plain text |
| 1796 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1797 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1798 |
msgid "" |
| 1799 |
"Pull in non-linear data in case the I<skb> is non-linear and not all of " |
| 1800 |
"I<len> are part of the linear section. Make I<len> bytes from I<skb> " |
| 1801 |
"readable and writable. If a zero value is passed for I<len>, then all bytes " |
| 1802 |
"in the linear part of I<skb> will be made readable and writable." |
| 1803 |
msgstr "" |
| 1804 |
|
| 1805 |
#. type: Plain text |
| 1806 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1807 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1808 |
msgid "" |
| 1809 |
"This helper is only needed for reading and writing with direct packet access." |
| 1810 |
msgstr "" |
| 1811 |
|
| 1812 |
#. type: Plain text |
| 1813 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1814 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1815 |
msgid "" |
| 1816 |
"For direct packet access, testing that offsets to access are within packet " |
| 1817 |
"boundaries (test on I<skb>B<-E<gt>data_end>) is susceptible to fail if " |
| 1818 |
"offsets are invalid, or if the requested data is in non-linear parts of the " |
| 1819 |
"I<skb>\\&. On failure the program can just bail out, or in the case of a non-" |
| 1820 |
"linear buffer, use a helper to make the data available. The " |
| 1821 |
"B<bpf_skb_load_bytes>() helper is a first solution to access the data. " |
| 1822 |
"Another one consists in using B<bpf_skb_pull_data> to pull in once the non-" |
| 1823 |
"linear parts, then retesting and eventually access the data." |
| 1824 |
msgstr "" |
| 1825 |
|
| 1826 |
#. type: Plain text |
| 1827 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1828 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1829 |
msgid "" |
| 1830 |
"At the same time, this also makes sure the I<skb> is uncloned, which is a " |
| 1831 |
"necessary condition for direct write. As this needs to be an invariant for " |
| 1832 |
"the write part only, the verifier detects writes and adds a prologue that is " |
| 1833 |
"calling B<bpf_skb_pull_data()> to effectively unclone the I<skb> from the " |
| 1834 |
"very beginning in case it is indeed cloned." |
| 1835 |
msgstr "" |
| 1836 |
|
| 1837 |
#. type: TP |
| 1838 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1839 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1840 |
#, no-wrap |
| 1841 |
msgid "B<s64 bpf_csum_update(struct sk_buff *>I<skb>B<, __wsum >I<csum>B<)>" |
| 1842 |
msgstr "" |
| 1843 |
|
| 1844 |
#. type: Plain text |
| 1845 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1846 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1847 |
msgid "" |
| 1848 |
"Add the checksum I<csum> into I<skb>B<-E<gt>csum> in case the driver has " |
| 1849 |
"supplied a checksum for the entire packet into that field. Return an error " |
| 1850 |
"otherwise. This helper is intended to be used in combination with " |
| 1851 |
"B<bpf_csum_diff>(), in particular when the checksum needs to be updated " |
| 1852 |
"after data has been written into the packet through direct packet access." |
| 1853 |
msgstr "" |
| 1854 |
|
| 1855 |
#. type: Plain text |
| 1856 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1857 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1858 |
msgid "The checksum on success, or a negative error code in case of failure." |
| 1859 |
msgstr "" |
| 1860 |
|
| 1861 |
#. type: TP |
| 1862 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1863 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1864 |
#, no-wrap |
| 1865 |
msgid "B<void bpf_set_hash_invalid(struct sk_buff *>I<skb>B<)>" |
| 1866 |
msgstr "" |
| 1867 |
|
| 1868 |
#. type: Plain text |
| 1869 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1870 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1871 |
msgid "" |
| 1872 |
"Invalidate the current I<skb>B<-E<gt>hash>\\&. It can be used after mangling " |
| 1873 |
"on headers through direct packet access, in order to indicate that the hash " |
| 1874 |
"is outdated and to trigger a recalculation the next time the kernel tries to " |
| 1875 |
"access this hash or when the B<bpf_get_hash_recalc>() helper is called." |
| 1876 |
msgstr "" |
| 1877 |
|
| 1878 |
#. type: Plain text |
| 1879 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1880 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1881 |
msgid "void." |
| 1882 |
msgstr "" |
| 1883 |
|
| 1884 |
#. type: TP |
| 1885 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1886 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1887 |
#, no-wrap |
| 1888 |
msgid "B<long bpf_get_numa_node_id(void)>" |
| 1889 |
msgstr "" |
| 1890 |
|
| 1891 |
#. type: Plain text |
| 1892 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1893 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1894 |
msgid "" |
| 1895 |
"Return the id of the current NUMA node. The primary use case for this helper " |
| 1896 |
"is the selection of sockets for the local NUMA node, when the program is " |
| 1897 |
"attached to sockets using the B<SO_ATTACH_REUSEPORT_EBPF> option (see also " |
| 1898 |
"B<socket(7)>), but the helper is also available to other eBPF program types, " |
| 1899 |
"similarly to B<bpf_get_smp_processor_id>()." |
| 1900 |
msgstr "" |
| 1901 |
|
| 1902 |
#. type: Plain text |
| 1903 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1904 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1905 |
msgid "The id of current NUMA node." |
| 1906 |
msgstr "" |
| 1907 |
|
| 1908 |
#. type: TP |
| 1909 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1910 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1911 |
#, no-wrap |
| 1912 |
msgid "B<long bpf_skb_change_head(struct sk_buff *>I<skb>B<, u32 >I<len>B<, u64 >I<flags>B<)>" |
| 1913 |
msgstr "" |
| 1914 |
|
| 1915 |
#. type: Plain text |
| 1916 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1917 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1918 |
msgid "" |
| 1919 |
"Grows headroom of packet associated to I<skb> and adjusts the offset of the " |
| 1920 |
"MAC header accordingly, adding I<len> bytes of space. It automatically " |
| 1921 |
"extends and reallocates memory as required." |
| 1922 |
msgstr "" |
| 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 |
"This helper can be used on a layer 3 I<skb> to push a MAC header for " |
| 1929 |
"redirection into a layer 2 device." |
| 1930 |
msgstr "" |
| 1931 |
|
| 1932 |
#. type: TP |
| 1933 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1934 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1935 |
#, no-wrap |
| 1936 |
msgid "B<long bpf_xdp_adjust_head(struct xdp_buff *>I<xdp_md>B<, int >I<delta>B<)>" |
| 1937 |
msgstr "" |
| 1938 |
|
| 1939 |
#. type: Plain text |
| 1940 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1941 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1942 |
msgid "" |
| 1943 |
"Adjust (move) I<xdp_md>B<-E<gt>data> by I<delta> bytes. Note that it is " |
| 1944 |
"possible to use a negative value for I<delta>\\&. This helper can be used to " |
| 1945 |
"prepare the packet for pushing or popping headers." |
| 1946 |
msgstr "" |
| 1947 |
|
| 1948 |
#. type: TP |
| 1949 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1950 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1951 |
#, no-wrap |
| 1952 |
msgid "B<long bpf_probe_read_str(void *>I<dst>B<, u32 >I<size>B<, const void *>I<unsafe_ptr>B<)>" |
| 1953 |
msgstr "" |
| 1954 |
|
| 1955 |
#. type: Plain text |
| 1956 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1957 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1958 |
msgid "" |
| 1959 |
"Copy a NUL terminated string from an unsafe kernel address I<unsafe_ptr> to " |
| 1960 |
"I<dst>\\&. See B<bpf_probe_read_kernel_str>() for more details." |
| 1961 |
msgstr "" |
| 1962 |
|
| 1963 |
#. type: Plain text |
| 1964 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1965 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1966 |
msgid "" |
| 1967 |
"Generally, use B<bpf_probe_read_user_str>() or " |
| 1968 |
"B<bpf_probe_read_kernel_str>() instead." |
| 1969 |
msgstr "" |
| 1970 |
|
| 1971 |
#. type: Plain text |
| 1972 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1973 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1974 |
msgid "" |
| 1975 |
"On success, the strictly positive length of the string, including the " |
| 1976 |
"trailing NUL character. On error, a negative value." |
| 1977 |
msgstr "" |
| 1978 |
|
| 1979 |
#. type: TP |
| 1980 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1981 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1982 |
#, no-wrap |
| 1983 |
msgid "B<u64 bpf_get_socket_cookie(struct sk_buff *>I<skb>B<)>" |
| 1984 |
msgstr "" |
| 1985 |
|
| 1986 |
#. type: Plain text |
| 1987 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1988 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1989 |
msgid "" |
| 1990 |
"If the B<struct sk_buff> pointed by I<skb> has a known socket, retrieve the " |
| 1991 |
"cookie (generated by the kernel) of this socket. If no cookie has been set " |
| 1992 |
"yet, generate a new cookie. Once generated, the socket cookie remains stable " |
| 1993 |
"for the life of the socket. This helper can be useful for monitoring per " |
| 1994 |
"socket networking traffic statistics as it provides a global socket " |
| 1995 |
"identifier that can be assumed unique." |
| 1996 |
msgstr "" |
| 1997 |
|
| 1998 |
#. type: Plain text |
| 1999 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2000 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2001 |
msgid "" |
| 2002 |
"A 8-byte long unique number on success, or 0 if the socket field is missing " |
| 2003 |
"inside I<skb>\\&." |
| 2004 |
msgstr "" |
| 2005 |
|
| 2006 |
#. type: TP |
| 2007 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2008 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2009 |
#, no-wrap |
| 2010 |
msgid "B<u64 bpf_get_socket_cookie(struct bpf_sock_addr *>I<ctx>B<)>" |
| 2011 |
msgstr "" |
| 2012 |
|
| 2013 |
#. type: Plain text |
| 2014 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2015 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2016 |
msgid "" |
| 2017 |
"Equivalent to bpf_get_socket_cookie() helper that accepts I<skb>, but gets " |
| 2018 |
"socket from B<struct bpf_sock_addr> context." |
| 2019 |
msgstr "" |
| 2020 |
|
| 2021 |
#. type: Plain text |
| 2022 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2023 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2024 |
msgid "A 8-byte long unique number." |
| 2025 |
msgstr "" |
| 2026 |
|
| 2027 |
#. type: TP |
| 2028 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2029 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2030 |
#, no-wrap |
| 2031 |
msgid "B<u64 bpf_get_socket_cookie(struct bpf_sock_ops *>I<ctx>B<)>" |
| 2032 |
msgstr "" |
| 2033 |
|
| 2034 |
#. type: Plain text |
| 2035 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2036 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2037 |
msgid "" |
| 2038 |
"Equivalent to B<bpf_get_socket_cookie>() helper that accepts I<skb>, but " |
| 2039 |
"gets socket from B<struct bpf_sock_ops> context." |
| 2040 |
msgstr "" |
| 2041 |
|
| 2042 |
#. type: TP |
| 2043 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2044 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2045 |
#, no-wrap |
| 2046 |
msgid "B<u64 bpf_get_socket_cookie(struct sock *>I<sk>B<)>" |
| 2047 |
msgstr "" |
| 2048 |
|
| 2049 |
#. type: Plain text |
| 2050 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2051 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2052 |
msgid "" |
| 2053 |
"Equivalent to B<bpf_get_socket_cookie>() helper that accepts I<sk>, but gets " |
| 2054 |
"socket from a BTF B<struct sock>\\&. This helper also works for sleepable " |
| 2055 |
"programs." |
| 2056 |
msgstr "" |
| 2057 |
|
| 2058 |
#. type: Plain text |
| 2059 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2060 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2061 |
msgid "A 8-byte long unique number or 0 if I<sk> is NULL." |
| 2062 |
msgstr "" |
| 2063 |
|
| 2064 |
#. type: TP |
| 2065 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2066 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2067 |
#, no-wrap |
| 2068 |
msgid "B<u32 bpf_get_socket_uid(struct sk_buff *>I<skb>B<)>" |
| 2069 |
msgstr "" |
| 2070 |
|
| 2071 |
#. type: Plain text |
| 2072 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2073 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2074 |
msgid "Get the owner UID of the socked associated to I<skb>\\&." |
| 2075 |
msgstr "" |
| 2076 |
|
| 2077 |
#. type: Plain text |
| 2078 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2079 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2080 |
msgid "" |
| 2081 |
"The owner UID of the socket associated to I<skb>\\&. If the socket is " |
| 2082 |
"B<NULL>, or if it is not a full socket (i.e. if it is a time-wait or a " |
| 2083 |
"request socket instead), B<overflowuid> value is returned (note that " |
| 2084 |
"B<overflowuid> might also be the actual UID value for the socket)." |
| 2085 |
msgstr "" |
| 2086 |
|
| 2087 |
#. type: TP |
| 2088 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2089 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2090 |
#, no-wrap |
| 2091 |
msgid "B<long bpf_set_hash(struct sk_buff *>I<skb>B<, u32 >I<hash>B<)>" |
| 2092 |
msgstr "" |
| 2093 |
|
| 2094 |
#. type: Plain text |
| 2095 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2096 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2097 |
msgid "" |
| 2098 |
"Set the full hash for I<skb> (set the field I<skb>B<-E<gt>hash>) to value " |
| 2099 |
"I<hash>\\&." |
| 2100 |
msgstr "" |
| 2101 |
|
| 2102 |
#. type: Plain text |
| 2103 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2104 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2105 |
msgid "0" |
| 2106 |
msgstr "" |
| 2107 |
|
| 2108 |
#. type: TP |
| 2109 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2110 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2111 |
#, no-wrap |
| 2112 |
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<)>" |
| 2113 |
msgstr "" |
| 2114 |
|
| 2115 |
#. type: Plain text |
| 2116 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2117 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2118 |
msgid "" |
| 2119 |
"Emulate a call to B<setsockopt()> on the socket associated to I<bpf_socket>, " |
| 2120 |
"which must be a full socket. The I<level> at which the option resides and " |
| 2121 |
"the name I<optname> of the option must be specified, see B<setsockopt(2)> " |
| 2122 |
"for more information. The option value of length I<optlen> is pointed by " |
| 2123 |
"I<optval>\\&." |
| 2124 |
msgstr "" |
| 2125 |
|
| 2126 |
#. type: Plain text |
| 2127 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2128 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2129 |
msgid "I<bpf_socket> should be one of the following:" |
| 2130 |
msgstr "" |
| 2131 |
|
| 2132 |
#. type: Plain text |
| 2133 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2134 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2135 |
msgid "B<struct bpf_sock_ops> for B<BPF_PROG_TYPE_SOCK_OPS>\\&." |
| 2136 |
msgstr "" |
| 2137 |
|
| 2138 |
#. type: Plain text |
| 2139 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2140 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2141 |
msgid "" |
| 2142 |
"B<struct bpf_sock_addr> for B<BPF_CGROUP_INET4_CONNECT>, " |
| 2143 |
"B<BPF_CGROUP_INET6_CONNECT> and B<BPF_CGROUP_UNIX_CONNECT>\\&." |
| 2144 |
msgstr "" |
| 2145 |
|
| 2146 |
#. type: Plain text |
| 2147 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2148 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2149 |
msgid "" |
| 2150 |
"This helper actually implements a subset of B<setsockopt()>\\&. It supports " |
| 2151 |
"the following I<level>s:" |
| 2152 |
msgstr "" |
| 2153 |
|
| 2154 |
#. type: Plain text |
| 2155 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2156 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2157 |
msgid "" |
| 2158 |
"B<SOL_SOCKET>, which supports the following I<optname>s: B<SO_RCVBUF>, " |
| 2159 |
"B<SO_SNDBUF>, B<SO_MAX_PACING_RATE>, B<SO_PRIORITY>, B<SO_RCVLOWAT>, " |
| 2160 |
"B<SO_MARK>, B<SO_BINDTODEVICE>, B<SO_KEEPALIVE>, B<SO_REUSEADDR>, " |
| 2161 |
"B<SO_REUSEPORT>, B<SO_BINDTOIFINDEX>, B<SO_TXREHASH>\\&." |
| 2162 |
msgstr "" |
| 2163 |
|
| 2164 |
#. type: Plain text |
| 2165 |
#: archlinux debian-unstable fedora-44 fedora-rawhide opensuse-leap-16-1 |
| 2166 |
#: opensuse-tumbleweed |
| 2167 |
msgid "" |
| 2168 |
"B<IPPROTO_TCP>, which supports the following I<optname>s: B<TCP_CONGESTION>, " |
| 2169 |
"B<TCP_BPF_IW>, B<TCP_BPF_SNDCWND_CLAMP>, B<TCP_SAVE_SYN>, B<TCP_KEEPIDLE>, " |
| 2170 |
"B<TCP_KEEPINTVL>, B<TCP_KEEPCNT>, B<TCP_SYNCNT>, B<TCP_USER_TIMEOUT>, " |
| 2171 |
"B<TCP_NOTSENT_LOWAT>, B<TCP_NODELAY>, B<TCP_MAXSEG>, B<TCP_WINDOW_CLAMP>, " |
| 2172 |
"B<TCP_THIN_LINEAR_TIMEOUTS>, B<TCP_BPF_DELACK_MAX>, B<TCP_BPF_RTO_MIN>, " |
| 2173 |
"B<TCP_BPF_SOCK_OPS_CB_FLAGS>\\&." |
| 2174 |
msgstr "" |
| 2175 |
|
| 2176 |
#. type: Plain text |
| 2177 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2178 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2179 |
msgid "B<IPPROTO_IP>, which supports I<optname> B<IP_TOS>\\&." |
| 2180 |
msgstr "" |
| 2181 |
|
| 2182 |
#. type: Plain text |
| 2183 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2184 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2185 |
msgid "" |
| 2186 |
"B<IPPROTO_IPV6>, which supports the following I<optname>s: B<IPV6_TCLASS>, " |
| 2187 |
"B<IPV6_AUTOFLOWLABEL>\\&." |
| 2188 |
msgstr "" |
| 2189 |
|
| 2190 |
#. type: TP |
| 2191 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2192 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2193 |
#, no-wrap |
| 2194 |
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<)>" |
| 2195 |
msgstr "" |
| 2196 |
|
| 2197 |
#. type: Plain text |
| 2198 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2199 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2200 |
msgid "" |
| 2201 |
"Grow or shrink the room for data in the packet associated to I<skb> by " |
| 2202 |
"I<len_diff>, and according to the selected I<mode>\\&." |
| 2203 |
msgstr "" |
| 2204 |
|
| 2205 |
#. type: Plain text |
| 2206 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2207 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2208 |
msgid "" |
| 2209 |
"By default, the helper will reset any offloaded checksum indicator of the " |
| 2210 |
"skb to CHECKSUM_NONE. This can be avoided by the following flag:" |
| 2211 |
msgstr "" |
| 2212 |
|
| 2213 |
#. type: Plain text |
| 2214 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2215 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2216 |
msgid "" |
| 2217 |
"B<BPF_F_ADJ_ROOM_NO_CSUM_RESET>: Do not reset offloaded checksum data of the " |
| 2218 |
"skb to CHECKSUM_NONE." |
| 2219 |
msgstr "" |
| 2220 |
|
| 2221 |
#. type: Plain text |
| 2222 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2223 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2224 |
msgid "There are two supported modes at this time:" |
| 2225 |
msgstr "" |
| 2226 |
|
| 2227 |
#. type: Plain text |
| 2228 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2229 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2230 |
msgid "" |
| 2231 |
"B<BPF_ADJ_ROOM_MAC>: Adjust room at the mac layer (room space is added or " |
| 2232 |
"removed between the layer 2 and layer 3 headers)." |
| 2233 |
msgstr "" |
| 2234 |
|
| 2235 |
#. type: Plain text |
| 2236 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2237 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2238 |
msgid "" |
| 2239 |
"B<BPF_ADJ_ROOM_NET>: Adjust room at the network layer (room space is added " |
| 2240 |
"or removed between the layer 3 and layer 4 headers)." |
| 2241 |
msgstr "" |
| 2242 |
|
| 2243 |
#. type: Plain text |
| 2244 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2245 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2246 |
msgid "The following flags are supported at this time:" |
| 2247 |
msgstr "" |
| 2248 |
|
| 2249 |
#. type: Plain text |
| 2250 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2251 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2252 |
msgid "" |
| 2253 |
"B<BPF_F_ADJ_ROOM_FIXED_GSO>: Do not adjust gso_size. Adjusting mss in this " |
| 2254 |
"way is not allowed for datagrams." |
| 2255 |
msgstr "" |
| 2256 |
|
| 2257 |
#. type: Plain text |
| 2258 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2259 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2260 |
msgid "" |
| 2261 |
"B<BPF_F_ADJ_ROOM_ENCAP_L3_IPV4>, B<BPF_F_ADJ_ROOM_ENCAP_L3_IPV6>: Any new " |
| 2262 |
"space is reserved to hold a tunnel header. Configure skb offsets and other " |
| 2263 |
"fields accordingly." |
| 2264 |
msgstr "" |
| 2265 |
|
| 2266 |
#. type: Plain text |
| 2267 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2268 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2269 |
msgid "" |
| 2270 |
"B<BPF_F_ADJ_ROOM_ENCAP_L4_GRE>, B<BPF_F_ADJ_ROOM_ENCAP_L4_UDP>: Use with " |
| 2271 |
"ENCAP_L3 flags to further specify the tunnel type." |
| 2272 |
msgstr "" |
| 2273 |
|
| 2274 |
#. type: Plain text |
| 2275 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2276 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2277 |
msgid "" |
| 2278 |
"B<BPF_F_ADJ_ROOM_ENCAP_L2>(I<len>): Use with ENCAP_L3/L4 flags to further " |
| 2279 |
"specify the tunnel type; I<len> is the length of the inner MAC header." |
| 2280 |
msgstr "" |
| 2281 |
|
| 2282 |
#. type: Plain text |
| 2283 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2284 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2285 |
msgid "" |
| 2286 |
"B<BPF_F_ADJ_ROOM_ENCAP_L2_ETH>: Use with BPF_F_ADJ_ROOM_ENCAP_L2 flag to " |
| 2287 |
"further specify the L2 type as Ethernet." |
| 2288 |
msgstr "" |
| 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 |
"B<BPF_F_ADJ_ROOM_DECAP_L3_IPV4>, B<BPF_F_ADJ_ROOM_DECAP_L3_IPV6>: Indicate " |
| 2295 |
"the new IP header version after decapsulating the outer IP header. Used when " |
| 2296 |
"the inner and outer IP versions are different." |
| 2297 |
msgstr "" |
| 2298 |
|
| 2299 |
#. type: TP |
| 2300 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2301 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2302 |
#, no-wrap |
| 2303 |
msgid "B<long bpf_redirect_map(struct bpf_map *>I<map>B<, u64 >I<key>B<, u64 >I<flags>B<)>" |
| 2304 |
msgstr "" |
| 2305 |
|
| 2306 |
#. type: Plain text |
| 2307 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2308 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2309 |
msgid "" |
| 2310 |
"Redirect the packet to the endpoint referenced by I<map> at index I<key>\\&. " |
| 2311 |
"Depending on its type, this I<map> can contain references to net devices " |
| 2312 |
"(for forwarding packets through other ports), or to CPUs (for redirecting " |
| 2313 |
"XDP frames to another CPU; but this is only implemented for native XDP (with " |
| 2314 |
"driver support) as of this writing)." |
| 2315 |
msgstr "" |
| 2316 |
|
| 2317 |
#. type: Plain text |
| 2318 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2319 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2320 |
msgid "" |
| 2321 |
"The lower two bits of I<flags> are used as the return code if the map lookup " |
| 2322 |
"fails. This is so that the return value can be one of the XDP program return " |
| 2323 |
"codes up to B<XDP_TX>, as chosen by the caller. The higher bits of I<flags> " |
| 2324 |
"can be set to BPF_F_BROADCAST or BPF_F_EXCLUDE_INGRESS as defined below." |
| 2325 |
msgstr "" |
| 2326 |
|
| 2327 |
#. type: Plain text |
| 2328 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2329 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2330 |
msgid "" |
| 2331 |
"With BPF_F_BROADCAST the packet will be broadcasted to all the interfaces in " |
| 2332 |
"the map, with BPF_F_EXCLUDE_INGRESS the ingress interface will be excluded " |
| 2333 |
"when do broadcasting." |
| 2334 |
msgstr "" |
| 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 |
"See also B<bpf_redirect>(), which only supports redirecting to an ifindex, " |
| 2341 |
"but doesn\\(aqt require a map to do so." |
| 2342 |
msgstr "" |
| 2343 |
|
| 2344 |
#. type: Plain text |
| 2345 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2346 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2347 |
msgid "" |
| 2348 |
"B<XDP_REDIRECT> on success, or the value of the two lower bits of the " |
| 2349 |
"I<flags> argument on error." |
| 2350 |
msgstr "" |
| 2351 |
|
| 2352 |
#. type: TP |
| 2353 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2354 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2355 |
#, no-wrap |
| 2356 |
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<)>" |
| 2357 |
msgstr "" |
| 2358 |
|
| 2359 |
#. type: Plain text |
| 2360 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2361 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2362 |
msgid "" |
| 2363 |
"Redirect the packet to the socket referenced by I<map> (of type " |
| 2364 |
"B<BPF_MAP_TYPE_SOCKMAP>) at index I<key>\\&. Both ingress and egress " |
| 2365 |
"interfaces can be used for redirection. The B<BPF_F_INGRESS> value in " |
| 2366 |
"I<flags> is used to make the distinction (ingress path is selected if the " |
| 2367 |
"flag is present, egress path otherwise). This is the only flag supported for " |
| 2368 |
"now." |
| 2369 |
msgstr "" |
| 2370 |
|
| 2371 |
#. type: Plain text |
| 2372 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2373 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2374 |
msgid "B<SK_PASS> on success, or B<SK_DROP> on error." |
| 2375 |
msgstr "" |
| 2376 |
|
| 2377 |
#. type: TP |
| 2378 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2379 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2380 |
#, no-wrap |
| 2381 |
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<)>" |
| 2382 |
msgstr "" |
| 2383 |
|
| 2384 |
#. type: Plain text |
| 2385 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2386 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2387 |
msgid "" |
| 2388 |
"Add an entry to, or update a I<map> referencing sockets. The I<skops> is " |
| 2389 |
"used as a new value for the entry associated to I<key>\\&. I<flags> is one " |
| 2390 |
"of:" |
| 2391 |
msgstr "" |
| 2392 |
|
| 2393 |
#. type: Plain text |
| 2394 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2395 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2396 |
msgid "" |
| 2397 |
"If the I<map> has eBPF programs (parser and verdict), those will be " |
| 2398 |
"inherited by the socket being added. If the socket is already attached to " |
| 2399 |
"eBPF programs, this results in an error." |
| 2400 |
msgstr "" |
| 2401 |
|
| 2402 |
#. type: TP |
| 2403 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2404 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2405 |
#, no-wrap |
| 2406 |
msgid "B<long bpf_xdp_adjust_meta(struct xdp_buff *>I<xdp_md>B<, int >I<delta>B<)>" |
| 2407 |
msgstr "" |
| 2408 |
|
| 2409 |
#. type: Plain text |
| 2410 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2411 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2412 |
msgid "" |
| 2413 |
"Adjust the address pointed by I<xdp_md>B<-E<gt>data_meta> by I<delta> (which " |
| 2414 |
"can be positive or negative). Note that this operation modifies the address " |
| 2415 |
"stored in I<xdp_md>B<-E<gt>data>, so the latter must be loaded only after " |
| 2416 |
"the helper has been called." |
| 2417 |
msgstr "" |
| 2418 |
|
| 2419 |
#. type: Plain text |
| 2420 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2421 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2422 |
msgid "" |
| 2423 |
"The use of I<xdp_md>B<-E<gt>data_meta> is optional and programs are not " |
| 2424 |
"required to use it. The rationale is that when the packet is processed with " |
| 2425 |
"XDP (e.g. as DoS filter), it is possible to push further meta data along " |
| 2426 |
"with it before passing to the stack, and to give the guarantee that an " |
| 2427 |
"ingress eBPF program attached as a TC classifier on the same device can pick " |
| 2428 |
"this up for further post-processing. Since TC works with socket buffers, it " |
| 2429 |
"remains possible to set from XDP the B<mark> or B<priority> pointers, or " |
| 2430 |
"other pointers for the socket buffer. Having this scratch space generic and " |
| 2431 |
"programmable allows for more flexibility as the user is free to store " |
| 2432 |
"whatever meta data they need." |
| 2433 |
msgstr "" |
| 2434 |
|
| 2435 |
#. type: TP |
| 2436 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2437 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2438 |
#, no-wrap |
| 2439 |
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<)>" |
| 2440 |
msgstr "" |
| 2441 |
|
| 2442 |
#. type: Plain text |
| 2443 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2444 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2445 |
msgid "" |
| 2446 |
"Read the value of a perf event counter, and store it into I<buf> of size " |
| 2447 |
"I<buf_size>\\&. This helper relies on a I<map> of type " |
| 2448 |
"B<BPF_MAP_TYPE_PERF_EVENT_ARRAY>\\&. The nature of the perf event counter is " |
| 2449 |
"selected when I<map> is updated with perf event file descriptors. The I<map> " |
| 2450 |
"is an array whose size is the number of available CPUs, and each cell " |
| 2451 |
"contains a value relative to one CPU. The value to retrieve is indicated by " |
| 2452 |
"I<flags>, that contains the index of the CPU to look up, masked with " |
| 2453 |
"B<BPF_F_INDEX_MASK>\\&. Alternatively, I<flags> can be set to " |
| 2454 |
"B<BPF_F_CURRENT_CPU> to indicate that the value for the current CPU should " |
| 2455 |
"be retrieved." |
| 2456 |
msgstr "" |
| 2457 |
|
| 2458 |
#. type: Plain text |
| 2459 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2460 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2461 |
msgid "" |
| 2462 |
"This helper behaves in a way close to B<bpf_perf_event_read>() helper, save " |
| 2463 |
"that instead of just returning the value observed, it fills the I<buf> " |
| 2464 |
"structure. This allows for additional data to be retrieved: in particular, " |
| 2465 |
"the enabled and running times (in I<buf>B<-E<gt>enabled> and I<buf>B<-" |
| 2466 |
"E<gt>running>, respectively) are copied. In general, " |
| 2467 |
"B<bpf_perf_event_read_value>() is recommended over B<bpf_perf_event_read>(), " |
| 2468 |
"which has some ABI issues and provides fewer functionalities." |
| 2469 |
msgstr "" |
| 2470 |
|
| 2471 |
#. type: Plain text |
| 2472 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2473 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2474 |
msgid "" |
| 2475 |
"These values are interesting, because hardware PMU (Performance Monitoring " |
| 2476 |
"Unit) counters are limited resources. When there are more PMU based perf " |
| 2477 |
"events opened than available counters, kernel will multiplex these events so " |
| 2478 |
"each event gets certain percentage (but not all) of the PMU time. In case " |
| 2479 |
"that multiplexing happens, the number of samples or counter value will not " |
| 2480 |
"reflect the case compared to when no multiplexing occurs. This makes " |
| 2481 |
"comparison between different runs difficult. Typically, the counter value " |
| 2482 |
"should be normalized before comparing to other experiments. The usual " |
| 2483 |
"normalization is done as follows." |
| 2484 |
msgstr "" |
| 2485 |
|
| 2486 |
#. type: Plain text |
| 2487 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2488 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2489 |
#, no-wrap |
| 2490 |
msgid "normalized_counter = counter * t_enabled / t_running\n" |
| 2491 |
msgstr "" |
| 2492 |
|
| 2493 |
#. type: Plain text |
| 2494 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2495 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2496 |
msgid "" |
| 2497 |
"Where t_enabled is the time enabled for event and t_running is the time " |
| 2498 |
"running for event since last normalization. The enabled and running times " |
| 2499 |
"are accumulated since the perf event open. To achieve scaling factor between " |
| 2500 |
"two invocations of an eBPF program, users can use CPU id as the key (which " |
| 2501 |
"is typical for perf array usage model) to remember the previous value and do " |
| 2502 |
"the calculation inside the eBPF program." |
| 2503 |
msgstr "" |
| 2504 |
|
| 2505 |
#. type: TP |
| 2506 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2507 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2508 |
#, no-wrap |
| 2509 |
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<)>" |
| 2510 |
msgstr "" |
| 2511 |
|
| 2512 |
#. type: Plain text |
| 2513 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2514 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2515 |
msgid "" |
| 2516 |
"For an eBPF program attached to a perf event, retrieve the value of the " |
| 2517 |
"event counter associated to I<ctx> and store it in the structure pointed by " |
| 2518 |
"I<buf> and of size I<buf_size>\\&. Enabled and running times are also stored " |
| 2519 |
"in the structure (see description of helper B<bpf_perf_event_read_value>() " |
| 2520 |
"for more details)." |
| 2521 |
msgstr "" |
| 2522 |
|
| 2523 |
#. type: TP |
| 2524 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2525 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2526 |
#, no-wrap |
| 2527 |
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<)>" |
| 2528 |
msgstr "" |
| 2529 |
|
| 2530 |
#. type: Plain text |
| 2531 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2532 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2533 |
msgid "" |
| 2534 |
"Emulate a call to B<getsockopt()> on the socket associated to I<bpf_socket>, " |
| 2535 |
"which must be a full socket. The I<level> at which the option resides and " |
| 2536 |
"the name I<optname> of the option must be specified, see B<getsockopt(2)> " |
| 2537 |
"for more information. The retrieved value is stored in the structure " |
| 2538 |
"pointed by I<opval> and of length I<optlen>\\&." |
| 2539 |
msgstr "" |
| 2540 |
|
| 2541 |
#. type: Plain text |
| 2542 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2543 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2544 |
msgid "" |
| 2545 |
"This helper actually implements a subset of B<getsockopt()>\\&. It supports " |
| 2546 |
"the same set of I<optname>s that is supported by the B<bpf_setsockopt>() " |
| 2547 |
"helper. The exceptions are B<TCP_BPF_*> is B<bpf_setsockopt>() only and " |
| 2548 |
"B<TCP_SAVED_SYN> is B<bpf_getsockopt>() only." |
| 2549 |
msgstr "" |
| 2550 |
|
| 2551 |
#. type: TP |
| 2552 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2553 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2554 |
#, no-wrap |
| 2555 |
msgid "B<long bpf_override_return(struct pt_regs *>I<regs>B<, u64 >I<rc>B<)>" |
| 2556 |
msgstr "" |
| 2557 |
|
| 2558 |
#. type: Plain text |
| 2559 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2560 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2561 |
msgid "" |
| 2562 |
"Used for error injection, this helper uses kprobes to override the return " |
| 2563 |
"value of the probed function, and to set it to I<rc>\\&. The first argument " |
| 2564 |
"is the context I<regs> on which the kprobe works." |
| 2565 |
msgstr "" |
| 2566 |
|
| 2567 |
#. type: Plain text |
| 2568 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2569 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2570 |
msgid "" |
| 2571 |
"This helper works by setting the PC (program counter) to an override " |
| 2572 |
"function which is run in place of the original probed function. This means " |
| 2573 |
"the probed function is not run at all. The replacement function just returns " |
| 2574 |
"with the required value." |
| 2575 |
msgstr "" |
| 2576 |
|
| 2577 |
#. type: Plain text |
| 2578 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2579 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2580 |
msgid "" |
| 2581 |
"This helper has security implications, and thus is subject to restrictions. " |
| 2582 |
"It is only available if the kernel was compiled with the " |
| 2583 |
"B<CONFIG_BPF_KPROBE_OVERRIDE> configuration option, and in this case it only " |
| 2584 |
"works on functions tagged with B<ALLOW_ERROR_INJECTION> in the kernel code." |
| 2585 |
msgstr "" |
| 2586 |
|
| 2587 |
#. type: TP |
| 2588 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2589 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2590 |
#, no-wrap |
| 2591 |
msgid "B<long bpf_sock_ops_cb_flags_set(struct bpf_sock_ops *>I<bpf_sock>B<, int >I<argval>B<)>" |
| 2592 |
msgstr "" |
| 2593 |
|
| 2594 |
#. type: Plain text |
| 2595 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2596 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2597 |
msgid "" |
| 2598 |
"Attempt to set the value of the B<bpf_sock_ops_cb_flags> field for the full " |
| 2599 |
"TCP socket associated to I<bpf_sock_ops> to I<argval>\\&." |
| 2600 |
msgstr "" |
| 2601 |
|
| 2602 |
#. type: Plain text |
| 2603 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2604 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2605 |
msgid "" |
| 2606 |
"The primary use of this field is to determine if there should be calls to " |
| 2607 |
"eBPF programs of type B<BPF_PROG_TYPE_SOCK_OPS> at various points in the TCP " |
| 2608 |
"code. A program of the same type can change its value, per connection and as " |
| 2609 |
"necessary, when the connection is established. This field is directly " |
| 2610 |
"accessible for reading, but this helper must be used for updates in order to " |
| 2611 |
"return an error if an eBPF program tries to set a callback that is not " |
| 2612 |
"supported in the current kernel." |
| 2613 |
msgstr "" |
| 2614 |
|
| 2615 |
#. type: Plain text |
| 2616 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2617 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2618 |
msgid "I<argval> is a flag array which can combine these flags:" |
| 2619 |
msgstr "" |
| 2620 |
|
| 2621 |
#. type: Plain text |
| 2622 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2623 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2624 |
msgid "B<BPF_SOCK_OPS_RTO_CB_FLAG> (retransmission time out)" |
| 2625 |
msgstr "" |
| 2626 |
|
| 2627 |
#. type: Plain text |
| 2628 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2629 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2630 |
msgid "B<BPF_SOCK_OPS_RETRANS_CB_FLAG> (retransmission)" |
| 2631 |
msgstr "" |
| 2632 |
|
| 2633 |
#. type: Plain text |
| 2634 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2635 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2636 |
msgid "B<BPF_SOCK_OPS_STATE_CB_FLAG> (TCP state change)" |
| 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 "B<BPF_SOCK_OPS_RTT_CB_FLAG> (every RTT)" |
| 2643 |
msgstr "" |
| 2644 |
|
| 2645 |
#. type: Plain text |
| 2646 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2647 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2648 |
msgid "" |
| 2649 |
"Therefore, this function can be used to clear a callback flag by setting the " |
| 2650 |
"appropriate bit to zero. e.g. to disable the RTO callback:" |
| 2651 |
msgstr "" |
| 2652 |
|
| 2653 |
#. type: TP |
| 2654 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2655 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2656 |
#, no-wrap |
| 2657 |
msgid "B<bpf_sock_ops_cb_flags_set(bpf_sock,>" |
| 2658 |
msgstr "" |
| 2659 |
|
| 2660 |
#. type: Plain text |
| 2661 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2662 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2663 |
msgid "B<bpf_sock-E<gt>bpf_sock_ops_cb_flags & ~BPF_SOCK_OPS_RTO_CB_FLAG)>" |
| 2664 |
msgstr "" |
| 2665 |
|
| 2666 |
#. type: Plain text |
| 2667 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2668 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2669 |
msgid "Here are some examples of where one could call such eBPF program:" |
| 2670 |
msgstr "" |
| 2671 |
|
| 2672 |
#. type: Plain text |
| 2673 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2674 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2675 |
msgid "When RTO fires." |
| 2676 |
msgstr "" |
| 2677 |
|
| 2678 |
#. type: Plain text |
| 2679 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2680 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2681 |
msgid "When a packet is retransmitted." |
| 2682 |
msgstr "" |
| 2683 |
|
| 2684 |
#. type: Plain text |
| 2685 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2686 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2687 |
msgid "When the connection terminates." |
| 2688 |
msgstr "" |
| 2689 |
|
| 2690 |
#. type: Plain text |
| 2691 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2692 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2693 |
msgid "When a packet is sent." |
| 2694 |
msgstr "" |
| 2695 |
|
| 2696 |
#. type: Plain text |
| 2697 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2698 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2699 |
msgid "When a packet is received." |
| 2700 |
msgstr "" |
| 2701 |
|
| 2702 |
#. type: Plain text |
| 2703 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2704 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2705 |
msgid "" |
| 2706 |
"Code B<-EINVAL> if the socket is not a full TCP socket; otherwise, a " |
| 2707 |
"positive number containing the bits that could not be set is returned (which " |
| 2708 |
"comes down to 0 if all bits were set as required)." |
| 2709 |
msgstr "" |
| 2710 |
|
| 2711 |
#. type: TP |
| 2712 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2713 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2714 |
#, no-wrap |
| 2715 |
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<)>" |
| 2716 |
msgstr "" |
| 2717 |
|
| 2718 |
#. type: Plain text |
| 2719 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2720 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2721 |
msgid "" |
| 2722 |
"This helper is used in programs implementing policies at the socket level. " |
| 2723 |
"If the message I<msg> is allowed to pass (i.e. if the verdict eBPF program " |
| 2724 |
"returns B<SK_PASS>), redirect it to the socket referenced by I<map> (of type " |
| 2725 |
"B<BPF_MAP_TYPE_SOCKMAP>) at index I<key>\\&. Both ingress and egress " |
| 2726 |
"interfaces can be used for redirection. The B<BPF_F_INGRESS> value in " |
| 2727 |
"I<flags> is used to make the distinction (ingress path is selected if the " |
| 2728 |
"flag is present, egress path otherwise). This is the only flag supported for " |
| 2729 |
"now." |
| 2730 |
msgstr "" |
| 2731 |
|
| 2732 |
#. type: TP |
| 2733 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2734 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2735 |
#, no-wrap |
| 2736 |
msgid "B<long bpf_msg_apply_bytes(struct sk_msg_buff *>I<msg>B<, u32 >I<bytes>B<)>" |
| 2737 |
msgstr "" |
| 2738 |
|
| 2739 |
#. type: Plain text |
| 2740 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2741 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2742 |
msgid "" |
| 2743 |
"For socket policies, apply the verdict of the eBPF program to the next " |
| 2744 |
"I<bytes> (number of bytes) of message I<msg>\\&." |
| 2745 |
msgstr "" |
| 2746 |
|
| 2747 |
#. type: Plain text |
| 2748 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2749 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2750 |
msgid "For example, this helper can be used in the following cases:" |
| 2751 |
msgstr "" |
| 2752 |
|
| 2753 |
#. type: Plain text |
| 2754 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2755 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2756 |
msgid "" |
| 2757 |
"A single B<sendmsg>() or B<sendfile>() system call contains multiple logical " |
| 2758 |
"messages that the eBPF program is supposed to read and for which it should " |
| 2759 |
"apply a verdict." |
| 2760 |
msgstr "" |
| 2761 |
|
| 2762 |
#. type: Plain text |
| 2763 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2764 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2765 |
msgid "" |
| 2766 |
"An eBPF program only cares to read the first I<bytes> of a I<msg>\\&. If the " |
| 2767 |
"message has a large payload, then setting up and calling the eBPF program " |
| 2768 |
"repeatedly for all bytes, even though the verdict is already known, would " |
| 2769 |
"create unnecessary overhead." |
| 2770 |
msgstr "" |
| 2771 |
|
| 2772 |
#. type: Plain text |
| 2773 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2774 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2775 |
msgid "" |
| 2776 |
"When called from within an eBPF program, the helper sets a counter internal " |
| 2777 |
"to the BPF infrastructure, that is used to apply the last verdict to the " |
| 2778 |
"next I<bytes>\\&. If I<bytes> is smaller than the current data being " |
| 2779 |
"processed from a B<sendmsg>() or B<sendfile>() system call, the first " |
| 2780 |
"I<bytes> will be sent and the eBPF program will be re-run with the pointer " |
| 2781 |
"for start of data pointing to byte number I<bytes> B<+ 1>\\&. If I<bytes> is " |
| 2782 |
"larger than the current data being processed, then the eBPF verdict will be " |
| 2783 |
"applied to multiple B<sendmsg>() or B<sendfile>() calls until I<bytes> are " |
| 2784 |
"consumed." |
| 2785 |
msgstr "" |
| 2786 |
|
| 2787 |
#. type: Plain text |
| 2788 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2789 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2790 |
msgid "" |
| 2791 |
"Note that if a socket closes with the internal counter holding a non-zero " |
| 2792 |
"value, this is not a problem because data is not being buffered for I<bytes> " |
| 2793 |
"and is sent as it is received." |
| 2794 |
msgstr "" |
| 2795 |
|
| 2796 |
#. type: TP |
| 2797 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2798 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2799 |
#, no-wrap |
| 2800 |
msgid "B<long bpf_msg_cork_bytes(struct sk_msg_buff *>I<msg>B<, u32 >I<bytes>B<)>" |
| 2801 |
msgstr "" |
| 2802 |
|
| 2803 |
#. type: Plain text |
| 2804 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2805 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2806 |
msgid "" |
| 2807 |
"For socket policies, prevent the execution of the verdict eBPF program for " |
| 2808 |
"message I<msg> until I<bytes> (byte number) have been accumulated." |
| 2809 |
msgstr "" |
| 2810 |
|
| 2811 |
#. type: Plain text |
| 2812 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2813 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2814 |
msgid "" |
| 2815 |
"This can be used when one needs a specific number of bytes before a verdict " |
| 2816 |
"can be assigned, even if the data spans multiple B<sendmsg>() or " |
| 2817 |
"B<sendfile>() calls. The extreme case would be a user calling B<sendmsg>() " |
| 2818 |
"repeatedly with 1-byte long message segments. Obviously, this is bad for " |
| 2819 |
"performance, but it is still valid. If the eBPF program needs I<bytes> bytes " |
| 2820 |
"to validate a header, this helper can be used to prevent the eBPF program to " |
| 2821 |
"be called again until I<bytes> have been accumulated." |
| 2822 |
msgstr "" |
| 2823 |
|
| 2824 |
#. type: TP |
| 2825 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2826 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2827 |
#, no-wrap |
| 2828 |
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<)>" |
| 2829 |
msgstr "" |
| 2830 |
|
| 2831 |
#. type: Plain text |
| 2832 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2833 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2834 |
msgid "" |
| 2835 |
"For socket policies, pull in non-linear data from user space for I<msg> and " |
| 2836 |
"set pointers I<msg>B<-E<gt>data> and I<msg>B<-E<gt>data_end> to I<start> and " |
| 2837 |
"I<end> bytes offsets into I<msg>, respectively." |
| 2838 |
msgstr "" |
| 2839 |
|
| 2840 |
#. type: Plain text |
| 2841 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2842 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2843 |
msgid "" |
| 2844 |
"If a program of type B<BPF_PROG_TYPE_SK_MSG> is run on a I<msg> it can only " |
| 2845 |
"parse data that the (B<data>, B<data_end>) pointers have already consumed. " |
| 2846 |
"For B<sendmsg>() hooks this is likely the first scatterlist element. But for " |
| 2847 |
"calls relying on the B<sendpage> handler (e.g. B<sendfile>()) this will be " |
| 2848 |
"the range (B<0>, B<0>) because the data is shared with user space and by " |
| 2849 |
"default the objective is to avoid allowing user space to modify data while " |
| 2850 |
"(or after) eBPF verdict is being decided. This helper can be used to pull in " |
| 2851 |
"data and to set the start and end pointer to given values. Data will be " |
| 2852 |
"copied if necessary (i.e. if data was not linear and if start and end " |
| 2853 |
"pointers do not point to the same chunk)." |
| 2854 |
msgstr "" |
| 2855 |
|
| 2856 |
#. type: TP |
| 2857 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2858 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2859 |
#, no-wrap |
| 2860 |
msgid "B<long bpf_bind(struct bpf_sock_addr *>I<ctx>B<, struct sockaddr *>I<addr>B<, int >I<addr_len>B<)>" |
| 2861 |
msgstr "" |
| 2862 |
|
| 2863 |
#. type: Plain text |
| 2864 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2865 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2866 |
msgid "" |
| 2867 |
"Bind the socket associated to I<ctx> to the address pointed by I<addr>, of " |
| 2868 |
"length I<addr_len>\\&. This allows for making outgoing connection from the " |
| 2869 |
"desired IP address, which can be useful for example when all processes " |
| 2870 |
"inside a cgroup should use one single IP address on a host that has multiple " |
| 2871 |
"IP configured." |
| 2872 |
msgstr "" |
| 2873 |
|
| 2874 |
#. type: Plain text |
| 2875 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2876 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2877 |
msgid "" |
| 2878 |
"This helper works for IPv4 and IPv6, TCP and UDP sockets. The domain " |
| 2879 |
"(I<addr>B<-E<gt>sa_family>) must be B<AF_INET> (or B<AF_INET6>). It\\(aqs " |
| 2880 |
"advised to pass zero port (B<sin_port> or B<sin6_port>) which triggers " |
| 2881 |
"IP_BIND_ADDRESS_NO_PORT-like behavior and lets the kernel efficiently pick " |
| 2882 |
"up an unused port as long as 4-tuple is unique. Passing non-zero port might " |
| 2883 |
"lead to degraded performance." |
| 2884 |
msgstr "" |
| 2885 |
|
| 2886 |
#. type: TP |
| 2887 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2888 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2889 |
#, no-wrap |
| 2890 |
msgid "B<long bpf_xdp_adjust_tail(struct xdp_buff *>I<xdp_md>B<, int >I<delta>B<)>" |
| 2891 |
msgstr "" |
| 2892 |
|
| 2893 |
#. type: Plain text |
| 2894 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2895 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2896 |
msgid "" |
| 2897 |
"Adjust (move) I<xdp_md>B<-E<gt>data_end> by I<delta> bytes. It is possible " |
| 2898 |
"to both shrink and grow the packet tail. Shrink done via I<delta> being a " |
| 2899 |
"negative integer." |
| 2900 |
msgstr "" |
| 2901 |
|
| 2902 |
#. type: TP |
| 2903 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2904 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2905 |
#, no-wrap |
| 2906 |
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<)>" |
| 2907 |
msgstr "" |
| 2908 |
|
| 2909 |
#. type: Plain text |
| 2910 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2911 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2912 |
msgid "" |
| 2913 |
"Retrieve the XFRM state (IP transform framework, see also B<ip-xfrm(8)>) at " |
| 2914 |
"I<index> in XFRM \"security path\" for I<skb>\\&." |
| 2915 |
msgstr "" |
| 2916 |
|
| 2917 |
#. type: Plain text |
| 2918 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2919 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2920 |
msgid "" |
| 2921 |
"The retrieved value is stored in the B<struct bpf_xfrm_state> pointed by " |
| 2922 |
"I<xfrm_state> and of length I<size>\\&." |
| 2923 |
msgstr "" |
| 2924 |
|
| 2925 |
#. type: Plain text |
| 2926 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2927 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2928 |
msgid "" |
| 2929 |
"This helper is available only if the kernel was compiled with B<CONFIG_XFRM> " |
| 2930 |
"configuration option." |
| 2931 |
msgstr "" |
| 2932 |
|
| 2933 |
#. type: TP |
| 2934 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2935 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2936 |
#, no-wrap |
| 2937 |
msgid "B<long bpf_get_stack(void *>I<ctx>B<, void *>I<buf>B<, u32 >I<size>B<, u64 >I<flags>B<)>" |
| 2938 |
msgstr "" |
| 2939 |
|
| 2940 |
#. type: Plain text |
| 2941 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2942 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2943 |
msgid "" |
| 2944 |
"Return a user or a kernel stack in bpf program provided buffer. To achieve " |
| 2945 |
"this, the helper needs I<ctx>, which is a pointer to the context on which " |
| 2946 |
"the tracing program is executed. To store the stacktrace, the bpf program " |
| 2947 |
"provides I<buf> with a nonnegative I<size>\\&." |
| 2948 |
msgstr "" |
| 2949 |
|
| 2950 |
#. type: Plain text |
| 2951 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2952 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2953 |
msgid "" |
| 2954 |
"The last argument, I<flags>, holds the number of stack frames to skip (from " |
| 2955 |
"0 to 255), masked with B<BPF_F_SKIP_FIELD_MASK>\\&. The next bits can be " |
| 2956 |
"used to set the following flags:" |
| 2957 |
msgstr "" |
| 2958 |
|
| 2959 |
#. type: TP |
| 2960 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2961 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2962 |
#, no-wrap |
| 2963 |
msgid "B<BPF_F_USER_BUILD_ID>" |
| 2964 |
msgstr "" |
| 2965 |
|
| 2966 |
#. type: Plain text |
| 2967 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2968 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2969 |
msgid "" |
| 2970 |
"Collect (build_id, file_offset) instead of ips for user stack, only valid if " |
| 2971 |
"B<BPF_F_USER_STACK> is also specified." |
| 2972 |
msgstr "" |
| 2973 |
|
| 2974 |
#. type: Plain text |
| 2975 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2976 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2977 |
msgid "" |
| 2978 |
"I<file_offset> is an offset relative to the beginning of the executable or " |
| 2979 |
"shared object file backing the vma which the I<ip> falls in. It is I<not> an " |
| 2980 |
"offset relative to that object\\(aqs base address. Accordingly, it must be " |
| 2981 |
"adjusted by adding (sh_addr - sh_offset), where sh_{addr,offset} correspond " |
| 2982 |
"to the executable section containing I<file_offset> in the object, for " |
| 2983 |
"comparisons to symbols\\(aq st_value to be valid." |
| 2984 |
msgstr "" |
| 2985 |
|
| 2986 |
#. type: Plain text |
| 2987 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2988 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2989 |
msgid "" |
| 2990 |
"B<bpf_get_stack>() can collect up to B<PERF_MAX_STACK_DEPTH> both kernel and " |
| 2991 |
"user frames, subject to sufficient large buffer size. Note that this limit " |
| 2992 |
"can be controlled with the B<sysctl> program, and that it should be manually " |
| 2993 |
"increased in order to profile long user stacks (such as stacks for Java " |
| 2994 |
"programs). To do so, use:" |
| 2995 |
msgstr "" |
| 2996 |
|
| 2997 |
#. type: Plain text |
| 2998 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2999 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3000 |
msgid "" |
| 3001 |
"The non-negative copied I<buf> length equal to or less than I<size> on " |
| 3002 |
"success, or a negative error in case of failure." |
| 3003 |
msgstr "" |
| 3004 |
|
| 3005 |
#. type: TP |
| 3006 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3007 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3008 |
#, no-wrap |
| 3009 |
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<)>" |
| 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 |
"This helper is similar to B<bpf_skb_load_bytes>() in that it provides an " |
| 3017 |
"easy way to load I<len> bytes from I<offset> from the packet associated to " |
| 3018 |
"I<skb>, into the buffer pointed by I<to>\\&. The difference to " |
| 3019 |
"B<bpf_skb_load_bytes>() is that a fifth argument I<start_header> exists in " |
| 3020 |
"order to select a base offset to start from. I<start_header> can be one of:" |
| 3021 |
msgstr "" |
| 3022 |
|
| 3023 |
#. type: TP |
| 3024 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3025 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3026 |
#, no-wrap |
| 3027 |
msgid "B<BPF_HDR_START_MAC>" |
| 3028 |
msgstr "" |
| 3029 |
|
| 3030 |
#. type: Plain text |
| 3031 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3032 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3033 |
msgid "Base offset to load data from is I<skb>\\(aqs mac header." |
| 3034 |
msgstr "" |
| 3035 |
|
| 3036 |
#. type: TP |
| 3037 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3038 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3039 |
#, no-wrap |
| 3040 |
msgid "B<BPF_HDR_START_NET>" |
| 3041 |
msgstr "" |
| 3042 |
|
| 3043 |
#. type: Plain text |
| 3044 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3045 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3046 |
msgid "Base offset to load data from is I<skb>\\(aqs network header." |
| 3047 |
msgstr "" |
| 3048 |
|
| 3049 |
#. type: Plain text |
| 3050 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3051 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3052 |
msgid "" |
| 3053 |
"In general, \"direct packet access\" is the preferred method to access " |
| 3054 |
"packet data, however, this helper is in particular useful in socket filters " |
| 3055 |
"where I<skb>B<-E<gt>data> does not always point to the start of the mac " |
| 3056 |
"header and where \"direct packet access\" is not available." |
| 3057 |
msgstr "" |
| 3058 |
|
| 3059 |
#. type: TP |
| 3060 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3061 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3062 |
#, no-wrap |
| 3063 |
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<)>" |
| 3064 |
msgstr "" |
| 3065 |
|
| 3066 |
#. type: Plain text |
| 3067 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3068 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3069 |
msgid "" |
| 3070 |
"Do FIB lookup in kernel tables using parameters in I<params>\\&. If lookup " |
| 3071 |
"is successful and result shows packet is to be forwarded, the neighbor " |
| 3072 |
"tables are searched for the nexthop. If successful (ie., FIB lookup shows " |
| 3073 |
"forwarding and nexthop is resolved), the nexthop address is returned in " |
| 3074 |
"ipv4_dst or ipv6_dst based on family, smac is set to mac address of egress " |
| 3075 |
"device, dmac is set to nexthop mac address, rt_metric is set to metric from " |
| 3076 |
"route (IPv4/IPv6 only), and ifindex is set to the device index of the " |
| 3077 |
"nexthop from the FIB lookup." |
| 3078 |
msgstr "" |
| 3079 |
|
| 3080 |
#. type: Plain text |
| 3081 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3082 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3083 |
msgid "" |
| 3084 |
"I<plen> argument is the size of the passed in struct. I<flags> argument can " |
| 3085 |
"be a combination of one or more of the following values:" |
| 3086 |
msgstr "" |
| 3087 |
|
| 3088 |
#. type: TP |
| 3089 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3090 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3091 |
#, no-wrap |
| 3092 |
msgid "B<BPF_FIB_LOOKUP_DIRECT>" |
| 3093 |
msgstr "" |
| 3094 |
|
| 3095 |
#. type: Plain text |
| 3096 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3097 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3098 |
msgid "Do a direct table lookup vs full lookup using FIB rules." |
| 3099 |
msgstr "" |
| 3100 |
|
| 3101 |
#. type: TP |
| 3102 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3103 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3104 |
#, no-wrap |
| 3105 |
msgid "B<BPF_FIB_LOOKUP_TBID>" |
| 3106 |
msgstr "" |
| 3107 |
|
| 3108 |
#. type: Plain text |
| 3109 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3110 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3111 |
msgid "" |
| 3112 |
"Used with BPF_FIB_LOOKUP_DIRECT. Use the routing table ID present in " |
| 3113 |
"I<params>-E<gt>tbid for the fib lookup." |
| 3114 |
msgstr "" |
| 3115 |
|
| 3116 |
#. type: TP |
| 3117 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3118 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3119 |
#, no-wrap |
| 3120 |
msgid "B<BPF_FIB_LOOKUP_OUTPUT>" |
| 3121 |
msgstr "" |
| 3122 |
|
| 3123 |
#. type: Plain text |
| 3124 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3125 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3126 |
msgid "Perform lookup from an egress perspective (default is ingress)." |
| 3127 |
msgstr "" |
| 3128 |
|
| 3129 |
#. type: TP |
| 3130 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3131 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3132 |
#, no-wrap |
| 3133 |
msgid "B<BPF_FIB_LOOKUP_SKIP_NEIGH>" |
| 3134 |
msgstr "" |
| 3135 |
|
| 3136 |
#. type: Plain text |
| 3137 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3138 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3139 |
msgid "" |
| 3140 |
"Skip the neighbour table lookup. I<params>-E<gt>dmac and I<params>-E<gt>smac " |
| 3141 |
"will not be set as output. A common use case is to call " |
| 3142 |
"B<bpf_redirect_neigh>() after doing B<bpf_fib_lookup>()." |
| 3143 |
msgstr "" |
| 3144 |
|
| 3145 |
#. type: TP |
| 3146 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3147 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3148 |
#, no-wrap |
| 3149 |
msgid "B<BPF_FIB_LOOKUP_SRC>" |
| 3150 |
msgstr "" |
| 3151 |
|
| 3152 |
#. type: Plain text |
| 3153 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3154 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3155 |
msgid "" |
| 3156 |
"Derive and set source IP addr in I<params>-E<gt>ipv{4,6}_src for the " |
| 3157 |
"nexthop. If the src addr cannot be derived, B<BPF_FIB_LKUP_RET_NO_SRC_ADDR> " |
| 3158 |
"is returned. In this case, I<params>-E<gt>dmac and I<params>-E<gt>smac are " |
| 3159 |
"not set either." |
| 3160 |
msgstr "" |
| 3161 |
|
| 3162 |
#. type: TP |
| 3163 |
#: archlinux debian-unstable fedora-44 fedora-rawhide opensuse-leap-16-1 |
| 3164 |
#: opensuse-tumbleweed |
| 3165 |
#, no-wrap |
| 3166 |
msgid "B<BPF_FIB_LOOKUP_MARK>" |
| 3167 |
msgstr "" |
| 3168 |
|
| 3169 |
#. type: Plain text |
| 3170 |
#: archlinux debian-unstable fedora-44 fedora-rawhide opensuse-leap-16-1 |
| 3171 |
#: opensuse-tumbleweed |
| 3172 |
msgid "" |
| 3173 |
"Use the mark present in I<params>-E<gt>mark for the fib lookup. This option " |
| 3174 |
"should not be used with BPF_FIB_LOOKUP_DIRECT, as it only has meaning for " |
| 3175 |
"full lookups." |
| 3176 |
msgstr "" |
| 3177 |
|
| 3178 |
#. type: Plain text |
| 3179 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3180 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3181 |
msgid "" |
| 3182 |
"I<ctx> is either B<struct xdp_md> for XDP programs or B<struct sk_buff> tc " |
| 3183 |
"cls_act programs." |
| 3184 |
msgstr "" |
| 3185 |
|
| 3186 |
#. type: Plain text |
| 3187 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3188 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3189 |
msgid "E<lt> 0 if any input argument is invalid" |
| 3190 |
msgstr "" |
| 3191 |
|
| 3192 |
#. type: Plain text |
| 3193 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3194 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3195 |
msgid "0 on success (packet is forwarded, nexthop neighbor exists)" |
| 3196 |
msgstr "" |
| 3197 |
|
| 3198 |
#. type: Plain text |
| 3199 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3200 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3201 |
msgid "" |
| 3202 |
"E<gt> 0 one of B<BPF_FIB_LKUP_RET_> codes explaining why the packet is not " |
| 3203 |
"forwarded or needs assist from full stack" |
| 3204 |
msgstr "" |
| 3205 |
|
| 3206 |
#. type: Plain text |
| 3207 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3208 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3209 |
msgid "" |
| 3210 |
"If lookup fails with BPF_FIB_LKUP_RET_FRAG_NEEDED, then the MTU was exceeded " |
| 3211 |
"and output params-E<gt>mtu_result contains the MTU." |
| 3212 |
msgstr "" |
| 3213 |
|
| 3214 |
#. type: TP |
| 3215 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3216 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3217 |
#, no-wrap |
| 3218 |
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<)>" |
| 3219 |
msgstr "" |
| 3220 |
|
| 3221 |
#. type: Plain text |
| 3222 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3223 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3224 |
msgid "" |
| 3225 |
"Add an entry to, or update a sockhash I<map> referencing sockets. The " |
| 3226 |
"I<skops> is used as a new value for the entry associated to I<key>\\&. " |
| 3227 |
"I<flags> is one of:" |
| 3228 |
msgstr "" |
| 3229 |
|
| 3230 |
#. type: TP |
| 3231 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3232 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3233 |
#, no-wrap |
| 3234 |
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<)>" |
| 3235 |
msgstr "" |
| 3236 |
|
| 3237 |
#. type: Plain text |
| 3238 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3239 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3240 |
msgid "" |
| 3241 |
"This helper is used in programs implementing policies at the socket level. " |
| 3242 |
"If the message I<msg> is allowed to pass (i.e. if the verdict eBPF program " |
| 3243 |
"returns B<SK_PASS>), redirect it to the socket referenced by I<map> (of type " |
| 3244 |
"B<BPF_MAP_TYPE_SOCKHASH>) using hash I<key>\\&. Both ingress and egress " |
| 3245 |
"interfaces can be used for redirection. The B<BPF_F_INGRESS> value in " |
| 3246 |
"I<flags> is used to make the distinction (ingress path is selected if the " |
| 3247 |
"flag is present, egress path otherwise). This is the only flag supported for " |
| 3248 |
"now." |
| 3249 |
msgstr "" |
| 3250 |
|
| 3251 |
#. type: TP |
| 3252 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3253 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3254 |
#, no-wrap |
| 3255 |
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<)>" |
| 3256 |
msgstr "" |
| 3257 |
|
| 3258 |
#. type: Plain text |
| 3259 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3260 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3261 |
msgid "" |
| 3262 |
"This helper is used in programs implementing policies at the skb socket " |
| 3263 |
"level. If the sk_buff I<skb> is allowed to pass (i.e. if the verdict eBPF " |
| 3264 |
"program returns B<SK_PASS>), redirect it to the socket referenced by I<map> " |
| 3265 |
"(of type B<BPF_MAP_TYPE_SOCKHASH>) using hash I<key>\\&. Both ingress and " |
| 3266 |
"egress interfaces can be used for redirection. The B<BPF_F_INGRESS> value in " |
| 3267 |
"I<flags> is used to make the distinction (ingress path is selected if the " |
| 3268 |
"flag is present, egress otherwise). This is the only flag supported for now." |
| 3269 |
msgstr "" |
| 3270 |
|
| 3271 |
#. type: TP |
| 3272 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3273 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3274 |
#, no-wrap |
| 3275 |
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<)>" |
| 3276 |
msgstr "" |
| 3277 |
|
| 3278 |
#. type: Plain text |
| 3279 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3280 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3281 |
msgid "" |
| 3282 |
"Encapsulate the packet associated to I<skb> within a Layer 3 protocol " |
| 3283 |
"header. This header is provided in the buffer at address I<hdr>, with I<len> " |
| 3284 |
"its size in bytes. I<type> indicates the protocol of the header and can be " |
| 3285 |
"one of:" |
| 3286 |
msgstr "" |
| 3287 |
|
| 3288 |
#. type: TP |
| 3289 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3290 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3291 |
#, no-wrap |
| 3292 |
msgid "B<BPF_LWT_ENCAP_SEG6>" |
| 3293 |
msgstr "" |
| 3294 |
|
| 3295 |
#. type: Plain text |
| 3296 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3297 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3298 |
msgid "" |
| 3299 |
"IPv6 encapsulation with Segment Routing Header (B<struct ipv6_sr_hdr>). " |
| 3300 |
"I<hdr> only contains the SRH, the IPv6 header is computed by the kernel." |
| 3301 |
msgstr "" |
| 3302 |
|
| 3303 |
#. type: TP |
| 3304 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3305 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3306 |
#, no-wrap |
| 3307 |
msgid "B<BPF_LWT_ENCAP_SEG6_INLINE>" |
| 3308 |
msgstr "" |
| 3309 |
|
| 3310 |
#. type: Plain text |
| 3311 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3312 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3313 |
msgid "" |
| 3314 |
"Only works if I<skb> contains an IPv6 packet. Insert a Segment Routing " |
| 3315 |
"Header (B<struct ipv6_sr_hdr>) inside the IPv6 header." |
| 3316 |
msgstr "" |
| 3317 |
|
| 3318 |
#. type: TP |
| 3319 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3320 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3321 |
#, no-wrap |
| 3322 |
msgid "B<BPF_LWT_ENCAP_IP>" |
| 3323 |
msgstr "" |
| 3324 |
|
| 3325 |
#. type: Plain text |
| 3326 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3327 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3328 |
msgid "" |
| 3329 |
"IP encapsulation (GRE/GUE/IPIP/etc). The outer header must be IPv4 or IPv6, " |
| 3330 |
"followed by zero or more additional headers, up to B<LWT_BPF_MAX_HEADROOM> " |
| 3331 |
"total bytes in all prepended headers. Please note that if " |
| 3332 |
"B<skb_is_gso>(I<skb>) is true, no more than two headers can be prepended, " |
| 3333 |
"and the inner header, if present, should be either GRE or UDP/GUE." |
| 3334 |
msgstr "" |
| 3335 |
|
| 3336 |
#. type: Plain text |
| 3337 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3338 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3339 |
msgid "" |
| 3340 |
"B<BPF_LWT_ENCAP_SEG6>* types can be called by BPF programs of type " |
| 3341 |
"B<BPF_PROG_TYPE_LWT_IN>; B<BPF_LWT_ENCAP_IP> type can be called by bpf " |
| 3342 |
"programs of types B<BPF_PROG_TYPE_LWT_IN> and B<BPF_PROG_TYPE_LWT_XMIT>\\&." |
| 3343 |
msgstr "" |
| 3344 |
|
| 3345 |
#. type: TP |
| 3346 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3347 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3348 |
#, no-wrap |
| 3349 |
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<)>" |
| 3350 |
msgstr "" |
| 3351 |
|
| 3352 |
#. type: Plain text |
| 3353 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3354 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3355 |
msgid "" |
| 3356 |
"Store I<len> bytes from address I<from> into the packet associated to " |
| 3357 |
"I<skb>, at I<offset>\\&. Only the flags, tag and TLVs inside the outermost " |
| 3358 |
"IPv6 Segment Routing Header can be modified through this helper." |
| 3359 |
msgstr "" |
| 3360 |
|
| 3361 |
#. type: TP |
| 3362 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3363 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3364 |
#, no-wrap |
| 3365 |
msgid "B<long bpf_lwt_seg6_adjust_srh(struct sk_buff *>I<skb>B<, u32 >I<offset>B<, s32 >I<delta>B<)>" |
| 3366 |
msgstr "" |
| 3367 |
|
| 3368 |
#. type: Plain text |
| 3369 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3370 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3371 |
msgid "" |
| 3372 |
"Adjust the size allocated to TLVs in the outermost IPv6 Segment Routing " |
| 3373 |
"Header contained in the packet associated to I<skb>, at position I<offset> " |
| 3374 |
"by I<delta> bytes. Only offsets after the segments are accepted. I<delta> " |
| 3375 |
"can be as well positive (growing) as negative (shrinking)." |
| 3376 |
msgstr "" |
| 3377 |
|
| 3378 |
#. type: TP |
| 3379 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3380 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3381 |
#, no-wrap |
| 3382 |
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<)>" |
| 3383 |
msgstr "" |
| 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 |
"Apply an IPv6 Segment Routing action of type I<action> to the packet " |
| 3390 |
"associated to I<skb>\\&. Each action takes a parameter contained at address " |
| 3391 |
"I<param>, and of length I<param_len> bytes. I<action> can be one of:" |
| 3392 |
msgstr "" |
| 3393 |
|
| 3394 |
#. type: TP |
| 3395 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3396 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3397 |
#, no-wrap |
| 3398 |
msgid "B<SEG6_LOCAL_ACTION_END_X>" |
| 3399 |
msgstr "" |
| 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 |
"End.X action: Endpoint with Layer-3 cross-connect. Type of I<param>: " |
| 3406 |
"B<struct in6_addr>\\&." |
| 3407 |
msgstr "" |
| 3408 |
|
| 3409 |
#. type: TP |
| 3410 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3411 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3412 |
#, no-wrap |
| 3413 |
msgid "B<SEG6_LOCAL_ACTION_END_T>" |
| 3414 |
msgstr "" |
| 3415 |
|
| 3416 |
#. type: Plain text |
| 3417 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3418 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3419 |
msgid "" |
| 3420 |
"End.T action: Endpoint with specific IPv6 table lookup. Type of I<param>: " |
| 3421 |
"B<int>\\&." |
| 3422 |
msgstr "" |
| 3423 |
|
| 3424 |
#. type: TP |
| 3425 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3426 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3427 |
#, no-wrap |
| 3428 |
msgid "B<SEG6_LOCAL_ACTION_END_B6>" |
| 3429 |
msgstr "" |
| 3430 |
|
| 3431 |
#. type: Plain text |
| 3432 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3433 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3434 |
msgid "" |
| 3435 |
"End.B6 action: Endpoint bound to an SRv6 policy. Type of I<param>: B<struct " |
| 3436 |
"ipv6_sr_hdr>\\&." |
| 3437 |
msgstr "" |
| 3438 |
|
| 3439 |
#. type: TP |
| 3440 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3441 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3442 |
#, no-wrap |
| 3443 |
msgid "B<SEG6_LOCAL_ACTION_END_B6_ENCAP>" |
| 3444 |
msgstr "" |
| 3445 |
|
| 3446 |
#. type: Plain text |
| 3447 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3448 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3449 |
msgid "" |
| 3450 |
"End.B6.Encap action: Endpoint bound to an SRv6 encapsulation policy. Type " |
| 3451 |
"of I<param>: B<struct ipv6_sr_hdr>\\&." |
| 3452 |
msgstr "" |
| 3453 |
|
| 3454 |
#. type: TP |
| 3455 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3456 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3457 |
#, no-wrap |
| 3458 |
msgid "B<long bpf_rc_repeat(void *>I<ctx>B<)>" |
| 3459 |
msgstr "" |
| 3460 |
|
| 3461 |
#. type: Plain text |
| 3462 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3463 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3464 |
msgid "" |
| 3465 |
"This helper is used in programs implementing IR decoding, to report a " |
| 3466 |
"successfully decoded repeat key message. This delays the generation of a key " |
| 3467 |
"up event for previously generated key down event." |
| 3468 |
msgstr "" |
| 3469 |
|
| 3470 |
#. type: Plain text |
| 3471 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3472 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3473 |
msgid "" |
| 3474 |
"Some IR protocols like NEC have a special IR message for repeating last " |
| 3475 |
"button, for when a button is held down." |
| 3476 |
msgstr "" |
| 3477 |
|
| 3478 |
#. type: Plain text |
| 3479 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3480 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3481 |
msgid "The I<ctx> should point to the lirc sample as passed into the program." |
| 3482 |
msgstr "" |
| 3483 |
|
| 3484 |
#. type: Plain text |
| 3485 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3486 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3487 |
msgid "" |
| 3488 |
"This helper is only available is the kernel was compiled with the " |
| 3489 |
"B<CONFIG_BPF_LIRC_MODE2> configuration option set to \"B<y>\"." |
| 3490 |
msgstr "" |
| 3491 |
|
| 3492 |
#. type: TP |
| 3493 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3494 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3495 |
#, no-wrap |
| 3496 |
msgid "B<long bpf_rc_keydown(void *>I<ctx>B<, u32 >I<protocol>B<, u64 >I<scancode>B<, u32 >I<toggle>B<)>" |
| 3497 |
msgstr "" |
| 3498 |
|
| 3499 |
#. type: Plain text |
| 3500 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3501 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3502 |
msgid "" |
| 3503 |
"This helper is used in programs implementing IR decoding, to report a " |
| 3504 |
"successfully decoded key press with I<scancode>, I<toggle> value in the " |
| 3505 |
"given I<protocol>\\&. The scancode will be translated to a keycode using the " |
| 3506 |
"rc keymap, and reported as an input key down event. After a period a key up " |
| 3507 |
"event is generated. This period can be extended by calling either " |
| 3508 |
"B<bpf_rc_keydown>() again with the same values, or calling " |
| 3509 |
"B<bpf_rc_repeat>()." |
| 3510 |
msgstr "" |
| 3511 |
|
| 3512 |
#. type: Plain text |
| 3513 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3514 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3515 |
msgid "" |
| 3516 |
"Some protocols include a toggle bit, in case the button was released and " |
| 3517 |
"pressed again between consecutive scancodes." |
| 3518 |
msgstr "" |
| 3519 |
|
| 3520 |
#. type: Plain text |
| 3521 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3522 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3523 |
msgid "" |
| 3524 |
"The I<protocol> is the decoded protocol number (see B<enum rc_proto> for " |
| 3525 |
"some predefined values)." |
| 3526 |
msgstr "" |
| 3527 |
|
| 3528 |
#. type: TP |
| 3529 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3530 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3531 |
#, no-wrap |
| 3532 |
msgid "B<u64 bpf_skb_cgroup_id(struct sk_buff *>I<skb>B<)>" |
| 3533 |
msgstr "" |
| 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 |
"Return the cgroup v2 id of the socket associated with the I<skb>\\&. This " |
| 3540 |
"is roughly similar to the B<bpf_get_cgroup_classid>() helper for cgroup v1 " |
| 3541 |
"by providing a tag resp. identifier that can be matched on or used for map " |
| 3542 |
"lookups e.g. to implement policy. The cgroup v2 id of a given path in the " |
| 3543 |
"hierarchy is exposed in user space through the f_handle API in order to get " |
| 3544 |
"to the same 64-bit id." |
| 3545 |
msgstr "" |
| 3546 |
|
| 3547 |
#. type: Plain text |
| 3548 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3549 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3550 |
msgid "" |
| 3551 |
"This helper can be used on TC egress path, but not on ingress, and is " |
| 3552 |
"available only if the kernel was compiled with the " |
| 3553 |
"B<CONFIG_SOCK_CGROUP_DATA> configuration option." |
| 3554 |
msgstr "" |
| 3555 |
|
| 3556 |
#. type: Plain text |
| 3557 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3558 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3559 |
msgid "The id is returned or 0 in case the id could not be retrieved." |
| 3560 |
msgstr "" |
| 3561 |
|
| 3562 |
#. type: TP |
| 3563 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3564 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3565 |
#, no-wrap |
| 3566 |
msgid "B<u64 bpf_get_current_cgroup_id(void)>" |
| 3567 |
msgstr "" |
| 3568 |
|
| 3569 |
#. type: Plain text |
| 3570 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3571 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3572 |
msgid "" |
| 3573 |
"Get the current cgroup id based on the cgroup within which the current task " |
| 3574 |
"is running." |
| 3575 |
msgstr "" |
| 3576 |
|
| 3577 |
#. type: Plain text |
| 3578 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3579 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3580 |
msgid "" |
| 3581 |
"A 64-bit integer containing the current cgroup id based on the cgroup within " |
| 3582 |
"which the current task is running." |
| 3583 |
msgstr "" |
| 3584 |
|
| 3585 |
#. type: TP |
| 3586 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3587 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3588 |
#, no-wrap |
| 3589 |
msgid "B<void *bpf_get_local_storage(void *>I<map>B<, u64 >I<flags>B<)>" |
| 3590 |
msgstr "" |
| 3591 |
|
| 3592 |
#. type: Plain text |
| 3593 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3594 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3595 |
msgid "" |
| 3596 |
"Get the pointer to the local storage area. The type and the size of the " |
| 3597 |
"local storage is defined by the I<map> argument. The I<flags> meaning is " |
| 3598 |
"specific for each map type, and has to be 0 for cgroup local storage." |
| 3599 |
msgstr "" |
| 3600 |
|
| 3601 |
#. type: Plain text |
| 3602 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3603 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3604 |
msgid "" |
| 3605 |
"Depending on the BPF program type, a local storage area can be shared " |
| 3606 |
"between multiple instances of the BPF program, running simultaneously." |
| 3607 |
msgstr "" |
| 3608 |
|
| 3609 |
#. type: Plain text |
| 3610 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3611 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3612 |
msgid "" |
| 3613 |
"A user should care about the synchronization by himself. For example, by " |
| 3614 |
"using the B<BPF_ATOMIC> instructions to alter the shared data." |
| 3615 |
msgstr "" |
| 3616 |
|
| 3617 |
#. type: Plain text |
| 3618 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3619 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3620 |
msgid "A pointer to the local storage area." |
| 3621 |
msgstr "" |
| 3622 |
|
| 3623 |
#. type: TP |
| 3624 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3625 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3626 |
#, no-wrap |
| 3627 |
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<)>" |
| 3628 |
msgstr "" |
| 3629 |
|
| 3630 |
#. type: Plain text |
| 3631 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3632 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3633 |
msgid "" |
| 3634 |
"Select a B<SO_REUSEPORT> socket from a B<BPF_MAP_TYPE_REUSEPORT_SOCKARRAY> " |
| 3635 |
"I<map>\\&. It checks the selected socket is matching the incoming request " |
| 3636 |
"in the socket buffer." |
| 3637 |
msgstr "" |
| 3638 |
|
| 3639 |
#. type: TP |
| 3640 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3641 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3642 |
#, no-wrap |
| 3643 |
msgid "B<u64 bpf_skb_ancestor_cgroup_id(struct sk_buff *>I<skb>B<, int >I<ancestor_level>B<)>" |
| 3644 |
msgstr "" |
| 3645 |
|
| 3646 |
#. type: Plain text |
| 3647 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3648 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3649 |
msgid "" |
| 3650 |
"Return id of cgroup v2 that is ancestor of cgroup associated with the I<skb> " |
| 3651 |
"at the I<ancestor_level>\\&. The root cgroup is at I<ancestor_level> zero " |
| 3652 |
"and each step down the hierarchy increments the level. If I<ancestor_level> " |
| 3653 |
"== level of cgroup associated with I<skb>, then return value will be same as " |
| 3654 |
"that of B<bpf_skb_cgroup_id>()." |
| 3655 |
msgstr "" |
| 3656 |
|
| 3657 |
#. type: Plain text |
| 3658 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3659 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3660 |
msgid "" |
| 3661 |
"The helper is useful to implement policies based on cgroups that are upper " |
| 3662 |
"in hierarchy than immediate cgroup associated with I<skb>\\&." |
| 3663 |
msgstr "" |
| 3664 |
|
| 3665 |
#. type: Plain text |
| 3666 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3667 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3668 |
msgid "" |
| 3669 |
"The format of returned id and helper limitations are same as in " |
| 3670 |
"B<bpf_skb_cgroup_id>()." |
| 3671 |
msgstr "" |
| 3672 |
|
| 3673 |
#. type: TP |
| 3674 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3675 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3676 |
#, no-wrap |
| 3677 |
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<)>" |
| 3678 |
msgstr "" |
| 3679 |
|
| 3680 |
#. type: Plain text |
| 3681 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3682 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3683 |
msgid "" |
| 3684 |
"Look for TCP socket matching I<tuple>, optionally in a child network " |
| 3685 |
"namespace I<netns>\\&. The return value must be checked, and if non-B<NULL>, " |
| 3686 |
"released via B<bpf_sk_release>()." |
| 3687 |
msgstr "" |
| 3688 |
|
| 3689 |
#. type: Plain text |
| 3690 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3691 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3692 |
msgid "" |
| 3693 |
"The I<ctx> should point to the context of the program, such as the skb or " |
| 3694 |
"socket (depending on the hook in use). This is used to determine the base " |
| 3695 |
"network namespace for the lookup." |
| 3696 |
msgstr "" |
| 3697 |
|
| 3698 |
#. type: Plain text |
| 3699 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3700 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3701 |
msgid "I<tuple_size> must be one of:" |
| 3702 |
msgstr "" |
| 3703 |
|
| 3704 |
#. type: TP |
| 3705 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3706 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3707 |
#, no-wrap |
| 3708 |
msgid "B<sizeof(>I<tuple>B<-E<gt>ipv4)>" |
| 3709 |
msgstr "" |
| 3710 |
|
| 3711 |
#. type: Plain text |
| 3712 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3713 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3714 |
msgid "Look for an IPv4 socket." |
| 3715 |
msgstr "" |
| 3716 |
|
| 3717 |
#. type: TP |
| 3718 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3719 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3720 |
#, no-wrap |
| 3721 |
msgid "B<sizeof(>I<tuple>B<-E<gt>ipv6)>" |
| 3722 |
msgstr "" |
| 3723 |
|
| 3724 |
#. type: Plain text |
| 3725 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3726 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3727 |
msgid "Look for an IPv6 socket." |
| 3728 |
msgstr "" |
| 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 |
"If the I<netns> is a negative signed 32-bit integer, then the socket lookup " |
| 3735 |
"table in the netns associated with the I<ctx> will be used. For the TC " |
| 3736 |
"hooks, this is the netns of the device in the skb. For socket hooks, this is " |
| 3737 |
"the netns of the socket. If I<netns> is any other signed 32-bit value " |
| 3738 |
"greater than or equal to zero then it specifies the ID of the netns relative " |
| 3739 |
"to the netns associated with the I<ctx>\\&. I<netns> values beyond the range " |
| 3740 |
"of 32-bit integers are reserved for future use." |
| 3741 |
msgstr "" |
| 3742 |
|
| 3743 |
#. type: Plain text |
| 3744 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3745 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3746 |
msgid "" |
| 3747 |
"This helper is available only if the kernel was compiled with B<CONFIG_NET> " |
| 3748 |
"configuration option." |
| 3749 |
msgstr "" |
| 3750 |
|
| 3751 |
#. type: Plain text |
| 3752 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3753 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3754 |
msgid "" |
| 3755 |
"Pointer to B<struct bpf_sock>, or B<NULL> in case of failure. For sockets " |
| 3756 |
"with reuseport option, the B<struct bpf_sock> result is from I<reuse>B<-" |
| 3757 |
"E<gt>socks>[] using the hash of the tuple." |
| 3758 |
msgstr "" |
| 3759 |
|
| 3760 |
#. type: TP |
| 3761 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3762 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3763 |
#, no-wrap |
| 3764 |
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<)>" |
| 3765 |
msgstr "" |
| 3766 |
|
| 3767 |
#. type: Plain text |
| 3768 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3769 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3770 |
msgid "" |
| 3771 |
"Look for UDP socket matching I<tuple>, optionally in a child network " |
| 3772 |
"namespace I<netns>\\&. The return value must be checked, and if non-B<NULL>, " |
| 3773 |
"released via B<bpf_sk_release>()." |
| 3774 |
msgstr "" |
| 3775 |
|
| 3776 |
#. type: TP |
| 3777 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3778 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3779 |
#, no-wrap |
| 3780 |
msgid "B<long bpf_sk_release(void *>I<sock>B<)>" |
| 3781 |
msgstr "" |
| 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 |
"Release the reference held by I<sock>\\&. I<sock> must be a non-B<NULL> " |
| 3788 |
"pointer that was returned from B<bpf_sk_lookup_xxx>()." |
| 3789 |
msgstr "" |
| 3790 |
|
| 3791 |
#. type: TP |
| 3792 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3793 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3794 |
#, no-wrap |
| 3795 |
msgid "B<long bpf_map_push_elem(struct bpf_map *>I<map>B<, const void *>I<value>B<, u64 >I<flags>B<)>" |
| 3796 |
msgstr "" |
| 3797 |
|
| 3798 |
#. type: Plain text |
| 3799 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3800 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3801 |
msgid "Push an element I<value> in I<map>\\&. I<flags> is one of:" |
| 3802 |
msgstr "" |
| 3803 |
|
| 3804 |
#. type: Plain text |
| 3805 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3806 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3807 |
msgid "" |
| 3808 |
"If the queue/stack is full, the oldest element is removed to make room for " |
| 3809 |
"this." |
| 3810 |
msgstr "" |
| 3811 |
|
| 3812 |
#. type: TP |
| 3813 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3814 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3815 |
#, no-wrap |
| 3816 |
msgid "B<long bpf_map_pop_elem(struct bpf_map *>I<map>B<, void *>I<value>B<)>" |
| 3817 |
msgstr "" |
| 3818 |
|
| 3819 |
#. type: Plain text |
| 3820 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3821 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3822 |
msgid "Pop an element from I<map>\\&." |
| 3823 |
msgstr "" |
| 3824 |
|
| 3825 |
#. type: TP |
| 3826 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3827 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3828 |
#, no-wrap |
| 3829 |
msgid "B<long bpf_map_peek_elem(struct bpf_map *>I<map>B<, void *>I<value>B<)>" |
| 3830 |
msgstr "" |
| 3831 |
|
| 3832 |
#. type: Plain text |
| 3833 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3834 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3835 |
msgid "Get an element from I<map> without removing it." |
| 3836 |
msgstr "" |
| 3837 |
|
| 3838 |
#. type: TP |
| 3839 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3840 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3841 |
#, no-wrap |
| 3842 |
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<)>" |
| 3843 |
msgstr "" |
| 3844 |
|
| 3845 |
#. type: Plain text |
| 3846 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3847 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3848 |
msgid "" |
| 3849 |
"For socket policies, insert I<len> bytes into I<msg> at offset I<start>\\&." |
| 3850 |
msgstr "" |
| 3851 |
|
| 3852 |
#. type: Plain text |
| 3853 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3854 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3855 |
msgid "" |
| 3856 |
"If a program of type B<BPF_PROG_TYPE_SK_MSG> is run on a I<msg> it may want " |
| 3857 |
"to insert metadata or options into the I<msg>\\&. This can later be read " |
| 3858 |
"and used by any of the lower layer BPF hooks." |
| 3859 |
msgstr "" |
| 3860 |
|
| 3861 |
#. type: Plain text |
| 3862 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3863 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3864 |
msgid "" |
| 3865 |
"This helper may fail if under memory pressure (a malloc fails) in these " |
| 3866 |
"cases BPF programs will get an appropriate error and BPF programs will need " |
| 3867 |
"to handle them." |
| 3868 |
msgstr "" |
| 3869 |
|
| 3870 |
#. type: TP |
| 3871 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3872 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3873 |
#, no-wrap |
| 3874 |
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<)>" |
| 3875 |
msgstr "" |
| 3876 |
|
| 3877 |
#. type: Plain text |
| 3878 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3879 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3880 |
msgid "" |
| 3881 |
"Will remove I<len> bytes from a I<msg> starting at byte I<start>\\&. This " |
| 3882 |
"may result in B<ENOMEM> errors under certain situations if an allocation and " |
| 3883 |
"copy are required due to a full ring buffer. However, the helper will try " |
| 3884 |
"to avoid doing the allocation if possible. Other errors can occur if input " |
| 3885 |
"parameters are invalid either due to I<start> byte not being valid part of " |
| 3886 |
"I<msg> payload and/or I<pop> value being to large." |
| 3887 |
msgstr "" |
| 3888 |
|
| 3889 |
#. type: TP |
| 3890 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3891 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3892 |
#, no-wrap |
| 3893 |
msgid "B<long bpf_rc_pointer_rel(void *>I<ctx>B<, s32 >I<rel_x>B<, s32 >I<rel_y>B<)>" |
| 3894 |
msgstr "" |
| 3895 |
|
| 3896 |
#. type: Plain text |
| 3897 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3898 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3899 |
msgid "" |
| 3900 |
"This helper is used in programs implementing IR decoding, to report a " |
| 3901 |
"successfully decoded pointer movement." |
| 3902 |
msgstr "" |
| 3903 |
|
| 3904 |
#. type: TP |
| 3905 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3906 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3907 |
#, no-wrap |
| 3908 |
msgid "B<long bpf_spin_lock(struct bpf_spin_lock *>I<lock>B<)>" |
| 3909 |
msgstr "" |
| 3910 |
|
| 3911 |
#. type: Plain text |
| 3912 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3913 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3914 |
msgid "" |
| 3915 |
"Acquire a spinlock represented by the pointer I<lock>, which is stored as " |
| 3916 |
"part of a value of a map. Taking the lock allows to safely update the rest " |
| 3917 |
"of the fields in that value. The spinlock can (and must) later be released " |
| 3918 |
"with a call to B<bpf_spin_unlock>(I<lock>)." |
| 3919 |
msgstr "" |
| 3920 |
|
| 3921 |
#. type: Plain text |
| 3922 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3923 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3924 |
msgid "" |
| 3925 |
"Spinlocks in BPF programs come with a number of restrictions and constraints:" |
| 3926 |
msgstr "" |
| 3927 |
|
| 3928 |
#. type: Plain text |
| 3929 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3930 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3931 |
msgid "" |
| 3932 |
"B<bpf_spin_lock> objects are only allowed inside maps of types " |
| 3933 |
"B<BPF_MAP_TYPE_HASH> and B<BPF_MAP_TYPE_ARRAY> (this list could be extended " |
| 3934 |
"in the future)." |
| 3935 |
msgstr "" |
| 3936 |
|
| 3937 |
#. type: Plain text |
| 3938 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3939 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3940 |
msgid "BTF description of the map is mandatory." |
| 3941 |
msgstr "" |
| 3942 |
|
| 3943 |
#. type: Plain text |
| 3944 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3945 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3946 |
msgid "" |
| 3947 |
"The BPF program can take ONE lock at a time, since taking two or more could " |
| 3948 |
"cause dead locks." |
| 3949 |
msgstr "" |
| 3950 |
|
| 3951 |
#. type: Plain text |
| 3952 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3953 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3954 |
msgid "Only one B<struct bpf_spin_lock> is allowed per map element." |
| 3955 |
msgstr "" |
| 3956 |
|
| 3957 |
#. type: Plain text |
| 3958 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3959 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3960 |
msgid "" |
| 3961 |
"When the lock is taken, calls (either BPF to BPF or helpers) are not " |
| 3962 |
"allowed." |
| 3963 |
msgstr "" |
| 3964 |
|
| 3965 |
#. type: Plain text |
| 3966 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3967 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3968 |
msgid "" |
| 3969 |
"The B<BPF_LD_ABS> and B<BPF_LD_IND> instructions are not allowed inside a " |
| 3970 |
"spinlock-ed region." |
| 3971 |
msgstr "" |
| 3972 |
|
| 3973 |
#. type: Plain text |
| 3974 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3975 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3976 |
msgid "" |
| 3977 |
"The BPF program MUST call B<bpf_spin_unlock>() to release the lock, on all " |
| 3978 |
"execution paths, before it returns." |
| 3979 |
msgstr "" |
| 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 |
"The BPF program can access B<struct bpf_spin_lock> only via the " |
| 3986 |
"B<bpf_spin_lock>() and B<bpf_spin_unlock>() helpers. Loading or storing " |
| 3987 |
"data into the B<struct bpf_spin_lock> I<lock>B<;> field of a map is not " |
| 3988 |
"allowed." |
| 3989 |
msgstr "" |
| 3990 |
|
| 3991 |
#. type: Plain text |
| 3992 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 3993 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3994 |
msgid "" |
| 3995 |
"To use the B<bpf_spin_lock>() helper, the BTF description of the map value " |
| 3996 |
"must be a struct and have B<struct bpf_spin_lock> I<anyname>B<;> field at " |
| 3997 |
"the top level. Nested lock inside another struct is not allowed." |
| 3998 |
msgstr "" |
| 3999 |
|
| 4000 |
#. type: Plain text |
| 4001 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4002 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4003 |
msgid "" |
| 4004 |
"The B<struct bpf_spin_lock> I<lock> field in a map value must be aligned on " |
| 4005 |
"a multiple of 4 bytes in that value." |
| 4006 |
msgstr "" |
| 4007 |
|
| 4008 |
#. type: Plain text |
| 4009 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4010 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4011 |
msgid "" |
| 4012 |
"Syscall with command B<BPF_MAP_LOOKUP_ELEM> does not copy the " |
| 4013 |
"B<bpf_spin_lock> field to user space." |
| 4014 |
msgstr "" |
| 4015 |
|
| 4016 |
#. type: Plain text |
| 4017 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4018 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4019 |
msgid "" |
| 4020 |
"Syscall with command B<BPF_MAP_UPDATE_ELEM>, or update from a BPF program, " |
| 4021 |
"do not update the B<bpf_spin_lock> field." |
| 4022 |
msgstr "" |
| 4023 |
|
| 4024 |
#. type: Plain text |
| 4025 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4026 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4027 |
msgid "" |
| 4028 |
"B<bpf_spin_lock> cannot be on the stack or inside a networking packet (it " |
| 4029 |
"can only be inside of a map values)." |
| 4030 |
msgstr "" |
| 4031 |
|
| 4032 |
#. type: Plain text |
| 4033 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4034 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4035 |
msgid "B<bpf_spin_lock> is available to root only." |
| 4036 |
msgstr "" |
| 4037 |
|
| 4038 |
#. type: Plain text |
| 4039 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4040 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4041 |
msgid "" |
| 4042 |
"Tracing programs and socket filter programs cannot use B<bpf_spin_lock>() " |
| 4043 |
"due to insufficient preemption checks (but this may change in the future)." |
| 4044 |
msgstr "" |
| 4045 |
|
| 4046 |
#. type: Plain text |
| 4047 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4048 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4049 |
msgid "B<bpf_spin_lock> is not allowed in inner maps of map-in-map." |
| 4050 |
msgstr "" |
| 4051 |
|
| 4052 |
#. type: TP |
| 4053 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4054 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4055 |
#, no-wrap |
| 4056 |
msgid "B<long bpf_spin_unlock(struct bpf_spin_lock *>I<lock>B<)>" |
| 4057 |
msgstr "" |
| 4058 |
|
| 4059 |
#. type: Plain text |
| 4060 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4061 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4062 |
msgid "" |
| 4063 |
"Release the I<lock> previously locked by a call to B<bpf_spin_lock>(I<lock>)." |
| 4064 |
msgstr "" |
| 4065 |
|
| 4066 |
#. type: TP |
| 4067 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4068 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4069 |
#, no-wrap |
| 4070 |
msgid "B<struct bpf_sock *bpf_sk_fullsock(struct bpf_sock *>I<sk>B<)>" |
| 4071 |
msgstr "" |
| 4072 |
|
| 4073 |
#. type: Plain text |
| 4074 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4075 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4076 |
msgid "" |
| 4077 |
"This helper gets a B<struct bpf_sock> pointer such that all the fields in " |
| 4078 |
"this B<bpf_sock> can be accessed." |
| 4079 |
msgstr "" |
| 4080 |
|
| 4081 |
#. type: Plain text |
| 4082 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4083 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4084 |
msgid "A B<struct bpf_sock> pointer on success, or B<NULL> in case of failure." |
| 4085 |
msgstr "" |
| 4086 |
|
| 4087 |
#. type: TP |
| 4088 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4089 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4090 |
#, no-wrap |
| 4091 |
msgid "B<struct bpf_tcp_sock *bpf_tcp_sock(struct bpf_sock *>I<sk>B<)>" |
| 4092 |
msgstr "" |
| 4093 |
|
| 4094 |
#. type: Plain text |
| 4095 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4096 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4097 |
msgid "" |
| 4098 |
"This helper gets a B<struct bpf_tcp_sock> pointer from a B<struct bpf_sock> " |
| 4099 |
"pointer." |
| 4100 |
msgstr "" |
| 4101 |
|
| 4102 |
#. type: Plain text |
| 4103 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4104 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4105 |
msgid "" |
| 4106 |
"A B<struct bpf_tcp_sock> pointer on success, or B<NULL> in case of failure." |
| 4107 |
msgstr "" |
| 4108 |
|
| 4109 |
#. type: TP |
| 4110 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4111 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4112 |
#, no-wrap |
| 4113 |
msgid "B<long bpf_skb_ecn_set_ce(struct sk_buff *>I<skb>B<)>" |
| 4114 |
msgstr "" |
| 4115 |
|
| 4116 |
#. type: Plain text |
| 4117 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4118 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4119 |
msgid "" |
| 4120 |
"Set ECN (Explicit Congestion Notification) field of IP header to B<CE> " |
| 4121 |
"(Congestion Encountered) if current value is B<ECT> (ECN Capable Transport). " |
| 4122 |
"Otherwise, do nothing. Works with IPv6 and IPv4." |
| 4123 |
msgstr "" |
| 4124 |
|
| 4125 |
#. type: Plain text |
| 4126 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4127 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4128 |
msgid "" |
| 4129 |
"1 if the B<CE> flag is set (either by the current helper call or because it " |
| 4130 |
"was already present), 0 if it is not set." |
| 4131 |
msgstr "" |
| 4132 |
|
| 4133 |
#. type: TP |
| 4134 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4135 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4136 |
#, no-wrap |
| 4137 |
msgid "B<struct bpf_sock *bpf_get_listener_sock(struct bpf_sock *>I<sk>B<)>" |
| 4138 |
msgstr "" |
| 4139 |
|
| 4140 |
#. type: Plain text |
| 4141 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4142 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4143 |
msgid "" |
| 4144 |
"Return a B<struct bpf_sock> pointer in B<TCP_LISTEN> state. " |
| 4145 |
"B<bpf_sk_release>() is unnecessary and not allowed." |
| 4146 |
msgstr "" |
| 4147 |
|
| 4148 |
#. type: TP |
| 4149 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4150 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4151 |
#, no-wrap |
| 4152 |
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<)>" |
| 4153 |
msgstr "" |
| 4154 |
|
| 4155 |
#. type: Plain text |
| 4156 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4157 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4158 |
msgid "" |
| 4159 |
"This function is identical to B<bpf_sk_lookup_tcp>(), except that it also " |
| 4160 |
"returns timewait or request sockets. Use B<bpf_sk_fullsock>() or " |
| 4161 |
"B<bpf_tcp_sock>() to access the full structure." |
| 4162 |
msgstr "" |
| 4163 |
|
| 4164 |
#. type: TP |
| 4165 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4166 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4167 |
#, no-wrap |
| 4168 |
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<)>" |
| 4169 |
msgstr "" |
| 4170 |
|
| 4171 |
#. type: Plain text |
| 4172 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4173 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4174 |
msgid "" |
| 4175 |
"Check whether I<iph> and I<th> contain a valid SYN cookie ACK for the " |
| 4176 |
"listening socket in I<sk>\\&." |
| 4177 |
msgstr "" |
| 4178 |
|
| 4179 |
#. type: Plain text |
| 4180 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4181 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4182 |
msgid "" |
| 4183 |
"I<iph> points to the start of the IPv4 or IPv6 header, while I<iph_len> " |
| 4184 |
"contains B<sizeof>(B<struct iphdr>) or B<sizeof>(B<struct ipv6hdr>)." |
| 4185 |
msgstr "" |
| 4186 |
|
| 4187 |
#. type: Plain text |
| 4188 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4189 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4190 |
msgid "" |
| 4191 |
"I<th> points to the start of the TCP header, while I<th_len> contains the " |
| 4192 |
"length of the TCP header (at least B<sizeof>(B<struct tcphdr>))." |
| 4193 |
msgstr "" |
| 4194 |
|
| 4195 |
#. type: Plain text |
| 4196 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4197 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4198 |
msgid "" |
| 4199 |
"0 if I<iph> and I<th> are a valid SYN cookie ACK, or a negative error " |
| 4200 |
"otherwise." |
| 4201 |
msgstr "" |
| 4202 |
|
| 4203 |
#. type: TP |
| 4204 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4205 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4206 |
#, no-wrap |
| 4207 |
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<)>" |
| 4208 |
msgstr "" |
| 4209 |
|
| 4210 |
#. type: Plain text |
| 4211 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4212 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4213 |
msgid "" |
| 4214 |
"Get name of sysctl in /proc/sys/ and copy it into provided by program buffer " |
| 4215 |
"I<buf> of size I<buf_len>\\&." |
| 4216 |
msgstr "" |
| 4217 |
|
| 4218 |
#. type: Plain text |
| 4219 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4220 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4221 |
msgid "The buffer is always NUL terminated, unless it\\(aqs zero-sized." |
| 4222 |
msgstr "" |
| 4223 |
|
| 4224 |
#. type: Plain text |
| 4225 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4226 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4227 |
msgid "" |
| 4228 |
"If I<flags> is zero, full name (e.g. \"net/ipv4/tcp_mem\") is copied. Use " |
| 4229 |
"B<BPF_F_SYSCTL_BASE_NAME> flag to copy base name only (e.g. \"tcp_mem\")." |
| 4230 |
msgstr "" |
| 4231 |
|
| 4232 |
#. type: Plain text |
| 4233 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4234 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4235 |
msgid "Number of character copied (not including the trailing NUL)." |
| 4236 |
msgstr "" |
| 4237 |
|
| 4238 |
#. type: Plain text |
| 4239 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4240 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4241 |
msgid "" |
| 4242 |
"B<-E2BIG> if the buffer wasn\\(aqt big enough (I<buf> will contain truncated " |
| 4243 |
"name in this case)." |
| 4244 |
msgstr "" |
| 4245 |
|
| 4246 |
#. type: TP |
| 4247 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4248 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4249 |
#, no-wrap |
| 4250 |
msgid "B<long bpf_sysctl_get_current_value(struct bpf_sysctl *>I<ctx>B<, char *>I<buf>B<, size_t >I<buf_len>B<)>" |
| 4251 |
msgstr "" |
| 4252 |
|
| 4253 |
#. type: Plain text |
| 4254 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4255 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4256 |
msgid "" |
| 4257 |
"Get current value of sysctl as it is presented in /proc/sys (incl. newline, " |
| 4258 |
"etc), and copy it as a string into provided by program buffer I<buf> of size " |
| 4259 |
"I<buf_len>\\&." |
| 4260 |
msgstr "" |
| 4261 |
|
| 4262 |
#. type: Plain text |
| 4263 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4264 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4265 |
msgid "" |
| 4266 |
"The whole value is copied, no matter what file position user space issued " |
| 4267 |
"e.g. sys_read at." |
| 4268 |
msgstr "" |
| 4269 |
|
| 4270 |
#. type: Plain text |
| 4271 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4272 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4273 |
msgid "" |
| 4274 |
"B<-EINVAL> if current value was unavailable, e.g. because sysctl is " |
| 4275 |
"uninitialized and read returns -EIO for it." |
| 4276 |
msgstr "" |
| 4277 |
|
| 4278 |
#. type: TP |
| 4279 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4280 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4281 |
#, no-wrap |
| 4282 |
msgid "B<long bpf_sysctl_get_new_value(struct bpf_sysctl *>I<ctx>B<, char *>I<buf>B<, size_t >I<buf_len>B<)>" |
| 4283 |
msgstr "" |
| 4284 |
|
| 4285 |
#. type: Plain text |
| 4286 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4287 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4288 |
msgid "" |
| 4289 |
"Get new value being written by user space to sysctl (before the actual write " |
| 4290 |
"happens) and copy it as a string into provided by program buffer I<buf> of " |
| 4291 |
"size I<buf_len>\\&." |
| 4292 |
msgstr "" |
| 4293 |
|
| 4294 |
#. type: Plain text |
| 4295 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4296 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4297 |
msgid "User space may write new value at file position E<gt> 0." |
| 4298 |
msgstr "" |
| 4299 |
|
| 4300 |
#. type: Plain text |
| 4301 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4302 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4303 |
msgid "B<-EINVAL> if sysctl is being read." |
| 4304 |
msgstr "" |
| 4305 |
|
| 4306 |
#. type: TP |
| 4307 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4308 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4309 |
#, no-wrap |
| 4310 |
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<)>" |
| 4311 |
msgstr "" |
| 4312 |
|
| 4313 |
#. type: Plain text |
| 4314 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4315 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4316 |
msgid "" |
| 4317 |
"Override new value being written by user space to sysctl with value provided " |
| 4318 |
"by program in buffer I<buf> of size I<buf_len>\\&." |
| 4319 |
msgstr "" |
| 4320 |
|
| 4321 |
#. type: Plain text |
| 4322 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4323 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4324 |
msgid "" |
| 4325 |
"I<buf> should contain a string in same form as provided by user space on " |
| 4326 |
"sysctl write." |
| 4327 |
msgstr "" |
| 4328 |
|
| 4329 |
#. type: Plain text |
| 4330 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4331 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4332 |
msgid "" |
| 4333 |
"User space may write new value at file position E<gt> 0. To override the " |
| 4334 |
"whole sysctl value file position should be set to zero." |
| 4335 |
msgstr "" |
| 4336 |
|
| 4337 |
#. type: Plain text |
| 4338 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4339 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4340 |
msgid "0 on success." |
| 4341 |
msgstr "" |
| 4342 |
|
| 4343 |
#. type: Plain text |
| 4344 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4345 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4346 |
msgid "B<-E2BIG> if the I<buf_len> is too big." |
| 4347 |
msgstr "" |
| 4348 |
|
| 4349 |
#. type: TP |
| 4350 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4351 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4352 |
#, no-wrap |
| 4353 |
msgid "B<long bpf_strtol(const char *>I<buf>B<, size_t >I<buf_len>B<, u64 >I<flags>B<, long *>I<res>B<)>" |
| 4354 |
msgstr "" |
| 4355 |
|
| 4356 |
#. type: Plain text |
| 4357 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4358 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4359 |
msgid "" |
| 4360 |
"Convert the initial part of the string from buffer I<buf> of size I<buf_len> " |
| 4361 |
"to a long integer according to the given base and save the result in " |
| 4362 |
"I<res>\\&." |
| 4363 |
msgstr "" |
| 4364 |
|
| 4365 |
#. type: Plain text |
| 4366 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4367 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4368 |
msgid "" |
| 4369 |
"The string may begin with an arbitrary amount of white space (as determined " |
| 4370 |
"by B<isspace>(3)) followed by a single optional \\(aqB<->\\(aq sign." |
| 4371 |
msgstr "" |
| 4372 |
|
| 4373 |
#. type: Plain text |
| 4374 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4375 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4376 |
msgid "" |
| 4377 |
"Five least significant bits of I<flags> encode base, other bits are " |
| 4378 |
"currently unused." |
| 4379 |
msgstr "" |
| 4380 |
|
| 4381 |
#. type: Plain text |
| 4382 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4383 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4384 |
msgid "" |
| 4385 |
"Base must be either 8, 10, 16 or 0 to detect it automatically similar to " |
| 4386 |
"user space B<strtol>(3)." |
| 4387 |
msgstr "" |
| 4388 |
|
| 4389 |
#. type: Plain text |
| 4390 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4391 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4392 |
msgid "" |
| 4393 |
"Number of characters consumed on success. Must be positive but no more than " |
| 4394 |
"I<buf_len>\\&." |
| 4395 |
msgstr "" |
| 4396 |
|
| 4397 |
#. type: Plain text |
| 4398 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4399 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4400 |
msgid "" |
| 4401 |
"B<-EINVAL> if no valid digits were found or unsupported base was provided." |
| 4402 |
msgstr "" |
| 4403 |
|
| 4404 |
#. type: Plain text |
| 4405 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4406 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4407 |
msgid "B<-ERANGE> if resulting value was out of range." |
| 4408 |
msgstr "" |
| 4409 |
|
| 4410 |
#. type: TP |
| 4411 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4412 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4413 |
#, no-wrap |
| 4414 |
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<)>" |
| 4415 |
msgstr "" |
| 4416 |
|
| 4417 |
#. type: Plain text |
| 4418 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4419 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4420 |
msgid "" |
| 4421 |
"Convert the initial part of the string from buffer I<buf> of size I<buf_len> " |
| 4422 |
"to an unsigned long integer according to the given base and save the result " |
| 4423 |
"in I<res>\\&." |
| 4424 |
msgstr "" |
| 4425 |
|
| 4426 |
#. type: Plain text |
| 4427 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4428 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4429 |
msgid "" |
| 4430 |
"The string may begin with an arbitrary amount of white space (as determined " |
| 4431 |
"by B<isspace>(3))." |
| 4432 |
msgstr "" |
| 4433 |
|
| 4434 |
#. type: Plain text |
| 4435 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4436 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4437 |
msgid "" |
| 4438 |
"Base must be either 8, 10, 16 or 0 to detect it automatically similar to " |
| 4439 |
"user space B<strtoul>(3)." |
| 4440 |
msgstr "" |
| 4441 |
|
| 4442 |
#. type: TP |
| 4443 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4444 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4445 |
#, no-wrap |
| 4446 |
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<)>" |
| 4447 |
msgstr "" |
| 4448 |
|
| 4449 |
#. type: Plain text |
| 4450 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4451 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4452 |
msgid "Get a bpf-local-storage from a I<sk>\\&." |
| 4453 |
msgstr "" |
| 4454 |
|
| 4455 |
#. type: Plain text |
| 4456 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4457 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4458 |
msgid "" |
| 4459 |
"Logically, it could be thought of getting the value from a I<map> with I<sk> " |
| 4460 |
"as the B<key>\\&. From this perspective, the usage is not much different " |
| 4461 |
"from B<bpf_map_lookup_elem>(I<map>, B<&>I<sk>) except this helper enforces " |
| 4462 |
"the key must be a full socket and the map must be a " |
| 4463 |
"B<BPF_MAP_TYPE_SK_STORAGE> also." |
| 4464 |
msgstr "" |
| 4465 |
|
| 4466 |
#. type: Plain text |
| 4467 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4468 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4469 |
msgid "" |
| 4470 |
"Underneath, the value is stored locally at I<sk> instead of the I<map>\\&. " |
| 4471 |
"The I<map> is used as the bpf-local-storage \"type\". The bpf-local-storage " |
| 4472 |
"\"type\" (i.e. the I<map>) is searched against all bpf-local-storages " |
| 4473 |
"residing at I<sk>\\&." |
| 4474 |
msgstr "" |
| 4475 |
|
| 4476 |
#. type: Plain text |
| 4477 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4478 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4479 |
msgid "" |
| 4480 |
"I<sk> is a kernel B<struct sock> pointer for LSM program. I<sk> is a " |
| 4481 |
"B<struct bpf_sock> pointer for other program types." |
| 4482 |
msgstr "" |
| 4483 |
|
| 4484 |
#. type: Plain text |
| 4485 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4486 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4487 |
msgid "" |
| 4488 |
"An optional I<flags> (B<BPF_SK_STORAGE_GET_F_CREATE>) can be used such that " |
| 4489 |
"a new bpf-local-storage will be created if one does not exist. I<value> can " |
| 4490 |
"be used together with B<BPF_SK_STORAGE_GET_F_CREATE> to specify the initial " |
| 4491 |
"value of a bpf-local-storage. If I<value> is B<NULL>, the new bpf-local-" |
| 4492 |
"storage will be zero initialized." |
| 4493 |
msgstr "" |
| 4494 |
|
| 4495 |
#. type: Plain text |
| 4496 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4497 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4498 |
msgid "A bpf-local-storage pointer is returned on success." |
| 4499 |
msgstr "" |
| 4500 |
|
| 4501 |
#. type: Plain text |
| 4502 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4503 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4504 |
msgid "" |
| 4505 |
"B<NULL> if not found or there was an error in adding a new bpf-local-storage." |
| 4506 |
msgstr "" |
| 4507 |
|
| 4508 |
#. type: TP |
| 4509 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4510 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4511 |
#, no-wrap |
| 4512 |
msgid "B<long bpf_sk_storage_delete(struct bpf_map *>I<map>B<, void *>I<sk>B<)>" |
| 4513 |
msgstr "" |
| 4514 |
|
| 4515 |
#. type: Plain text |
| 4516 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4517 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4518 |
msgid "Delete a bpf-local-storage from a I<sk>\\&." |
| 4519 |
msgstr "" |
| 4520 |
|
| 4521 |
#. type: Plain text |
| 4522 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4523 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4524 |
msgid "" |
| 4525 |
"B<-ENOENT> if the bpf-local-storage cannot be found. B<-EINVAL> if sk is " |
| 4526 |
"not a fullsock (e.g. a request_sock)." |
| 4527 |
msgstr "" |
| 4528 |
|
| 4529 |
#. type: TP |
| 4530 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4531 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4532 |
#, no-wrap |
| 4533 |
msgid "B<long bpf_send_signal(u32 >I<sig>B<)>" |
| 4534 |
msgstr "" |
| 4535 |
|
| 4536 |
#. type: Plain text |
| 4537 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4538 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4539 |
msgid "" |
| 4540 |
"Send signal I<sig> to the process of the current task. The signal may be " |
| 4541 |
"delivered to any of this process\\(aqs threads." |
| 4542 |
msgstr "" |
| 4543 |
|
| 4544 |
#. type: Plain text |
| 4545 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4546 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4547 |
msgid "0 on success or successfully queued." |
| 4548 |
msgstr "" |
| 4549 |
|
| 4550 |
#. type: Plain text |
| 4551 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4552 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4553 |
msgid "B<-EBUSY> if work queue under nmi is full." |
| 4554 |
msgstr "" |
| 4555 |
|
| 4556 |
#. type: Plain text |
| 4557 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4558 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4559 |
msgid "B<-EINVAL> if I<sig> is invalid." |
| 4560 |
msgstr "" |
| 4561 |
|
| 4562 |
#. type: Plain text |
| 4563 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4564 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4565 |
msgid "B<-EPERM> if no permission to send the I<sig>\\&." |
| 4566 |
msgstr "" |
| 4567 |
|
| 4568 |
#. type: Plain text |
| 4569 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4570 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4571 |
msgid "B<-EAGAIN> if bpf program can try again." |
| 4572 |
msgstr "" |
| 4573 |
|
| 4574 |
#. type: TP |
| 4575 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4576 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4577 |
#, no-wrap |
| 4578 |
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<)>" |
| 4579 |
msgstr "" |
| 4580 |
|
| 4581 |
#. type: Plain text |
| 4582 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4583 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4584 |
msgid "" |
| 4585 |
"Try to issue a SYN cookie for the packet with corresponding IP/TCP headers, " |
| 4586 |
"I<iph> and I<th>, on the listening socket in I<sk>\\&." |
| 4587 |
msgstr "" |
| 4588 |
|
| 4589 |
#. type: Plain text |
| 4590 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4591 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4592 |
msgid "" |
| 4593 |
"I<th> points to the start of the TCP header, while I<th_len> contains the " |
| 4594 |
"length of the TCP header with options (at least B<sizeof>(B<struct tcphdr>))." |
| 4595 |
msgstr "" |
| 4596 |
|
| 4597 |
#. type: Plain text |
| 4598 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4599 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4600 |
msgid "" |
| 4601 |
"On success, lower 32 bits hold the generated SYN cookie in followed by 16 " |
| 4602 |
"bits which hold the MSS value for that cookie, and the top 16 bits are " |
| 4603 |
"unused." |
| 4604 |
msgstr "" |
| 4605 |
|
| 4606 |
#. type: Plain text |
| 4607 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4608 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4609 |
msgid "On failure, the returned value is one of the following:" |
| 4610 |
msgstr "" |
| 4611 |
|
| 4612 |
#. type: Plain text |
| 4613 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4614 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4615 |
msgid "B<-EINVAL> SYN cookie cannot be issued due to error" |
| 4616 |
msgstr "" |
| 4617 |
|
| 4618 |
#. type: Plain text |
| 4619 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4620 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4621 |
msgid "B<-ENOENT> SYN cookie should not be issued (no SYN flood)" |
| 4622 |
msgstr "" |
| 4623 |
|
| 4624 |
#. type: Plain text |
| 4625 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4626 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4627 |
msgid "B<-EOPNOTSUPP> kernel configuration does not enable SYN cookies" |
| 4628 |
msgstr "" |
| 4629 |
|
| 4630 |
#. type: Plain text |
| 4631 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4632 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4633 |
msgid "B<-EPROTONOSUPPORT> IP packet version is not 4 or 6" |
| 4634 |
msgstr "" |
| 4635 |
|
| 4636 |
#. type: TP |
| 4637 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4638 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4639 |
#, no-wrap |
| 4640 |
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<)>" |
| 4641 |
msgstr "" |
| 4642 |
|
| 4643 |
#. type: Plain text |
| 4644 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4645 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4646 |
msgid "I<ctx> is a pointer to in-kernel struct sk_buff." |
| 4647 |
msgstr "" |
| 4648 |
|
| 4649 |
#. type: Plain text |
| 4650 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4651 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4652 |
msgid "" |
| 4653 |
"This helper is similar to B<bpf_perf_event_output>() but restricted to " |
| 4654 |
"raw_tracepoint bpf programs." |
| 4655 |
msgstr "" |
| 4656 |
|
| 4657 |
#. type: TP |
| 4658 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4659 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4660 |
#, no-wrap |
| 4661 |
msgid "B<long bpf_probe_read_user(void *>I<dst>B<, u32 >I<size>B<, const void *>I<unsafe_ptr>B<)>" |
| 4662 |
msgstr "" |
| 4663 |
|
| 4664 |
#. type: Plain text |
| 4665 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4666 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4667 |
msgid "" |
| 4668 |
"Safely attempt to read I<size> bytes from user space address I<unsafe_ptr> " |
| 4669 |
"and store the data in I<dst>\\&." |
| 4670 |
msgstr "" |
| 4671 |
|
| 4672 |
#. type: TP |
| 4673 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4674 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4675 |
#, no-wrap |
| 4676 |
msgid "B<long bpf_probe_read_kernel(void *>I<dst>B<, u32 >I<size>B<, const void *>I<unsafe_ptr>B<)>" |
| 4677 |
msgstr "" |
| 4678 |
|
| 4679 |
#. type: Plain text |
| 4680 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4681 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4682 |
msgid "" |
| 4683 |
"Safely attempt to read I<size> bytes from kernel space address I<unsafe_ptr> " |
| 4684 |
"and store the data in I<dst>\\&." |
| 4685 |
msgstr "" |
| 4686 |
|
| 4687 |
#. type: TP |
| 4688 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4689 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4690 |
#, no-wrap |
| 4691 |
msgid "B<long bpf_probe_read_user_str(void *>I<dst>B<, u32 >I<size>B<, const void *>I<unsafe_ptr>B<)>" |
| 4692 |
msgstr "" |
| 4693 |
|
| 4694 |
#. type: Plain text |
| 4695 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4696 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4697 |
msgid "" |
| 4698 |
"Copy a NUL terminated string from an unsafe user address I<unsafe_ptr> to " |
| 4699 |
"I<dst>\\&. The I<size> should include the terminating NUL byte. In case the " |
| 4700 |
"string length is smaller than I<size>, the target is not padded with further " |
| 4701 |
"NUL bytes. If the string length is larger than I<size>, just I<size>-1 bytes " |
| 4702 |
"are copied and the last byte is set to NUL." |
| 4703 |
msgstr "" |
| 4704 |
|
| 4705 |
#. type: Plain text |
| 4706 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4707 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4708 |
msgid "" |
| 4709 |
"On success, returns the number of bytes that were written, including the " |
| 4710 |
"terminal NUL. This makes this helper useful in tracing programs for reading " |
| 4711 |
"strings, and more importantly to get its length at runtime. See the " |
| 4712 |
"following snippet:" |
| 4713 |
msgstr "" |
| 4714 |
|
| 4715 |
#. type: Plain text |
| 4716 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4717 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4718 |
#, no-wrap |
| 4719 |
msgid "" |
| 4720 |
"SEC(\"kprobe/sys_open\")\n" |
| 4721 |
"void bpf_sys_open(struct pt_regs *ctx)\n" |
| 4722 |
"{\n" |
| 4723 |
" char buf[PATHLEN]; // PATHLEN is defined to 256\n" |
| 4724 |
" int res = bpf_probe_read_user_str(buf, sizeof(buf),\n" |
| 4725 |
" ctx-E<gt>di);\n" |
| 4726 |
msgstr "" |
| 4727 |
|
| 4728 |
#. type: Plain text |
| 4729 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4730 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4731 |
#, no-wrap |
| 4732 |
msgid "" |
| 4733 |
" // Consume buf, for example push it to\n" |
| 4734 |
" // userspace via bpf_perf_event_output(); we\n" |
| 4735 |
" // can use res (the string length) as event\n" |
| 4736 |
" // size, after checking its boundaries.\n" |
| 4737 |
"}\n" |
| 4738 |
msgstr "" |
| 4739 |
|
| 4740 |
#. type: Plain text |
| 4741 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4742 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4743 |
msgid "" |
| 4744 |
"In comparison, using B<bpf_probe_read_user>() helper here instead to read " |
| 4745 |
"the string would require to estimate the length at compile time, and would " |
| 4746 |
"often result in copying more memory than necessary." |
| 4747 |
msgstr "" |
| 4748 |
|
| 4749 |
#. type: Plain text |
| 4750 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4751 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4752 |
msgid "" |
| 4753 |
"Another useful use case is when parsing individual process arguments or " |
| 4754 |
"individual environment variables navigating I<current>B<-E<gt>mm-" |
| 4755 |
"E<gt>arg_start> and I<current>B<-E<gt>mm-E<gt>env_start>: using this helper " |
| 4756 |
"and the return value, one can quickly iterate at the right offset of the " |
| 4757 |
"memory area." |
| 4758 |
msgstr "" |
| 4759 |
|
| 4760 |
#. type: Plain text |
| 4761 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4762 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4763 |
msgid "" |
| 4764 |
"On success, the strictly positive length of the output string, including the " |
| 4765 |
"trailing NUL character. On error, a negative value." |
| 4766 |
msgstr "" |
| 4767 |
|
| 4768 |
#. type: TP |
| 4769 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4770 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4771 |
#, no-wrap |
| 4772 |
msgid "B<long bpf_probe_read_kernel_str(void *>I<dst>B<, u32 >I<size>B<, const void *>I<unsafe_ptr>B<)>" |
| 4773 |
msgstr "" |
| 4774 |
|
| 4775 |
#. type: Plain text |
| 4776 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4777 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4778 |
msgid "" |
| 4779 |
"Copy a NUL terminated string from an unsafe kernel address I<unsafe_ptr> to " |
| 4780 |
"I<dst>\\&. Same semantics as with B<bpf_probe_read_user_str>() apply." |
| 4781 |
msgstr "" |
| 4782 |
|
| 4783 |
#. type: TP |
| 4784 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4785 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4786 |
#, no-wrap |
| 4787 |
msgid "B<long bpf_tcp_send_ack(void *>I<tp>B<, u32 >I<rcv_nxt>B<)>" |
| 4788 |
msgstr "" |
| 4789 |
|
| 4790 |
#. type: Plain text |
| 4791 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4792 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4793 |
msgid "" |
| 4794 |
"Send out a tcp-ack. I<tp> is the in-kernel struct B<tcp_sock>\\&. " |
| 4795 |
"I<rcv_nxt> is the ack_seq to be sent out." |
| 4796 |
msgstr "" |
| 4797 |
|
| 4798 |
#. type: TP |
| 4799 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4800 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4801 |
#, no-wrap |
| 4802 |
msgid "B<long bpf_send_signal_thread(u32 >I<sig>B<)>" |
| 4803 |
msgstr "" |
| 4804 |
|
| 4805 |
#. type: Plain text |
| 4806 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4807 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4808 |
msgid "Send signal I<sig> to the thread corresponding to the current task." |
| 4809 |
msgstr "" |
| 4810 |
|
| 4811 |
#. type: TP |
| 4812 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4813 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4814 |
#, no-wrap |
| 4815 |
msgid "B<u64 bpf_jiffies64(void)>" |
| 4816 |
msgstr "" |
| 4817 |
|
| 4818 |
#. type: Plain text |
| 4819 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4820 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4821 |
msgid "Obtain the 64bit jiffies" |
| 4822 |
msgstr "" |
| 4823 |
|
| 4824 |
#. type: Plain text |
| 4825 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4826 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4827 |
msgid "The 64 bit jiffies" |
| 4828 |
msgstr "" |
| 4829 |
|
| 4830 |
#. type: TP |
| 4831 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4832 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4833 |
#, no-wrap |
| 4834 |
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<)>" |
| 4835 |
msgstr "" |
| 4836 |
|
| 4837 |
#. type: Plain text |
| 4838 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4839 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4840 |
msgid "" |
| 4841 |
"For an eBPF program attached to a perf event, retrieve the branch records " |
| 4842 |
"(B<struct perf_branch_entry>) associated to I<ctx> and store it in the " |
| 4843 |
"buffer pointed by I<buf> up to size I<size> bytes." |
| 4844 |
msgstr "" |
| 4845 |
|
| 4846 |
#. type: Plain text |
| 4847 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4848 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4849 |
msgid "" |
| 4850 |
"On success, number of bytes written to I<buf>\\&. On error, a negative value." |
| 4851 |
msgstr "" |
| 4852 |
|
| 4853 |
#. type: Plain text |
| 4854 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4855 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4856 |
msgid "" |
| 4857 |
"The I<flags> can be set to B<BPF_F_GET_BRANCH_RECORDS_SIZE> to instead " |
| 4858 |
"return the number of bytes required to store all the branch entries. If this " |
| 4859 |
"flag is set, I<buf> may be NULL." |
| 4860 |
msgstr "" |
| 4861 |
|
| 4862 |
#. type: Plain text |
| 4863 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4864 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4865 |
msgid "" |
| 4866 |
"B<-EINVAL> if arguments invalid or B<size> not a multiple of " |
| 4867 |
"B<sizeof>(B<struct perf_branch_entry>)." |
| 4868 |
msgstr "" |
| 4869 |
|
| 4870 |
#. type: Plain text |
| 4871 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4872 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4873 |
msgid "B<-ENOENT> if architecture does not support branch records." |
| 4874 |
msgstr "" |
| 4875 |
|
| 4876 |
#. type: TP |
| 4877 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4878 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4879 |
#, no-wrap |
| 4880 |
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<)>" |
| 4881 |
msgstr "" |
| 4882 |
|
| 4883 |
#. type: Plain text |
| 4884 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4885 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4886 |
msgid "" |
| 4887 |
"Returns 0 on success, values for I<pid> and I<tgid> as seen from the current " |
| 4888 |
"I<namespace> will be returned in I<nsdata>\\&." |
| 4889 |
msgstr "" |
| 4890 |
|
| 4891 |
#. type: Plain text |
| 4892 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4893 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4894 |
msgid "0 on success, or one of the following in case of failure:" |
| 4895 |
msgstr "" |
| 4896 |
|
| 4897 |
#. type: Plain text |
| 4898 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4899 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4900 |
msgid "" |
| 4901 |
"B<-EINVAL> if dev and inum supplied don\\(aqt match dev_t and inode number " |
| 4902 |
"with nsfs of current task, or if dev conversion to dev_t lost high bits." |
| 4903 |
msgstr "" |
| 4904 |
|
| 4905 |
#. type: Plain text |
| 4906 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4907 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4908 |
msgid "B<-ENOENT> if pidns does not exists for the current task." |
| 4909 |
msgstr "" |
| 4910 |
|
| 4911 |
#. type: TP |
| 4912 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4913 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4914 |
#, no-wrap |
| 4915 |
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<)>" |
| 4916 |
msgstr "" |
| 4917 |
|
| 4918 |
#. type: Plain text |
| 4919 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4920 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4921 |
msgid "I<ctx> is a pointer to in-kernel struct xdp_buff." |
| 4922 |
msgstr "" |
| 4923 |
|
| 4924 |
#. type: Plain text |
| 4925 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4926 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4927 |
msgid "" |
| 4928 |
"This helper is similar to B<bpf_perf_eventoutput>() but restricted to " |
| 4929 |
"raw_tracepoint bpf programs." |
| 4930 |
msgstr "" |
| 4931 |
|
| 4932 |
#. type: TP |
| 4933 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4934 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4935 |
#, no-wrap |
| 4936 |
msgid "B<u64 bpf_get_netns_cookie(void *>I<ctx>B<)>" |
| 4937 |
msgstr "" |
| 4938 |
|
| 4939 |
#. type: Plain text |
| 4940 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4941 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4942 |
msgid "" |
| 4943 |
"Retrieve the cookie (generated by the kernel) of the network namespace the " |
| 4944 |
"input I<ctx> is associated with. The network namespace cookie remains stable " |
| 4945 |
"for its lifetime and provides a global identifier that can be assumed " |
| 4946 |
"unique. If I<ctx> is NULL, then the helper returns the cookie for the " |
| 4947 |
"initial network namespace. The cookie itself is very similar to that of " |
| 4948 |
"B<bpf_get_socket_cookie>() helper, but for network namespaces instead of " |
| 4949 |
"sockets." |
| 4950 |
msgstr "" |
| 4951 |
|
| 4952 |
#. type: Plain text |
| 4953 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4954 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4955 |
msgid "A 8-byte long opaque number." |
| 4956 |
msgstr "" |
| 4957 |
|
| 4958 |
#. type: TP |
| 4959 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4960 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4961 |
#, no-wrap |
| 4962 |
msgid "B<u64 bpf_get_current_ancestor_cgroup_id(int >I<ancestor_level>B<)>" |
| 4963 |
msgstr "" |
| 4964 |
|
| 4965 |
#. type: Plain text |
| 4966 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4967 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4968 |
msgid "" |
| 4969 |
"Return id of cgroup v2 that is ancestor of the cgroup associated with the " |
| 4970 |
"current task at the I<ancestor_level>\\&. The root cgroup is at " |
| 4971 |
"I<ancestor_level> zero and each step down the hierarchy increments the " |
| 4972 |
"level. If I<ancestor_level> == level of cgroup associated with the current " |
| 4973 |
"task, then return value will be the same as that of " |
| 4974 |
"B<bpf_get_current_cgroup_id>()." |
| 4975 |
msgstr "" |
| 4976 |
|
| 4977 |
#. type: Plain text |
| 4978 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4979 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4980 |
msgid "" |
| 4981 |
"The helper is useful to implement policies based on cgroups that are upper " |
| 4982 |
"in hierarchy than immediate cgroup associated with the current task." |
| 4983 |
msgstr "" |
| 4984 |
|
| 4985 |
#. type: Plain text |
| 4986 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4987 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4988 |
msgid "" |
| 4989 |
"The format of returned id and helper limitations are same as in " |
| 4990 |
"B<bpf_get_current_cgroup_id>()." |
| 4991 |
msgstr "" |
| 4992 |
|
| 4993 |
#. type: TP |
| 4994 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 4995 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 4996 |
#, no-wrap |
| 4997 |
msgid "B<long bpf_sk_assign(struct sk_buff *>I<skb>B<, void *>I<sk>B<, u64 >I<flags>B<)>" |
| 4998 |
msgstr "" |
| 4999 |
|
| 5000 |
#. type: Plain text |
| 5001 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5002 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5003 |
msgid "" |
| 5004 |
"Helper is overloaded depending on BPF program type. This description applies " |
| 5005 |
"to B<BPF_PROG_TYPE_SCHED_CLS> and B<BPF_PROG_TYPE_SCHED_ACT> programs." |
| 5006 |
msgstr "" |
| 5007 |
|
| 5008 |
#. type: Plain text |
| 5009 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5010 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5011 |
msgid "" |
| 5012 |
"Assign the I<sk> to the I<skb>\\&. When combined with appropriate routing " |
| 5013 |
"configuration to receive the packet towards the socket, will cause I<skb> to " |
| 5014 |
"be delivered to the specified socket. Subsequent redirection of I<skb> via " |
| 5015 |
"B<bpf_redirect>(), B<bpf_clone_redirect>() or other methods outside of BPF " |
| 5016 |
"may interfere with successful delivery to the socket." |
| 5017 |
msgstr "" |
| 5018 |
|
| 5019 |
#. type: Plain text |
| 5020 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5021 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5022 |
msgid "This operation is only valid from TC ingress path." |
| 5023 |
msgstr "" |
| 5024 |
|
| 5025 |
#. type: Plain text |
| 5026 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5027 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5028 |
msgid "The I<flags> argument must be zero." |
| 5029 |
msgstr "" |
| 5030 |
|
| 5031 |
#. type: Plain text |
| 5032 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5033 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5034 |
msgid "0 on success, or a negative error in case of failure:" |
| 5035 |
msgstr "" |
| 5036 |
|
| 5037 |
#. type: Plain text |
| 5038 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5039 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5040 |
msgid "B<-EINVAL> if specified I<flags> are not supported." |
| 5041 |
msgstr "" |
| 5042 |
|
| 5043 |
#. type: Plain text |
| 5044 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5045 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5046 |
msgid "B<-ENOENT> if the socket is unavailable for assignment." |
| 5047 |
msgstr "" |
| 5048 |
|
| 5049 |
#. type: Plain text |
| 5050 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5051 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5052 |
msgid "B<-ENETUNREACH> if the socket is unreachable (wrong netns)." |
| 5053 |
msgstr "" |
| 5054 |
|
| 5055 |
#. type: Plain text |
| 5056 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5057 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5058 |
msgid "" |
| 5059 |
"B<-EOPNOTSUPP> if the operation is not supported, for example a call from " |
| 5060 |
"outside of TC ingress." |
| 5061 |
msgstr "" |
| 5062 |
|
| 5063 |
#. type: TP |
| 5064 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5065 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5066 |
#, no-wrap |
| 5067 |
msgid "B<long bpf_sk_assign(struct bpf_sk_lookup *>I<ctx>B<, struct bpf_sock *>I<sk>B<, u64 >I<flags>B<)>" |
| 5068 |
msgstr "" |
| 5069 |
|
| 5070 |
#. type: Plain text |
| 5071 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5072 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5073 |
msgid "" |
| 5074 |
"Helper is overloaded depending on BPF program type. This description applies " |
| 5075 |
"to B<BPF_PROG_TYPE_SK_LOOKUP> programs." |
| 5076 |
msgstr "" |
| 5077 |
|
| 5078 |
#. type: Plain text |
| 5079 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5080 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5081 |
msgid "Select the I<sk> as a result of a socket lookup." |
| 5082 |
msgstr "" |
| 5083 |
|
| 5084 |
#. type: Plain text |
| 5085 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5086 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5087 |
msgid "" |
| 5088 |
"For the operation to succeed passed socket must be compatible with the " |
| 5089 |
"packet description provided by the I<ctx> object." |
| 5090 |
msgstr "" |
| 5091 |
|
| 5092 |
#. type: Plain text |
| 5093 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5094 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5095 |
msgid "" |
| 5096 |
"L4 protocol (B<IPPROTO_TCP> or B<IPPROTO_UDP>) must be an exact match. While " |
| 5097 |
"IP family (B<AF_INET> or B<AF_INET6>) must be compatible, that is IPv6 " |
| 5098 |
"sockets that are not v6-only can be selected for IPv4 packets." |
| 5099 |
msgstr "" |
| 5100 |
|
| 5101 |
#. type: Plain text |
| 5102 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5103 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5104 |
msgid "" |
| 5105 |
"Only TCP listeners and UDP unconnected sockets can be selected. I<sk> can " |
| 5106 |
"also be NULL to reset any previous selection." |
| 5107 |
msgstr "" |
| 5108 |
|
| 5109 |
#. type: Plain text |
| 5110 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5111 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5112 |
msgid "I<flags> argument can combination of following values:" |
| 5113 |
msgstr "" |
| 5114 |
|
| 5115 |
#. type: Plain text |
| 5116 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5117 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5118 |
msgid "" |
| 5119 |
"B<BPF_SK_LOOKUP_F_REPLACE> to override the previous socket selection, " |
| 5120 |
"potentially done by a BPF program that ran before us." |
| 5121 |
msgstr "" |
| 5122 |
|
| 5123 |
#. type: Plain text |
| 5124 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5125 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5126 |
msgid "" |
| 5127 |
"B<BPF_SK_LOOKUP_F_NO_REUSEPORT> to skip load-balancing within reuseport " |
| 5128 |
"group for the socket being selected." |
| 5129 |
msgstr "" |
| 5130 |
|
| 5131 |
#. type: Plain text |
| 5132 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5133 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5134 |
msgid "On success I<ctx-E<gt>sk> will point to the selected socket." |
| 5135 |
msgstr "" |
| 5136 |
|
| 5137 |
#. type: Plain text |
| 5138 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5139 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5140 |
msgid "0 on success, or a negative errno in case of failure." |
| 5141 |
msgstr "" |
| 5142 |
|
| 5143 |
#. type: Plain text |
| 5144 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5145 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5146 |
msgid "" |
| 5147 |
"B<-EAFNOSUPPORT> if socket family (I<sk-E<gt>family>) is not compatible with " |
| 5148 |
"packet family (I<ctx-E<gt>family>)." |
| 5149 |
msgstr "" |
| 5150 |
|
| 5151 |
#. type: Plain text |
| 5152 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5153 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5154 |
msgid "" |
| 5155 |
"B<-EEXIST> if socket has been already selected, potentially by another " |
| 5156 |
"program, and B<BPF_SK_LOOKUP_F_REPLACE> flag was not specified." |
| 5157 |
msgstr "" |
| 5158 |
|
| 5159 |
#. type: Plain text |
| 5160 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5161 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5162 |
msgid "B<-EINVAL> if unsupported flags were specified." |
| 5163 |
msgstr "" |
| 5164 |
|
| 5165 |
#. type: Plain text |
| 5166 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5167 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5168 |
msgid "" |
| 5169 |
"B<-EPROTOTYPE> if socket L4 protocol (I<sk-E<gt>protocol>) doesn\\(aqt match " |
| 5170 |
"packet protocol (I<ctx-E<gt>protocol>)." |
| 5171 |
msgstr "" |
| 5172 |
|
| 5173 |
#. type: Plain text |
| 5174 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5175 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5176 |
msgid "" |
| 5177 |
"B<-ESOCKTNOSUPPORT> if socket is not in allowed state (TCP listening or UDP " |
| 5178 |
"unconnected)." |
| 5179 |
msgstr "" |
| 5180 |
|
| 5181 |
#. type: TP |
| 5182 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5183 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5184 |
#, no-wrap |
| 5185 |
msgid "B<u64 bpf_ktime_get_boot_ns(void)>" |
| 5186 |
msgstr "" |
| 5187 |
|
| 5188 |
#. type: Plain text |
| 5189 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5190 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5191 |
msgid "" |
| 5192 |
"Return the time elapsed since system boot, in nanoseconds. Does include the " |
| 5193 |
"time the system was suspended. See: B<clock_gettime>(B<CLOCK_BOOTTIME>)" |
| 5194 |
msgstr "" |
| 5195 |
|
| 5196 |
#. type: TP |
| 5197 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5198 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5199 |
#, no-wrap |
| 5200 |
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<)>" |
| 5201 |
msgstr "" |
| 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 |
"B<bpf_seq_printf>() uses seq_file B<seq_printf>() to print out the format " |
| 5208 |
"string. The I<m> represents the seq_file. The I<fmt> and I<fmt_size> are " |
| 5209 |
"for the format string itself. The I<data> and I<data_len> are format string " |
| 5210 |
"arguments. The I<data> are a B<u64> array and corresponding format string " |
| 5211 |
"values are stored in the array. For strings and pointers where pointees are " |
| 5212 |
"accessed, only the pointer values are stored in the I<data> array. The " |
| 5213 |
"I<data_len> is the size of I<data> in bytes - must be a multiple of 8." |
| 5214 |
msgstr "" |
| 5215 |
|
| 5216 |
#. type: Plain text |
| 5217 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5218 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5219 |
msgid "" |
| 5220 |
"Formats B<%s>, B<%p{i,I}{4,6}> requires to read kernel memory. Reading " |
| 5221 |
"kernel memory may fail due to either invalid address or valid address but " |
| 5222 |
"requiring a major memory fault. If reading kernel memory fails, the string " |
| 5223 |
"for B<%s> will be an empty string, and the ip address for B<%p{i,I}{4,6}> " |
| 5224 |
"will be 0. Not returning error to bpf program is consistent with what " |
| 5225 |
"B<bpf_trace_printk>() does for now." |
| 5226 |
msgstr "" |
| 5227 |
|
| 5228 |
#. type: Plain text |
| 5229 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5230 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5231 |
msgid "" |
| 5232 |
"B<-EBUSY> if per-CPU memory copy buffer is busy, can try again by returning " |
| 5233 |
"1 from bpf program." |
| 5234 |
msgstr "" |
| 5235 |
|
| 5236 |
#. type: Plain text |
| 5237 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5238 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5239 |
msgid "" |
| 5240 |
"B<-EINVAL> if arguments are invalid, or if I<fmt> is invalid/unsupported." |
| 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 "B<-E2BIG> if I<fmt> contains too many format specifiers." |
| 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 |
"B<-EOVERFLOW> if an overflow happened: The same object will be tried again." |
| 5254 |
msgstr "" |
| 5255 |
|
| 5256 |
#. type: TP |
| 5257 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5258 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5259 |
#, no-wrap |
| 5260 |
msgid "B<long bpf_seq_write(struct seq_file *>I<m>B<, const void *>I<data>B<, u32 >I<len>B<)>" |
| 5261 |
msgstr "" |
| 5262 |
|
| 5263 |
#. type: Plain text |
| 5264 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5265 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5266 |
msgid "" |
| 5267 |
"B<bpf_seq_write>() uses seq_file B<seq_write>() to write the data. The I<m> " |
| 5268 |
"represents the seq_file. The I<data> and I<len> represent the data to write " |
| 5269 |
"in bytes." |
| 5270 |
msgstr "" |
| 5271 |
|
| 5272 |
#. type: TP |
| 5273 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5274 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5275 |
#, no-wrap |
| 5276 |
msgid "B<u64 bpf_sk_cgroup_id(void *>I<sk>B<)>" |
| 5277 |
msgstr "" |
| 5278 |
|
| 5279 |
#. type: Plain text |
| 5280 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5281 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5282 |
msgid "Return the cgroup v2 id of the socket I<sk>\\&." |
| 5283 |
msgstr "" |
| 5284 |
|
| 5285 |
#. type: Plain text |
| 5286 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5287 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5288 |
msgid "" |
| 5289 |
"I<sk> must be a non-B<NULL> pointer to a socket, e.g. one returned from " |
| 5290 |
"B<bpf_sk_lookup_xxx>(), B<bpf_sk_fullsock>(), etc. The format of returned id " |
| 5291 |
"is same as in B<bpf_skb_cgroup_id>()." |
| 5292 |
msgstr "" |
| 5293 |
|
| 5294 |
#. type: Plain text |
| 5295 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5296 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5297 |
msgid "" |
| 5298 |
"This helper is available only if the kernel was compiled with the " |
| 5299 |
"B<CONFIG_SOCK_CGROUP_DATA> configuration option." |
| 5300 |
msgstr "" |
| 5301 |
|
| 5302 |
#. type: TP |
| 5303 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5304 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5305 |
#, no-wrap |
| 5306 |
msgid "B<u64 bpf_sk_ancestor_cgroup_id(void *>I<sk>B<, int >I<ancestor_level>B<)>" |
| 5307 |
msgstr "" |
| 5308 |
|
| 5309 |
#. type: Plain text |
| 5310 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5311 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5312 |
msgid "" |
| 5313 |
"Return id of cgroup v2 that is ancestor of cgroup associated with the I<sk> " |
| 5314 |
"at the I<ancestor_level>\\&. The root cgroup is at I<ancestor_level> zero " |
| 5315 |
"and each step down the hierarchy increments the level. If I<ancestor_level> " |
| 5316 |
"== level of cgroup associated with I<sk>, then return value will be same as " |
| 5317 |
"that of B<bpf_sk_cgroup_id>()." |
| 5318 |
msgstr "" |
| 5319 |
|
| 5320 |
#. type: Plain text |
| 5321 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5322 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5323 |
msgid "" |
| 5324 |
"The helper is useful to implement policies based on cgroups that are upper " |
| 5325 |
"in hierarchy than immediate cgroup associated with I<sk>\\&." |
| 5326 |
msgstr "" |
| 5327 |
|
| 5328 |
#. type: Plain text |
| 5329 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5330 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5331 |
msgid "" |
| 5332 |
"The format of returned id and helper limitations are same as in " |
| 5333 |
"B<bpf_sk_cgroup_id>()." |
| 5334 |
msgstr "" |
| 5335 |
|
| 5336 |
#. type: TP |
| 5337 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5338 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5339 |
#, no-wrap |
| 5340 |
msgid "B<long bpf_ringbuf_output(void *>I<ringbuf>B<, void *>I<data>B<, u64 >I<size>B<, u64 >I<flags>B<)>" |
| 5341 |
msgstr "" |
| 5342 |
|
| 5343 |
#. type: Plain text |
| 5344 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5345 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5346 |
msgid "" |
| 5347 |
"Copy I<size> bytes from I<data> into a ring buffer I<ringbuf>\\&. If " |
| 5348 |
"B<BPF_RB_NO_WAKEUP> is specified in I<flags>, no notification of new data " |
| 5349 |
"availability is sent. If B<BPF_RB_FORCE_WAKEUP> is specified in I<flags>, " |
| 5350 |
"notification of new data availability is sent unconditionally. If B<0> is " |
| 5351 |
"specified in I<flags>, an adaptive notification of new data availability is " |
| 5352 |
"sent." |
| 5353 |
msgstr "" |
| 5354 |
|
| 5355 |
#. type: Plain text |
| 5356 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5357 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5358 |
msgid "" |
| 5359 |
"An adaptive notification is a notification sent whenever the user-space " |
| 5360 |
"process has caught up and consumed all available payloads. In case the user-" |
| 5361 |
"space process is still processing a previous payload, then no notification " |
| 5362 |
"is needed as it will process the newly added payload automatically." |
| 5363 |
msgstr "" |
| 5364 |
|
| 5365 |
#. type: TP |
| 5366 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5367 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5368 |
#, no-wrap |
| 5369 |
msgid "B<void *bpf_ringbuf_reserve(void *>I<ringbuf>B<, u64 >I<size>B<, u64 >I<flags>B<)>" |
| 5370 |
msgstr "" |
| 5371 |
|
| 5372 |
#. type: Plain text |
| 5373 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5374 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5375 |
msgid "" |
| 5376 |
"Reserve I<size> bytes of payload in a ring buffer I<ringbuf>\\&. I<flags> " |
| 5377 |
"must be 0." |
| 5378 |
msgstr "" |
| 5379 |
|
| 5380 |
#. type: Plain text |
| 5381 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5382 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5383 |
msgid "Valid pointer with I<size> bytes of memory available; NULL, otherwise." |
| 5384 |
msgstr "" |
| 5385 |
|
| 5386 |
#. type: TP |
| 5387 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5388 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5389 |
#, no-wrap |
| 5390 |
msgid "B<void bpf_ringbuf_submit(void *>I<data>B<, u64 >I<flags>B<)>" |
| 5391 |
msgstr "" |
| 5392 |
|
| 5393 |
#. type: Plain text |
| 5394 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5395 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5396 |
msgid "" |
| 5397 |
"Submit reserved ring buffer sample, pointed to by I<data>\\&. If " |
| 5398 |
"B<BPF_RB_NO_WAKEUP> is specified in I<flags>, no notification of new data " |
| 5399 |
"availability is sent. If B<BPF_RB_FORCE_WAKEUP> is specified in I<flags>, " |
| 5400 |
"notification of new data availability is sent unconditionally. If B<0> is " |
| 5401 |
"specified in I<flags>, an adaptive notification of new data availability is " |
| 5402 |
"sent." |
| 5403 |
msgstr "" |
| 5404 |
|
| 5405 |
#. type: Plain text |
| 5406 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5407 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5408 |
msgid "" |
| 5409 |
"See \\(aqbpf_ringbuf_output()\\(aq for the definition of adaptive " |
| 5410 |
"notification." |
| 5411 |
msgstr "" |
| 5412 |
|
| 5413 |
#. type: Plain text |
| 5414 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5415 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5416 |
msgid "Nothing. Always succeeds." |
| 5417 |
msgstr "" |
| 5418 |
|
| 5419 |
#. type: TP |
| 5420 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5421 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5422 |
#, no-wrap |
| 5423 |
msgid "B<void bpf_ringbuf_discard(void *>I<data>B<, u64 >I<flags>B<)>" |
| 5424 |
msgstr "" |
| 5425 |
|
| 5426 |
#. type: Plain text |
| 5427 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5428 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5429 |
msgid "" |
| 5430 |
"Discard reserved ring buffer sample, pointed to by I<data>\\&. If " |
| 5431 |
"B<BPF_RB_NO_WAKEUP> is specified in I<flags>, no notification of new data " |
| 5432 |
"availability is sent. If B<BPF_RB_FORCE_WAKEUP> is specified in I<flags>, " |
| 5433 |
"notification of new data availability is sent unconditionally. If B<0> is " |
| 5434 |
"specified in I<flags>, an adaptive notification of new data availability is " |
| 5435 |
"sent." |
| 5436 |
msgstr "" |
| 5437 |
|
| 5438 |
#. type: TP |
| 5439 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5440 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5441 |
#, no-wrap |
| 5442 |
msgid "B<u64 bpf_ringbuf_query(void *>I<ringbuf>B<, u64 >I<flags>B<)>" |
| 5443 |
msgstr "" |
| 5444 |
|
| 5445 |
#. type: Plain text |
| 5446 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5447 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5448 |
msgid "" |
| 5449 |
"Query various characteristics of provided ring buffer. What exactly is " |
| 5450 |
"queries is determined by I<flags>:" |
| 5451 |
msgstr "" |
| 5452 |
|
| 5453 |
#. type: Plain text |
| 5454 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5455 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5456 |
msgid "B<BPF_RB_AVAIL_DATA>: Amount of data not yet consumed." |
| 5457 |
msgstr "" |
| 5458 |
|
| 5459 |
#. type: Plain text |
| 5460 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5461 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5462 |
msgid "B<BPF_RB_RING_SIZE>: The size of ring buffer." |
| 5463 |
msgstr "" |
| 5464 |
|
| 5465 |
#. type: Plain text |
| 5466 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5467 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5468 |
msgid "B<BPF_RB_CONS_POS>: Consumer position (can wrap around)." |
| 5469 |
msgstr "" |
| 5470 |
|
| 5471 |
#. type: Plain text |
| 5472 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5473 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5474 |
msgid "B<BPF_RB_PROD_POS>: Producer(s) position (can wrap around)." |
| 5475 |
msgstr "" |
| 5476 |
|
| 5477 |
#. type: Plain text |
| 5478 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5479 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5480 |
msgid "" |
| 5481 |
"Data returned is just a momentary snapshot of actual values and could be " |
| 5482 |
"inaccurate, so this facility should be used to power heuristics and for " |
| 5483 |
"reporting, not to make 100% correct calculation." |
| 5484 |
msgstr "" |
| 5485 |
|
| 5486 |
#. type: Plain text |
| 5487 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5488 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5489 |
msgid "Requested value, or 0, if I<flags> are not recognized." |
| 5490 |
msgstr "" |
| 5491 |
|
| 5492 |
#. type: TP |
| 5493 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5494 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5495 |
#, no-wrap |
| 5496 |
msgid "B<long bpf_csum_level(struct sk_buff *>I<skb>B<, u64 >I<level>B<)>" |
| 5497 |
msgstr "" |
| 5498 |
|
| 5499 |
#. type: Plain text |
| 5500 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5501 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5502 |
msgid "" |
| 5503 |
"Change the skbs checksum level by one layer up or down, or reset it entirely " |
| 5504 |
"to none in order to have the stack perform checksum validation. The level is " |
| 5505 |
"applicable to the following protocols: TCP, UDP, GRE, SCTP, FCOE. For " |
| 5506 |
"example, a decap of | ETH | IP | UDP | GUE | IP | TCP | into | ETH | IP | " |
| 5507 |
"TCP | through B<bpf_skb_adjust_room>() helper with passing in " |
| 5508 |
"B<BPF_F_ADJ_ROOM_NO_CSUM_RESET> flag would require one call to " |
| 5509 |
"B<bpf_csum_level>() with B<BPF_CSUM_LEVEL_DEC> since the UDP header is " |
| 5510 |
"removed. Similarly, an encap of the latter into the former could be " |
| 5511 |
"accompanied by a helper call to B<bpf_csum_level>() with " |
| 5512 |
"B<BPF_CSUM_LEVEL_INC> if the skb is still intended to be processed in higher " |
| 5513 |
"layers of the stack instead of just egressing at tc." |
| 5514 |
msgstr "" |
| 5515 |
|
| 5516 |
#. type: Plain text |
| 5517 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5518 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5519 |
msgid "There are three supported level settings at this time:" |
| 5520 |
msgstr "" |
| 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 |
"B<BPF_CSUM_LEVEL_INC>: Increases skb-E<gt>csum_level for skbs with " |
| 5527 |
"CHECKSUM_UNNECESSARY." |
| 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 "" |
| 5534 |
"B<BPF_CSUM_LEVEL_DEC>: Decreases skb-E<gt>csum_level for skbs with " |
| 5535 |
"CHECKSUM_UNNECESSARY." |
| 5536 |
msgstr "" |
| 5537 |
|
| 5538 |
#. type: Plain text |
| 5539 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5540 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5541 |
msgid "" |
| 5542 |
"B<BPF_CSUM_LEVEL_RESET>: Resets skb-E<gt>csum_level to 0 and sets " |
| 5543 |
"CHECKSUM_NONE to force checksum validation by the stack." |
| 5544 |
msgstr "" |
| 5545 |
|
| 5546 |
#. type: Plain text |
| 5547 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5548 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5549 |
msgid "" |
| 5550 |
"B<BPF_CSUM_LEVEL_QUERY>: No-op, returns the current skb-E<gt>csum_level." |
| 5551 |
msgstr "" |
| 5552 |
|
| 5553 |
#. type: Plain text |
| 5554 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5555 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5556 |
msgid "" |
| 5557 |
"0 on success, or a negative error in case of failure. In the case of " |
| 5558 |
"B<BPF_CSUM_LEVEL_QUERY>, the current skb-E<gt>csum_level is returned or the " |
| 5559 |
"error code -EACCES in case the skb is not subject to CHECKSUM_UNNECESSARY." |
| 5560 |
msgstr "" |
| 5561 |
|
| 5562 |
#. type: TP |
| 5563 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5564 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5565 |
#, no-wrap |
| 5566 |
msgid "B<struct tcp6_sock *bpf_skc_to_tcp6_sock(void *>I<sk>B<)>" |
| 5567 |
msgstr "" |
| 5568 |
|
| 5569 |
#. type: Plain text |
| 5570 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5571 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5572 |
msgid "Dynamically cast a I<sk> pointer to a I<tcp6_sock> pointer." |
| 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 "I<sk> if casting is valid, or B<NULL> otherwise." |
| 5579 |
msgstr "" |
| 5580 |
|
| 5581 |
#. type: TP |
| 5582 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5583 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5584 |
#, no-wrap |
| 5585 |
msgid "B<struct tcp_sock *bpf_skc_to_tcp_sock(void *>I<sk>B<)>" |
| 5586 |
msgstr "" |
| 5587 |
|
| 5588 |
#. type: Plain text |
| 5589 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5590 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5591 |
msgid "Dynamically cast a I<sk> pointer to a I<tcp_sock> pointer." |
| 5592 |
msgstr "" |
| 5593 |
|
| 5594 |
#. type: TP |
| 5595 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5596 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5597 |
#, no-wrap |
| 5598 |
msgid "B<struct tcp_timewait_sock *bpf_skc_to_tcp_timewait_sock(void *>I<sk>B<)>" |
| 5599 |
msgstr "" |
| 5600 |
|
| 5601 |
#. type: Plain text |
| 5602 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5603 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5604 |
msgid "Dynamically cast a I<sk> pointer to a I<tcp_timewait_sock> pointer." |
| 5605 |
msgstr "" |
| 5606 |
|
| 5607 |
#. type: TP |
| 5608 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5609 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5610 |
#, no-wrap |
| 5611 |
msgid "B<struct tcp_request_sock *bpf_skc_to_tcp_request_sock(void *>I<sk>B<)>" |
| 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 "Dynamically cast a I<sk> pointer to a I<tcp_request_sock> pointer." |
| 5618 |
msgstr "" |
| 5619 |
|
| 5620 |
#. type: TP |
| 5621 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5622 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5623 |
#, no-wrap |
| 5624 |
msgid "B<struct udp6_sock *bpf_skc_to_udp6_sock(void *>I<sk>B<)>" |
| 5625 |
msgstr "" |
| 5626 |
|
| 5627 |
#. type: Plain text |
| 5628 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5629 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5630 |
msgid "Dynamically cast a I<sk> pointer to a I<udp6_sock> pointer." |
| 5631 |
msgstr "" |
| 5632 |
|
| 5633 |
#. type: TP |
| 5634 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5635 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5636 |
#, no-wrap |
| 5637 |
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<)>" |
| 5638 |
msgstr "" |
| 5639 |
|
| 5640 |
#. type: Plain text |
| 5641 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5642 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5643 |
msgid "" |
| 5644 |
"Return a user or a kernel stack in bpf program provided buffer. Note: the " |
| 5645 |
"user stack will only be populated if the I<task> is the current task; all " |
| 5646 |
"other tasks will return -EOPNOTSUPP. To achieve this, the helper needs " |
| 5647 |
"I<task>, which is a valid pointer to B<struct task_struct>\\&. To store the " |
| 5648 |
"stacktrace, the bpf program provides I<buf> with a nonnegative I<size>\\&." |
| 5649 |
msgstr "" |
| 5650 |
|
| 5651 |
#. type: Plain text |
| 5652 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5653 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5654 |
msgid "" |
| 5655 |
"Collect a user space stack instead of a kernel stack. The I<task> must be " |
| 5656 |
"the current task." |
| 5657 |
msgstr "" |
| 5658 |
|
| 5659 |
#. type: Plain text |
| 5660 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5661 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5662 |
msgid "" |
| 5663 |
"Collect buildid+offset instead of ips for user stack, only valid if " |
| 5664 |
"B<BPF_F_USER_STACK> is also specified." |
| 5665 |
msgstr "" |
| 5666 |
|
| 5667 |
#. type: Plain text |
| 5668 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5669 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5670 |
msgid "" |
| 5671 |
"B<bpf_get_task_stack>() can collect up to B<PERF_MAX_STACK_DEPTH> both " |
| 5672 |
"kernel and user frames, subject to sufficient large buffer size. Note that " |
| 5673 |
"this limit can be controlled with the B<sysctl> program, and that it should " |
| 5674 |
"be manually increased in order to profile long user stacks (such as stacks " |
| 5675 |
"for Java programs). To do so, use:" |
| 5676 |
msgstr "" |
| 5677 |
|
| 5678 |
#. type: TP |
| 5679 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5680 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5681 |
#, no-wrap |
| 5682 |
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<)>" |
| 5683 |
msgstr "" |
| 5684 |
|
| 5685 |
#. type: Plain text |
| 5686 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5687 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5688 |
msgid "" |
| 5689 |
"Load header option. Support reading a particular TCP header option for bpf " |
| 5690 |
"program (B<BPF_PROG_TYPE_SOCK_OPS>)." |
| 5691 |
msgstr "" |
| 5692 |
|
| 5693 |
#. type: Plain text |
| 5694 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5695 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5696 |
msgid "" |
| 5697 |
"If I<flags> is 0, it will search the option from the I<skops>B<-" |
| 5698 |
"E<gt>skb_data>\\&. The comment in B<struct bpf_sock_ops> has details on " |
| 5699 |
"what skb_data contains under different I<skops>B<-E<gt>op>\\&." |
| 5700 |
msgstr "" |
| 5701 |
|
| 5702 |
#. type: Plain text |
| 5703 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5704 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5705 |
msgid "" |
| 5706 |
"The first byte of the I<searchby_res> specifies the kind that it wants to " |
| 5707 |
"search." |
| 5708 |
msgstr "" |
| 5709 |
|
| 5710 |
#. type: Plain text |
| 5711 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5712 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5713 |
msgid "" |
| 5714 |
"If the searching kind is an experimental kind (i.e. 253 or 254 according to " |
| 5715 |
"RFC6994). It also needs to specify the \"magic\" which is either 2 bytes or " |
| 5716 |
"4 bytes. It then also needs to specify the size of the magic by using the " |
| 5717 |
"2nd byte which is \"kind-length\" of a TCP header option and the \"kind-" |
| 5718 |
"length\" also includes the first 2 bytes \"kind\" and \"kind-length\" itself " |
| 5719 |
"as a normal TCP header option also does." |
| 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 |
msgid "" |
| 5726 |
"For example, to search experimental kind 254 with 2 byte magic 0xeB9F, the " |
| 5727 |
"searchby_res should be [ 254, 4, 0xeB, 0x9F, 0, 0, .... 0 ]." |
| 5728 |
msgstr "" |
| 5729 |
|
| 5730 |
#. type: Plain text |
| 5731 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5732 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5733 |
msgid "" |
| 5734 |
"To search for the standard window scale option (3), the I<searchby_res> " |
| 5735 |
"should be [ 3, 0, 0, .... 0 ]. Note, kind-length must be 0 for regular " |
| 5736 |
"option." |
| 5737 |
msgstr "" |
| 5738 |
|
| 5739 |
#. type: Plain text |
| 5740 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5741 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5742 |
msgid "Searching for No-Op (0) and End-of-Option-List (1) are not supported." |
| 5743 |
msgstr "" |
| 5744 |
|
| 5745 |
#. type: Plain text |
| 5746 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5747 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5748 |
msgid "" |
| 5749 |
"I<len> must be at least 2 bytes which is the minimal size of a header option." |
| 5750 |
msgstr "" |
| 5751 |
|
| 5752 |
#. type: Plain text |
| 5753 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5754 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5755 |
msgid "Supported flags:" |
| 5756 |
msgstr "" |
| 5757 |
|
| 5758 |
#. type: Plain text |
| 5759 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5760 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5761 |
msgid "" |
| 5762 |
"B<BPF_LOAD_HDR_OPT_TCP_SYN> to search from the saved_syn packet or the just-" |
| 5763 |
"received syn packet." |
| 5764 |
msgstr "" |
| 5765 |
|
| 5766 |
#. type: Plain text |
| 5767 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5768 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5769 |
msgid "" |
| 5770 |
"E<gt> 0 when found, the header option is copied to I<searchby_res>\\&. The " |
| 5771 |
"return value is the total length copied. On failure, a negative error code " |
| 5772 |
"is returned:" |
| 5773 |
msgstr "" |
| 5774 |
|
| 5775 |
#. type: Plain text |
| 5776 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5777 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5778 |
msgid "B<-EINVAL> if a parameter is invalid." |
| 5779 |
msgstr "" |
| 5780 |
|
| 5781 |
#. type: Plain text |
| 5782 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5783 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5784 |
msgid "B<-ENOMSG> if the option is not found." |
| 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 |
"B<-ENOENT> if no syn packet is available when B<BPF_LOAD_HDR_OPT_TCP_SYN> is " |
| 5792 |
"used." |
| 5793 |
msgstr "" |
| 5794 |
|
| 5795 |
#. type: Plain text |
| 5796 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5797 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5798 |
msgid "" |
| 5799 |
"B<-ENOSPC> if there is not enough space. Only I<len> number of bytes are " |
| 5800 |
"copied." |
| 5801 |
msgstr "" |
| 5802 |
|
| 5803 |
#. type: Plain text |
| 5804 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5805 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5806 |
msgid "B<-EFAULT> on failure to parse the header options in the packet." |
| 5807 |
msgstr "" |
| 5808 |
|
| 5809 |
#. type: Plain text |
| 5810 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5811 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5812 |
msgid "" |
| 5813 |
"B<-EPERM> if the helper cannot be used under the current I<skops>B<-" |
| 5814 |
"E<gt>op>\\&." |
| 5815 |
msgstr "" |
| 5816 |
|
| 5817 |
#. type: TP |
| 5818 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5819 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5820 |
#, no-wrap |
| 5821 |
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<)>" |
| 5822 |
msgstr "" |
| 5823 |
|
| 5824 |
#. type: Plain text |
| 5825 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5826 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5827 |
msgid "" |
| 5828 |
"Store header option. The data will be copied from buffer I<from> with " |
| 5829 |
"length I<len> to the TCP header." |
| 5830 |
msgstr "" |
| 5831 |
|
| 5832 |
#. type: Plain text |
| 5833 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5834 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5835 |
msgid "" |
| 5836 |
"The buffer I<from> should have the whole option that includes the kind, kind-" |
| 5837 |
"length, and the actual option data. The I<len> must be at least kind-length " |
| 5838 |
"long. The kind-length does not have to be 4 byte aligned. The kernel will " |
| 5839 |
"take care of the padding and setting the 4 bytes aligned value to th-" |
| 5840 |
"E<gt>doff." |
| 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 |
"This helper will check for duplicated option by searching the same option in " |
| 5848 |
"the outgoing skb." |
| 5849 |
msgstr "" |
| 5850 |
|
| 5851 |
#. type: Plain text |
| 5852 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5853 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5854 |
msgid "" |
| 5855 |
"This helper can only be called during B<BPF_SOCK_OPS_WRITE_HDR_OPT_CB>\\&." |
| 5856 |
msgstr "" |
| 5857 |
|
| 5858 |
#. type: Plain text |
| 5859 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5860 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5861 |
msgid "0 on success, or negative error in case of failure:" |
| 5862 |
msgstr "" |
| 5863 |
|
| 5864 |
#. type: Plain text |
| 5865 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5866 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5867 |
msgid "B<-EINVAL> If param is invalid." |
| 5868 |
msgstr "" |
| 5869 |
|
| 5870 |
#. type: Plain text |
| 5871 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5872 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5873 |
msgid "" |
| 5874 |
"B<-ENOSPC> if there is not enough space in the header. Nothing has been " |
| 5875 |
"written" |
| 5876 |
msgstr "" |
| 5877 |
|
| 5878 |
#. type: Plain text |
| 5879 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5880 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5881 |
msgid "B<-EEXIST> if the option already exists." |
| 5882 |
msgstr "" |
| 5883 |
|
| 5884 |
#. type: Plain text |
| 5885 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5886 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5887 |
msgid "B<-EFAULT> on failure to parse the existing header options." |
| 5888 |
msgstr "" |
| 5889 |
|
| 5890 |
#. type: TP |
| 5891 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5892 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5893 |
#, no-wrap |
| 5894 |
msgid "B<long bpf_reserve_hdr_opt(struct bpf_sock_ops *>I<skops>B<, u32 >I<len>B<, u64 >I<flags>B<)>" |
| 5895 |
msgstr "" |
| 5896 |
|
| 5897 |
#. type: Plain text |
| 5898 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5899 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5900 |
msgid "" |
| 5901 |
"Reserve I<len> bytes for the bpf header option. The space will be used by " |
| 5902 |
"B<bpf_store_hdr_opt>() later in B<BPF_SOCK_OPS_WRITE_HDR_OPT_CB>\\&." |
| 5903 |
msgstr "" |
| 5904 |
|
| 5905 |
#. type: Plain text |
| 5906 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5907 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5908 |
msgid "" |
| 5909 |
"If B<bpf_reserve_hdr_opt>() is called multiple times, the total number of " |
| 5910 |
"bytes will be reserved." |
| 5911 |
msgstr "" |
| 5912 |
|
| 5913 |
#. type: Plain text |
| 5914 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5915 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5916 |
msgid "" |
| 5917 |
"This helper can only be called during B<BPF_SOCK_OPS_HDR_OPT_LEN_CB>\\&." |
| 5918 |
msgstr "" |
| 5919 |
|
| 5920 |
#. type: Plain text |
| 5921 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5922 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5923 |
msgid "B<-ENOSPC> if there is not enough space in the header." |
| 5924 |
msgstr "" |
| 5925 |
|
| 5926 |
#. type: TP |
| 5927 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5928 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5929 |
#, no-wrap |
| 5930 |
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<)>" |
| 5931 |
msgstr "" |
| 5932 |
|
| 5933 |
#. type: Plain text |
| 5934 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5935 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5936 |
msgid "Get a bpf_local_storage from an I<inode>\\&." |
| 5937 |
msgstr "" |
| 5938 |
|
| 5939 |
#. type: Plain text |
| 5940 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5941 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5942 |
msgid "" |
| 5943 |
"Logically, it could be thought of as getting the value from a I<map> with " |
| 5944 |
"I<inode> as the B<key>\\&. From this perspective, the usage is not much " |
| 5945 |
"different from B<bpf_map_lookup_elem>(I<map>, B<&>I<inode>) except this " |
| 5946 |
"helper enforces the key must be an inode and the map must also be a " |
| 5947 |
"B<BPF_MAP_TYPE_INODE_STORAGE>\\&." |
| 5948 |
msgstr "" |
| 5949 |
|
| 5950 |
#. type: Plain text |
| 5951 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5952 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5953 |
msgid "" |
| 5954 |
"Underneath, the value is stored locally at I<inode> instead of the " |
| 5955 |
"I<map>\\&. The I<map> is used as the bpf-local-storage \"type\". The bpf-" |
| 5956 |
"local-storage \"type\" (i.e. the I<map>) is searched against all " |
| 5957 |
"bpf_local_storage residing at I<inode>\\&." |
| 5958 |
msgstr "" |
| 5959 |
|
| 5960 |
#. type: Plain text |
| 5961 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5962 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5963 |
msgid "" |
| 5964 |
"An optional I<flags> (B<BPF_LOCAL_STORAGE_GET_F_CREATE>) can be used such " |
| 5965 |
"that a new bpf_local_storage will be created if one does not exist. " |
| 5966 |
"I<value> can be used together with B<BPF_LOCAL_STORAGE_GET_F_CREATE> to " |
| 5967 |
"specify the initial value of a bpf_local_storage. If I<value> is B<NULL>, " |
| 5968 |
"the new bpf_local_storage will be zero initialized." |
| 5969 |
msgstr "" |
| 5970 |
|
| 5971 |
#. type: Plain text |
| 5972 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5973 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5974 |
msgid "A bpf_local_storage pointer is returned on success." |
| 5975 |
msgstr "" |
| 5976 |
|
| 5977 |
#. type: Plain text |
| 5978 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5979 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5980 |
msgid "" |
| 5981 |
"B<NULL> if not found or there was an error in adding a new bpf_local_storage." |
| 5982 |
msgstr "" |
| 5983 |
|
| 5984 |
#. type: TP |
| 5985 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5986 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5987 |
#, no-wrap |
| 5988 |
msgid "B<int bpf_inode_storage_delete(struct bpf_map *>I<map>B<, void *>I<inode>B<)>" |
| 5989 |
msgstr "" |
| 5990 |
|
| 5991 |
#. type: Plain text |
| 5992 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5993 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 5994 |
msgid "Delete a bpf_local_storage from an I<inode>\\&." |
| 5995 |
msgstr "" |
| 5996 |
|
| 5997 |
#. type: Plain text |
| 5998 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 5999 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6000 |
msgid "B<-ENOENT> if the bpf_local_storage cannot be found." |
| 6001 |
msgstr "" |
| 6002 |
|
| 6003 |
#. type: TP |
| 6004 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 6005 |
#, no-wrap |
| 6006 |
msgid "B<long bpf_d_path(const struct path *>I<path>B<, char *>I<buf>B<, u32 >I<sz>B<)>" |
| 6007 |
msgstr "" |
| 6008 |
|
| 6009 |
#. type: Plain text |
| 6010 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6011 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6012 |
msgid "" |
| 6013 |
"Return full path for given B<struct path> object, which needs to be the " |
| 6014 |
"kernel BTF I<path> object. The path is returned in the provided buffer " |
| 6015 |
"I<buf> of size I<sz> and is zero terminated." |
| 6016 |
msgstr "" |
| 6017 |
|
| 6018 |
#. type: TP |
| 6019 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6020 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6021 |
#, no-wrap |
| 6022 |
msgid "B<long bpf_copy_from_user(void *>I<dst>B<, u32 >I<size>B<, const void *>I<user_ptr>B<)>" |
| 6023 |
msgstr "" |
| 6024 |
|
| 6025 |
#. type: Plain text |
| 6026 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6027 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6028 |
msgid "" |
| 6029 |
"Read I<size> bytes from user space address I<user_ptr> and store the data in " |
| 6030 |
"I<dst>\\&. This is a wrapper of B<copy_from_user>()." |
| 6031 |
msgstr "" |
| 6032 |
|
| 6033 |
#. type: TP |
| 6034 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6035 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6036 |
#, no-wrap |
| 6037 |
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<)>" |
| 6038 |
msgstr "" |
| 6039 |
|
| 6040 |
#. type: Plain text |
| 6041 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6042 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6043 |
msgid "" |
| 6044 |
"Use BTF to store a string representation of I<ptr>-E<gt>ptr in I<str>, using " |
| 6045 |
"I<ptr>-E<gt>type_id. This value should specify the type that I<ptr>-" |
| 6046 |
"E<gt>ptr points to. LLVM __builtin_btf_type_id(type, 1) can be used to look " |
| 6047 |
"up vmlinux BTF type ids. Traversing the data structure using BTF, the type " |
| 6048 |
"information and values are stored in the first I<str_size> - 1 bytes of " |
| 6049 |
"I<str>\\&. Safe copy of the pointer data is carried out to avoid kernel " |
| 6050 |
"crashes during operation. Smaller types can use string space on the stack; " |
| 6051 |
"larger programs can use map data to store the string representation." |
| 6052 |
msgstr "" |
| 6053 |
|
| 6054 |
#. type: Plain text |
| 6055 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6056 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6057 |
msgid "" |
| 6058 |
"The string can be subsequently shared with userspace via " |
| 6059 |
"bpf_perf_event_output() or ring buffer interfaces. bpf_trace_printk() is to " |
| 6060 |
"be avoided as it places too small a limit on string size to be useful." |
| 6061 |
msgstr "" |
| 6062 |
|
| 6063 |
#. type: Plain text |
| 6064 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6065 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6066 |
msgid "I<flags> is a combination of" |
| 6067 |
msgstr "" |
| 6068 |
|
| 6069 |
#. type: TP |
| 6070 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6071 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6072 |
#, no-wrap |
| 6073 |
msgid "B<BTF_F_COMPACT>" |
| 6074 |
msgstr "" |
| 6075 |
|
| 6076 |
#. type: Plain text |
| 6077 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6078 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6079 |
msgid "no formatting around type information" |
| 6080 |
msgstr "" |
| 6081 |
|
| 6082 |
#. type: TP |
| 6083 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6084 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6085 |
#, no-wrap |
| 6086 |
msgid "B<BTF_F_NONAME>" |
| 6087 |
msgstr "" |
| 6088 |
|
| 6089 |
#. type: Plain text |
| 6090 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6091 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6092 |
msgid "no struct/union member names/types" |
| 6093 |
msgstr "" |
| 6094 |
|
| 6095 |
#. type: TP |
| 6096 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6097 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6098 |
#, no-wrap |
| 6099 |
msgid "B<BTF_F_PTR_RAW>" |
| 6100 |
msgstr "" |
| 6101 |
|
| 6102 |
#. type: Plain text |
| 6103 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6104 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6105 |
msgid "" |
| 6106 |
"show raw (unobfuscated) pointer values; equivalent to printk specifier %px." |
| 6107 |
msgstr "" |
| 6108 |
|
| 6109 |
#. type: TP |
| 6110 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6111 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6112 |
#, no-wrap |
| 6113 |
msgid "B<BTF_F_ZERO>" |
| 6114 |
msgstr "" |
| 6115 |
|
| 6116 |
#. type: Plain text |
| 6117 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6118 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6119 |
msgid "" |
| 6120 |
"show zero-valued struct/union members; they are not displayed by default" |
| 6121 |
msgstr "" |
| 6122 |
|
| 6123 |
#. type: Plain text |
| 6124 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6125 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6126 |
msgid "" |
| 6127 |
"The number of bytes that were written (or would have been written if output " |
| 6128 |
"had to be truncated due to string size), or a negative error in cases of " |
| 6129 |
"failure." |
| 6130 |
msgstr "" |
| 6131 |
|
| 6132 |
#. type: TP |
| 6133 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6134 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6135 |
#, no-wrap |
| 6136 |
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<)>" |
| 6137 |
msgstr "" |
| 6138 |
|
| 6139 |
#. type: Plain text |
| 6140 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6141 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6142 |
msgid "" |
| 6143 |
"Use BTF to write to seq_write a string representation of I<ptr>-E<gt>ptr, " |
| 6144 |
"using I<ptr>-E<gt>type_id as per bpf_snprintf_btf(). I<flags> are identical " |
| 6145 |
"to those used for bpf_snprintf_btf." |
| 6146 |
msgstr "" |
| 6147 |
|
| 6148 |
#. type: Plain text |
| 6149 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6150 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6151 |
msgid "0 on success or a negative error in case of failure." |
| 6152 |
msgstr "" |
| 6153 |
|
| 6154 |
#. type: TP |
| 6155 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6156 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6157 |
#, no-wrap |
| 6158 |
msgid "B<u64 bpf_skb_cgroup_classid(struct sk_buff *>I<skb>B<)>" |
| 6159 |
msgstr "" |
| 6160 |
|
| 6161 |
#. type: Plain text |
| 6162 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6163 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6164 |
msgid "" |
| 6165 |
"See B<bpf_get_cgroup_classid>() for the main description. This helper " |
| 6166 |
"differs from B<bpf_get_cgroup_classid>() in that the cgroup v1 net_cls class " |
| 6167 |
"is retrieved only from the I<skb>\\(aqs associated socket instead of the " |
| 6168 |
"current process." |
| 6169 |
msgstr "" |
| 6170 |
|
| 6171 |
#. type: TP |
| 6172 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6173 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6174 |
#, no-wrap |
| 6175 |
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<)>" |
| 6176 |
msgstr "" |
| 6177 |
|
| 6178 |
#. type: Plain text |
| 6179 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6180 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6181 |
msgid "" |
| 6182 |
"Redirect the packet to another net device of index I<ifindex> and fill in L2 " |
| 6183 |
"addresses from neighboring subsystem. This helper is somewhat similar to " |
| 6184 |
"B<bpf_redirect>(), except that it populates L2 addresses as well, meaning, " |
| 6185 |
"internally, the helper relies on the neighbor lookup for the L2 address of " |
| 6186 |
"the nexthop." |
| 6187 |
msgstr "" |
| 6188 |
|
| 6189 |
#. type: Plain text |
| 6190 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6191 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6192 |
msgid "" |
| 6193 |
"The helper will perform a FIB lookup based on the skb\\(aqs networking " |
| 6194 |
"header to get the address of the next hop, unless this is supplied by the " |
| 6195 |
"caller in the I<params> argument. The I<plen> argument indicates the len of " |
| 6196 |
"I<params> and should be set to 0 if I<params> is NULL." |
| 6197 |
msgstr "" |
| 6198 |
|
| 6199 |
#. type: Plain text |
| 6200 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6201 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6202 |
msgid "" |
| 6203 |
"The I<flags> argument is reserved and must be 0. The helper is currently " |
| 6204 |
"only supported for tc BPF program types, and enabled for IPv4 and IPv6 " |
| 6205 |
"protocols." |
| 6206 |
msgstr "" |
| 6207 |
|
| 6208 |
#. type: Plain text |
| 6209 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6210 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6211 |
msgid "" |
| 6212 |
"The helper returns B<TC_ACT_REDIRECT> on success or B<TC_ACT_SHOT> on error." |
| 6213 |
msgstr "" |
| 6214 |
|
| 6215 |
#. type: TP |
| 6216 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6217 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6218 |
#, no-wrap |
| 6219 |
msgid "B<void *bpf_per_cpu_ptr(const void *>I<percpu_ptr>B<, u32 >I<cpu>B<)>" |
| 6220 |
msgstr "" |
| 6221 |
|
| 6222 |
#. type: Plain text |
| 6223 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6224 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6225 |
msgid "" |
| 6226 |
"Take a pointer to a percpu ksym, I<percpu_ptr>, and return a pointer to the " |
| 6227 |
"percpu kernel variable on I<cpu>\\&. A ksym is an extern variable decorated " |
| 6228 |
"with \\(aq__ksym\\(aq. For ksym, there is a global var (either static or " |
| 6229 |
"global) defined of the same name in the kernel. The ksym is percpu if the " |
| 6230 |
"global var is percpu. The returned pointer points to the global percpu var " |
| 6231 |
"on I<cpu>\\&." |
| 6232 |
msgstr "" |
| 6233 |
|
| 6234 |
#. type: Plain text |
| 6235 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6236 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6237 |
msgid "" |
| 6238 |
"bpf_per_cpu_ptr() has the same semantic as per_cpu_ptr() in the kernel, " |
| 6239 |
"except that bpf_per_cpu_ptr() may return NULL. This happens if I<cpu> is " |
| 6240 |
"larger than nr_cpu_ids. The caller of bpf_per_cpu_ptr() must check the " |
| 6241 |
"returned value." |
| 6242 |
msgstr "" |
| 6243 |
|
| 6244 |
#. type: Plain text |
| 6245 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6246 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6247 |
msgid "" |
| 6248 |
"A pointer pointing to the kernel percpu variable on I<cpu>, or NULL, if " |
| 6249 |
"I<cpu> is invalid." |
| 6250 |
msgstr "" |
| 6251 |
|
| 6252 |
#. type: TP |
| 6253 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6254 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6255 |
#, no-wrap |
| 6256 |
msgid "B<void *bpf_this_cpu_ptr(const void *>I<percpu_ptr>B<)>" |
| 6257 |
msgstr "" |
| 6258 |
|
| 6259 |
#. type: Plain text |
| 6260 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6261 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6262 |
msgid "" |
| 6263 |
"Take a pointer to a percpu ksym, I<percpu_ptr>, and return a pointer to the " |
| 6264 |
"percpu kernel variable on this cpu. See the description of \\(aqksym\\(aq in " |
| 6265 |
"B<bpf_per_cpu_ptr>()." |
| 6266 |
msgstr "" |
| 6267 |
|
| 6268 |
#. type: Plain text |
| 6269 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6270 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6271 |
msgid "" |
| 6272 |
"bpf_this_cpu_ptr() has the same semantic as this_cpu_ptr() in the kernel. " |
| 6273 |
"Different from B<bpf_per_cpu_ptr>(), it would never return NULL." |
| 6274 |
msgstr "" |
| 6275 |
|
| 6276 |
#. type: Plain text |
| 6277 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6278 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6279 |
msgid "A pointer pointing to the kernel percpu variable on this cpu." |
| 6280 |
msgstr "" |
| 6281 |
|
| 6282 |
#. type: TP |
| 6283 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6284 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6285 |
#, no-wrap |
| 6286 |
msgid "B<long bpf_redirect_peer(u32 >I<ifindex>B<, u64 >I<flags>B<)>" |
| 6287 |
msgstr "" |
| 6288 |
|
| 6289 |
#. type: Plain text |
| 6290 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6291 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6292 |
msgid "" |
| 6293 |
"Redirect the packet to another net device of index I<ifindex>\\&. This " |
| 6294 |
"helper is somewhat similar to B<bpf_redirect>(), except that the redirection " |
| 6295 |
"happens to the I<ifindex>\\(aq peer device and the netns switch takes place " |
| 6296 |
"from ingress to ingress without going through the CPU\\(aqs backlog queue." |
| 6297 |
msgstr "" |
| 6298 |
|
| 6299 |
#. type: Plain text |
| 6300 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 6301 |
msgid "" |
| 6302 |
"I<skb>B<-E<gt>mark> and I<skb>B<-E<gt>tstamp> are not cleared during the " |
| 6303 |
"netns switch." |
| 6304 |
msgstr "" |
| 6305 |
|
| 6306 |
#. type: Plain text |
| 6307 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6308 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6309 |
msgid "" |
| 6310 |
"The I<flags> argument is reserved and must be 0. The helper is currently " |
| 6311 |
"only supported for tc BPF program types at the ingress hook and for veth and " |
| 6312 |
"netkit target device types. The peer device must reside in a different " |
| 6313 |
"network namespace." |
| 6314 |
msgstr "" |
| 6315 |
|
| 6316 |
#. type: TP |
| 6317 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6318 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6319 |
#, no-wrap |
| 6320 |
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<)>" |
| 6321 |
msgstr "" |
| 6322 |
|
| 6323 |
#. type: Plain text |
| 6324 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6325 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6326 |
msgid "Get a bpf_local_storage from the I<task>\\&." |
| 6327 |
msgstr "" |
| 6328 |
|
| 6329 |
#. type: Plain text |
| 6330 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6331 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6332 |
msgid "" |
| 6333 |
"Logically, it could be thought of as getting the value from a I<map> with " |
| 6334 |
"I<task> as the B<key>\\&. From this perspective, the usage is not much " |
| 6335 |
"different from B<bpf_map_lookup_elem>(I<map>, B<&>I<task>) except this " |
| 6336 |
"helper enforces the key must be a task_struct and the map must also be a " |
| 6337 |
"B<BPF_MAP_TYPE_TASK_STORAGE>\\&." |
| 6338 |
msgstr "" |
| 6339 |
|
| 6340 |
#. type: Plain text |
| 6341 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6342 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6343 |
msgid "" |
| 6344 |
"Underneath, the value is stored locally at I<task> instead of the " |
| 6345 |
"I<map>\\&. The I<map> is used as the bpf-local-storage \"type\". The bpf-" |
| 6346 |
"local-storage \"type\" (i.e. the I<map>) is searched against all " |
| 6347 |
"bpf_local_storage residing at I<task>\\&." |
| 6348 |
msgstr "" |
| 6349 |
|
| 6350 |
#. type: TP |
| 6351 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6352 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6353 |
#, no-wrap |
| 6354 |
msgid "B<long bpf_task_storage_delete(struct bpf_map *>I<map>B<, struct task_struct *>I<task>B<)>" |
| 6355 |
msgstr "" |
| 6356 |
|
| 6357 |
#. type: Plain text |
| 6358 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6359 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6360 |
msgid "Delete a bpf_local_storage from a I<task>\\&." |
| 6361 |
msgstr "" |
| 6362 |
|
| 6363 |
#. type: TP |
| 6364 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6365 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6366 |
#, no-wrap |
| 6367 |
msgid "B<struct task_struct *bpf_get_current_task_btf(void)>" |
| 6368 |
msgstr "" |
| 6369 |
|
| 6370 |
#. type: Plain text |
| 6371 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6372 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6373 |
msgid "" |
| 6374 |
"Return a BTF pointer to the \"current\" task. This pointer can also be used " |
| 6375 |
"in helpers that accept an I<ARG_PTR_TO_BTF_ID> of type I<task_struct>\\&." |
| 6376 |
msgstr "" |
| 6377 |
|
| 6378 |
#. type: Plain text |
| 6379 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6380 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6381 |
msgid "Pointer to the current task." |
| 6382 |
msgstr "" |
| 6383 |
|
| 6384 |
#. type: TP |
| 6385 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6386 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6387 |
#, no-wrap |
| 6388 |
msgid "B<long bpf_bprm_opts_set(struct linux_binprm *>I<bprm>B<, u64 >I<flags>B<)>" |
| 6389 |
msgstr "" |
| 6390 |
|
| 6391 |
#. type: Plain text |
| 6392 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6393 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6394 |
msgid "Set or clear certain options on I<bprm>:" |
| 6395 |
msgstr "" |
| 6396 |
|
| 6397 |
#. type: Plain text |
| 6398 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6399 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6400 |
msgid "" |
| 6401 |
"B<BPF_F_BPRM_SECUREEXEC> Set the secureexec bit which sets the B<AT_SECURE> " |
| 6402 |
"auxv for glibc. The bit is cleared if the flag is not specified." |
| 6403 |
msgstr "" |
| 6404 |
|
| 6405 |
#. type: Plain text |
| 6406 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6407 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6408 |
msgid "B<-EINVAL> if invalid I<flags> are passed, zero otherwise." |
| 6409 |
msgstr "" |
| 6410 |
|
| 6411 |
#. type: TP |
| 6412 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6413 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6414 |
#, no-wrap |
| 6415 |
msgid "B<u64 bpf_ktime_get_coarse_ns(void)>" |
| 6416 |
msgstr "" |
| 6417 |
|
| 6418 |
#. type: Plain text |
| 6419 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6420 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6421 |
msgid "" |
| 6422 |
"Return a coarse-grained version of the time elapsed since system boot, in " |
| 6423 |
"nanoseconds. Does not include time the system was suspended." |
| 6424 |
msgstr "" |
| 6425 |
|
| 6426 |
#. type: Plain text |
| 6427 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6428 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6429 |
msgid "See: B<clock_gettime>(B<CLOCK_MONOTONIC_COARSE>)" |
| 6430 |
msgstr "" |
| 6431 |
|
| 6432 |
#. type: TP |
| 6433 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6434 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6435 |
#, no-wrap |
| 6436 |
msgid "B<long bpf_ima_inode_hash(struct inode *>I<inode>B<, void *>I<dst>B<, u32 >I<size>B<)>" |
| 6437 |
msgstr "" |
| 6438 |
|
| 6439 |
#. type: Plain text |
| 6440 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6441 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6442 |
msgid "" |
| 6443 |
"Returns the stored IMA hash of the I<inode> (if it\\(aqs available). If the " |
| 6444 |
"hash is larger than I<size>, then only I<size> bytes will be copied to I<dst>" |
| 6445 |
msgstr "" |
| 6446 |
|
| 6447 |
#. type: Plain text |
| 6448 |
#: archlinux debian-unstable fedora-44 fedora-rawhide opensuse-leap-16-1 |
| 6449 |
#: opensuse-tumbleweed |
| 6450 |
msgid "" |
| 6451 |
"The B<hash_algo> is returned on success, B<-EOPNOTSUPP> if IMA is disabled " |
| 6452 |
"or B<-EINVAL> if invalid arguments are passed." |
| 6453 |
msgstr "" |
| 6454 |
|
| 6455 |
#. type: TP |
| 6456 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6457 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6458 |
#, no-wrap |
| 6459 |
msgid "B<struct socket *bpf_sock_from_file(struct file *>I<file>B<)>" |
| 6460 |
msgstr "" |
| 6461 |
|
| 6462 |
#. type: Plain text |
| 6463 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6464 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6465 |
msgid "If the given file represents a socket, returns the associated socket." |
| 6466 |
msgstr "" |
| 6467 |
|
| 6468 |
#. type: Plain text |
| 6469 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6470 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6471 |
msgid "" |
| 6472 |
"A pointer to a struct socket on success or NULL if the file is not a socket." |
| 6473 |
msgstr "" |
| 6474 |
|
| 6475 |
#. type: TP |
| 6476 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6477 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6478 |
#, no-wrap |
| 6479 |
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<)>" |
| 6480 |
msgstr "" |
| 6481 |
|
| 6482 |
#. type: Plain text |
| 6483 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6484 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6485 |
msgid "" |
| 6486 |
"Check packet size against exceeding MTU of net device (based on " |
| 6487 |
"I<ifindex>). This helper will likely be used in combination with helpers " |
| 6488 |
"that adjust/change the packet size." |
| 6489 |
msgstr "" |
| 6490 |
|
| 6491 |
#. type: Plain text |
| 6492 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6493 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6494 |
msgid "" |
| 6495 |
"The argument I<len_diff> can be used for querying with a planned size " |
| 6496 |
"change. This allows to check MTU prior to changing packet ctx. Providing a " |
| 6497 |
"I<len_diff> adjustment that is larger than the actual packet size (resulting " |
| 6498 |
"in negative packet size) will in principle not exceed the MTU, which is why " |
| 6499 |
"it is not considered a failure. Other BPF helpers are needed for performing " |
| 6500 |
"the planned size change; therefore the responsibility for catching a " |
| 6501 |
"negative packet size belongs in those helpers." |
| 6502 |
msgstr "" |
| 6503 |
|
| 6504 |
#. type: Plain text |
| 6505 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6506 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6507 |
msgid "" |
| 6508 |
"Specifying I<ifindex> zero means the MTU check is performed against the " |
| 6509 |
"current net device. This is practical if this isn\\(aqt used prior to " |
| 6510 |
"redirect." |
| 6511 |
msgstr "" |
| 6512 |
|
| 6513 |
#. type: Plain text |
| 6514 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6515 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6516 |
msgid "" |
| 6517 |
"On input I<mtu_len> must be a valid pointer, else verifier will reject BPF " |
| 6518 |
"program. If the value I<mtu_len> is initialized to zero then the ctx packet " |
| 6519 |
"size is use. When value I<mtu_len> is provided as input this specify the L3 " |
| 6520 |
"length that the MTU check is done against. Remember XDP and TC length " |
| 6521 |
"operate at L2, but this value is L3 as this correlate to MTU and IP-header " |
| 6522 |
"tot_len values which are L3 (similar behavior as bpf_fib_lookup)." |
| 6523 |
msgstr "" |
| 6524 |
|
| 6525 |
#. type: Plain text |
| 6526 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6527 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6528 |
msgid "" |
| 6529 |
"The Linux kernel route table can configure MTUs on a more specific per route " |
| 6530 |
"level, which is not provided by this helper. For route level MTU checks use " |
| 6531 |
"the B<bpf_fib_lookup>() helper." |
| 6532 |
msgstr "" |
| 6533 |
|
| 6534 |
#. type: Plain text |
| 6535 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6536 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6537 |
msgid "" |
| 6538 |
"I<ctx> is either B<struct xdp_md> for XDP programs or B<struct sk_buff> for " |
| 6539 |
"tc cls_act programs." |
| 6540 |
msgstr "" |
| 6541 |
|
| 6542 |
#. type: Plain text |
| 6543 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6544 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6545 |
msgid "" |
| 6546 |
"The I<flags> argument can be a combination of one or more of the following " |
| 6547 |
"values:" |
| 6548 |
msgstr "" |
| 6549 |
|
| 6550 |
#. type: TP |
| 6551 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6552 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6553 |
#, no-wrap |
| 6554 |
msgid "B<BPF_MTU_CHK_SEGS>" |
| 6555 |
msgstr "" |
| 6556 |
|
| 6557 |
#. type: Plain text |
| 6558 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6559 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6560 |
msgid "" |
| 6561 |
"This flag will only works for I<ctx> B<struct sk_buff>\\&. If packet " |
| 6562 |
"context contains extra packet segment buffers (often knows as GSO skb), then " |
| 6563 |
"MTU check is harder to check at this point, because in transmit path it is " |
| 6564 |
"possible for the skb packet to get re-segmented (depending on net device " |
| 6565 |
"features). This could still be a MTU violation, so this flag enables " |
| 6566 |
"performing MTU check against segments, with a different violation return " |
| 6567 |
"code to tell it apart. Check cannot use len_diff." |
| 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 |
"On return I<mtu_len> pointer contains the MTU value of the net device. " |
| 6575 |
"Remember the net device configured MTU is the L3 size, which is returned " |
| 6576 |
"here and XDP and TC length operate at L2. Helper take this into account for " |
| 6577 |
"you, but remember when using MTU value in your BPF-code." |
| 6578 |
msgstr "" |
| 6579 |
|
| 6580 |
#. type: Plain text |
| 6581 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6582 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6583 |
msgid "0 on success, and populate MTU value in I<mtu_len> pointer." |
| 6584 |
msgstr "" |
| 6585 |
|
| 6586 |
#. type: Plain text |
| 6587 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6588 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6589 |
msgid "E<lt> 0 if any input argument is invalid (I<mtu_len> not updated)" |
| 6590 |
msgstr "" |
| 6591 |
|
| 6592 |
#. type: Plain text |
| 6593 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6594 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6595 |
msgid "" |
| 6596 |
"MTU violations return positive values, but also populate MTU value in " |
| 6597 |
"I<mtu_len> pointer, as this can be needed for implementing PMTU handing:" |
| 6598 |
msgstr "" |
| 6599 |
|
| 6600 |
#. type: Plain text |
| 6601 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6602 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6603 |
msgid "B<BPF_MTU_CHK_RET_FRAG_NEEDED>" |
| 6604 |
msgstr "" |
| 6605 |
|
| 6606 |
#. type: Plain text |
| 6607 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6608 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6609 |
msgid "B<BPF_MTU_CHK_RET_SEGS_TOOBIG>" |
| 6610 |
msgstr "" |
| 6611 |
|
| 6612 |
#. type: TP |
| 6613 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6614 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6615 |
#, no-wrap |
| 6616 |
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<)>" |
| 6617 |
msgstr "" |
| 6618 |
|
| 6619 |
#. type: Plain text |
| 6620 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6621 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6622 |
msgid "" |
| 6623 |
"For each element in B<map>, call B<callback_fn> function with B<map>, " |
| 6624 |
"B<callback_ctx> and other map-specific parameters. The B<callback_fn> " |
| 6625 |
"should be a static function and the B<callback_ctx> should be a pointer to " |
| 6626 |
"the stack. The B<flags> is used to control certain aspects of the helper. " |
| 6627 |
"Currently, the B<flags> must be 0." |
| 6628 |
msgstr "" |
| 6629 |
|
| 6630 |
#. type: Plain text |
| 6631 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6632 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6633 |
msgid "" |
| 6634 |
"The following are a list of supported map types and their respective " |
| 6635 |
"expected callback signatures:" |
| 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 |
"BPF_MAP_TYPE_HASH, BPF_MAP_TYPE_PERCPU_HASH, BPF_MAP_TYPE_LRU_HASH, " |
| 6643 |
"BPF_MAP_TYPE_LRU_PERCPU_HASH, BPF_MAP_TYPE_ARRAY, BPF_MAP_TYPE_PERCPU_ARRAY" |
| 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 |
"long (*callback_fn)(struct bpf_map *map, const void *key, void *value, void " |
| 6651 |
"*ctx);" |
| 6652 |
msgstr "" |
| 6653 |
|
| 6654 |
#. type: Plain text |
| 6655 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6656 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6657 |
msgid "" |
| 6658 |
"For per_cpu maps, the map_value is the value on the cpu where the bpf_prog " |
| 6659 |
"is running." |
| 6660 |
msgstr "" |
| 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 |
"If B<callback_fn> return 0, the helper will continue to the next element. If " |
| 6667 |
"return value is 1, the helper will skip the rest of elements and return. " |
| 6668 |
"Other return values are not used now." |
| 6669 |
msgstr "" |
| 6670 |
|
| 6671 |
#. type: Plain text |
| 6672 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6673 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6674 |
msgid "" |
| 6675 |
"The number of traversed map elements for success, B<-EINVAL> for invalid " |
| 6676 |
"B<flags>\\&." |
| 6677 |
msgstr "" |
| 6678 |
|
| 6679 |
#. type: TP |
| 6680 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6681 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6682 |
#, no-wrap |
| 6683 |
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<)>" |
| 6684 |
msgstr "" |
| 6685 |
|
| 6686 |
#. type: Plain text |
| 6687 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6688 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6689 |
msgid "" |
| 6690 |
"Outputs a string into the B<str> buffer of size B<str_size> based on a " |
| 6691 |
"format string stored in a read-only map pointed by B<fmt>\\&." |
| 6692 |
msgstr "" |
| 6693 |
|
| 6694 |
#. type: Plain text |
| 6695 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6696 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6697 |
msgid "" |
| 6698 |
"Each format specifier in B<fmt> corresponds to one u64 element in the " |
| 6699 |
"B<data> array. For strings and pointers where pointees are accessed, only " |
| 6700 |
"the pointer values are stored in the I<data> array. The I<data_len> is the " |
| 6701 |
"size of I<data> in bytes - must be a multiple of 8." |
| 6702 |
msgstr "" |
| 6703 |
|
| 6704 |
#. type: Plain text |
| 6705 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6706 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6707 |
msgid "" |
| 6708 |
"Formats B<%s> and B<%p{i,I}{4,6}> require to read kernel memory. Reading " |
| 6709 |
"kernel memory may fail due to either invalid address or valid address but " |
| 6710 |
"requiring a major memory fault. If reading kernel memory fails, the string " |
| 6711 |
"for B<%s> will be an empty string, and the ip address for B<%p{i,I}{4,6}> " |
| 6712 |
"will be 0. Not returning error to bpf program is consistent with what " |
| 6713 |
"B<bpf_trace_printk>() does for now." |
| 6714 |
msgstr "" |
| 6715 |
|
| 6716 |
#. type: Plain text |
| 6717 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6718 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6719 |
msgid "" |
| 6720 |
"The strictly positive length of the formatted string, including the trailing " |
| 6721 |
"zero character. If the return value is greater than B<str_size>, B<str> " |
| 6722 |
"contains a truncated string, guaranteed to be zero-terminated except when " |
| 6723 |
"B<str_size> is 0." |
| 6724 |
msgstr "" |
| 6725 |
|
| 6726 |
#. type: Plain text |
| 6727 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6728 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6729 |
msgid "Or B<-EBUSY> if the per-CPU memory copy buffer is busy." |
| 6730 |
msgstr "" |
| 6731 |
|
| 6732 |
#. type: TP |
| 6733 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6734 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6735 |
#, no-wrap |
| 6736 |
msgid "B<long bpf_sys_bpf(u32 >I<cmd>B<, void *>I<attr>B<, u32 >I<attr_size>B<)>" |
| 6737 |
msgstr "" |
| 6738 |
|
| 6739 |
#. type: Plain text |
| 6740 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6741 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6742 |
msgid "Execute bpf syscall with given arguments." |
| 6743 |
msgstr "" |
| 6744 |
|
| 6745 |
#. type: Plain text |
| 6746 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6747 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6748 |
msgid "A syscall result." |
| 6749 |
msgstr "" |
| 6750 |
|
| 6751 |
#. type: TP |
| 6752 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6753 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6754 |
#, no-wrap |
| 6755 |
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<)>" |
| 6756 |
msgstr "" |
| 6757 |
|
| 6758 |
#. type: Plain text |
| 6759 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6760 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6761 |
msgid "" |
| 6762 |
"Find BTF type with given name and kind in vmlinux BTF or in module\\(aqs " |
| 6763 |
"BTFs." |
| 6764 |
msgstr "" |
| 6765 |
|
| 6766 |
#. type: Plain text |
| 6767 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6768 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6769 |
msgid "Returns btf_id and btf_obj_fd in lower and upper 32 bits." |
| 6770 |
msgstr "" |
| 6771 |
|
| 6772 |
#. type: TP |
| 6773 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6774 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6775 |
#, no-wrap |
| 6776 |
msgid "B<long bpf_sys_close(u32 >I<fd>B<)>" |
| 6777 |
msgstr "" |
| 6778 |
|
| 6779 |
#. type: Plain text |
| 6780 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6781 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6782 |
msgid "Execute close syscall for given FD." |
| 6783 |
msgstr "" |
| 6784 |
|
| 6785 |
#. type: TP |
| 6786 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6787 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6788 |
#, no-wrap |
| 6789 |
msgid "B<long bpf_timer_init(struct bpf_timer *>I<timer>B<, struct bpf_map *>I<map>B<, u64 >I<flags>B<)>" |
| 6790 |
msgstr "" |
| 6791 |
|
| 6792 |
#. type: Plain text |
| 6793 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6794 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6795 |
msgid "" |
| 6796 |
"Initialize the timer. First 4 bits of I<flags> specify clockid. Only " |
| 6797 |
"CLOCK_MONOTONIC, CLOCK_REALTIME, CLOCK_BOOTTIME are allowed. All other bits " |
| 6798 |
"of I<flags> are reserved. The verifier will reject the program if I<timer> " |
| 6799 |
"is not from the same I<map>\\&." |
| 6800 |
msgstr "" |
| 6801 |
|
| 6802 |
#. type: Plain text |
| 6803 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6804 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6805 |
msgid "" |
| 6806 |
"0 on success. B<-EBUSY> if I<timer> is already initialized. B<-EINVAL> if " |
| 6807 |
"invalid I<flags> are passed. B<-EPERM> if I<timer> is in a map that doesn\\" |
| 6808 |
"(aqt have any user references. The user space should either hold a file " |
| 6809 |
"descriptor to a map with timers or pin such map in bpffs. When map is " |
| 6810 |
"unpinned or file descriptor is closed all timers in the map will be " |
| 6811 |
"cancelled and freed." |
| 6812 |
msgstr "" |
| 6813 |
|
| 6814 |
#. type: TP |
| 6815 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6816 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6817 |
#, no-wrap |
| 6818 |
msgid "B<long bpf_timer_set_callback(struct bpf_timer *>I<timer>B<, void *>I<callback_fn>B<)>" |
| 6819 |
msgstr "" |
| 6820 |
|
| 6821 |
#. type: Plain text |
| 6822 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6823 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6824 |
msgid "Configure the timer to call I<callback_fn> static function." |
| 6825 |
msgstr "" |
| 6826 |
|
| 6827 |
#. type: Plain text |
| 6828 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6829 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6830 |
msgid "" |
| 6831 |
"0 on success. B<-EINVAL> if I<timer> was not initialized with " |
| 6832 |
"bpf_timer_init() earlier. B<-EPERM> if I<timer> is in a map that doesn\\" |
| 6833 |
"(aqt have any user references. The user space should either hold a file " |
| 6834 |
"descriptor to a map with timers or pin such map in bpffs. When map is " |
| 6835 |
"unpinned or file descriptor is closed all timers in the map will be " |
| 6836 |
"cancelled and freed." |
| 6837 |
msgstr "" |
| 6838 |
|
| 6839 |
#. type: TP |
| 6840 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6841 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6842 |
#, no-wrap |
| 6843 |
msgid "B<long bpf_timer_start(struct bpf_timer *>I<timer>B<, u64 >I<nsecs>B<, u64 >I<flags>B<)>" |
| 6844 |
msgstr "" |
| 6845 |
|
| 6846 |
#. type: Plain text |
| 6847 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6848 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6849 |
msgid "" |
| 6850 |
"Set timer expiration N nanoseconds from the current time. The configured " |
| 6851 |
"callback will be invoked in soft irq context on some cpu and will not repeat " |
| 6852 |
"unless another bpf_timer_start() is made. In such case the next invocation " |
| 6853 |
"can migrate to a different cpu. Since struct bpf_timer is a field inside " |
| 6854 |
"map element the map owns the timer. The bpf_timer_set_callback() will " |
| 6855 |
"increment refcnt of BPF program to make sure that callback_fn code stays " |
| 6856 |
"valid. When user space reference to a map reaches zero all timers in a map " |
| 6857 |
"are cancelled and corresponding program\\(aqs refcnts are decremented. This " |
| 6858 |
"is done to make sure that Ctrl-C of a user process doesn\\(aqt leave any " |
| 6859 |
"timers running. If map is pinned in bpffs the callback_fn can re-arm itself " |
| 6860 |
"indefinitely. bpf_map_update/delete_elem() helpers and user space sys_bpf " |
| 6861 |
"commands cancel and free the timer in the given map element. The map can " |
| 6862 |
"contain timers that invoke callback_fn-s from different programs. The same " |
| 6863 |
"callback_fn can serve different timers from different maps if key/value " |
| 6864 |
"layout matches across maps. Every bpf_timer_set_callback() can have " |
| 6865 |
"different callback_fn." |
| 6866 |
msgstr "" |
| 6867 |
|
| 6868 |
#. type: Plain text |
| 6869 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6870 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6871 |
msgid "I<flags> can be one of:" |
| 6872 |
msgstr "" |
| 6873 |
|
| 6874 |
#. type: TP |
| 6875 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6876 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6877 |
#, no-wrap |
| 6878 |
msgid "B<BPF_F_TIMER_ABS>" |
| 6879 |
msgstr "" |
| 6880 |
|
| 6881 |
#. type: Plain text |
| 6882 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6883 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6884 |
msgid "" |
| 6885 |
"Start the timer in absolute expire value instead of the default relative one." |
| 6886 |
msgstr "" |
| 6887 |
|
| 6888 |
#. type: TP |
| 6889 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6890 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6891 |
#, no-wrap |
| 6892 |
msgid "B<BPF_F_TIMER_CPU_PIN>" |
| 6893 |
msgstr "" |
| 6894 |
|
| 6895 |
#. type: Plain text |
| 6896 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6897 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6898 |
msgid "Timer will be pinned to the CPU of the caller." |
| 6899 |
msgstr "" |
| 6900 |
|
| 6901 |
#. type: Plain text |
| 6902 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6903 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6904 |
msgid "" |
| 6905 |
"0 on success. B<-EINVAL> if I<timer> was not initialized with " |
| 6906 |
"bpf_timer_init() earlier or invalid I<flags> are passed." |
| 6907 |
msgstr "" |
| 6908 |
|
| 6909 |
#. type: TP |
| 6910 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6911 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6912 |
#, no-wrap |
| 6913 |
msgid "B<long bpf_timer_cancel(struct bpf_timer *>I<timer>B<)>" |
| 6914 |
msgstr "" |
| 6915 |
|
| 6916 |
#. type: Plain text |
| 6917 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6918 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6919 |
msgid "Cancel the timer and wait for callback_fn to finish if it was running." |
| 6920 |
msgstr "" |
| 6921 |
|
| 6922 |
#. type: Plain text |
| 6923 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6924 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6925 |
msgid "" |
| 6926 |
"0 if the timer was not active. 1 if the timer was active. B<-EINVAL> if " |
| 6927 |
"I<timer> was not initialized with bpf_timer_init() earlier. B<-EDEADLK> if " |
| 6928 |
"callback_fn tried to call bpf_timer_cancel() on its own timer which would " |
| 6929 |
"have led to a deadlock otherwise." |
| 6930 |
msgstr "" |
| 6931 |
|
| 6932 |
#. type: TP |
| 6933 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6934 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6935 |
#, no-wrap |
| 6936 |
msgid "B<u64 bpf_get_func_ip(void *>I<ctx>B<)>" |
| 6937 |
msgstr "" |
| 6938 |
|
| 6939 |
#. type: Plain text |
| 6940 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6941 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6942 |
msgid "Get address of the traced function (for tracing and kprobe programs)." |
| 6943 |
msgstr "" |
| 6944 |
|
| 6945 |
#. type: Plain text |
| 6946 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6947 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6948 |
msgid "" |
| 6949 |
"When called for kprobe program attached as uprobe it returns probe address " |
| 6950 |
"for both entry and return uprobe." |
| 6951 |
msgstr "" |
| 6952 |
|
| 6953 |
#. type: Plain text |
| 6954 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6955 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6956 |
msgid "" |
| 6957 |
"Address of the traced function for kprobe. 0 for kprobes placed within the " |
| 6958 |
"function (not at the entry). Address of the probe for uprobe and return " |
| 6959 |
"uprobe." |
| 6960 |
msgstr "" |
| 6961 |
|
| 6962 |
#. type: TP |
| 6963 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6964 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6965 |
#, no-wrap |
| 6966 |
msgid "B<u64 bpf_get_attach_cookie(void *>I<ctx>B<)>" |
| 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 "" |
| 6973 |
"Get bpf_cookie value provided (optionally) during the program attachment. It " |
| 6974 |
"might be different for each individual attachment, even if BPF program " |
| 6975 |
"itself is the same. Expects BPF program context I<ctx> as a first argument." |
| 6976 |
msgstr "" |
| 6977 |
|
| 6978 |
#. type: TP |
| 6979 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6980 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6981 |
#, no-wrap |
| 6982 |
msgid "B<Supported for the following program types:>" |
| 6983 |
msgstr "" |
| 6984 |
|
| 6985 |
#. type: Plain text |
| 6986 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6987 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6988 |
msgid "kprobe/uprobe;" |
| 6989 |
msgstr "" |
| 6990 |
|
| 6991 |
#. type: Plain text |
| 6992 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6993 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 6994 |
msgid "tracepoint;" |
| 6995 |
msgstr "" |
| 6996 |
|
| 6997 |
#. type: Plain text |
| 6998 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 6999 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7000 |
msgid "perf_event." |
| 7001 |
msgstr "" |
| 7002 |
|
| 7003 |
#. type: Plain text |
| 7004 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7005 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7006 |
msgid "" |
| 7007 |
"Value specified by user at BPF link creation/attachment time or 0, if it was " |
| 7008 |
"not specified." |
| 7009 |
msgstr "" |
| 7010 |
|
| 7011 |
#. type: TP |
| 7012 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7013 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7014 |
#, no-wrap |
| 7015 |
msgid "B<long bpf_task_pt_regs(struct task_struct *>I<task>B<)>" |
| 7016 |
msgstr "" |
| 7017 |
|
| 7018 |
#. type: Plain text |
| 7019 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7020 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7021 |
msgid "Get the struct pt_regs associated with B<task>\\&." |
| 7022 |
msgstr "" |
| 7023 |
|
| 7024 |
#. type: Plain text |
| 7025 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7026 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7027 |
msgid "A pointer to struct pt_regs." |
| 7028 |
msgstr "" |
| 7029 |
|
| 7030 |
#. type: TP |
| 7031 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7032 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7033 |
#, no-wrap |
| 7034 |
msgid "B<long bpf_get_branch_snapshot(void *>I<entries>B<, u32 >I<size>B<, u64 >I<flags>B<)>" |
| 7035 |
msgstr "" |
| 7036 |
|
| 7037 |
#. type: Plain text |
| 7038 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7039 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7040 |
msgid "" |
| 7041 |
"Get branch trace from hardware engines like Intel LBR. The hardware engine " |
| 7042 |
"is stopped shortly after the helper is called. Therefore, the user need to " |
| 7043 |
"filter branch entries based on the actual use case. To capture branch trace " |
| 7044 |
"before the trigger point of the BPF program, the helper should be called at " |
| 7045 |
"the beginning of the BPF program." |
| 7046 |
msgstr "" |
| 7047 |
|
| 7048 |
#. type: Plain text |
| 7049 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7050 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7051 |
msgid "" |
| 7052 |
"The data is stored as struct perf_branch_entry into output buffer " |
| 7053 |
"I<entries>\\&. I<size> is the size of I<entries> in bytes. I<flags> is " |
| 7054 |
"reserved for now and must be zero." |
| 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 "B<-EINVAL> if I<flags> is not zero." |
| 7061 |
msgstr "" |
| 7062 |
|
| 7063 |
#. type: TP |
| 7064 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7065 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7066 |
#, no-wrap |
| 7067 |
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<)>" |
| 7068 |
msgstr "" |
| 7069 |
|
| 7070 |
#. type: Plain text |
| 7071 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7072 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7073 |
msgid "" |
| 7074 |
"Behaves like B<bpf_trace_printk>() helper, but takes an array of u64 to " |
| 7075 |
"format and can handle more format args as a result." |
| 7076 |
msgstr "" |
| 7077 |
|
| 7078 |
#. type: Plain text |
| 7079 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7080 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7081 |
msgid "Arguments are to be used as in B<bpf_seq_printf>() helper." |
| 7082 |
msgstr "" |
| 7083 |
|
| 7084 |
#. type: TP |
| 7085 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7086 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7087 |
#, no-wrap |
| 7088 |
msgid "B<struct unix_sock *bpf_skc_to_unix_sock(void *>I<sk>B<)>" |
| 7089 |
msgstr "" |
| 7090 |
|
| 7091 |
#. type: Plain text |
| 7092 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7093 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7094 |
msgid "Dynamically cast a I<sk> pointer to a I<unix_sock> pointer." |
| 7095 |
msgstr "" |
| 7096 |
|
| 7097 |
#. type: TP |
| 7098 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7099 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7100 |
#, no-wrap |
| 7101 |
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<)>" |
| 7102 |
msgstr "" |
| 7103 |
|
| 7104 |
#. type: Plain text |
| 7105 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7106 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7107 |
msgid "" |
| 7108 |
"Get the address of a kernel symbol, returned in I<res>\\&. I<res> is set to " |
| 7109 |
"0 if the symbol is not found." |
| 7110 |
msgstr "" |
| 7111 |
|
| 7112 |
#. type: Plain text |
| 7113 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7114 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7115 |
msgid "On success, zero. On error, a negative value." |
| 7116 |
msgstr "" |
| 7117 |
|
| 7118 |
#. type: Plain text |
| 7119 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7120 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7121 |
msgid "B<-EINVAL> if string I<name> is not the same size as I<name_sz>\\&." |
| 7122 |
msgstr "" |
| 7123 |
|
| 7124 |
#. type: Plain text |
| 7125 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7126 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7127 |
msgid "B<-ENOENT> if symbol is not found." |
| 7128 |
msgstr "" |
| 7129 |
|
| 7130 |
#. type: Plain text |
| 7131 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7132 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7133 |
msgid "B<-EPERM> if caller does not have permission to obtain kernel address." |
| 7134 |
msgstr "" |
| 7135 |
|
| 7136 |
#. type: TP |
| 7137 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7138 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7139 |
#, no-wrap |
| 7140 |
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<)>" |
| 7141 |
msgstr "" |
| 7142 |
|
| 7143 |
#. type: Plain text |
| 7144 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7145 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7146 |
msgid "" |
| 7147 |
"Find vma of I<task> that contains I<addr>, call I<callback_fn> function with " |
| 7148 |
"I<task>, I<vma>, and I<callback_ctx>\\&. The I<callback_fn> should be a " |
| 7149 |
"static function and the I<callback_ctx> should be a pointer to the stack. " |
| 7150 |
"The I<flags> is used to control certain aspects of the helper. Currently, " |
| 7151 |
"the I<flags> must be 0." |
| 7152 |
msgstr "" |
| 7153 |
|
| 7154 |
#. type: Plain text |
| 7155 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7156 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7157 |
msgid "The expected callback signature is" |
| 7158 |
msgstr "" |
| 7159 |
|
| 7160 |
#. type: Plain text |
| 7161 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7162 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7163 |
msgid "" |
| 7164 |
"long (*callback_fn)(struct task_struct *task, struct vm_area_struct *vma, " |
| 7165 |
"void *callback_ctx);" |
| 7166 |
msgstr "" |
| 7167 |
|
| 7168 |
#. type: Plain text |
| 7169 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7170 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7171 |
msgid "" |
| 7172 |
"0 on success. B<-ENOENT> if I<task-E<gt>mm> is NULL, or no vma contains " |
| 7173 |
"I<addr>\\&. B<-EBUSY> if failed to try lock mmap_lock. B<-EINVAL> for " |
| 7174 |
"invalid B<flags>\\&." |
| 7175 |
msgstr "" |
| 7176 |
|
| 7177 |
#. type: TP |
| 7178 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7179 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7180 |
#, no-wrap |
| 7181 |
msgid "B<long bpf_loop(u32 >I<nr_loops>B<, void *>I<callback_fn>B<, void *>I<callback_ctx>B<, u64 >I<flags>B<)>" |
| 7182 |
msgstr "" |
| 7183 |
|
| 7184 |
#. type: Plain text |
| 7185 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7186 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7187 |
msgid "" |
| 7188 |
"For B<nr_loops>, call B<callback_fn> function with B<callback_ctx> as the " |
| 7189 |
"context parameter. The B<callback_fn> should be a static function and the " |
| 7190 |
"B<callback_ctx> should be a pointer to the stack. The B<flags> is used to " |
| 7191 |
"control certain aspects of the helper. Currently, the B<flags> must be 0. " |
| 7192 |
"Currently, nr_loops is limited to 1 E<lt>E<lt> 23 (~8 million) loops." |
| 7193 |
msgstr "" |
| 7194 |
|
| 7195 |
#. type: Plain text |
| 7196 |
#: archlinux debian-unstable fedora-44 fedora-rawhide opensuse-leap-16-1 |
| 7197 |
#: opensuse-tumbleweed |
| 7198 |
msgid "long (*callback_fn)(u64 index, void *ctx);" |
| 7199 |
msgstr "" |
| 7200 |
|
| 7201 |
#. type: Plain text |
| 7202 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7203 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7204 |
msgid "" |
| 7205 |
"where B<index> is the current index in the loop. The index is zero-indexed." |
| 7206 |
msgstr "" |
| 7207 |
|
| 7208 |
#. type: Plain text |
| 7209 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7210 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7211 |
msgid "" |
| 7212 |
"If B<callback_fn> returns 0, the helper will continue to the next loop. If " |
| 7213 |
"return value is 1, the helper will skip the rest of the loops and return. " |
| 7214 |
"Other return values are not used now, and will be rejected by the verifier." |
| 7215 |
msgstr "" |
| 7216 |
|
| 7217 |
#. type: Plain text |
| 7218 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7219 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7220 |
msgid "" |
| 7221 |
"The number of loops performed, B<-EINVAL> for invalid B<flags>, B<-E2BIG> if " |
| 7222 |
"B<nr_loops> exceeds the maximum number of loops." |
| 7223 |
msgstr "" |
| 7224 |
|
| 7225 |
#. type: TP |
| 7226 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7227 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7228 |
#, no-wrap |
| 7229 |
msgid "B<long bpf_strncmp(const char *>I<s1>B<, u32 >I<s1_sz>B<, const char *>I<s2>B<)>" |
| 7230 |
msgstr "" |
| 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 |
"Do strncmp() between B<s1> and B<s2>\\&. B<s1> doesn\\(aqt need to be null-" |
| 7237 |
"terminated and B<s1_sz> is the maximum storage size of B<s1>\\&. B<s2> must " |
| 7238 |
"be a read-only string." |
| 7239 |
msgstr "" |
| 7240 |
|
| 7241 |
#. type: Plain text |
| 7242 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7243 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7244 |
msgid "" |
| 7245 |
"An integer less than, equal to, or greater than zero if the first B<s1_sz> " |
| 7246 |
"bytes of B<s1> is found to be less than, to match, or be greater than " |
| 7247 |
"B<s2>\\&." |
| 7248 |
msgstr "" |
| 7249 |
|
| 7250 |
#. type: TP |
| 7251 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7252 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7253 |
#, no-wrap |
| 7254 |
msgid "B<long bpf_get_func_arg(void *>I<ctx>B<, u32 >I<n>B<, u64 *>I<value>B<)>" |
| 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 |
"Get B<n>-th argument register (zero based) of the traced function (for " |
| 7262 |
"tracing programs) returned in B<value>\\&." |
| 7263 |
msgstr "" |
| 7264 |
|
| 7265 |
#. type: Plain text |
| 7266 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7267 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7268 |
msgid "" |
| 7269 |
"0 on success. B<-EINVAL> if n E<gt>= argument register count of traced " |
| 7270 |
"function." |
| 7271 |
msgstr "" |
| 7272 |
|
| 7273 |
#. type: TP |
| 7274 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7275 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7276 |
#, no-wrap |
| 7277 |
msgid "B<long bpf_get_func_ret(void *>I<ctx>B<, u64 *>I<value>B<)>" |
| 7278 |
msgstr "" |
| 7279 |
|
| 7280 |
#. type: Plain text |
| 7281 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7282 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7283 |
msgid "" |
| 7284 |
"Get return value of the traced function (for tracing programs) in " |
| 7285 |
"B<value>\\&." |
| 7286 |
msgstr "" |
| 7287 |
|
| 7288 |
#. type: Plain text |
| 7289 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7290 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7291 |
msgid "" |
| 7292 |
"0 on success. B<-EOPNOTSUPP> for tracing programs other than " |
| 7293 |
"BPF_TRACE_FEXIT or BPF_MODIFY_RETURN." |
| 7294 |
msgstr "" |
| 7295 |
|
| 7296 |
#. type: TP |
| 7297 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7298 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7299 |
#, no-wrap |
| 7300 |
msgid "B<long bpf_get_func_arg_cnt(void *>I<ctx>B<)>" |
| 7301 |
msgstr "" |
| 7302 |
|
| 7303 |
#. type: Plain text |
| 7304 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7305 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7306 |
msgid "" |
| 7307 |
"Get number of registers of the traced function (for tracing programs) where " |
| 7308 |
"function arguments are stored in these registers." |
| 7309 |
msgstr "" |
| 7310 |
|
| 7311 |
#. type: Plain text |
| 7312 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7313 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7314 |
msgid "The number of argument registers of the traced function." |
| 7315 |
msgstr "" |
| 7316 |
|
| 7317 |
#. type: TP |
| 7318 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7319 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7320 |
#, no-wrap |
| 7321 |
msgid "B<int bpf_get_retval(void)>" |
| 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 |
msgid "" |
| 7328 |
"Get the BPF program\\(aqs return value that will be returned to the upper " |
| 7329 |
"layers." |
| 7330 |
msgstr "" |
| 7331 |
|
| 7332 |
#. type: Plain text |
| 7333 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7334 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7335 |
msgid "" |
| 7336 |
"This helper is currently supported by cgroup programs and only by the hooks " |
| 7337 |
"where BPF program\\(aqs return value is returned to the userspace via errno." |
| 7338 |
msgstr "" |
| 7339 |
|
| 7340 |
#. type: Plain text |
| 7341 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7342 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7343 |
msgid "The BPF program\\(aqs return value." |
| 7344 |
msgstr "" |
| 7345 |
|
| 7346 |
#. type: TP |
| 7347 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7348 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7349 |
#, no-wrap |
| 7350 |
msgid "B<int bpf_set_retval(int >I<retval>B<)>" |
| 7351 |
msgstr "" |
| 7352 |
|
| 7353 |
#. type: Plain text |
| 7354 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7355 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7356 |
msgid "" |
| 7357 |
"Set the BPF program\\(aqs return value that will be returned to the upper " |
| 7358 |
"layers." |
| 7359 |
msgstr "" |
| 7360 |
|
| 7361 |
#. type: Plain text |
| 7362 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7363 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7364 |
msgid "" |
| 7365 |
"Note that there is the following corner case where the program exports an " |
| 7366 |
"error via bpf_set_retval but signals success via \\(aqreturn 1\\(aq:" |
| 7367 |
msgstr "" |
| 7368 |
|
| 7369 |
#. type: Plain text |
| 7370 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7371 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7372 |
msgid "bpf_set_retval(-EPERM); return 1;" |
| 7373 |
msgstr "" |
| 7374 |
|
| 7375 |
#. type: Plain text |
| 7376 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7377 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7378 |
msgid "" |
| 7379 |
"In this case, the BPF program\\(aqs return value will use helper\\(aqs " |
| 7380 |
"-EPERM. This still holds true for cgroup/bind{4,6} which supports extra \\" |
| 7381 |
"(aqreturn 3\\(aq success case." |
| 7382 |
msgstr "" |
| 7383 |
|
| 7384 |
#. type: TP |
| 7385 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7386 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7387 |
#, no-wrap |
| 7388 |
msgid "B<u64 bpf_xdp_get_buff_len(struct xdp_buff *>I<xdp_md>B<)>" |
| 7389 |
msgstr "" |
| 7390 |
|
| 7391 |
#. type: Plain text |
| 7392 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7393 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7394 |
msgid "Get the total size of a given xdp buff (linear and paged area)" |
| 7395 |
msgstr "" |
| 7396 |
|
| 7397 |
#. type: Plain text |
| 7398 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7399 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7400 |
msgid "The total size of a given xdp buffer." |
| 7401 |
msgstr "" |
| 7402 |
|
| 7403 |
#. type: TP |
| 7404 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7405 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7406 |
#, no-wrap |
| 7407 |
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<)>" |
| 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 |
msgid "" |
| 7414 |
"This helper is provided as an easy way to load data from a xdp buffer. It " |
| 7415 |
"can be used to load I<len> bytes from I<offset> from the frame associated to " |
| 7416 |
"I<xdp_md>, into the buffer pointed by I<buf>\\&." |
| 7417 |
msgstr "" |
| 7418 |
|
| 7419 |
#. type: TP |
| 7420 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7421 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7422 |
#, no-wrap |
| 7423 |
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<)>" |
| 7424 |
msgstr "" |
| 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 |
"Store I<len> bytes from buffer I<buf> into the frame associated to " |
| 7431 |
"I<xdp_md>, at I<offset>\\&." |
| 7432 |
msgstr "" |
| 7433 |
|
| 7434 |
#. type: TP |
| 7435 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7436 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7437 |
#, no-wrap |
| 7438 |
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<)>" |
| 7439 |
msgstr "" |
| 7440 |
|
| 7441 |
#. type: Plain text |
| 7442 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7443 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7444 |
msgid "" |
| 7445 |
"Read I<size> bytes from user space address I<user_ptr> in I<tsk>\\(aqs " |
| 7446 |
"address space, and stores the data in I<dst>\\&. I<flags> is not used yet " |
| 7447 |
"and is provided for future extensibility. This helper can only be used by " |
| 7448 |
"sleepable programs." |
| 7449 |
msgstr "" |
| 7450 |
|
| 7451 |
#. type: Plain text |
| 7452 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7453 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7454 |
msgid "" |
| 7455 |
"0 on success, or a negative error in case of failure. On error I<dst> buffer " |
| 7456 |
"is zeroed out." |
| 7457 |
msgstr "" |
| 7458 |
|
| 7459 |
#. type: TP |
| 7460 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7461 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7462 |
#, no-wrap |
| 7463 |
msgid "B<long bpf_skb_set_tstamp(struct sk_buff *>I<skb>B<, u64 >I<tstamp>B<, u32 >I<tstamp_type>B<)>" |
| 7464 |
msgstr "" |
| 7465 |
|
| 7466 |
#. type: Plain text |
| 7467 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7468 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7469 |
msgid "" |
| 7470 |
"Change the __sk_buff-E<gt>tstamp_type to I<tstamp_type> and set I<tstamp> to " |
| 7471 |
"the __sk_buff-E<gt>tstamp together." |
| 7472 |
msgstr "" |
| 7473 |
|
| 7474 |
#. type: Plain text |
| 7475 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7476 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7477 |
msgid "" |
| 7478 |
"If there is no need to change the __sk_buff-E<gt>tstamp_type, the tstamp " |
| 7479 |
"value can be directly written to __sk_buff-E<gt>tstamp instead." |
| 7480 |
msgstr "" |
| 7481 |
|
| 7482 |
#. type: Plain text |
| 7483 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7484 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7485 |
msgid "" |
| 7486 |
"BPF_SKB_TSTAMP_DELIVERY_MONO is the only tstamp that will be kept during " |
| 7487 |
"bpf_redirect_*(). A non zero I<tstamp> must be used with the " |
| 7488 |
"BPF_SKB_TSTAMP_DELIVERY_MONO I<tstamp_type>\\&." |
| 7489 |
msgstr "" |
| 7490 |
|
| 7491 |
#. type: Plain text |
| 7492 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7493 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7494 |
msgid "" |
| 7495 |
"A BPF_SKB_TSTAMP_UNSPEC I<tstamp_type> can only be used with a zero " |
| 7496 |
"I<tstamp>\\&." |
| 7497 |
msgstr "" |
| 7498 |
|
| 7499 |
#. type: Plain text |
| 7500 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7501 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7502 |
msgid "Only IPv4 and IPv6 skb-E<gt>protocol are supported." |
| 7503 |
msgstr "" |
| 7504 |
|
| 7505 |
#. type: Plain text |
| 7506 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 7507 |
msgid "" |
| 7508 |
"This function is most useful when it needs to set a mono delivery time to " |
| 7509 |
"__sk_buff-E<gt>tstamp and then bpf_redirect_*() to the egress of an iface. " |
| 7510 |
"For example, changing the (rcv) timestamp in __sk_buff-E<gt>tstamp at " |
| 7511 |
"ingress to a mono delivery time and then bpf_redirect_*() to \\" |
| 7512 |
"%E<lt>sch_fq@\\:phy-devE<gt>\\&." |
| 7513 |
msgstr "" |
| 7514 |
|
| 7515 |
#. type: Plain text |
| 7516 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7517 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7518 |
msgid "" |
| 7519 |
"0 on success. B<-EINVAL> for invalid input B<-EOPNOTSUPP> for unsupported " |
| 7520 |
"protocol" |
| 7521 |
msgstr "" |
| 7522 |
|
| 7523 |
#. type: TP |
| 7524 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7525 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7526 |
#, no-wrap |
| 7527 |
msgid "B<long bpf_ima_file_hash(struct file *>I<file>B<, void *>I<dst>B<, u32 >I<size>B<)>" |
| 7528 |
msgstr "" |
| 7529 |
|
| 7530 |
#. type: Plain text |
| 7531 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7532 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7533 |
msgid "" |
| 7534 |
"Returns a calculated IMA hash of the I<file>\\&. If the hash is larger than " |
| 7535 |
"I<size>, then only I<size> bytes will be copied to I<dst>" |
| 7536 |
msgstr "" |
| 7537 |
|
| 7538 |
#. type: Plain text |
| 7539 |
#: archlinux debian-unstable fedora-44 fedora-rawhide opensuse-leap-16-1 |
| 7540 |
#: opensuse-tumbleweed |
| 7541 |
msgid "" |
| 7542 |
"The B<hash_algo> is returned on success, B<-EOPNOTSUPP> if the hash " |
| 7543 |
"calculation failed or B<-EINVAL> if invalid arguments are passed." |
| 7544 |
msgstr "" |
| 7545 |
|
| 7546 |
#. type: TP |
| 7547 |
#: archlinux debian-unstable fedora-44 fedora-rawhide opensuse-leap-16-1 |
| 7548 |
#: opensuse-tumbleweed |
| 7549 |
#, no-wrap |
| 7550 |
msgid "B<void *bpf_kptr_xchg(void *>I<dst>B<, void *>I<ptr>B<)>" |
| 7551 |
msgstr "" |
| 7552 |
|
| 7553 |
#. type: Plain text |
| 7554 |
#: archlinux debian-unstable fedora-44 fedora-rawhide opensuse-leap-16-1 |
| 7555 |
#: opensuse-tumbleweed |
| 7556 |
msgid "" |
| 7557 |
"Exchange kptr at pointer I<dst> with I<ptr>, and return the old value. " |
| 7558 |
"I<dst> can be map value or local kptr. I<ptr> can be NULL, otherwise it must " |
| 7559 |
"be a referenced pointer which will be released when this helper is called." |
| 7560 |
msgstr "" |
| 7561 |
|
| 7562 |
#. type: Plain text |
| 7563 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7564 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7565 |
msgid "" |
| 7566 |
"The old value of kptr (which can be NULL). The returned pointer if not NULL, " |
| 7567 |
"is a reference which must be released using its corresponding release " |
| 7568 |
"function, or moved into a BPF map before program exit." |
| 7569 |
msgstr "" |
| 7570 |
|
| 7571 |
#. type: TP |
| 7572 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7573 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7574 |
#, no-wrap |
| 7575 |
msgid "B<void *bpf_map_lookup_percpu_elem(struct bpf_map *>I<map>B<, const void *>I<key>B<, u32 >I<cpu>B<)>" |
| 7576 |
msgstr "" |
| 7577 |
|
| 7578 |
#. type: Plain text |
| 7579 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7580 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7581 |
msgid "" |
| 7582 |
"Perform a lookup in I<percpu map> for an entry associated to I<key> on " |
| 7583 |
"I<cpu>\\&." |
| 7584 |
msgstr "" |
| 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 |
"Map value associated to I<key> on I<cpu>, or B<NULL> if no entry was found " |
| 7591 |
"or I<cpu> is invalid." |
| 7592 |
msgstr "" |
| 7593 |
|
| 7594 |
#. type: TP |
| 7595 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7596 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7597 |
#, no-wrap |
| 7598 |
msgid "B<struct mptcp_sock *bpf_skc_to_mptcp_sock(void *>I<sk>B<)>" |
| 7599 |
msgstr "" |
| 7600 |
|
| 7601 |
#. type: Plain text |
| 7602 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7603 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7604 |
msgid "Dynamically cast a I<sk> pointer to a I<mptcp_sock> pointer." |
| 7605 |
msgstr "" |
| 7606 |
|
| 7607 |
#. type: TP |
| 7608 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 7609 |
#, no-wrap |
| 7610 |
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<)>" |
| 7611 |
msgstr "" |
| 7612 |
|
| 7613 |
#. type: Plain text |
| 7614 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7615 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7616 |
msgid "Get a dynptr to local memory I<data>\\&." |
| 7617 |
msgstr "" |
| 7618 |
|
| 7619 |
#. type: Plain text |
| 7620 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7621 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7622 |
msgid "" |
| 7623 |
"I<data> must be a ptr to a map value. The maximum I<size> supported is " |
| 7624 |
"DYNPTR_MAX_SIZE. I<flags> is currently unused." |
| 7625 |
msgstr "" |
| 7626 |
|
| 7627 |
#. type: Plain text |
| 7628 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7629 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7630 |
msgid "" |
| 7631 |
"0 on success, -E2BIG if the size exceeds DYNPTR_MAX_SIZE, -EINVAL if flags " |
| 7632 |
"is not 0." |
| 7633 |
msgstr "" |
| 7634 |
|
| 7635 |
#. type: TP |
| 7636 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7637 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7638 |
#, no-wrap |
| 7639 |
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<)>" |
| 7640 |
msgstr "" |
| 7641 |
|
| 7642 |
#. type: Plain text |
| 7643 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7644 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7645 |
msgid "" |
| 7646 |
"Reserve I<size> bytes of payload in a ring buffer I<ringbuf> through the " |
| 7647 |
"dynptr interface. I<flags> must be 0." |
| 7648 |
msgstr "" |
| 7649 |
|
| 7650 |
#. type: Plain text |
| 7651 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7652 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7653 |
msgid "" |
| 7654 |
"Please note that a corresponding bpf_ringbuf_submit_dynptr or " |
| 7655 |
"bpf_ringbuf_discard_dynptr must be called on I<ptr>, even if the reservation " |
| 7656 |
"fails. This is enforced by the verifier." |
| 7657 |
msgstr "" |
| 7658 |
|
| 7659 |
#. type: TP |
| 7660 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7661 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7662 |
#, no-wrap |
| 7663 |
msgid "B<void bpf_ringbuf_submit_dynptr(struct bpf_dynptr *>I<ptr>B<, u64 >I<flags>B<)>" |
| 7664 |
msgstr "" |
| 7665 |
|
| 7666 |
#. type: Plain text |
| 7667 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7668 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7669 |
msgid "" |
| 7670 |
"Submit reserved ring buffer sample, pointed to by I<data>, through the " |
| 7671 |
"dynptr interface. This is a no-op if the dynptr is invalid/null." |
| 7672 |
msgstr "" |
| 7673 |
|
| 7674 |
#. type: Plain text |
| 7675 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7676 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7677 |
msgid "" |
| 7678 |
"For more information on I<flags>, please see \\(aqbpf_ringbuf_submit\\(aq." |
| 7679 |
msgstr "" |
| 7680 |
|
| 7681 |
#. type: TP |
| 7682 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7683 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7684 |
#, no-wrap |
| 7685 |
msgid "B<void bpf_ringbuf_discard_dynptr(struct bpf_dynptr *>I<ptr>B<, u64 >I<flags>B<)>" |
| 7686 |
msgstr "" |
| 7687 |
|
| 7688 |
#. type: Plain text |
| 7689 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7690 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7691 |
msgid "" |
| 7692 |
"Discard reserved ring buffer sample through the dynptr interface. This is a " |
| 7693 |
"no-op if the dynptr is invalid/null." |
| 7694 |
msgstr "" |
| 7695 |
|
| 7696 |
#. type: Plain text |
| 7697 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7698 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7699 |
msgid "" |
| 7700 |
"For more information on I<flags>, please see \\(aqbpf_ringbuf_discard\\(aq." |
| 7701 |
msgstr "" |
| 7702 |
|
| 7703 |
#. type: TP |
| 7704 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 7705 |
#, no-wrap |
| 7706 |
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<)>" |
| 7707 |
msgstr "" |
| 7708 |
|
| 7709 |
#. type: Plain text |
| 7710 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7711 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7712 |
msgid "" |
| 7713 |
"Read I<len> bytes from I<src> into I<dst>, starting from I<offset> into " |
| 7714 |
"I<src>\\&. I<flags> is currently unused." |
| 7715 |
msgstr "" |
| 7716 |
|
| 7717 |
#. type: Plain text |
| 7718 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7719 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7720 |
msgid "" |
| 7721 |
"0 on success, -E2BIG if I<offset> + I<len> exceeds the length of I<src>\\" |
| 7722 |
"(aqs data, -EINVAL if I<src> is an invalid dynptr or if I<flags> is not 0." |
| 7723 |
msgstr "" |
| 7724 |
|
| 7725 |
#. type: TP |
| 7726 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 7727 |
#, no-wrap |
| 7728 |
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<)>" |
| 7729 |
msgstr "" |
| 7730 |
|
| 7731 |
#. type: Plain text |
| 7732 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7733 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7734 |
msgid "" |
| 7735 |
"Write I<len> bytes from I<src> into I<dst>, starting from I<offset> into " |
| 7736 |
"I<dst>\\&." |
| 7737 |
msgstr "" |
| 7738 |
|
| 7739 |
#. type: Plain text |
| 7740 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7741 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7742 |
msgid "I<flags> must be 0 except for skb-type dynptrs." |
| 7743 |
msgstr "" |
| 7744 |
|
| 7745 |
#. type: TP |
| 7746 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7747 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7748 |
#, no-wrap |
| 7749 |
msgid "B<For skb-type dynptrs:>" |
| 7750 |
msgstr "" |
| 7751 |
|
| 7752 |
#. type: Plain text |
| 7753 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7754 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7755 |
msgid "" |
| 7756 |
"All data slices of the dynptr are automatically invalidated after " |
| 7757 |
"B<bpf_dynptr_write>(). This is because writing may pull the skb and change " |
| 7758 |
"the underlying packet buffer." |
| 7759 |
msgstr "" |
| 7760 |
|
| 7761 |
#. type: Plain text |
| 7762 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7763 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7764 |
msgid "" |
| 7765 |
"For I<flags>, please see the flags accepted by B<bpf_skb_store_bytes>()." |
| 7766 |
msgstr "" |
| 7767 |
|
| 7768 |
#. type: Plain text |
| 7769 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7770 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7771 |
msgid "" |
| 7772 |
"0 on success, -E2BIG if I<offset> + I<len> exceeds the length of I<dst>\\" |
| 7773 |
"(aqs data, -EINVAL if I<dst> is an invalid dynptr or if I<dst> is a read-" |
| 7774 |
"only dynptr or if I<flags> is not correct. For skb-type dynptrs, other " |
| 7775 |
"errors correspond to errors returned by B<bpf_skb_store_bytes>()." |
| 7776 |
msgstr "" |
| 7777 |
|
| 7778 |
#. type: TP |
| 7779 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 7780 |
#, no-wrap |
| 7781 |
msgid "B<void *bpf_dynptr_data(const struct bpf_dynptr *>I<ptr>B<, u64 >I<offset>B<, u64 >I<len>B<)>" |
| 7782 |
msgstr "" |
| 7783 |
|
| 7784 |
#. type: Plain text |
| 7785 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7786 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7787 |
msgid "Get a pointer to the underlying dynptr data." |
| 7788 |
msgstr "" |
| 7789 |
|
| 7790 |
#. type: Plain text |
| 7791 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7792 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7793 |
msgid "" |
| 7794 |
"I<len> must be a statically known value. The returned data slice is " |
| 7795 |
"invalidated whenever the dynptr is invalidated." |
| 7796 |
msgstr "" |
| 7797 |
|
| 7798 |
#. type: Plain text |
| 7799 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7800 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7801 |
msgid "" |
| 7802 |
"skb and xdp type dynptrs may not use bpf_dynptr_data. They should instead " |
| 7803 |
"use bpf_dynptr_slice and bpf_dynptr_slice_rdwr." |
| 7804 |
msgstr "" |
| 7805 |
|
| 7806 |
#. type: Plain text |
| 7807 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7808 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7809 |
msgid "" |
| 7810 |
"Pointer to the underlying dynptr data, NULL if the dynptr is read-only, if " |
| 7811 |
"the dynptr is invalid, or if the offset and length is out of bounds." |
| 7812 |
msgstr "" |
| 7813 |
|
| 7814 |
#. type: TP |
| 7815 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7816 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7817 |
#, no-wrap |
| 7818 |
msgid "B<s64 bpf_tcp_raw_gen_syncookie_ipv4(struct iphdr *>I<iph>B<, struct tcphdr *>I<th>B<, u32 >I<th_len>B<)>" |
| 7819 |
msgstr "" |
| 7820 |
|
| 7821 |
#. type: Plain text |
| 7822 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7823 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7824 |
msgid "" |
| 7825 |
"Try to issue a SYN cookie for the packet with corresponding IPv4/TCP " |
| 7826 |
"headers, I<iph> and I<th>, without depending on a listening socket." |
| 7827 |
msgstr "" |
| 7828 |
|
| 7829 |
#. type: Plain text |
| 7830 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7831 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7832 |
msgid "I<iph> points to the IPv4 header." |
| 7833 |
msgstr "" |
| 7834 |
|
| 7835 |
#. type: Plain text |
| 7836 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7837 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7838 |
msgid "B<-EINVAL> if I<th_len> is invalid." |
| 7839 |
msgstr "" |
| 7840 |
|
| 7841 |
#. type: TP |
| 7842 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7843 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7844 |
#, no-wrap |
| 7845 |
msgid "B<s64 bpf_tcp_raw_gen_syncookie_ipv6(struct ipv6hdr *>I<iph>B<, struct tcphdr *>I<th>B<, u32 >I<th_len>B<)>" |
| 7846 |
msgstr "" |
| 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 |
"Try to issue a SYN cookie for the packet with corresponding IPv6/TCP " |
| 7853 |
"headers, I<iph> and I<th>, without depending on a listening socket." |
| 7854 |
msgstr "" |
| 7855 |
|
| 7856 |
#. type: Plain text |
| 7857 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7858 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7859 |
msgid "I<iph> points to the IPv6 header." |
| 7860 |
msgstr "" |
| 7861 |
|
| 7862 |
#. type: Plain text |
| 7863 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7864 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7865 |
msgid "B<-EPROTONOSUPPORT> if CONFIG_IPV6 is not builtin." |
| 7866 |
msgstr "" |
| 7867 |
|
| 7868 |
#. type: TP |
| 7869 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7870 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7871 |
#, no-wrap |
| 7872 |
msgid "B<long bpf_tcp_raw_check_syncookie_ipv4(struct iphdr *>I<iph>B<, struct tcphdr *>I<th>B<)>" |
| 7873 |
msgstr "" |
| 7874 |
|
| 7875 |
#. type: Plain text |
| 7876 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7877 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7878 |
msgid "" |
| 7879 |
"Check whether I<iph> and I<th> contain a valid SYN cookie ACK without " |
| 7880 |
"depending on a listening socket." |
| 7881 |
msgstr "" |
| 7882 |
|
| 7883 |
#. type: Plain text |
| 7884 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7885 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7886 |
msgid "I<th> points to the TCP header." |
| 7887 |
msgstr "" |
| 7888 |
|
| 7889 |
#. type: Plain text |
| 7890 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7891 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7892 |
msgid "0 if I<iph> and I<th> are a valid SYN cookie ACK." |
| 7893 |
msgstr "" |
| 7894 |
|
| 7895 |
#. type: Plain text |
| 7896 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7897 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7898 |
msgid "B<-EACCES> if the SYN cookie is not valid." |
| 7899 |
msgstr "" |
| 7900 |
|
| 7901 |
#. type: TP |
| 7902 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7903 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7904 |
#, no-wrap |
| 7905 |
msgid "B<long bpf_tcp_raw_check_syncookie_ipv6(struct ipv6hdr *>I<iph>B<, struct tcphdr *>I<th>B<)>" |
| 7906 |
msgstr "" |
| 7907 |
|
| 7908 |
#. type: TP |
| 7909 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7910 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7911 |
#, no-wrap |
| 7912 |
msgid "B<u64 bpf_ktime_get_tai_ns(void)>" |
| 7913 |
msgstr "" |
| 7914 |
|
| 7915 |
#. type: Plain text |
| 7916 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7917 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7918 |
msgid "" |
| 7919 |
"A nonsettable system-wide clock derived from wall-clock time but ignoring " |
| 7920 |
"leap seconds. This clock does not experience discontinuities and backwards " |
| 7921 |
"jumps caused by NTP inserting leap seconds as CLOCK_REALTIME does." |
| 7922 |
msgstr "" |
| 7923 |
|
| 7924 |
#. type: Plain text |
| 7925 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7926 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7927 |
msgid "See: B<clock_gettime>(B<CLOCK_TAI>)" |
| 7928 |
msgstr "" |
| 7929 |
|
| 7930 |
#. type: TP |
| 7931 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7932 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7933 |
#, no-wrap |
| 7934 |
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<)>" |
| 7935 |
msgstr "" |
| 7936 |
|
| 7937 |
#. type: Plain text |
| 7938 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7939 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7940 |
msgid "" |
| 7941 |
"Drain samples from the specified user ring buffer, and invoke the provided " |
| 7942 |
"callback for each such sample:" |
| 7943 |
msgstr "" |
| 7944 |
|
| 7945 |
#. type: Plain text |
| 7946 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7947 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7948 |
msgid "long (*callback_fn)(const struct bpf_dynptr *dynptr, void *ctx);" |
| 7949 |
msgstr "" |
| 7950 |
|
| 7951 |
#. type: Plain text |
| 7952 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7953 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7954 |
msgid "" |
| 7955 |
"If B<callback_fn> returns 0, the helper will continue to try and drain the " |
| 7956 |
"next sample, up to a maximum of BPF_MAX_USER_RINGBUF_SAMPLES samples. If the " |
| 7957 |
"return value is 1, the helper will skip the rest of the samples and return. " |
| 7958 |
"Other return values are not used now, and will be rejected by the verifier." |
| 7959 |
msgstr "" |
| 7960 |
|
| 7961 |
#. type: Plain text |
| 7962 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7963 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7964 |
msgid "" |
| 7965 |
"The number of drained samples if no error was encountered while draining " |
| 7966 |
"samples, or 0 if no samples were present in the ring buffer. If a user-space " |
| 7967 |
"producer was epoll-waiting on this map, and at least one sample was drained, " |
| 7968 |
"they will receive an event notification notifying them of available space in " |
| 7969 |
"the ring buffer. If the BPF_RB_NO_WAKEUP flag is passed to this function, no " |
| 7970 |
"wakeup notification will be sent. If the BPF_RB_FORCE_WAKEUP flag is passed, " |
| 7971 |
"a wakeup notification will be sent even if no sample was drained." |
| 7972 |
msgstr "" |
| 7973 |
|
| 7974 |
#. type: Plain text |
| 7975 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7976 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7977 |
msgid "" |
| 7978 |
"B<-EBUSY> if the ring buffer is contended, and another calling context was " |
| 7979 |
"concurrently draining the ring buffer." |
| 7980 |
msgstr "" |
| 7981 |
|
| 7982 |
#. type: Plain text |
| 7983 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7984 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7985 |
msgid "" |
| 7986 |
"B<-EINVAL> if user-space is not properly tracking the ring buffer due to the " |
| 7987 |
"producer position not being aligned to 8 bytes, a sample not being aligned " |
| 7988 |
"to 8 bytes, or the producer position not matching the advertised length of a " |
| 7989 |
"sample." |
| 7990 |
msgstr "" |
| 7991 |
|
| 7992 |
#. type: Plain text |
| 7993 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 7994 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 7995 |
msgid "" |
| 7996 |
"B<-E2BIG> if user-space has tried to publish a sample which is larger than " |
| 7997 |
"the size of the ring buffer, or which cannot fit within a struct bpf_dynptr." |
| 7998 |
msgstr "" |
| 7999 |
|
| 8000 |
#. type: TP |
| 8001 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8002 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8003 |
#, no-wrap |
| 8004 |
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<)>" |
| 8005 |
msgstr "" |
| 8006 |
|
| 8007 |
#. type: Plain text |
| 8008 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8009 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8010 |
msgid "Get a bpf_local_storage from the I<cgroup>\\&." |
| 8011 |
msgstr "" |
| 8012 |
|
| 8013 |
#. type: Plain text |
| 8014 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8015 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8016 |
msgid "" |
| 8017 |
"Logically, it could be thought of as getting the value from a I<map> with " |
| 8018 |
"I<cgroup> as the B<key>\\&. From this perspective, the usage is not much " |
| 8019 |
"different from B<bpf_map_lookup_elem>(I<map>, B<&>I<cgroup>) except this " |
| 8020 |
"helper enforces the key must be a cgroup struct and the map must also be a " |
| 8021 |
"B<BPF_MAP_TYPE_CGRP_STORAGE>\\&." |
| 8022 |
msgstr "" |
| 8023 |
|
| 8024 |
#. type: Plain text |
| 8025 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8026 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8027 |
msgid "" |
| 8028 |
"In reality, the local-storage value is embedded directly inside of the " |
| 8029 |
"I<cgroup> object itself, rather than being located in the " |
| 8030 |
"B<BPF_MAP_TYPE_CGRP_STORAGE> map. When the local-storage value is queried " |
| 8031 |
"for some I<map> on a I<cgroup> object, the kernel will perform an O(n) " |
| 8032 |
"iteration over all of the live local-storage values for that I<cgroup> " |
| 8033 |
"object until the local-storage value for the I<map> is found." |
| 8034 |
msgstr "" |
| 8035 |
|
| 8036 |
#. type: TP |
| 8037 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8038 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8039 |
#, no-wrap |
| 8040 |
msgid "B<long bpf_cgrp_storage_delete(struct bpf_map *>I<map>B<, struct cgroup *>I<cgroup>B<)>" |
| 8041 |
msgstr "" |
| 8042 |
|
| 8043 |
#. type: Plain text |
| 8044 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8045 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8046 |
msgid "Delete a bpf_local_storage from a I<cgroup>\\&." |
| 8047 |
msgstr "" |
| 8048 |
|
| 8049 |
#. type: SH |
| 8050 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8051 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8052 |
#, no-wrap |
| 8053 |
msgid "EXAMPLES" |
| 8054 |
msgstr "" |
| 8055 |
|
| 8056 |
#. type: Plain text |
| 8057 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8058 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8059 |
msgid "" |
| 8060 |
"Example usage for most of the eBPF helpers listed in this manual page are " |
| 8061 |
"available within the Linux kernel sources, at the following locations:" |
| 8062 |
msgstr "" |
| 8063 |
|
| 8064 |
#. type: Plain text |
| 8065 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8066 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8067 |
msgid "I<samples/bpf/>" |
| 8068 |
msgstr "" |
| 8069 |
|
| 8070 |
#. type: Plain text |
| 8071 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8072 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8073 |
msgid "I<tools/testing/selftests/bpf/>" |
| 8074 |
msgstr "" |
| 8075 |
|
| 8076 |
#. type: SH |
| 8077 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8078 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8079 |
#, no-wrap |
| 8080 |
msgid "LICENSE" |
| 8081 |
msgstr "" |
| 8082 |
|
| 8083 |
#. type: Plain text |
| 8084 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8085 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8086 |
msgid "" |
| 8087 |
"eBPF programs can have an associated license, passed along with the bytecode " |
| 8088 |
"instructions to the kernel when the programs are loaded. The format for that " |
| 8089 |
"string is identical to the one in use for kernel modules (Dual licenses, " |
| 8090 |
"such as \"Dual BSD/GPL\", may be used). Some helper functions are only " |
| 8091 |
"accessible to programs that are compatible with the GNU General Public " |
| 8092 |
"License (GNU GPL)." |
| 8093 |
msgstr "" |
| 8094 |
|
| 8095 |
#. type: Plain text |
| 8096 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8097 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8098 |
msgid "" |
| 8099 |
"In order to use such helpers, the eBPF program must be loaded with the " |
| 8100 |
"correct license string passed (via B<attr>) to the B<bpf>() system call, and " |
| 8101 |
"this generally translates into the C source code of the program containing a " |
| 8102 |
"line similar to the following:" |
| 8103 |
msgstr "" |
| 8104 |
|
| 8105 |
#. type: Plain text |
| 8106 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8107 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8108 |
#, no-wrap |
| 8109 |
msgid "char ____license[] __attribute__((section(\"license\"), used)) = \"GPL\";\n" |
| 8110 |
msgstr "" |
| 8111 |
|
| 8112 |
#. type: SH |
| 8113 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8114 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8115 |
#, no-wrap |
| 8116 |
msgid "IMPLEMENTATION" |
| 8117 |
msgstr "" |
| 8118 |
|
| 8119 |
#. type: Plain text |
| 8120 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8121 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8122 |
msgid "" |
| 8123 |
"This manual page is an effort to document the existing eBPF helper " |
| 8124 |
"functions. But as of this writing, the BPF sub-system is under heavy " |
| 8125 |
"development. New eBPF program or map types are added, along with new helper " |
| 8126 |
"functions. Some helpers are occasionally made available for additional " |
| 8127 |
"program types. So in spite of the efforts of the community, this page might " |
| 8128 |
"not be up-to-date. If you want to check by yourself what helper functions " |
| 8129 |
"exist in your kernel, or what types of programs they can support, here are " |
| 8130 |
"some files among the kernel tree that you may be interested in:" |
| 8131 |
msgstr "" |
| 8132 |
|
| 8133 |
#. type: Plain text |
| 8134 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8135 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8136 |
msgid "" |
| 8137 |
"I<include/uapi/linux/bpf.h> is the main BPF header. It contains the full " |
| 8138 |
"list of all helper functions, as well as many other BPF definitions " |
| 8139 |
"including most of the flags, structs or constants used by the helpers." |
| 8140 |
msgstr "" |
| 8141 |
|
| 8142 |
#. type: Plain text |
| 8143 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8144 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8145 |
msgid "" |
| 8146 |
"I<net/core/filter.c> contains the definition of most network-related helper " |
| 8147 |
"functions, and the list of program types from which they can be used." |
| 8148 |
msgstr "" |
| 8149 |
|
| 8150 |
#. type: Plain text |
| 8151 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8152 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8153 |
msgid "" |
| 8154 |
"I<kernel/trace/bpf_trace.c> is the equivalent for most tracing program-" |
| 8155 |
"related helpers." |
| 8156 |
msgstr "" |
| 8157 |
|
| 8158 |
#. type: Plain text |
| 8159 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8160 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8161 |
msgid "" |
| 8162 |
"I<kernel/bpf/verifier.c> contains the functions used to check that valid " |
| 8163 |
"types of eBPF maps are used with a given helper function." |
| 8164 |
msgstr "" |
| 8165 |
|
| 8166 |
#. type: Plain text |
| 8167 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8168 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8169 |
msgid "" |
| 8170 |
"I<kernel/bpf/> directory contains other files in which additional helpers " |
| 8171 |
"are defined (for cgroups, sockmaps, etc.)." |
| 8172 |
msgstr "" |
| 8173 |
|
| 8174 |
#. type: Plain text |
| 8175 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8176 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8177 |
msgid "" |
| 8178 |
"The bpftool utility can be used to probe the availability of helper " |
| 8179 |
"functions on the system (as well as supported program and map types, and a " |
| 8180 |
"number of other parameters). To do so, run B<bpftool feature probe> (see " |
| 8181 |
"B<bpftool-feature>(8) for details). Add the B<unprivileged> keyword to list " |
| 8182 |
"features available to unprivileged users." |
| 8183 |
msgstr "" |
| 8184 |
|
| 8185 |
#. type: Plain text |
| 8186 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8187 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8188 |
msgid "" |
| 8189 |
"Compatibility between helper functions and program types can generally be " |
| 8190 |
"found in the files where helper functions are defined. Look for the B<struct " |
| 8191 |
"bpf_func_proto> objects and for functions returning them: these functions " |
| 8192 |
"contain a list of helpers that a given program type can call. Note that the " |
| 8193 |
"B<default:> label of the B<switch ... case> used to filter helpers can call " |
| 8194 |
"other functions, themselves allowing access to additional helpers. The " |
| 8195 |
"requirement for GPL license is also in those B<struct bpf_func_proto>\\&." |
| 8196 |
msgstr "" |
| 8197 |
|
| 8198 |
#. type: Plain text |
| 8199 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8200 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8201 |
msgid "" |
| 8202 |
"Compatibility between helper functions and map types can be found in the " |
| 8203 |
"B<check_map_func_compatibility>() function in file I<kernel/bpf/" |
| 8204 |
"verifier.c>\\&." |
| 8205 |
msgstr "" |
| 8206 |
|
| 8207 |
#. type: Plain text |
| 8208 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8209 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8210 |
msgid "" |
| 8211 |
"Helper functions that invalidate the checks on B<data> and B<data_end> " |
| 8212 |
"pointers for network processing are listed in function " |
| 8213 |
"B<bpf_helper_changes_pkt_data>() in file I<net/core/filter.c>\\&." |
| 8214 |
msgstr "" |
| 8215 |
|
| 8216 |
#. type: SH |
| 8217 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8218 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8219 |
#, no-wrap |
| 8220 |
msgid "SEE ALSO" |
| 8221 |
msgstr "" |
| 8222 |
|
| 8223 |
#. #-#-#-#-# archlinux: bpf-helpers.7.pot (PACKAGE VERSION) #-#-#-#-# |
| 8224 |
#. type: Plain text |
| 8225 |
#. #-#-#-#-# debian-trixie: bpf-helpers.7.pot (PACKAGE VERSION) #-#-#-#-# |
| 8226 |
#. Generated by docutils manpage writer. |
| 8227 |
#. type: Plain text |
| 8228 |
#. #-#-#-#-# debian-unstable: bpf-helpers.7.pot (PACKAGE VERSION) #-#-#-#-# |
| 8229 |
#. type: Plain text |
| 8230 |
#. #-#-#-#-# fedora-44: bpf-helpers.7.pot (PACKAGE VERSION) #-#-#-#-# |
| 8231 |
#. Generated by docutils manpage writer. |
| 8232 |
#. type: Plain text |
| 8233 |
#. #-#-#-#-# fedora-rawhide: bpf-helpers.7.pot (PACKAGE VERSION) #-#-#-#-# |
| 8234 |
#. Generated by docutils manpage writer. |
| 8235 |
#. type: Plain text |
| 8236 |
#. #-#-#-#-# opensuse-leap-16-1: bpf-helpers.7.pot (PACKAGE VERSION) #-#-#-#-# |
| 8237 |
#. type: Plain text |
| 8238 |
#. #-#-#-#-# opensuse-tumbleweed: bpf-helpers.7.pot (PACKAGE VERSION) #-#-#-#-# |
| 8239 |
#. type: Plain text |
| 8240 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 8241 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 8242 |
msgid "" |
| 8243 |
"B<bpf>(2), B<bpftool>(8), B<cgroups>(7), B<ip>(8), B<perf_event_open>(2), " |
| 8244 |
"B<sendmsg>(2), B<socket>(7), B<tc-bpf>(8)" |
| 8245 |
msgstr "" |
| 8246 |
|
| 8247 |
#. type: TH |
| 8248 |
#: debian-trixie |
| 8249 |
#, no-wrap |
| 8250 |
msgid "2024-01-23" |
| 8251 |
msgstr "" |
| 8252 |
|
| 8253 |
#. type: TH |
| 8254 |
#: debian-trixie |
| 8255 |
#, no-wrap |
| 8256 |
msgid "Linux v6.9" |
| 8257 |
msgstr "" |
| 8258 |
|
| 8259 |
#. type: SH |
| 8260 |
#: debian-trixie fedora-44 fedora-rawhide |
| 8261 |
#, no-wrap |
| 8262 |
msgid "NAME" |
| 8263 |
msgstr "" |
| 8264 |
|
| 8265 |
#. type: Plain text |
| 8266 |
#: debian-trixie fedora-44 fedora-rawhide |
| 8267 |
msgid "" |
| 8268 |
"Store I<len> bytes from address I<from> into the packet associated to " |
| 8269 |
"I<skb>, at I<offset>\\&. I<flags> are a combination of " |
| 8270 |
"B<BPF_F_RECOMPUTE_CSUM> (automatically recompute the checksum for the packet " |
| 8271 |
"after storing the bytes) and B<BPF_F_INVALIDATE_HASH> (set I<skb>B<-" |
| 8272 |
"E<gt>hash>, I<skb>B<-E<gt>swhash> and I<skb>B<-E<gt>l4hash> to 0)." |
| 8273 |
msgstr "" |
| 8274 |
|
| 8275 |
#. type: Plain text |
| 8276 |
#: debian-trixie fedora-44 fedora-rawhide |
| 8277 |
msgid "" |
| 8278 |
"Recompute the layer 4 (e.g. TCP, UDP or ICMP) checksum for the packet " |
| 8279 |
"associated to I<skb>\\&. Computation is incremental, so the helper must know " |
| 8280 |
"the former value of the header field that was modified (I<from>), the new " |
| 8281 |
"value of this field (I<to>), and the number of bytes (2 or 4) for this " |
| 8282 |
"field, stored on the lowest four bits of I<flags>\\&. Alternatively, it is " |
| 8283 |
"possible to store the difference between the previous and the new values of " |
| 8284 |
"the header field in I<to>, by setting I<from> and the four lowest bits of " |
| 8285 |
"I<flags> to 0. For both methods, I<offset> indicates the location of the IP " |
| 8286 |
"checksum within the packet. In addition to the size of the field, I<flags> " |
| 8287 |
"can be added (bitwise OR) actual flags. With B<BPF_F_MARK_MANGLED_0>, a null " |
| 8288 |
"checksum is left untouched (unless B<BPF_F_MARK_ENFORCE> is added as well), " |
| 8289 |
"and for updates resulting in a null checksum the value is set to " |
| 8290 |
"B<CSUM_MANGLED_0> instead. Flag B<BPF_F_PSEUDO_HDR> indicates the checksum " |
| 8291 |
"is to be computed against a pseudo-header." |
| 8292 |
msgstr "" |
| 8293 |
|
| 8294 |
#. type: Plain text |
| 8295 |
#: debian-trixie fedora-44 fedora-rawhide |
| 8296 |
msgid "" |
| 8297 |
"On user space, a program willing to read the values needs to call " |
| 8298 |
"B<perf_event_open>() on the perf event (either for one or for all CPUs) and " |
| 8299 |
"to store the file descriptor into the I<map>\\&. This must be done before " |
| 8300 |
"the eBPF program can send data into it. An example is available in file " |
| 8301 |
"I<samples/bpf/trace_output_user.c> in the Linux kernel source tree (the eBPF " |
| 8302 |
"program counterpart is in I<samples/bpf/trace_output_kern.c>)." |
| 8303 |
msgstr "" |
| 8304 |
|
| 8305 |
#. type: Plain text |
| 8306 |
#: debian-trixie |
| 8307 |
msgid "" |
| 8308 |
"B<IPPROTO_TCP>, which supports the following I<optname>s: B<TCP_CONGESTION>, " |
| 8309 |
"B<TCP_BPF_IW>, B<TCP_BPF_SNDCWND_CLAMP>, B<TCP_SAVE_SYN>, B<TCP_KEEPIDLE>, " |
| 8310 |
"B<TCP_KEEPINTVL>, B<TCP_KEEPCNT>, B<TCP_SYNCNT>, B<TCP_USER_TIMEOUT>, " |
| 8311 |
"B<TCP_NOTSENT_LOWAT>, B<TCP_NODELAY>, B<TCP_MAXSEG>, B<TCP_WINDOW_CLAMP>, " |
| 8312 |
"B<TCP_THIN_LINEAR_TIMEOUTS>, B<TCP_BPF_DELACK_MAX>, B<TCP_BPF_RTO_MIN>\\&." |
| 8313 |
msgstr "" |
| 8314 |
|
| 8315 |
#. type: Plain text |
| 8316 |
#: debian-trixie |
| 8317 |
msgid "" |
| 8318 |
"Also, the helper is only available for the architectures having the " |
| 8319 |
"CONFIG_FUNCTION_ERROR_INJECTION option. As of this writing, x86 architecture " |
| 8320 |
"is the only one to support this feature." |
| 8321 |
msgstr "" |
| 8322 |
|
| 8323 |
#. type: TP |
| 8324 |
#: debian-trixie fedora-44 fedora-rawhide |
| 8325 |
#, no-wrap |
| 8326 |
msgid "B<long bpf_d_path(struct path *>I<path>B<, char *>I<buf>B<, u32 >I<sz>B<)>" |
| 8327 |
msgstr "" |
| 8328 |
|
| 8329 |
#. type: Plain text |
| 8330 |
#: debian-trixie |
| 8331 |
msgid "" |
| 8332 |
"The B<hash_algo> is returned on success, B<-EOPNOTSUP> if IMA is disabled or " |
| 8333 |
"B<-EINVAL> if invalid arguments are passed." |
| 8334 |
msgstr "" |
| 8335 |
|
| 8336 |
#. type: Plain text |
| 8337 |
#: debian-trixie |
| 8338 |
msgid "long (*callback_fn)(u32 index, void *ctx);" |
| 8339 |
msgstr "" |
| 8340 |
|
| 8341 |
#. type: Plain text |
| 8342 |
#: debian-trixie |
| 8343 |
msgid "" |
| 8344 |
"This function is most useful when it needs to set a mono delivery time to " |
| 8345 |
"__sk_buff-E<gt>tstamp and then bpf_redirect_*() to the egress of an iface. " |
| 8346 |
"For example, changing the (rcv) timestamp in __sk_buff-E<gt>tstamp at " |
| 8347 |
"ingress to a mono delivery time and then bpf_redirect_*() to I<\\" |
| 8348 |
"%sch_fq@phy-dev>\\&." |
| 8349 |
msgstr "" |
| 8350 |
|
| 8351 |
#. type: Plain text |
| 8352 |
#: debian-trixie |
| 8353 |
msgid "" |
| 8354 |
"The B<hash_algo> is returned on success, B<-EOPNOTSUP> if the hash " |
| 8355 |
"calculation failed or B<-EINVAL> if invalid arguments are passed." |
| 8356 |
msgstr "" |
| 8357 |
|
| 8358 |
#. type: TP |
| 8359 |
#: debian-trixie |
| 8360 |
#, no-wrap |
| 8361 |
msgid "B<void *bpf_kptr_xchg(void *>I<map_value>B<, void *>I<ptr>B<)>" |
| 8362 |
msgstr "" |
| 8363 |
|
| 8364 |
#. type: Plain text |
| 8365 |
#: debian-trixie |
| 8366 |
msgid "" |
| 8367 |
"Exchange kptr at pointer I<map_value> with I<ptr>, and return the old value. " |
| 8368 |
"I<ptr> can be NULL, otherwise it must be a referenced pointer which will be " |
| 8369 |
"released when this helper is called." |
| 8370 |
msgstr "" |
| 8371 |
|
| 8372 |
#. type: TP |
| 8373 |
#: debian-trixie fedora-44 fedora-rawhide |
| 8374 |
#, no-wrap |
| 8375 |
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<)>" |
| 8376 |
msgstr "" |
| 8377 |
|
| 8378 |
#. type: TP |
| 8379 |
#: debian-trixie fedora-44 fedora-rawhide |
| 8380 |
#, no-wrap |
| 8381 |
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<)>" |
| 8382 |
msgstr "" |
| 8383 |
|
| 8384 |
#. type: TP |
| 8385 |
#: debian-trixie fedora-44 fedora-rawhide |
| 8386 |
#, no-wrap |
| 8387 |
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<)>" |
| 8388 |
msgstr "" |
| 8389 |
|
| 8390 |
#. type: TP |
| 8391 |
#: debian-trixie fedora-44 fedora-rawhide |
| 8392 |
#, no-wrap |
| 8393 |
msgid "B<void *bpf_dynptr_data(const struct bpf_dynptr *>I<ptr>B<, u32 >I<offset>B<, u32 >I<len>B<)>" |
| 8394 |
msgstr "" |
| 8395 |
|
| 8396 |
#. type: TH |
| 8397 |
#: fedora-44 fedora-rawhide |
| 8398 |
#, no-wrap |
| 8399 |
msgid "2024-10-10" |
| 8400 |
msgstr "" |
| 8401 |
|
| 8402 |
#. type: TH |
| 8403 |
#: fedora-44 fedora-rawhide |
| 8404 |
#, no-wrap |
| 8405 |
msgid "Linux v6.13" |
| 8406 |
msgstr "" |
| 8407 |
|
| 8408 |
#. type: Plain text |
| 8409 |
#: fedora-44 fedora-rawhide |
| 8410 |
msgid "" |
| 8411 |
"This function is most useful when it needs to set a mono delivery time to " |
| 8412 |
"__sk_buff-E<gt>tstamp and then bpf_redirect_*() to the egress of an iface. " |
| 8413 |
"For example, changing the (rcv) timestamp in __sk_buff-E<gt>tstamp at " |
| 8414 |
"ingress to a mono delivery time and then bpf_redirect_*() to " |
| 8415 |
"E<lt>sch_fq@phy-devE<gt> \\&." |
| 8416 |
msgstr "" |