Title: Minor Issue with Interface Index and IPv6 · Issue #1378 · python-zeroconf/python-zeroconf · GitHub
Open Graph Title: Minor Issue with Interface Index and IPv6 · Issue #1378 · python-zeroconf/python-zeroconf
X Title: Minor Issue with Interface Index and IPv6 · Issue #1378 · python-zeroconf/python-zeroconf
Description: Hi I like your library and tool and use it quite some time. I have found out that in some case there might be a minor issue. I have (for reasons what ever) a IPv6 Link Logical Adress. I checked the issue with different constraints, scrap...
Open Graph Description: Hi I like your library and tool and use it quite some time. I have found out that in some case there might be a minor issue. I have (for reasons what ever) a IPv6 Link Logical Adress. I checked the...
X Description: Hi I like your library and tool and use it quite some time. I have found out that in some case there might be a minor issue. I have (for reasons what ever) a IPv6 Link Logical Adress. I checked the...
Opengraph URL: https://github.com/python-zeroconf/python-zeroconf/issues/1378
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Minor Issue with Interface Index and IPv6","articleBody":"Hi \r\n\r\nI like your library and tool and use it quite some time.\r\nI have found out that in some case there might be a minor issue.\r\n\r\nI have (for reasons what ever) a IPv6 Link Logical Adress.\r\n\r\nI checked the issue with different constraints, scraping for many time solves the issue.\r\nBut when scraping for short time period, all is fetched! \r\nEverything is fine, except for the \"interface_index\" in Service Discovery info.\r\n\r\nI think a simply fix might help here, I found out that the check is only for the length of the ip if it is 16 or not.\r\nBut It can be simply \u003e= 16.\r\n\r\nPlease see here: https://github.com/python-zeroconf/python-zeroconf/blob/master/src/zeroconf/_services/info.py#L252\r\n\r\nversion is \u003e= 3.9.0 see: sys.version_info(major=3, minor=10, micro=12, releaselevel='final', serial=0)\r\n\r\nIf this is \u003e= 16 it should work for short scraping.\r\n\r\nMy Test Program shows it simply here:\r\n\r\n`import ipaddress\r\nip6adr = str(ipaddress.IPv6Address(ip))\r\nip = \"fe80::22b0:f7ff:fe07:2178\"\r\nip6adr = str(ipaddress.IPv6Address(ip))\r\nif ipaddress.ip_address(ip6adr).is_link_local:\r\n print(\"Interface number is required!\")\r\n\r\nprint(len(ip))\r\n`\r\n\r\nThis shows that it can be a Link Logical Address with a length greater than 16.\r\nI have to scrape very long time to be luckily and get the interface_index or often it is not present.\r\n\r\nBut in my scenario, I simply scrape 3 times not more, because of time constraints.\r\nMay I missed one option?\r\nForce interface_index to be present oder something?\r\n\r\ngreetings","author":{"url":"https://github.com/schnitzlein","@type":"Person","name":"schnitzlein"},"datePublished":"2024-06-06T14:03:14.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/1378/python-zeroconf/issues/1378"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:0b59b24e-264c-e542-a94c-58b9c121b722 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C2FC:1FAC89:10A1FC5:17A2641:6972372C |
| html-safe-nonce | e17276e9671b4b15fcf708a090c2105bc4c33dce8134569edfb3b2f6553acc07 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMkZDOjFGQUM4OToxMEExRkM1OjE3QTI2NDE6Njk3MjM3MkMiLCJ2aXNpdG9yX2lkIjoiNjc0NDU2MTUyNjY0NTA3NzgwNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 09d9984d1940d0d70f83ce6056483d31a63438dde823a6dd855bec2e7784e8b9 |
| hovercard-subject-tag | issue:2338350375 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-zeroconf/python-zeroconf/1378/issue_layout |
| twitter:image | https://opengraph.githubassets.com/762ebb9ce2eac765ff7c31520c3e88c2422aac3f6538cff50f4b49de80ead8cc/python-zeroconf/python-zeroconf/issues/1378 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/762ebb9ce2eac765ff7c31520c3e88c2422aac3f6538cff50f4b49de80ead8cc/python-zeroconf/python-zeroconf/issues/1378 |
| og:image:alt | Hi I like your library and tool and use it quite some time. I have found out that in some case there might be a minor issue. I have (for reasons what ever) a IPv6 Link Logical Adress. I checked the... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | schnitzlein |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3272b1e540db48cb02dab38469e01f8bc1d0ec4984ec870db3829659e109d2e3 |
| turbo-cache-control | no-preview |
| go-import | github.com/python-zeroconf/python-zeroconf git https://github.com/python-zeroconf/python-zeroconf.git |
| octolytics-dimension-user_id | 120192235 |
| octolytics-dimension-user_login | python-zeroconf |
| octolytics-dimension-repository_id | 21548731 |
| octolytics-dimension-repository_nwo | python-zeroconf/python-zeroconf |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 21548731 |
| octolytics-dimension-repository_network_root_nwo | python-zeroconf/python-zeroconf |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 0d362c8696f774bd4bde925e900be46408550b5d |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width