Re: dhcrelay(8): simplify get_interface()

2016-12-07 Thread Jeremie Courreges-Anglas
Rafael Zalamena writes: > On Wed, Dec 07, 2016 at 05:34:05PM +0100, Rafael Zalamena wrote: >> This diff simplifies the get_interface function and makes it more >> straightforward, it also makes dhcrelay(8) throw a more informative error >> message when running layer 3 mode

Re: dhcrelay(8): simplify get_interface()

2016-12-07 Thread Rafael Zalamena
On Wed, Dec 07, 2016 at 05:34:05PM +0100, Rafael Zalamena wrote: > This diff simplifies the get_interface function and makes it more > straightforward, it also makes dhcrelay(8) throw a more informative error > message when running layer 3 mode (default) on interfaces without an > address. > >

dhcrelay(8): simplify get_interface()

2016-12-07 Thread Rafael Zalamena
This diff simplifies the get_interface function and makes it more straightforward, it also makes dhcrelay(8) throw a more informative error message when running layer 3 mode (default) on interfaces without an address. I'll use this code later to be able to get_interfaces() without an IP address.