[Olsr-dev] Number of Packets

Henning Rogge (spam-protected)
Thu Apr 1 16:46:21 CEST 2010


Am Donnerstag 01 April 2010 16:03:13 schrieb Airton Ishimori:
> 1)
> On the NS-2 (inside the member function OLSR::send_pkt() [in the file
> OLSR.cc]),
> the bellow code lines it is present:
> 
>    // Calculates the number of needed packets
>    int num_pkts = (num_msgs % OLSR_MAX_MSGS == 0) ? num_msgs /
> OLSR_MAX_MSGS
> 
>      (num_msgs / OLSR_MAX_MSGS + 1);
> 
> The code lines above calculate the number of olsr packet is needed to sent
> all messages.
It's just NS2-Code, it has no relevance in the real world.

> The RFC 3626 define that the maximum number of olsr message is 4
> per olsr packet.
I don't think so. Could you state the line where RFC 3626 says so ?

> My question is, inside of the olsrd-0.5.6-r8, has something
> equal or
> equivalent at code lines above? 
No.

> The olsrd calculate the number of packet
> necessary to sent all message?
No.

Henning Rogge

-- 
1) You can't win.
2) You can't break even.
3) You can't leave the game.
— The Laws of Thermodynamics, summarized
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.olsr.org/pipermail/olsr-dev/attachments/20100401/754ce8e5/attachment.sig>


More information about the Olsr-dev mailing list