Table of Contents
You need to execute first "make install" in the top directory if you have not done it before. Otherwise you have to configure library paths using LD_LIBRARY_PATH environment variable.
There are several methods of using HIP in applications. We have categorized the methods to "easy" and "advanced" here.
1. Use the opportunistic mode as described in Chapter 20, Using Opportunistic mode. This method works with both IPv4 and IPv6 applications. It does not require HIT configuration at all.
a. Running a single IPv6-enabled application using HIP: hipconf run opp <EXECUTABLE>
b. Enabling HIP for all applications in bash shell (add to bashrc if you want to set this permanently): export LD_PRELOAD=libopphip.so:libinet6.so:libhiptool.so
2. Override the resolver library dynamically:
a. Running a single application using HIP: hipconf run normal <EXECUTABLE>
b. Enabling HIP for all applications in bash shell (add to bashrc if you want to set this permanently): export LD_PRELOAD=libinet6.so:libhiptool.so
3. Use HIP agent GUI to run the application. You can execute applications with GUI and edit their library-path as you like. Also you should be able to see list of processes you have executed from GUI.
4. You can also use HITs directly in the application. Insert the HIT of the peer host to /etc/hosts, instead of /etc/hip/hosts. Then, add the HIT-to-IP mapping with "hipconf add map HIT IP". Then you can do e.g. "ping6 PEER_HIT". You can set this also to /etc/hip/hipd_config.