diff options
author | Harald Welte <laforge@gnumonks.org> | 2017-11-08 15:19:17 +0900 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2017-11-13 23:57:58 +0900 |
commit | 4c7d29107ff6f1f2c1e1649bc950bd098148be1a (patch) | |
tree | ef9f0c7b94c4fddfe53afca1ad7320ee99604305 /lib/tun.h | |
parent | f55a0390485cb1ba071ef19102501594571c74c7 (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.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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); |