-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove gopacket import in agent/process-agent (#31105)
- Loading branch information
1 parent
10b3b64
commit 718aea5
Showing
13 changed files
with
85 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// Unless explicitly stated otherwise all files in this repository are licensed | ||
// under the Apache License Version 2.0. | ||
// This product includes software developed at Datadog (https://www.datadoghq.com/). | ||
// Copyright 2024-present Datadog, Inc. | ||
|
||
// Package config is the configuration for the traceroute functionality | ||
package config | ||
|
||
import ( | ||
"time" | ||
|
||
"github.com/DataDog/datadog-agent/pkg/networkpath/payload" | ||
) | ||
|
||
// Config specifies the configuration of an instance | ||
// of Traceroute | ||
type Config struct { | ||
// TODO: add common configuration | ||
// Destination Hostname | ||
DestHostname string | ||
// Destination Port number | ||
DestPort uint16 | ||
// Destination service name | ||
DestinationService string | ||
// Source service name | ||
SourceService string | ||
// Source container ID | ||
SourceContainerID string | ||
// Max number of hops to try | ||
MaxTTL uint8 | ||
// TODO: do we want to expose this? | ||
Timeout time.Duration | ||
// Protocol is the protocol to use | ||
// for traceroute, default is UDP | ||
Protocol payload.Protocol | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
pkg/networkpath/traceroute/runner_test.go → ...workpath/traceroute/runner/runner_test.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,7 @@ | ||
// Unless explicitly stated otherwise all files in this repository are licensed | ||
// under the Apache License Version 2.0. | ||
// This product includes software developed at Datadog (https://www.datadoghq.com/). | ||
// Copyright 2016-present Datadog, Inc. | ||
// Copyright 2024-present Datadog, Inc. | ||
|
||
// Package traceroute adds traceroute functionality to the agent | ||
package traceroute | ||
|
||
import ( | ||
"context" | ||
"time" | ||
|
||
"github.com/DataDog/datadog-agent/pkg/networkpath/payload" | ||
) | ||
|
||
type ( | ||
// Config specifies the configuration of an instance | ||
// of Traceroute | ||
Config struct { | ||
// TODO: add common configuration | ||
// Destination Hostname | ||
DestHostname string | ||
// Destination Port number | ||
DestPort uint16 | ||
// Destination service name | ||
DestinationService string | ||
// Source service name | ||
SourceService string | ||
// Source container ID | ||
SourceContainerID string | ||
// Max number of hops to try | ||
MaxTTL uint8 | ||
// TODO: do we want to expose this? | ||
Timeout time.Duration | ||
// Protocol is the protocol to use | ||
// for traceroute, default is UDP | ||
Protocol payload.Protocol | ||
} | ||
|
||
// Traceroute defines an interface for running | ||
// traceroutes for the Network Path integration | ||
Traceroute interface { | ||
Run(context.Context) (payload.NetworkPath, error) | ||
} | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.