Skip to content
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

Extended Structs with more Information #48

Merged
merged 4 commits into from
Oct 1, 2024
Merged

Conversation

Kartoffel096
Copy link
Collaborator

@Kartoffel096 Kartoffel096 commented Oct 1, 2024

Extended Structs with the Following Informations:

Network_Info:
+ Gateway
+ DNS_servers
+ Netmask
+ Link_speed
+ Domain

Host
+ Uname

User
+ Group

Copy link

github-actions bot commented Oct 1, 2024

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

OpenSSF Scorecard

PackageVersionScoreDetails

Scanned Manifest Files

@HilkopterBob HilkopterBob changed the title Extended Structs with more Informations Extended Structs with more Information Oct 1, 2024
Copy link
Owner

@HilkopterBob HilkopterBob left a comment

Choose a reason for hiding this comment

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

can you move interface specific information into an Interface struct and add it to a slice of type Interface so one Host has one NetworkInfo and NetworkInfo can map data to multiple Interfaces?

eg:

type Interface struct {
  InterfaceName: string
  ...
}

Copy link
Owner

@HilkopterBob HilkopterBob left a comment

Choose a reason for hiding this comment

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

Change Naming to PascalCase

}

type Interface struct {
Name string
Ip_addr string
Gateway string
DNS_servers []string
Copy link
Owner

Choose a reason for hiding this comment

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

There are no per Interface DNS Settings, see:
Server Fault

@@ -13,14 +18,13 @@ type Network_Info struct {
Mac_addr string
Domain string
Copy link
Owner

Choose a reason for hiding this comment

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

Its a severe pain to set search domains on an per interface basis.
Can you add domain to NetworkInfos?

@HilkopterBob HilkopterBob self-requested a review October 1, 2024 09:28
@HilkopterBob HilkopterBob merged commit ea5bd38 into devel Oct 1, 2024
3 of 5 checks passed
@HilkopterBob HilkopterBob deleted the ExtendedStructs branch October 4, 2024 11:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants