]> git.ipfire.org Git - people/jschlag/network.git/commit
device: add new function device_tunnel_get_type()
authorJonatan Schlag <jonatan.schlag@ipfire.org>
Sun, 4 Mar 2018 18:10:03 +0000 (18:10 +0000)
committerJonatan Schlag <jonatan.schlag@ipfire.org>
Sun, 4 Mar 2018 18:10:03 +0000 (18:10 +0000)
commit7bf675bac01aa54c0d0697a684d73c47ddbfa8dc
treed73b6835efeb001e137f719327e6c63a38b728bb
parent1afed08e9317eaea6cd500e3a9e490f7645029e9
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>
src/functions/functions.device