Skip to content

chore: Rename pkg/agent/hooks/linux/comm.go to a more descriptive name #4566

Description

@Prateek-og

While exploring the codebase, I noticed there is a //TODO: rename this file. comment at the top of pkg/agent/hooks/linux/comm.go.

Currently, the file is named comm.go, but it primarily contains functions (Get, GetDestinationInfo, GetTlsInfo, and SetTlsInfo) that handle network addresses and TLS information for the eBPF hooks. A name like network.go or network_info.go would be much more descriptive of what the file actually does.

Proposed Changes:

  1. Rename pkg/agent/hooks/linux/comm.go to pkg/agent/hooks/linux/network.go (or another name if the maintainers prefer).
  2. Remove the //TODO: rename this file. comment.
  3. Ensure that the //go:build linux directive remains at the top of the renamed file.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions