{"id":22004682,"url":"https://github.com/davidcoles/bfd","last_synced_at":"2025-06-25T22:04:41.452Z","repository":{"id":246678786,"uuid":"821826547","full_name":"davidcoles/bfd","owner":"davidcoles","description":"Experimental BFD implementation in Go. Incomplete and probably very wrong.","archived":false,"fork":false,"pushed_at":"2024-07-09T12:27:26.000Z","size":155,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-23T06:26:58.277Z","etag":null,"topics":["bfd","golang","networking","rfc5880","rfc5881"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/davidcoles.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":"2024-06-29T14:45:15.000Z","updated_at":"2024-07-09T12:27:15.000Z","dependencies_parsed_at":"2024-06-29T16:26:27.760Z","dependency_job_id":"1c6f44aa-e9f0-46c8-93c3-e4527bd583fc","html_url":"https://github.com/davidcoles/bfd","commit_stats":null,"previous_names":["davidcoles/bfd"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/davidcoles/bfd","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidcoles%2Fbfd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidcoles%2Fbfd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidcoles%2Fbfd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidcoles%2Fbfd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davidcoles","download_url":"https://codeload.github.com/davidcoles/bfd/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidcoles%2Fbfd/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261960506,"owners_count":23236572,"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":["bfd","golang","networking","rfc5880","rfc5881"],"created_at":"2024-11-30T00:16:46.384Z","updated_at":"2025-06-25T22:04:41.427Z","avatar_url":"https://github.com/davidcoles.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BFD\n\nExperimental Bidirectional Forwarding Detection implementation in Go. Incomplete and probably very wrong.\n\nPartially implements:\n\n* [RFC 5880 - Bidirectional Forwarding Detection (BFD)](https://datatracker.ietf.org/doc/html/rfc5880)\n* [RCF 5881 - Bidirectional Forwarding Detection (BFD) for IPv4 and IPv6 (Single Hop)](https://datatracker.ietf.org/doc/html/rfc5881)\n\nThis package will negotiate a BFD session with any directly connected peer that attempts to connect.\n\nOnly one session per peer is supported currently.\n\n## Example usage\n\n```\nfunc main() {\n    ip := netip.MustParseAddr(os.Args[1])\n\n    bfd := bfd.BFD{}\n    err := bfd.Start()\n\n    if err != nil {\n\tlog.Fatal(\"Start: \", err)\n    }\n\n    for {\n        fmt.Println(ip, bfd.Query(ip))\n        time.Sleep(time.Second)\n    }\n}\n```\n\nIf you were running this on 10.1.2.3 as `go run main.go 10.1.2.4`, and on host 10.1.2.4 you set BIRD up with:\n\n```\nprotocol bfd {\n    neighbor 10.1.2.3;\n}\n```\n\nthen you should see a BFD session come up:\n\n```\nroot:~/bfd/cmd# go run main.go 10.1.2.4\n10.1.2.4 false\n10.1.2.4 true\n10.1.2.4 true\n10.1.2.4 true\n...\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidcoles%2Fbfd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavidcoles%2Fbfd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidcoles%2Fbfd/lists"}