fwknopd: More reliable network dependency 5897/head
authorOldřich Jedlička <oldium.pro@gmail.com>
Mon, 9 Apr 2018 11:52:39 +0000 (13:52 +0200)
committerOldřich Jedlička <oldium.pro@gmail.com>
Wed, 11 Apr 2018 05:53:52 +0000 (07:53 +0200)
commit133274c607ad3bb145404a15dc0e19921c481032
tree4aa20487b8b6a315c115d37c2608c4aa70a97579
parent4750b7261e9639d2764c2e6c46a8c9eb09e3edc6
fwknopd: More reliable network dependency

Two issues:

  1. The fwknopd init script did not handle unprepared logical networks.
     This is fixed by A) not defining instance for procd when the physical
     interface is unknown, and B) by watching the logical network for
     changes.

  2. When using PPPoE, there are two physical interfaces -- one for raw
     PPPoE communication and one for wrapped communication. The function
     network_get_physdev returns the physical device, while the function
     network_get_device returns the wrapped one -- we shall use the
     wrapped interface. Usually (for non-wrapped interfaces) the physdev
     and device are the same, also other network scripts use the latter
     function.

Both issues found by and thanks are going to @lucize.

Signed-off-by: Oldřich Jedlička <oldium.pro@gmail.com>
net/fwknop/Makefile
net/fwknop/files/fwknopd
net/fwknop/files/fwknopd.init