<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:'times new roman', 'new york', times, serif;font-size:12pt"><div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">As I do network development at home I can sometimes have several nodes on at the same time, and typically they can all see each other.  I don't know if that condition is required to reproduce the problem, but it is the environment in which I found it.  When 8 or more nodes are on, olsrd is frequently killed by the kernel on every node.  I am also using the watchdog plugin and a process which keeps an eye on it, so olsrd is restarted when this happens and I did not notice it for a while.</font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif"><br></font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times,
 serif">In olsrd_secure.c there are 12 instances of this line:</font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif"><br></font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">uint8_t checksum_cache[512 + KEYLENGTH];</font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif"><br></font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">I found that in add_signature() the "[ENC]Adding signature for packet size %d" line would sometimes show a packet size larger than 512 bytes.  In fact I have seen them as large as 800 bytes.  I didn't know what a suitable size for the checksum_cache should be, but everywhere I changed the 512 to 1024 and have not seen the problem since.</font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times,
 serif"><br></font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">For reference I am using olsrd 0.6.0 with these plugins: arprefresh, dot_draw, dyn_gw, httpinfo, nameservice, secure, txtinfo, and watchdog.  This is on a wrt54g running openwrt kamikaze 7.09.</font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif"><br></font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">So, will the maximum packet size keep getting larger as more "universally visible" nodes come on line?  Will they ever exceed 1024 bytes?</font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif"><br></font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">Or is there perhaps some other problem causing the packets to be larger than an actual intended limit of 512
 bytes?</font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif"><br></font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">Sorry I didn't catch this in time for 0.6.1, I didn't know it was coming...</font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif"><br></font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">Thanks,</font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">DR</font></div><div style="color: black; font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><br></div></div><div style="position: fixed; color: black; font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "></div>


</div><br>

      </body></html>