hipfw to Android for LSI support

Bug #1313729 reported by Pupu Toivonen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
HIPL
Fix Committed
High
Pupu Toivonen

Bug Description

The current status of the Android port is that hipd works and provides HIP connectivity through HITs. hipfw does not work yet.

Conversion of packet headers when communicating through LSIs is performed by hipfw. Its absence means that connections through LSIs do not work.

There is a branch for this:
https://code.launchpad.net/~hipl-core/hipl/android-hipfw

The main obstacle seems to be libnetfilter-queue, which can be compiled on Android (http://www.roman10.net/how-to-build-and-use-libnetfilter_queue-for-android/), but is not guaranteed to be available on devices.

When writing this, hipfw seems to compile. Dynamic linking seems to fail when starting on Android device.

Revision history for this message
Pupu Toivonen (scolphoy) wrote :

What is currently in the repository branch should be able to compile hipfw for Android as well.

One must do everything that the current installation instructions for the android port say, and additionally:

Push hipfw to device:
adb push hipfw/hipfw /system/xbin/
adb push hipfw/hipfw.conf /system/etc/

Push libnetfilter_queue and dependencies to device:
adb push ${ANDROID_SYSROOT}/usr/lib/libnetfilter_queue.so.1 /system/lib/
adb push ${ANDROID_SYSROOT}/usr/lib/libnfnetlink.so.0 /system/lib/
adb push ${ANDROID_SYSROOT}/usr/lib/libmnl.so.0 /system/lib/

Do not just push everything from that folder to the device; I did, and it broke everything.

hipfw -klF starts, and after starting hipd and adding a mapping, ping to the LSI did initiate a base exchange. I still need to fix my phone and get ESP working to confirm this, but it's looking good so far.

Revision history for this message
Miika Komu (miika-iki) wrote :

Nice, please remember to reflect this information also to the installation documentation.

Pupu Toivonen (scolphoy)
Changed in hipl:
status: New → Fix Committed
Revision history for this message
Pupu Toivonen (scolphoy) wrote :

fix is currently in android-hipfw branch.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.