{"id":20327648,"url":"https://github.com/x-way/pktdump","last_synced_at":"2025-04-11T20:11:18.540Z","repository":{"id":42032669,"uuid":"201664950","full_name":"x-way/pktdump","owner":"x-way","description":"Format gopacket.Packet network packets similar to the tcpdump CLI output","archived":false,"fork":false,"pushed_at":"2025-04-08T02:53:04.000Z","size":2593,"stargazers_count":5,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-10T06:21:05.594Z","etag":null,"topics":["golang","gopacket","tcpdump"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/x-way.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":"2019-08-10T17:56:20.000Z","updated_at":"2025-04-08T02:53:07.000Z","dependencies_parsed_at":"2024-06-19T06:17:19.214Z","dependency_job_id":"55a4a768-a021-4992-a256-c03be7bea483","html_url":"https://github.com/x-way/pktdump","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x-way%2Fpktdump","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x-way%2Fpktdump/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x-way%2Fpktdump/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x-way%2Fpktdump/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/x-way","download_url":"https://codeload.github.com/x-way/pktdump/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248473127,"owners_count":21109628,"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":["golang","gopacket","tcpdump"],"created_at":"2024-11-14T19:48:23.894Z","updated_at":"2025-04-11T20:11:18.519Z","avatar_url":"https://github.com/x-way.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pktdump\n[![CircleCI](https://circleci.com/gh/x-way/pktdump/tree/master.svg?style=svg)](https://circleci.com/gh/x-way/pktdump/tree/master)\n[![GoDoc](https://godoc.org/github.com/x-way/pktdump?status.svg)](https://godoc.org/github.com/x-way/pktdump)\n[![Go Report Card](https://goreportcard.com/badge/github.com/x-way/pktdump)](https://goreportcard.com/report/github.com/x-way/pktdump)\n[![Codecov](https://codecov.io/gh/x-way/pktdump/branch/master/graph/badge.svg)](https://codecov.io/gh/x-way/pktdump/)\n\nFormat gopacket.Packet network packets similar to the tcpdump CLI output\n\n## example\n\n```\npackage pktdump_test\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/google/gopacket\"\n\t\"github.com/google/gopacket/layers\"\n\n\t\"github.com/x-way/pktdump\"\n)\n\nfunc ExampleFormat() {\n\traw := []byte{0x45, 0x00, 0x00, 0x42, 0x9a, 0x66, 0x00, 0x00, 0x40, 0x11, 0xce, 0xc0, 0xc0, 0xa8, 0x48, 0x32, 0xc0, 0xa8, 0x48, 0x01, 0xfb, 0x6a, 0x00, 0x35, 0x00, 0x2e, 0x02, 0xeb, 0x29, 0x84, 0x01, 0x20, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x06, 0x73, 0x69, 0x67, 0x69, 0x6e, 0x74, 0x02, 0x63, 0x68, 0x00, 0x00, 0x01, 0x00, 0x03, 0x00, 0x00, 0x29, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}\n\n\tpacket := gopacket.NewPacket(raw, layers.LayerTypeIPv4, gopacket.Default)\n\n\tfmt.Println(pktdump.Format(packet))\n}\n```\nThis would produce the following result\n```\nIP 192.168.72.50.64362 \u003e 192.168.72.1.53: 10628+ [1au] A CH? sigint.ch. (38)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fx-way%2Fpktdump","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fx-way%2Fpktdump","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fx-way%2Fpktdump/lists"}