{"id":34020505,"url":"https://github.com/pedrofran12/igmp","last_synced_at":"2026-04-04T12:59:00.294Z","repository":{"id":42470107,"uuid":"99043493","full_name":"pedrofran12/igmp","owner":"pedrofran12","description":"IGMPv2 router-side protocol implementation in Python","archived":false,"fork":false,"pushed_at":"2023-12-08T15:31:14.000Z","size":52,"stargazers_count":7,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-15T03:55:00.465Z","etag":null,"topics":["group","igmp","igmpv2","interest","ipv4","multicast","python","rfc2236","router"],"latest_commit_sha":null,"homepage":"","language":"Python","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/pedrofran12.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}},"created_at":"2017-08-01T21:10:36.000Z","updated_at":"2025-06-14T06:59:55.000Z","dependencies_parsed_at":"2022-09-14T00:20:59.167Z","dependency_job_id":null,"html_url":"https://github.com/pedrofran12/igmp","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/pedrofran12/igmp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedrofran12%2Figmp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedrofran12%2Figmp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedrofran12%2Figmp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedrofran12%2Figmp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pedrofran12","download_url":"https://codeload.github.com/pedrofran12/igmp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedrofran12%2Figmp/sbom","scorecard":{"id":726144,"data":{"date":"2025-08-11","repo":{"name":"github.com/pedrofran12/igmp","commit":"070bb70cc8e9bcfda12ef84608009e74a3544aca"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.3,"checks":[{"name":"Code-Review","score":5,"reason":"Found 5/10 approved changesets -- score normalized to 5","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/codeql-analysis.yml:1","Warn: no topLevel permission defined: .github/workflows/pythonpublish.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/pedrofran12/igmp/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:32: update your workflow using https://app.stepsecurity.io/secureworkflow/pedrofran12/igmp/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:40: update your workflow using https://app.stepsecurity.io/secureworkflow/pedrofran12/igmp/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:54: update your workflow using https://app.stepsecurity.io/secureworkflow/pedrofran12/igmp/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pythonpublish.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/pedrofran12/igmp/pythonpublish.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pythonpublish.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/pedrofran12/igmp/pythonpublish.yml/master?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/pythonpublish.yml:18","Warn: pipCommand not pinned by hash: .github/workflows/pythonpublish.yml:19","Info:   0 out of   6 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":7,"reason":"SAST tool detected but not run on all commits","details":["Info: SAST configuration detected: CodeQL","Warn: 0 commits out of 6 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-22T12:52:38.396Z","repository_id":42470107,"created_at":"2025-08-22T12:52:38.396Z","updated_at":"2025-08-22T12:52:38.396Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31400460,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T10:20:44.708Z","status":"ssl_error","status_checked_at":"2026-04-04T10:20:06.846Z","response_time":60,"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":["group","igmp","igmpv2","interest","ipv4","multicast","python","rfc2236","router"],"created_at":"2025-12-13T15:02:28.496Z","updated_at":"2026-04-04T12:59:00.271Z","avatar_url":"https://github.com/pedrofran12.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IGMP\n\n[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/igmp)](https://pypi.org/project/igmp/)\n[![PyPI](https://img.shields.io/pypi/v/igmp)](https://pypi.org/project/igmp/)\n[![PyPI - License](https://img.shields.io/pypi/l/igmp)](https://github.com/pedrofran12/igmp/blob/master/LICENSE)\n\nThis repository stores the implementation of IGMPv2 router-side state machines. This can be used to detect multicast interest of directly connected hosts.\n\nThe goal of this repository/module is to facilitate maintainability of this IGMP implementation since its code is used by other Python projects/modules:\n\n- [HPIM-DM](https://github.com/pedrofran12/hpim_dm)\n- [PIM-DM](https://github.com/pedrofran12/pim_dm)\n\nThis implementation was performed during my Master thesis and has since then been updated to fix issues, add new features and in the future to include the implementation of IGMPv3 as well.\n\n\n# Documents detailing the initial work of IGMPv2 implementation\n\n - [Python implementation of IGMPv2, PIM-DM and HPIM-DM](https://github.com/pedrofran12/hpim_dm/tree/master/docs/PythonImplementations.pdf)\n - [Test to Python implementation of IGMPv2, PIM-DM, and HPIM-DM](https://github.com/pedrofran12/hpim_dm/tree/master/docs/PythonTests.pdf)\n\n\n# Requirements\n\n - Linux machine\n - Python3 (we have written all code to be compatible with at least Python v3.2)\n - pip (to install all dependencies)\n\n\n# Installation\n\n  ```\n  pip3 install igmp\n  ```\n\n# How to use it?\n\n```python\n# import module\nfrom igmp import InterfaceIGMP\n\nintf = InterfaceIGMP(interface_name=\"eth0\")\nintf.enable()  # start receiving igmp packets\n\n# get information from a given multicast group\nmulticast_group_obj = intf.interface_state.get_group_state(group_ip=\"224.10.11.12\")\n\ninterest = multicast_group_obj.has_members()  # boolean that informs if there is\n                                              # multicast interest in this group\ngroup_state = multicast_group_obj.state.print_state()  # get string identifying\n                                                       # the state in which this\n                                                       # group is at\n\n# get notified of interest changes on this group\nclass MulticastGroupNotifier:\n    def notify_membership(self, has_members):\n        print(has_members)\n\nnotifier = MulticastGroupNotifier()\nmulticast_group_obj.add_multicast_routing_entry(notifier)\n\n# when there is a change of multicast interest (for example group 224.10.11.12\n# gets interested receivers), the object associated to this object is notified\n# through \"notify_membership\" method with has_members=True\n\n# if you no longer want to monitor the interest of 224.10.11.12, remove the\n# notifier from the group\nmulticast_group_obj.remove_multicast_routing_entry(notifier)\n\nintf.remove()  # stop receiving igmp packets\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpedrofran12%2Figmp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpedrofran12%2Figmp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpedrofran12%2Figmp/lists"}