aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tun.h
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-11-08 15:19:17 +0900
committerHarald Welte <laforge@gnumonks.org>2017-11-13 23:57:58 +0900
commit4c7d29107ff6f1f2c1e1649bc950bd098148be1a (patch)
treeef9f0c7b94c4fddfe53afca1ad7320ee99604305 /lib/tun.h
parentf55a0390485cb1ba071ef19102501594571c74c7 (diff)
factor out netdev_ip_local_get() from tun_ip_local_get()
netdev_ip_local_get() is a generalized version of tun_ip_local_get() which supports the net device as argument, rather than a tun_t. Change-Id: I072aa1a55e7bf110706e9207021b776d9b977fb6
Diffstat (limited to 'lib/tun.h')
-rw-r--r--lib/tun.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/tun.h b/lib/tun.h
index 0b960e5..411deea 100644
--- a/lib/tun.h
+++ b/lib/tun.h
@@ -95,6 +95,9 @@ extern int tun_set_cb_ind(struct tun_t *this,
extern int tun_runscript(struct tun_t *tun, char *script);
+int netdev_ip_local_get(const char *devname, struct in46_prefix *prefix_list,
+ size_t prefix_size, int flags);
+
int tun_ip_local_get(const struct tun_t *tun, struct in46_prefix *prefix_list,
size_t prefix_size, int flags);