<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to bugs</title><link href="https://sourceforge.net/p/nnfc/bugs/" rel="alternate"/><link href="https://sourceforge.net/p/nnfc/bugs/feed.atom" rel="self"/><id>https://sourceforge.net/p/nnfc/bugs/</id><updated>2005-07-01T10:30:34Z</updated><subtitle>Recent changes to bugs</subtitle><entry><title>Time field wrong in mysql database?</title><link href="https://sourceforge.net/p/nnfc/bugs/2/" rel="alternate"/><published>2005-07-01T10:30:34Z</published><updated>2005-07-01T10:30:34Z</updated><author><name>Marcel Nijenhof</name><uri>https://sourceforge.net/u/marceln/</uri></author><id>https://sourceforge.net5a5ebe7734d835a39bae4299c37377eb367f906d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;We use the time of the router and the mysql pluggin to&lt;br /&gt;
log the&lt;br /&gt;
flows to a mysql database.&lt;/p&gt;
&lt;p&gt;With this setup the timefield for the flows is wrong.&lt;/p&gt;
&lt;p&gt;This seems the same issue as 1225406:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://sourceforge.net/tracker/index.php?func=detail&amp;amp;aid=1225406&amp;amp;group_id=117313&amp;amp;atid=677652"&gt;https://sourceforge.net/tracker/index.php?func=detail&amp;amp;aid=1225406&amp;amp;group_id=117313&amp;amp;atid=677652&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;We are testing a sollution for this problem.&lt;/p&gt;
&lt;p&gt;If this sollution works a patch will follow.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Plugins</title><link href="https://sourceforge.net/p/nnfc/bugs/1/" rel="alternate"/><published>2005-06-22T09:41:14Z</published><updated>2005-06-22T09:41:14Z</updated><author><name>Zhao Jun</name><uri>https://sourceforge.net/u/zhaofine/</uri></author><id>https://sourceforge.nete5c00997729516aa2f45088d2c64f3823192f717</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br /&gt;
Thank you for your open-source nnfc. &lt;br /&gt;
When I am writing my own plugin I found an possible &lt;br /&gt;
error in function insertflow() in file plugin/file/file.c.&lt;br /&gt;
Here if you use the remote router time, we can calculate &lt;br /&gt;
the netflow time by hdr-&amp;gt;secs, hdr-&amp;gt;uptime and flow5-&lt;br /&gt;
&amp;gt;luptime. But the unit of secs is second, while the &lt;br /&gt;
uptime and luptime are millisecond. I am sure that the 3 &lt;br /&gt;
operands could not been added or subtracted together. I &lt;br /&gt;
strongly longs for the confirmation that there is &lt;br /&gt;
something wrong with the calculation of remote router &lt;br /&gt;
time.&lt;br /&gt;
Thank you for you coming reply. &lt;/p&gt;
&lt;p&gt;The possbile bug exists in the following codes:&lt;br /&gt;
/* inserts flow into database */&lt;br /&gt;
void insertflow(uint32_t address, void *flowhdr, void *flow, &lt;br /&gt;
int num)&lt;br /&gt;
{&lt;br /&gt;
......&lt;br /&gt;
if (ltime)&lt;br /&gt;
ttm = time(NULL);&lt;br /&gt;
else&lt;br /&gt;
ttm = htonl(hdr5-&amp;gt;secs) - htonl&lt;br /&gt;
(hdr5-&amp;gt;uptime) &lt;br /&gt;
+ htonl(flow5-&amp;gt;luptime);&lt;br /&gt;
stm = localtime(&amp;amp;ttm);&lt;br /&gt;
......&lt;br /&gt;
}&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>