DHCP Server go package?

679 views
Skip to first unread message

krolaw

unread,
Sep 21, 2012, 5:53:22 PM9/21/12
to golan...@googlegroups.com
Hi,

Has anyone released a DHCP server library for go?  And if so, where?

Thanks in advance.

Kyle Lemons

unread,
Sep 21, 2012, 5:56:42 PM9/21/12
to krolaw, golan...@googlegroups.com
On Fri, Sep 21, 2012 at 2:53 PM, krolaw <kro...@gmail.com> wrote:
Hi,

Has anyone released a DHCP server library for go?  And if so, where?

I have one that I've been meaning to open-source for awhile, but (unfortunately) it's been picking up more and more stuff that will make it harder.  I'll bump it up on my priority list, though no guarantees.
 
Thanks in advance.

--
 
 

Kyle Lemons

unread,
Oct 15, 2012, 5:49:45 PM10/15/12
to edison su, golan...@googlegroups.com, krolaw
On Sun, Oct 14, 2012 at 9:59 PM, edison su <sud...@gmail.com> wrote:
Hi Kyle, 
    How's your DHCP server library going?
Well, it's been done for awhile and it works great ;-)
 
    I am looking for a DHCP server for go also. Actually I want to write a fresh DHCP server which can handle thousands requests in second, and can be programmed dynamically. In a cloud environment, current dhcpd/dnsmasq sucks.
The problem is finding time to polish it up for public consumption.  It is, unfortunately, still blocked behind some other higher priority items at the moment for me.

--
 
 

bryanturley

unread,
Oct 15, 2012, 6:01:17 PM10/15/12
to golan...@googlegroups.com
There are other standard dhcp servers that are stronger than dnsmasq, have you tried lowering the number of dhcp requests?
I have always assumed the ISC one was fairly robust.
The network I live on has roughly 800 dhcp requesters and our dhcpd gets about 2 reqs a second with the exception of mornings.
To get 1000/second following that pattern you would need 40k dhcp requesters...  At which point you might want to put some of them on say a totally different ethernet fabric/switch/vlan and have multiple dhcp servers.

Richard Warburton

unread,
Oct 15, 2012, 8:11:24 PM10/15/12
to Kyle Lemons, edison su, golan...@googlegroups.com
If it's going to take a while, could there be an unofficial release of what you have?

I'm sure it's far superior to what I would have to cobble together.

Thanks.

Kyle Lemons

unread,
Oct 15, 2012, 8:14:50 PM10/15/12
to ric...@prototec.co.nz, edison su, golan...@googlegroups.com
On Mon, Oct 15, 2012 at 5:11 PM, Richard Warburton <kro...@gmail.com> wrote:
If it's going to take a while, could there be an unofficial release of what you have?

No, because it has things that can't be shared publicly :P

Tom D

unread,
Aug 12, 2013, 2:20:16 AM8/12/13
to golan...@googlegroups.com, ric...@prototec.co.nz, edison su
Any Progress? :) I am in need of such a thing myself xD

quarnster

unread,
Aug 12, 2013, 3:05:59 AM8/12/13
to golan...@googlegroups.com, ric...@prototec.co.nz, edison su
The DHCP spec is tiny, I doubt it'd take more than an hour to write up the basics from scratch: http://en.wikipedia.org/wiki/Dynamic_Host_Configuration_Protocol

/f

Vasiliy Tolstov

unread,
Aug 12, 2013, 4:36:21 AM8/12/13
to quarnster, golan...@googlegroups.com, ric...@prototec.co.nz, edison su


понедельник, 12 августа 2013 г. пользователь quarnster писал:

The DHCP spec is tiny, I doubt it'd take more than an hour to write up the basics from scratch: http://en.wikipedia.org/wiki/Dynamic_Host_Configuration_Protocol

/f

Now i'm writing dhcp server for my own needs but using openflow. 
Do you need server like http.Serve or something like blocks (Request/Reply messages and so) and constuct own server?  


--
Vasiliy Tolstov,
e-mail: v.to...@selfip.ru
jabber: va...@selfip.ru

Tom D

unread,
Aug 12, 2013, 5:52:43 AM8/12/13
to golan...@googlegroups.com, ric...@prototec.co.nz, edison su
I have enough difficulty working out if the packet information in wikipedia is 32 bit or what or its endianness is or anything haha

Jan Mercl

unread,
Aug 12, 2013, 5:57:56 AM8/12/13
to Tom D, golang-nuts, ric...@prototec.co.nz, edison su
On Mon, Aug 12, 2013 at 11:52 AM, Tom D <hype...@gmail.com> wrote:
> I have enough difficulty working out if the packet information in wikipedia
> is 32 bit or what or its endianness is or anything haha

Wikipedia is good as an overview only. For a real reference use the
particular RFCs. However, packets are almost universally described in
network byte order. I can't recall a counterexample right now.

-j

Vasiliy Tolstov

unread,
Aug 12, 2013, 6:30:31 AM8/12/13
to Jan Mercl, Tom D, golang-nuts, ric...@prototec.co.nz, edison su
2013/8/12 Jan Mercl <0xj...@gmail.com>:
> Wikipedia is good as an overview only. For a real reference use the
> particular RFCs. However, packets are almost universally described in
> network byte order. I can't recall a counterexample right now.


Best of all open dhcp.h header file and thats all needed stuff for
golang struct.
Reply all
Reply to author
Forward
0 new messages