{"id":20590089,"url":"https://github.com/takehaya/goxdp-template","last_synced_at":"2025-04-14T22:25:58.034Z","repository":{"id":57575763,"uuid":"332775478","full_name":"takehaya/goxdp-template","owner":"takehaya","description":"A sample for writing XDP programs in Go","archived":false,"fork":false,"pushed_at":"2024-12-10T21:00:17.000Z","size":24,"stargazers_count":29,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-28T10:46:59.539Z","etag":null,"topics":["ebpf","go","golang","network-programming","vxlan","xdp"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/takehaya.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-01-25T14:34:13.000Z","updated_at":"2024-12-10T21:00:22.000Z","dependencies_parsed_at":"2023-12-10T08:24:51.672Z","dependency_job_id":"6dedb313-938b-4f39-af40-e21a1150c067","html_url":"https://github.com/takehaya/goxdp-template","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takehaya%2Fgoxdp-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takehaya%2Fgoxdp-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takehaya%2Fgoxdp-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takehaya%2Fgoxdp-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/takehaya","download_url":"https://codeload.github.com/takehaya/goxdp-template/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248970459,"owners_count":21191437,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ebpf","go","golang","network-programming","vxlan","xdp"],"created_at":"2024-11-16T07:33:58.949Z","updated_at":"2025-04-14T22:25:58.026Z","avatar_url":"https://github.com/takehaya.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# goxdp\nA sample for writing XDP programs in Go\n\nIt's best to change this to get started with code for xdp using [cilium/ebpf](https://github.com/cilium/ebpf).\n\n\n## Build\nIn today's Linux, bpf_helper_defs.h is supposed to build.\nIf you hit this script accordingly, it will fetch the kernel code and build it.\nPlease use according to your kernel version.\nThere is no problem with the first execution.\n\n```shell\n./gen_bpf_helper.sh\n```\n\ndev packages install\n\n```shell\nsudo apt install clang llvm libelf-dev build-essential linux-headers-$(uname -r) linux-libc-dev libbpf-dev gcc-multilib clang-format\n```\n\nLet's build go \u0026 ebpf\n```shell\nmake\n```\n\n## Run\n```shell\n./bin/goxdp\n\n# use option\n./bin/goxdp --device eth2 --device eth3\n```\n\n## Test\n```shell\n# mock enable build\nCEXTRA_FLAGS=\"-DXDP_DEBUG -DXDP_TEST\" make\n\n# unit test\nmake test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftakehaya%2Fgoxdp-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftakehaya%2Fgoxdp-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftakehaya%2Fgoxdp-template/lists"}