Project

General

Profile

Bug #275

Android client does not install a virtual IP with the latest code.

Added by Stefan Tomas over 6 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Normal
Category:
android
Target version:
Start date:
03.01.2013
Due date:
Estimated time:
Affected version:
5.0.1
Resolution:
Fixed

Associated revisions

Revision b9cda4f3 (diff)
Added by Tobias Brunner over 6 years ago

android: Implement kernel_net_t.get_interface via JNI

This is now required to properly accept/install a virtual IP address.

Fixes #275.

History

#1 Updated by Stefan Tomas over 6 years ago

Due to changes in ike_sa.c add_virtual_ip(), and all other related functions, get_interface() now must be implemented in the android_net kernel interface. Dummy implementation should be sufficient, for example:

METHOD(kernel_net_t, get_dummy_interface_name, bool,
private_kernel_android_net_t this, host_t ip, char **name) {
*name = strdup("android_vpn");
return TRUE;
}

INIT(this,
.public = {
.interface = {
.get_source_addr = _get_source_addr,
.get_nexthop = (void*)return_null,
.get_interface = (void*)_get_dummy_interface_name,

#2 Updated by Tobias Brunner over 6 years ago

  • Category set to android
  • Status changed from New to Assigned
  • Assignee set to Tobias Brunner
  • Target version set to 5.0.2

#3 Updated by Tobias Brunner over 6 years ago

  • Status changed from Assigned to Resolved
  • Resolution set to Fixed

Fixed with associated commit.

#4 Updated by Tobias Brunner about 6 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF