{"id":22332759,"url":"https://github.com/xgfone/gnetlink","last_synced_at":"2026-05-03T04:41:22.705Z","repository":{"id":20887087,"uuid":"24174407","full_name":"xgfone/gnetlink","owner":"xgfone","description":"An example of the Netlink and the Generic Netlink, and their Python API","archived":false,"fork":false,"pushed_at":"2016-08-10T09:23:30.000Z","size":148,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-31T08:43:52.645Z","etag":null,"topics":["netlink","python"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xgfone.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}},"created_at":"2014-09-18T04:53:10.000Z","updated_at":"2020-07-22T14:21:48.000Z","dependencies_parsed_at":"2022-08-03T11:46:04.925Z","dependency_job_id":null,"html_url":"https://github.com/xgfone/gnetlink","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xgfone%2Fgnetlink","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xgfone%2Fgnetlink/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xgfone%2Fgnetlink/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xgfone%2Fgnetlink/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xgfone","download_url":"https://codeload.github.com/xgfone/gnetlink/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245606121,"owners_count":20643110,"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":["netlink","python"],"created_at":"2024-12-04T04:19:37.943Z","updated_at":"2026-05-03T04:41:17.687Z","avatar_url":"https://github.com/xgfone.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"gnetlink\n===============\n\nAn example of the Netlink and the Generic Netlink, and their python interface.\n\n\nNetlink\n=======\n首先将当前目录切换到service_netlink目录中。\n\n     (1) 执行 make，编译内核模块 test_netlink.ko；\n     (2) 加载内核模块 test_netlink.ko；\n     (3) 执行 ./build-netlink.sh，编译用户空间Python C扩展；\n         注：如果是 Python2.7 版本（默认2.6），添加 2.7 参数，即 ./build-netlink.sh 2.7\n     (4) 在Python代码中，导入netlink模块：\n           import netlink\n     (5) 在Python代码中，使用 netlink 模块中的功能。\n\n\nGeneric Netlink\n===============\n首先将当前目录切换到test_genl目录中。\n\n     (1) 执行 make，编译内核模块 test_genl.ko；\n     (2) 加载内核模块 test_genl.ko；\n     (3) 执行 ./build-genl.sh，编译用户空间Python C扩展；\n         注：如果是 Python2.7 版本（默认2.6），添加 2.7 参数，即 ./build-netlink.sh 2.7\n     (4) 在Python代码中，导入genl模块：\n           import genl\n     (5) 在Python代码中，使用 genl 模块中的功能。\n\n\nAPI\n===\n参见docs目录。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxgfone%2Fgnetlink","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxgfone%2Fgnetlink","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxgfone%2Fgnetlink/lists"}