]> git.ipfire.org Git - network.git/commit
device: add new function device_tunnel_get_type()
authorJonatan Schlag <jonatan.schlag@ipfire.org>
Sun, 4 Mar 2018 18:24:57 +0000 (18:24 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 9 Mar 2018 20:19:36 +0000 (20:19 +0000)
commite173e612cc54378ad7059ae9e61dbdee1fdb07b7
treed73b6835efeb001e137f719327e6c63a38b728bb
parentbcba5d275fe29d0b23b544f3a88138ab264f7380
device: add new function device_tunnel_get_type()

If we already know that the device must be a ip-tunnel device
we can save time when we check just for the types
a ip-tunnel device can have.

To avoid code duplication we call this function from device_get_type()

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/functions/functions.device