8000 GitHub - ghlens/go-dhcpd-leases: Go library for parsing dhcpcd's lease file
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

ghlens/go-dhcpd-leases

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GoDoc

Go module to parse dhcpd's lease file

This little library alllows for parsing dhcpd's lease files as given in man 5 dhcpd.leases. Its not elegant, but gets the job done.

It does not parse all the options that dhcpd can emit, but it solves the problem I had.

Usage

Basically do something like this:

    f, err := os.Open("/var/lib/dhcpd/dhcpd.leases")
    leases := Parse(f)
    ...

About

Go library for parsing dhcpcd's lease file

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%
0