Add an optional kernel-interface parameter to install IPs with a custom prefix

This commit is contained in:
Martin Willi
2012-11-29 10:22:51 +01:00
parent fdd94fc846
commit 50bd755871
8 changed files with 31 additions and 23 deletions
@@ -92,7 +92,8 @@ METHOD(kernel_net_t, get_source_addr, host_t*,
}
METHOD(kernel_net_t, add_ip, status_t,
private_kernel_android_net_t *this, host_t *virtual_ip, host_t *iface_ip)
private_kernel_android_net_t *this, host_t *virtual_ip, int prefix,
host_t *iface_ip)
{
/* we get the IP from the IKE_SA once the CHILD_SA is established */
return SUCCESS;