{"id":19157092,"url":"https://github.com/danieldin95/pktgen","last_synced_at":"2025-08-16T22:32:17.426Z","repository":{"id":130754502,"uuid":"476553757","full_name":"danieldin95/pktgen","owner":"danieldin95","description":"Sample and benchmark scripts for pktgen (packet generator)","archived":false,"fork":false,"pushed_at":"2024-12-12T07:30:49.000Z","size":29,"stargazers_count":4,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-07T07:48:59.429Z","etag":null,"topics":["perf","pktgen"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/danieldin95.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,"zenodo":null}},"created_at":"2022-04-01T02:57:26.000Z","updated_at":"2024-12-12T07:30:53.000Z","dependencies_parsed_at":"2025-04-19T18:45:05.302Z","dependency_job_id":"5b960f1f-2b8d-41fc-a302-5a5731d86ba3","html_url":"https://github.com/danieldin95/pktgen","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/danieldin95/pktgen","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danieldin95%2Fpktgen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danieldin95%2Fpktgen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danieldin95%2Fpktgen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danieldin95%2Fpktgen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danieldin95","download_url":"https://codeload.github.com/danieldin95/pktgen/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danieldin95%2Fpktgen/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270781196,"owners_count":24643804,"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","status":"online","status_checked_at":"2025-08-16T02:00:11.002Z","response_time":91,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["perf","pktgen"],"created_at":"2024-11-09T08:38:16.102Z","updated_at":"2025-08-16T22:32:17.381Z","avatar_url":"https://github.com/danieldin95.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"Building from source\n=====================\n1. Prepare kernel source code from source rpm. \n```\n$ rpm -i http://vault.centos.org/7.9.2009/updates/Source/SPackages/kernel-3.10.0-1160.95.1.el7.src.rpm\n$ yum-builddep ~/rpmbuild/SPECS/kernel.spec\n$ rpmbuild -bp ~/rpmbuild/SPECS/kernel.spec\n```\n2. Go to linux source directory and compile pktgen modules.\n```\n$ cd ~/rpmbuild/BUILD/kernel-3.10.0/linux-3.10.0-957.x86_64\n$ make -C /lib/modules/$(uname -r)/build M=$(pwd)/net/core modules\n```\n3. Install pktgen modules.\n```\n$ insmod ./net/core/pktgen.ko\n$ dmesg | grep pktgen\n[83003.544038] pktgen: Packet Generator for packet performance testing. Version: 2.75\n```\n\nHelper include files\n====================\nThis directory contains two helper shell files, that can be \"included\"\nby shell source'ing.  Namely \"functions.sh\" and \"parameters.sh\".\n\nCommon parameters\n-----------------\nThe parameters.sh file support easy and consistant parameter parsing\nacross the sample scripts.  Usage example is printed on errors::\n\n```\n Usage: ./pktgen_sample01_simple.sh [-vx] -i ethX\n  -i : ($DEV)       output interface/device (required)\n  -s : ($PKT_SIZE)  packet size\n  -d : ($DEST_IP)   destination IP\n  -m : ($DST_MAC)   destination MAC-addr\n  -t : ($THREADS)   threads to start\n  -f : ($F_THREAD)  index of first thread (zero indexed CPU number)\n  -c : ($SKB_CLONE) SKB clones send before alloc new SKB\n  -n : ($COUNT)     num messages to send per thread, 0 means indefinitely\n  -b : ($BURST)     HW level bursting of SKBs\n  -v : ($VERBOSE)   verbose\n  -x : ($DEBUG)     debug\n```\n\nThe global variable being set is also listed. E.g.the required interface/device parameter \"-i\" sets variable $DEV.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanieldin95%2Fpktgen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanieldin95%2Fpktgen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanieldin95%2Fpktgen/lists"}