[Olsr-dev] Number of Packets

Airton Ishimori (spam-protected)
Mon Apr 5 14:01:01 CEST 2010


Sorry, you`re right. I confuse, the RFC 3626 not define that the maximum
number of olsr message is 4 per olsr packet, but NS yes.


On Thu, Apr 1, 2010 at 11:46, Henning Rogge <(spam-protected)> wrote:

> 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 --------------
An HTML attachment was scrubbed...
URL: <http://lists.olsr.org/pipermail/olsr-dev/attachments/20100405/1fa2d0ab/attachment.html>


More information about the Olsr-dev mailing list