<html>

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"Lucida Sans Unicode";
        panose-1:2 11 6 2 3 5 4 2 2 4;}
@font-face
        {font-family:SimSun;
        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:"Lucida Sans Unicode";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {font-family:"Lucida Sans Unicode";
        color:navy;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
 /* 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=3 color=navy face="Lucida Sans Unicode"><span
lang=EN-US style='font-size:12.0pt;color:navy'>Hi all</span></font></p>

<p class=MsoNormal><font size=3 color=navy face="Lucida Sans Unicode"><span
lang=EN-US style='font-size:12.0pt;color:navy'>I’ve just met a problem which
seems as a big endian and little endian one.</span></font></p>

<p class=MsoNormal><font size=3 color=navy face="Lucida Sans Unicode"><span
lang=EN-US style='font-size:12.0pt;color:navy'>When I send a DHCPDISCOVER to
server, and I capture this packet using ‘ethereal’, I see in
ethereal that the field ’xid’ is ‘A9EF68AC’; the ‘secs’
is 0a00.</span></font></p>

<p class=MsoNormal><font size=3 color=navy face="Lucida Sans Unicode"><span
lang=EN-US style='font-size:12.0pt;color:navy'>However, I print with gdb the
option of this packet and find that the ’xid’ is ‘2892558249’
(dec) = ‘AC68EFA9’ (hex); the ‘secs’ is 10 (dec) = 0a (hex).</span></font></p>

<p class=MsoNormal><font size=3 color=navy face="Lucida Sans Unicode"><span
lang=EN-US style='font-size:12.0pt;color:navy'> </span></font></p>

<p class=MsoNormal><font size=3 color=navy face="Lucida Sans Unicode"><span
lang=EN-US style='font-size:12.0pt;color:navy'>I’ve modified the related source
codes in ‘Ultrix.h’ where ‘BYTE_ORDER’ is set to ‘LITTLE_ENDIAN’
and changed it to ‘BIG_ENDIAN’. Unfortunately, the problem still
happens.</span></font></p>

<p class=MsoNormal><font size=3 color=navy face="Lucida Sans Unicode"><span
lang=EN-US style='font-size:12.0pt;color:navy'>Can anybody help me with it?</span></font></p>

<p class=MsoNormal><font size=3 color=navy face="Lucida Sans Unicode"><span
lang=EN-US style='font-size:12.0pt;color:navy'>Thanks a lot!</span></font></p>

<p class=MsoNormal><font size=3 color=navy face="Lucida Sans Unicode"><span
lang=EN-US style='font-size:12.0pt;color:navy'> </span></font></p>

<p class=MsoNormal><font size=2 color=navy face="Lucida Sans Unicode"><span
lang=EN-US style='font-size:10.5pt;color:navy'>Best Regards!</span></font></p>

<p class=MsoNormal><b><font size=2 color=navy face="Lucida Sans Unicode"><span
lang=EN-US style='font-size:10.0pt;color:navy;font-weight:bold'>DA MING@CHINA</span></font></b></p>

<p class=MsoNormal><font color=navy face=宋体><span lang=EN-US
style='font-family:SimSun;color:navy'> </span></font></p>

</div>

</body>

</html>