SEC("iter/sockmap") int copy(struct bpf_iter__sockmap *ctx)
{ struct sock *sk = ctx->sk;
__u32 tmp, *key = ctx->key; int ret;
if (!key) return 0;
elems++;
/* We need a temporary buffer on the stack, since the verifier doesn't * let us use the pointer from the context as an argument to the helper.
*/
tmp = *key;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.