From 234fa33134603275ef0456492b6273c261e3bcbd Mon Sep 17 00:00:00 2001 From: crusader Date: Mon, 20 Aug 2018 17:25:51 +0900 Subject: [PATCH] nic added --- net/nic.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 net/nic.go diff --git a/net/nic.go b/net/nic.go new file mode 100644 index 0000000..108b3bb --- /dev/null +++ b/net/nic.go @@ -0,0 +1,17 @@ +package net + +import ( + omm "git.loafle.net/overflow/model/meta" +) + +type Interface struct { + Iface string `json:"iface,omitempty"` + Mac string `json:"mac,omitempty"` + Addresses []InterfaceAddress `json:"addresses,omitempty"` +} + +type InterfaceAddress struct { + MetaIPType *omm.MetaIPType `json:"metaIPType,omitempty"` + Address string `json:"address,omitempty"` + Netmask string `json:"netmask,omitempty"` +}