Skip to content

refactor: remove loopback device checks from pcap probe files #762

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 8, 2025

Conversation

cfc4n
Copy link
Member

@cfc4n cfc4n commented Apr 8, 2025

This pull request includes changes to the setupManagersPcap functions across multiple probe implementations to remove special handling for loopback devices. The most important changes include the removal of checks and comments related to loopback interfaces and the deletion of customized TC filter comments.

Removal of loopback device handling:

Signed-off-by: CFC4N <cfc4n.cs@gmail.com>
@cfc4n cfc4n added the enhancement New feature or request label Apr 8, 2025
@cfc4n cfc4n requested a review from Copilot April 8, 2025 14:56
@cfc4n cfc4n self-assigned this Apr 8, 2025
@cfc4n cfc4n linked an issue Apr 8, 2025 that may be closed by this pull request
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

Comments suppressed due to low confidence (3)

user/module/probe_openssl_pcap.go:49

  • The property name 'ifIdex' appears to be a typo. Consider renaming it to 'ifIndex' for clarity.
m.ifIdex = interf.Index

user/module/probe_gotls_pcap.go:46

  • The property name 'ifIdex' appears to be a typo. Consider renaming it to 'ifIndex' for clarity.
g.ifIdex = interf.Index

user/module/probe_gnutls_pcap.go:39

  • The property name 'ifIdex' appears to be a typo. Consider renaming it to 'ifIndex' for clarity.
m.ifIdex = interf.Index

Copy link

github-actions bot commented Apr 8, 2025

Failed to generate code suggestions for PR

@dosubot dosubot bot added the improve label Apr 8, 2025
…ation

Ubuntu 20.04 LTS runner will be removed on 2025-04-15. For more details, see actions/runner-images#11101

Signed-off-by: CFC4N <cfc4n.cs@gmail.com>
@cfc4n cfc4n merged commit 2e069a2 into master Apr 8, 2025
5 checks passed
@cfc4n cfc4n deleted the support-loopback-interface branch April 8, 2025 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request improve
Projects
None yet
Development

Successfully merging this pull request may close these issues.

能抓取127.0.0.1本地的http数据包么
1 participant