Rafael Zalamena <rzalam...@gmail.com> 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 (default) on interfaces without an >> address. >> >> I'll use this code later to be able to get_interfaces() without an IP >> address. > > I forgot to make it return NULL if no interfaces are found (e.g. invalid > interface name) and then it started failing with a cryptic death message: > "Can't attach interface vip1 to bpf device: Device not configured" > > This updated diff fix the problem. > > ok?
ok jca@ -- jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF DDCC 0DFA 74AE 1524 E7EE