Git Product home page Git Product logo

Comments (3)

geyslan avatar geyslan commented on September 22, 2024

@fengzx33 I suppose you can get information about BPF_PROG_TYPE_SK_MSG from the kernel Documentation/bpf/map_sockmap.rst and through the use of its helpers in tools/testing/selftests/bpf/progs/test_sockmap_kern.h.

@rafaeldtinoco we currently don't support bpf_msg_push_data and bpf_msg_pull_data, right?

from libbpfgo.

fengzx33 avatar fengzx33 commented on September 22, 2024

@geyslan Thank you, but what I would like to know is how to successfully attach to a SEC like SEC("sk_msg") using libbpfgo. I am looking for a function similar to AttachCgroup(cgroupV2DirPath string) or the steps required for attaching to such SEC("sk_msg") using libbpfgo.

from libbpfgo.

fengzx33 avatar fengzx33 commented on September 22, 2024

@geyslan @rafaeldtinoco I found that libbpfgo haven't an api, which can attach SEC("sk_msg") , what should i do? thanks

example: https://github.com/dafu-wu/istio-tcpip-bypass/blob/796d738babee7da77815ad2819a69d37d8472dea/bpf/bpf_redir.c#L9

from libbpfgo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.