Commit ca831135 authored by Mikio Hara's avatar Mikio Hara

net: simplify interfaceTable for BSD variants

This change drops parseInterfaceTable which becomes unnecessary by the
golang.org/x/net/route plumbing.

Change-Id: I05f96e347de950bb1e9292bb3eeff01bb40e292f
Reviewed-on: https://go-review.googlesource.com/23125
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 5ccd571f
......@@ -20,10 +20,6 @@ func interfaceTable(ifindex int) ([]Interface, error) {
if err != nil {
return nil, err
}
return parseInterfaceTable(ifindex, msgs)
}
func parseInterfaceTable(ifindex int, msgs []route.Message) ([]Interface, error) {
n := len(msgs)
if ifindex != 0 {
n = 1
......
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