-
Notifications
You must be signed in to change notification settings - Fork 1
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
Conversation
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.OpenSSF Scorecard
Scanned Manifest Files |
There was a problem hiding this 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
...
}
There was a problem hiding this 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
structs/structs.go
Outdated
} | ||
|
||
type Interface struct { | ||
Name string | ||
Ip_addr string | ||
Gateway string | ||
DNS_servers []string |
There was a problem hiding this comment.
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
structs/structs.go
Outdated
@@ -13,14 +18,13 @@ type Network_Info struct { | |||
Mac_addr string | |||
Domain string |
There was a problem hiding this comment.
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?
Extended Structs with the Following Informations:
Network_Info:
+ Gateway
+ DNS_servers
+ Netmask
+ Link_speed
+ Domain
Host
+ Uname
User
+ Group