[Olsr-users] OLSR one hop neighbor

Henning Rogge (spam-protected)
Mon Nov 30 09:05:56 CET 2009


On Mon November 30 2009 08:41:52 Sohel Rahman wrote:
> Dear All:
> 
> I want to create a olsr plugin which will capture the packet of One-Hop
>  neighbors only. Is there any way to extract information about one hop
>  neighbor? Can anyone help me?
If you want to capture olsr PACKETs from your one-hop neighbors just use 
tcpdump. Packets are one traveling one hop.

For capturing only 1-hop MESSAGES, you could install another message listener 
in OLSR as a plugin and check every incoming message if it's originator-IP 
belongs to a one-hop neighbor (checking against the neighbor set would be the 
easiest way I think).

You can use olsr_parser_add_function() (see src/parser.c) to add your callback 
for a specific message type (use PROMISCUOUS as message type to get them all).

Henning Rogge

-- 
Diplom-Informatiker Henning Rogge , Fraunhofer-Institut für
Kommunikation, Informationsverarbeitung und Ergonomie FKIE
Kommunikationssysteme (KOM)
Neuenahrer Straße 20, 53343 Wachtberg, Germany
Telefon +49 228 9435-263,   Fax +49 228 9435 685
mailto:(spam-protected) http://www.fkie.fraunhofer.de
GPG: E1C6 0914 490B 3909 D944 F80D 4487 C67C 55EC CFE0
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.olsr.org/pipermail/olsr-users/attachments/20091130/22901b50/attachment.sig>


More information about the Olsr-users mailing list