Commit fcc8ed8e authored by Mikio Hara's avatar Mikio Hara

lif: rename internal types

This is a followup to https://go-review.googlesource.com/30576.

Change-Id: I48bc5f1781275d2cef963876745fa59ac08b5eb5
Reviewed-on: https://go-review.googlesource.com/43070
Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com>
Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
parent feeb4856
...@@ -75,7 +75,7 @@ const ( ...@@ -75,7 +75,7 @@ const (
sizeofLifIfinfoReq = C.sizeof_struct_lif_ifinfo_req sizeofLifIfinfoReq = C.sizeof_struct_lif_ifinfo_req
) )
type sysLifnum C.struct_lifnum type lifnum C.struct_lifnum
type lifreq C.struct_lifreq type lifreq C.struct_lifreq
......
...@@ -70,7 +70,7 @@ func Links(af int, name string) ([]Link, error) { ...@@ -70,7 +70,7 @@ func Links(af int, name string) ([]Link, error) {
func links(eps []endpoint, name string) ([]Link, error) { func links(eps []endpoint, name string) ([]Link, error) {
var lls []Link var lls []Link
lifn := sysLifnum{Flags: sysLIFC_NOXMIT | sysLIFC_TEMPORARY | sysLIFC_ALLZONES | sysLIFC_UNDER_IPMP} lifn := lifnum{Flags: sysLIFC_NOXMIT | sysLIFC_TEMPORARY | sysLIFC_ALLZONES | sysLIFC_UNDER_IPMP}
lifc := lifconf{Flags: sysLIFC_NOXMIT | sysLIFC_TEMPORARY | sysLIFC_ALLZONES | sysLIFC_UNDER_IPMP} lifc := lifconf{Flags: sysLIFC_NOXMIT | sysLIFC_TEMPORARY | sysLIFC_ALLZONES | sysLIFC_UNDER_IPMP}
for _, ep := range eps { for _, ep := range eps {
lifn.Family = uint16(ep.af) lifn.Family = uint16(ep.af)
......
...@@ -65,7 +65,7 @@ const ( ...@@ -65,7 +65,7 @@ const (
sizeofLifIfinfoReq = 0x10 sizeofLifIfinfoReq = 0x10
) )
type sysLifnum struct { type lifnum struct {
Family uint16 Family uint16
Pad_cgo_0 [2]byte Pad_cgo_0 [2]byte
Flags int32 Flags int32
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment