Skip to content

hootrhino/go-dhcpd-leases

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 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%