{"id":13714122,"url":"https://github.com/mdlayher/ndp","last_synced_at":"2025-05-15T20:07:23.258Z","repository":{"id":40643622,"uuid":"114734476","full_name":"mdlayher/ndp","owner":"mdlayher","description":"Package ndp implements the Neighbor Discovery Protocol, as described in RFC 4861.  MIT Licensed.","archived":false,"fork":false,"pushed_at":"2024-03-12T14:41:04.000Z","size":232,"stargazers_count":227,"open_issues_count":3,"forks_count":24,"subscribers_count":9,"default_branch":"main","last_synced_at":"2025-04-08T01:39:29.859Z","etag":null,"topics":["go","golang","icmpv6","ipv6","ndp","neighbor-discovery-protocol"],"latest_commit_sha":null,"homepage":"https://tools.ietf.org/html/rfc4861","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/mdlayher.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","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":"2017-12-19T07:40:38.000Z","updated_at":"2025-04-04T22:59:32.000Z","dependencies_parsed_at":"2022-07-20T13:48:09.841Z","dependency_job_id":"dc947ca0-0848-4e18-a59e-ee1a297be7dd","html_url":"https://github.com/mdlayher/ndp","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/mdlayher%2Fndp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdlayher%2Fndp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdlayher%2Fndp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdlayher%2Fndp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mdlayher","download_url":"https://codeload.github.com/mdlayher/ndp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254414499,"owners_count":22067272,"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":["go","golang","icmpv6","ipv6","ndp","neighbor-discovery-protocol"],"created_at":"2024-08-02T23:01:52.711Z","updated_at":"2025-05-15T20:07:18.181Z","avatar_url":"https://github.com/mdlayher.png","language":"Go","funding_links":[],"categories":["Repositories"],"sub_categories":[],"readme":"# ndp [![Test Status](https://github.com/mdlayher/ndp/workflows/Test/badge.svg)](https://github.com/mdlayher/ndp/actions) [![Go Reference](https://pkg.go.dev/badge/github.com/mdlayher/ndp.svg)](https://pkg.go.dev/github.com/mdlayher/ndp) [![Go Report Card](https://goreportcard.com/badge/github.com/mdlayher/ndp)](https://goreportcard.com/report/github.com/mdlayher/ndp)\n\nPackage `ndp` implements the Neighbor Discovery Protocol, as described in\n[RFC 4861](https://tools.ietf.org/html/rfc4861).  MIT Licensed.\n\nThe command `ndp` is a utility for working with the Neighbor Discovery Protocol.\n\nTo learn more about NDP, and how to use this package, check out my blog:\n[Network Protocol Breakdown: NDP and Go](https://mdlayher.com/blog/network-protocol-breakdown-ndp-and-go/).\n\n## Examples\n\nListen for incoming NDP messages on interface eth0 to one of the interface's\nglobal unicast addresses.\n\n```none\n$ sudo ndp -i eth0 -a global listen\n$ sudo ndp -i eth0 -a 2001:db8::1 listen\n````\n\nSend router solicitations on interface eth0 from the interface's link-local\naddress until a router advertisement is received.\n\n```none\n$ sudo ndp -i eth0 -a linklocal rs\n```\n\nSend neighbor solicitations on interface eth0 to a neighbor's link-local\naddress until a neighbor advertisement is received.\n\n```none\n$ sudo ndp -i eth0 -a linklocal -t fe80::1 ns\n```\n\nAn example of the tool sending a router solicitation and receiving a router\nadvertisement on the WAN interface of a Ubiquiti router:\n\n```none\n$ sudo ndp -i eth1 -a linklocal rs\nndp\u003e interface: eth1, link-layer address: 04:18:d6:a1:ce:b8, IPv6 address: fe80::618:d6ff:fea1:ceb8\nndp rs\u003e router solicitation:\n    - source link-layer address: 04:18:d6:a1:ce:b8\n\nndp rs\u003e router advertisement from: fe80::201:5cff:fe69:f246:\n    - hop limit:        0\n    - flags:            [MO]\n    - preference:       0\n    - router lifetime:  2h30m0s\n    - reachable time:   1h0m0s\n    - retransmit timer: 0s\n    - options:\n        - prefix information: 2600:6c4a:7002:100::/64, flags: [], valid: 720h0m0s, preferred: 168h0m0s\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdlayher%2Fndp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmdlayher%2Fndp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdlayher%2Fndp/lists"}