Subject: [homenet] shncpd news: DHCPv4 support

From: Juliusz Chroboczek <[email-masked]>
Date: Fri, 14 Aug 2015 21:30:35 +0200

I've just pushed the DHCPv4 support for shncpd.  Completely untested and
known to be incomplete (in particular, we don't participate in HNCP
election, we just unconditionally act as a DHCPv4 server).

    https://github.com/jech/shncpd

This makes shncpd almost 4000 lines long, of which 640 are for the DHCPv4
server.

I'd be grateful if some DHCPv4 specialist could look at the following
packet and tell me if there's anything that needs to be added:

    10.111.22.54.67 > 255.255.255.255.68: BOOTP/DHCP, Reply, length 290, xid 0x2366b647, Flags [none]
          Your-IP 10.111.22.116
          Server-IP 10.111.22.54
          Client-Ethernet-Address 84:8f:69:f0:33:bc
          Vendor-rfc1048 Extensions
            Magic Cookie 0x63825363
            DHCP-Message Option 53, length 1: Offer
            Server-ID Option 54, length 4: 10.111.22.54
            Lease-Time Option 51, length 4: 3600
            RN Option 58, length 4: 1800
            RB Option 59, length 4: 2700
            Subnet-Mask Option 1, length 4: 255.255.255.0
            Default-Gateway Option 3, length 4: 10.111.22.54
            Domain-Name-Server Option 6, length 8: 212.27.40.240,212.27.40.241