Win32-dhcp-server: Win32 DHCP Server Management API.

[ bsd3, library, system ] [ Propose Tags ]

This package provides a partial binding to the Win32 DHCP Server Management API. Its purpose is to query and control a Microsoft DHCP server. Enough functionality is defined so so that Ipv4 client lease and reservation records can be manipulated from software.

Here are a few notes on the required environment:

Simple Example and Usage

-- Print all MAC addresses with an active client lease
module Main where

import Data.Ip
import Data.Mac
import System.Win32.DHCP

main :: IO ()
main = do
    api <- loadDHCP
    clients <- enumClients api context
    let macs = map (showMac ":" . clientHardwareAddress) clients
    mapM_ putStrLn macs
  where
    Just subnet = readIp "192.168.1.0"
    context = Context "192.168.1.5" subnet
Versions 0.1, 0.2, 0.2.1, 0.3, 0.3.1, 0.3.2 (info)
Dependencies base (>=4.6 && <4.8), safe, Win32 [details]
License BSD-3-Clause
Copyright 2013 Michael Steele
Author Michael Steele
Maintainer mikesteele81@gmail.com
Category System
Home page http://github.com/mikesteele81/win32-dhcp-server
Bug tracker http://github.com/mikesteele81/win32-dhcp-server/issues
Uploaded by MichaelSteele at Sat Feb 22 19:44:50 UTC 2014
Distributions NixOS:0.3.2
Downloads 2025 total (11 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]
Hackage Matrix CI

Modules

[Index]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees