Title: comment match not working · Issue #4 · ldx/python-iptables · GitHub
Open Graph Title: comment match not working · Issue #4 · ldx/python-iptables
X Title: comment match not working · Issue #4 · ldx/python-iptables
Description: Extracting comments always results in an empty string. Tested with commit 9d63c85 To reproduce the issue see the follwoing example. A workaround is also included. import iptc # example code to demonstrate comment extraction failure # All...
Open Graph Description: Extracting comments always results in an empty string. Tested with commit 9d63c85 To reproduce the issue see the follwoing example. A workaround is also included. import iptc # example code to demo...
X Description: Extracting comments always results in an empty string. Tested with commit 9d63c85 To reproduce the issue see the follwoing example. A workaround is also included. import iptc # example code to demo...
Opengraph URL: https://github.com/ldx/python-iptables/issues/4
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"comment match not working","articleBody":"Extracting comments always results in an empty string.\nTested with commit 9d63c856b5\n\nTo reproduce the issue see the follwoing example.\nA workaround is also included.\n\n``` python\nimport iptc\n\n# example code to demonstrate comment extraction failure\n# All comments of all chains in the filter table should be printed\n# \n# iptables -A INPUT -m comment --comment \"example comment\"\n\nchains = iptc.TABLE_FILTER.chains\n\nfor chain in chains:\n print \"Chain: %s\" % (chain.name)\n for rule in chain.rules:\n for match in rule.matches:\n if match.name == \"comment\":\n print \"comment1: %s\" % match.comment # match.comment is always an empty string\n\n # manually extract comment from the buffer\n # tested on kernel 2.6.32 (amd64)\n comment = \"\".join(map(chr, match.match_buf[32:]))\n print \"comment2: %s\" % comment # works\n```\n","author":{"url":"https://github.com/freddy36","@type":"Person","name":"freddy36"},"datePublished":"2012-05-04T16:24:55.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/4/python-iptables/issues/4"}
| 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:f025cba4-60ed-e4aa-bc77-53c337ecdd33 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CEEA:210405:4E0FE2E:6598D15:6A5D674B |
| html-safe-nonce | f462cf9f94c471026809a4d9392653d423b1b2a467da37f04b49f00737e4811e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRUVBOjIxMDQwNTo0RTBGRTJFOjY1OThEMTU6NkE1RDY3NEIiLCJ2aXNpdG9yX2lkIjoiODg0NTAyNTcxOTUzOTgyMDM2MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 2b50c17993de0c2b1934f9a541fd272ff54980c155efe009c3695f6032caedeb |
| hovercard-subject-tag | issue:4426921 |
| 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/ldx/python-iptables/4/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8606659a52e20b8422c49dc21ef8bb7cc7b38c8358497add78a94d34deb6753b/ldx/python-iptables/issues/4 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8606659a52e20b8422c49dc21ef8bb7cc7b38c8358497add78a94d34deb6753b/ldx/python-iptables/issues/4 |
| og:image:alt | Extracting comments always results in an empty string. Tested with commit 9d63c85 To reproduce the issue see the follwoing example. A workaround is also included. import iptc # example code to demo... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | freddy36 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| turbo-cache-control | no-preview |
| go-import | github.com/ldx/python-iptables git https://github.com/ldx/python-iptables.git |
| octolytics-dimension-user_id | 456904 |
| octolytics-dimension-user_login | ldx |
| octolytics-dimension-repository_id | 1032167 |
| octolytics-dimension-repository_nwo | ldx/python-iptables |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1032167 |
| octolytics-dimension-repository_network_root_nwo | ldx/python-iptables |
| 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 | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width