<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=gb2312">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="chmetcnv" downloadurl=""/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:ËÎÌå;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"\@ËÎÌå";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        text-align:justify;
        text-justify:inter-ideograph;
        font-size:10.5pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;}
/* Page Definitions */
@page Section1
        {size:595.3pt 841.9pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;
        layout-grid:15.6pt;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang=ZH-CN link=blue vlink=purple style='text-justify-trim:punctuation'>
<div class=Section1 style='layout-grid:15.6pt'>
<p class=MsoNormal><font size=1 face=Arial><span lang=EN-US style='font-size:
9.0pt;font-family:Arial'>Dear Mr. Miller,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face=Arial><span lang=EN-US style='font-size:
9.0pt;font-family:Arial'> When I
ran flowd<st1:chmetcnv TCSC="0" NumberType="1" Negative="True" HasSpace="True"
SourceValue=".9" UnitName="in" w:st="on">-0.9 in</st1:chmetcnv> my Sparc64 box,
I found that when a v9 template arrives, the same DEBUG info will show:<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face=Arial><span lang=EN-US style='font-size:
9.0pt;font-family:Arial'> ¡°<b><span
style='font-weight:bold'>short netflow v.9 flowset template 0x00000011/0x00000104
88 bytes from *.*.*.*¡±,</span></b> so I can¡¯t receive data flowsets<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face=Arial><span lang=EN-US style='font-size:
9.0pt;font-family:Arial'> It is
abnormal because I can receive netflow v9 data in my 32-bits box by flowd-0.9. Through
debugging, I think the 883th line in flowd.c maybe incorrect since ¡°tmplr¡± is a
pointer or address. <o:p></o:p></span></font></p>
<p class=MsoNormal style='text-indent:21.0pt'><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;font-family:Arial'>So<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-left:21.0pt;text-indent:21.0pt'><font size=1
face=Arial><span lang=EN-US style='font-size:9.0pt;font-family:Arial'>sizeof(tmplr)=
<st1:chmetcnv TCSC="0" NumberType="1" Negative="False" HasSpace="True"
SourceValue="4" UnitName="in" w:st="on">4 in</st1:chmetcnv> 32-bits box;<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-left:21.0pt;text-indent:21.0pt'><font size=1
face=Arial><span lang=EN-US style='font-size:9.0pt;font-family:Arial'>
=<st1:chmetcnv TCSC="0" NumberType="1" Negative="False" HasSpace="True"
SourceValue="8" UnitName="in" w:st="on">8 in</st1:chmetcnv> 64-bits box;<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-left:21.0pt;text-indent:21.0pt'><font size=1
face=Arial><span lang=EN-US style='font-size:9.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='margin-left:21.0pt;text-indent:21.0pt'><font size=1
face=Arial><span lang=EN-US style='font-size:9.0pt;font-family:Arial'>When I rewrite
it as sizeof(*tmplr), it work normally both in 32-bits and 64-bits box.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face=Arial><span lang=EN-US style='font-size:
9.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=1 face=Arial><span lang=EN-US style='font-size:
9.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=1 face=Arial><span lang=EN-US style='font-size:
9.0pt;font-family:Arial'>
879
tmplr = (struct NF9_TEMPLATE_FLOWSET_RECORD *)<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face=Arial><span lang=EN-US style='font-size:
9.0pt;font-family:Arial'>
880
(pkt + offset);<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face=Arial><span lang=EN-US style='font-size:
9.0pt;font-family:Arial'>
881
recs[i].type = ntohs(tmplr->type);<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face=Arial><span lang=EN-US style='font-size:
9.0pt;font-family:Arial'>
882
recs[i].len = ntohs(tmplr->length);<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face=Arial><span lang=EN-US style='font-size:
9.0pt;font-family:Arial'> <b><span style='font-weight:bold'>883
offset += sizeof(tmplr);<o:p></o:p></span></b></span></font></p>
<p class=MsoNormal><font size=1 face=Arial><span lang=EN-US style='font-size:
9.0pt;font-family:Arial'> 884 #ifdef DEBUG_NF9<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face=Arial><span lang=EN-US style='font-size:
9.0pt;font-family:Arial'>
885
logit(LOG_DEBUG, " record %d: type %d len %d",<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 face=Arial><span lang=EN-US style='font-size:
9.0pt;font-family:Arial'>
886
i, recs[i].type, recs[i].len);<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-indent:18.0pt'><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;font-family:Arial'>887 #endif<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-indent:18.0pt'><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='text-indent:18.0pt'><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='text-indent:18.0pt'><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;font-family:Arial'> Best
wishes<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-indent:18.0pt'><font size=1 face=Arial><span
lang=EN-US style='font-size:9.0pt;font-family:Arial'> Jinxue
Zhang<o:p></o:p></span></font></p>
</div>
</body>
</html>