From 6766b5ca59f7930d9a845aa296698e6a54bcb87a Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 10 Aug 2016 21:39:05 -0700 Subject: [PATCH] dhcp4: make it required for Conn.RecvDHCP to return interface information. As it turns out, it's fairly difficult to do anything useful with DHCP without this information, and the Conn implementations I can think of all provide the information, so we might as well make it a requirement. --- dhcp4/conn.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dhcp4/conn.go b/dhcp4/conn.go index c350dde..34d90cf 100644 --- a/dhcp4/conn.go +++ b/dhcp4/conn.go @@ -89,8 +89,7 @@ func (c *Conn) Close() error { } // RecvDHCP reads a Packet from the connection. It returns the -// packet and the interface it was received on, which may be nil -// if interface information cannot be obtained. +// packet and the interface it was received on. func (c *Conn) RecvDHCP() (*Packet, *net.Interface, error) { var buf [1500]byte for {