GitXplorerGitXplorer
b

win_netifaces

public
3 stars
1 forks
0 issues

Commits

List of commits on branch master.
Unverified
9e4e277c752f9977cb8127bec3c37a8c7ad74456

Changed adapter type logic according to http://weblogs.sqlteam.com/mladenp/archive/2010/11/04/find-only-physical-network-adapters-with-wmi-win32_networkadapter-class.aspx

bbogdanteleaga committed 10 years ago
Unverified
740e98f43f64fc65e7e033fd3f4ab738d307d359

Fixed regex to include lower-case MAC Addresses

bbogdanteleaga committed 10 years ago
Unverified
e620b26953f5afe5e54262412c0fa5485d550d63

Fixed MAC string verification

bbogdanteleaga committed 10 years ago
Unverified
16d0e31d790bd7147caad59f33a919f98a4f19de

Merge remote-tracking branch 'origin/master'

bbogdanteleaga committed 10 years ago
Unverified
744c08efb6e95bb6d907838751adf103999a5aef

Update README.md

bbogdanteleaga committed 10 years ago
Unverified
e78a8c98a291d8dd0b6663d7851fa2dc19544b3e

Update README.md

bbogdanteleaga committed 10 years ago

README

The README file for this repository.

win_netifaces

Windows ipconfig equivalent written in Go

Lists network interfaces on a system along with other attributes. Uses go-ole to query WMI.

=============

Example usage:

package main

import (
        "fmt"

        "github.com/bogdan/win_netifaces"
)

func main() {
        interfaces, err := win_netifaces.GetAdapters(win_netifaces.Physical)
        if err != nil {
                fmt.Println(err)
        }
        for _, iface := range interfaces {
                fmt.Println("\n")
                win_netifaces.PrettyPrintInterface(iface)
                fmt.Println("\n")
        }
}