[Olsr-users] how to install olsrd secure plugin

Victor (spam-protected)
Fri Jan 11 06:33:47 CET 2008


I don't have a hex dump but heres a byte dump :P


0                   1                   2                   3
       0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |         Packet Length         |    Packet Sequence Number     |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |  Message Type |     Vtime     |         Message Size          |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                      Originator Address                       |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |  Time To Live |   Hop Count   |    Message Sequence Number    |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                                                               |
      :                            MESSAGE                            :
      |                                                               |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |  Message Type |     Vtime     |         Message Size          |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                      Originator Address                       |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |  Time To Live |   Hop Count   |    Message Sequence Number    |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                                                               |
      :                            MESSAGE                            :
      |                                                               |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 */


0 56 198 226  >> Packet header (56 bytes)
201 106 0 16  >> 201 = ETXHELLO & 16=Message Size
104 3 69 1  >> IP address of node as 104.3.69.1
1 0 184 100 
0 0 70 3  >> Message
10 0 0 36  >> Start of type 10 packet (36 bytes)
104 3 69 1  >> Originator address
1 0 184 101 >> TTL, hopcount, message sequence no
1 2 0 0 >> Scheme, Algorithms, Reserverd (2bytes)
56 109 69 208 >> Time Stamp


Everything from here on should be the  signature but I
Thought that the signature was 160 bits ie 20 bytes. That is from the solsr
paper on the olsr.org website so it could be old etc
	
60 91 172 115  
18 56 250 59 
14 44 52 161 
130 163 133 101


Hmm so things look right, I think...now gotta get two nodes to connect and
work...Will try that over the next few days.


Thanx


-----Original Message-----
From: Henning Rogge [mailto:(spam-protected)] 
Sent: Wednesday, January 09, 2008 6:14 PM
To: (spam-protected)
Cc: Victor
Subject: Re: [Olsr-users] how to install olsrd secure plugin

Am Donnerstag 10 Januar 2008 06:35:58 schrieb Victor:
> Hi Henning, Fabio
>
> Yeh this is the contents of my conf file in kamikazi
....

looks fine at first look

> Infact on some further investigation of the kamikaze version I realised
> that the nodes were sending out packets OLSR packets of type 10 (Ie hello
> is 1, TC is 2 etc)? Is that it?
The olsr-secure plugin use four new messages:
type 10: (must be last message of an olsr package)
  encrypted signature and timestamp of a package
type 11:
  authentification, step 1
type 12:
  authentification, step 2
type 13:
  authentification, step 3

> But the thing was that the message size was  
> only 36 bytes long and if you subtract the 12 byte olsr message header,
the
> packet is too small to the be signature message which is 28 bytes.
36 bytes sounds really to short.

4 bytes for package header
12 bytes for message header of signature
24 bytes for the flags, timestamp and the signature itself
( I think the time_t is a 4 byte value)

but why should olsrd try to send out an empty package ?
do you have a hexdump of the package ?

Henning





More information about the Olsr-users mailing list