{"id":22513376,"url":"https://github.com/bitvantage/internetprotocol.networkprefix","last_synced_at":"2026-02-08T22:01:59.005Z","repository":{"id":246682754,"uuid":"821448206","full_name":"Bitvantage/InternetProtocol.NetworkPrefix","owner":"Bitvantage","description":"A library for working with IPv4 and IPV6 network prefixes.","archived":false,"fork":false,"pushed_at":"2024-09-16T22:21:51.000Z","size":51,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-05T11:49:43.488Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Bitvantage.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","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-28T15:01:59.000Z","updated_at":"2024-09-16T22:21:03.000Z","dependencies_parsed_at":"2024-06-29T17:03:20.446Z","dependency_job_id":null,"html_url":"https://github.com/Bitvantage/InternetProtocol.NetworkPrefix","commit_stats":null,"previous_names":["bitvantage/internetprotocol.networkprefix"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Bitvantage/InternetProtocol.NetworkPrefix","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bitvantage%2FInternetProtocol.NetworkPrefix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bitvantage%2FInternetProtocol.NetworkPrefix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bitvantage%2FInternetProtocol.NetworkPrefix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bitvantage%2FInternetProtocol.NetworkPrefix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Bitvantage","download_url":"https://codeload.github.com/Bitvantage/InternetProtocol.NetworkPrefix/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bitvantage%2FInternetProtocol.NetworkPrefix/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29246422,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-08T21:42:34.334Z","status":"ssl_error","status_checked_at":"2026-02-08T21:41:38.468Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-12-07T03:11:58.115Z","updated_at":"2026-02-08T22:01:58.949Z","avatar_url":"https://github.com/Bitvantage.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bitvantage.InternetProtocol.NetworkPrefix\nA library for working with IPv4 and IPV6 network prefixes.\n\n## Installing via NuGet Package Manager\n```sh\nPM\u003e NuGet\\Install-Package Bitvantage.InternetProtocol.NetworkPrefix\n```\n\n## Quick Start\n```csharp\n// create a new network prefix\nvar prefix = NetworkPrefix.Parse(\"10.0.0.0/24\");\n\n// get the total number of host addresses in a network\nvar totalHosts = prefix.TotalHosts;\n\n// get the total number of addresses in a network\nvar totalAddresses = prefix.TotalAddresses;\n\n// iterate through each host address\nforeach(var address in prefix.Hosts()\n\tConsole.WriteLine(address);\n\n// determine if a prefix is contained by a different prefix\nvar prefixContainsPrefix = prefix.Contains(\"10.0.0.0/25\");\n\n// determine if a IP address is contained by a prefix\nvar prefixContainsHost = prefix.Contains(IPAddress.Parse(\"10.0.0.100\");\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitvantage%2Finternetprotocol.networkprefix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitvantage%2Finternetprotocol.networkprefix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitvantage%2Finternetprotocol.networkprefix/lists"}