On 01/04/10 06:15, 阮绍臣 wrote: Hi,I guess this email isn't about "profiling" HIP as the topic misleadingly suggests :)
Hi all: Thanks for your help last time. I have got some new questions about hipl: 1. If I don't add map <peer HIT> <peer_locator> in hipd_config,when I execute "ping6 PEER_HIT", there is no response in hipd or ping. If I add the map, and then it's working. But I want to test our own DNS HIT_TO_LOCATOR query.
while it's perfectly ok to add the mapping to hipd_config, I would suggest to have in the /etc/hosts and/or /etc/hip/hosts files. This and other methods are described in the manual:
http://hipl.hiit.fi/hipl/manual/ch04.html#sec_easy_methods If you want to use DNS, you should either: 1. Add the HI record to DNS: http://hipl.hiit.fi/hipl/manual/ch05s02.html2. Run the DNS proxy at the client: http://hipl.hiit.fi/hipl/manual/ch05.html#sec_dns_proxy
3. Use a hostname for the client side application (ping6) rather than HIT.or if you prefer using HITs directly in the application, you can use the free hit-to-ip service as instructed in the manual:
http://hipl.hiit.fi/hipl/manual/ch05s03.htmlNotice that it is possible to contact us if you want to your HI record in our DNS server. If you want your own DNS server (with possible hit-to-ip support), you need install and run e.g. bind.
Perhaps the easiest way to use applications with either hostnames or HITs is to use the DHT for storing and querying:
http://hipl.hiit.fi/hipl/manual/ch05s04.html http://hipl.hiit.fi/hipl/manual/ch05s04.html#id2805835Setting up an own DHT server based on openlookup v2 is more trivial than setting up bind.
2. It's about agent: how could I delete some HITs in the database. I can't delete them in hip manager.
You have probably encountered a bug. The agent is not our primary focus at the moment, perhaps you could offer a bug fix for it?
Samu, do you have any time to look at this?
3. if I modify the prefix of HIT, for example:2001:001a:1234::/28, a:1234 is the domain tag I added. Would it affect hipl's working? Did the change of HIT affect the SA setup? thanks a lot!
You should have a longer prefix than 28 then, right? You need to change also some other things: lib/core/protodefs.h:#define HIP_HIT_PREFIX HIP_HIT_TYPE_MASK_100 lib/core/protodefs.h:#define HIP_HIT_PREFIX_LEN 28 /* bits */ lib/core/protodefs.h:#define HIP_HIT_PREFIX_STR "/28" lib/core/protodefs.h:#define HIP_HIT_TYPE_MASK_100 0x20010010 lib/core/protodefs.h:#define HIP_HIT_TYPE_MASK_CLEAR 0x0000000f lib/core/protodefs.h:#define HIP_HIT_TYPE_MASK_INV 0xfffffff0grep recursively for their use in the source code to see where the changes affect.