aboutsummaryrefslogtreecommitdiffstats
path: root/lib/netdev.h
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2020-04-15 15:09:30 +0200
committerpespin <pespin@sysmocom.de>2020-04-21 14:39:42 +0000
commite2b0961f18c1ba9204013b831797ad94604352ef (patch)
tree61f374d096242c01fdd223287b7bdf0b54788a32 /lib/netdev.h
parentff2ebee03baf92609dc14bb1324cd069bf5c8323 (diff)
sgsnemu: Handle IPv6 SLAAC in tun iface manually
Disable IPv6 automatic SLAAC by linux kernel and handle it manually. This allows us gaining control on local address acquisition and set addresses and routing properly. It will also allow us to run in ping mode without a tun iface. Related: OS#4434 Change-Id: Iae59cf6ffb181357e10b3080a5c751bd454f4a1f
Diffstat (limited to 'lib/netdev.h')
-rw-r--r--lib/netdev.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/netdev.h b/lib/netdev.h
index 5dab27f..1bce814 100644
--- a/lib/netdev.h
+++ b/lib/netdev.h
@@ -67,6 +67,8 @@ extern int netdev_addaddr6(const char *devname, struct in6_addr *addr,
extern int netdev_addroute4(struct in_addr *dst, struct in_addr *gateway, struct in_addr *mask);
extern int netdev_delroute4(struct in_addr *dst, struct in_addr *gateway, struct in_addr *mask);
+extern int netdev_addroute6(struct in6_addr *dst, struct in6_addr *gateway, int prefixlen, const char *gw_iface);
+extern int netdev_delroute6(struct in6_addr *dst, struct in6_addr *gateway, int prefixlen, const char *gw_iface);
extern int netdev_ip_local_get(const char *devname, struct in46_prefix *prefix_list,
size_t prefix_size, int flags);