<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-2022-jp">
<META content="MSHTML 6.00.2800.1170" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=4>
<DIV><FONT face=Courier>Hi, frds,<BR> I've encountered new problem in
sample tcps.c</FONT></DIV><FONT size=4></FONT>
<DIV><FONT face=Courier>In the following log by Ethereal:<BR> Received MASK
:4.255.255.255<BR> Received GATE :4.192.168.1</FONT></DIV>
<DIV><FONT face=Courier>I think they should </FONT><FONT
face=Courier>be 255.255.255.255 and 192.168.1.255.<BR>Is there one byte offset
wrong?<BR>Is the function NutDhcpParse only for Little endian?</FONT></DIV>
<DIV><FONT face=Courier size=4></FONT> </DIV>
<DIV><FONT face=Courier size=4>Btw, my purpose is trying to make ethernut a
platform </FONT></DIV>
<DIV><FONT face=Courier size=4>independent embed OS and TCP/IP stack as best as
it can,</FONT></DIV>
<DIV><FONT face=Courier size=4>Does anyone have interest about it? Although I
know </FONT></DIV>
<DIV><FONT face=Courier><FONT size=4>there are </FONT><FONT size=4>already such
RTOS/STACK easy for porting, it </FONT></FONT></DIV>
<DIV><FONT face=Courier size=4>is still meaningful to study ethernut, the
clear </FONT></DIV>
<DIV><FONT face=Courier><FONT size=4>concept and </FONT><FONT size=4>BSD style
Embedded OS and to get some</FONT></FONT></DIV>
<DIV><FONT face=Courier><FONT size=4>experience meanwhile.</FONT><FONT size=4>
</FONT></FONT></DIV>
<DIV><FONT face=Courier size=4>Regards,</FONT></DIV>
<DIV><FONT face=Courier size=4>Tyou</FONT></DIV>
<DIV><FONT face=Courier>**** Ip Packet Input ***<BR> IP protocol type :
UDP<BR> +-----------IP HEADER-----------+<BR> | 4 | 5
| 0 |
332 | (v, hl, tos,
len)<BR> +-------------------------------+<BR> | 192
| 168 | 1 | 3 |
(src)<BR> +-------------------------------+<BR> | 255
| 255 | 255 | 255 |
(dest)<BR> +-------------------------------+<BR>NutDhcpClient Thread dump
bootp:: length n = 304<BR> Packet opcode type: 1=request, 2=reply :
2<BR> Hardware address type: 1=Ethernet :
1<BR> Hardware address length: 6 for Ethernet: 6<BR> Gateway
hops
: 0<BR> Transaction
ID
: 0140042E<BR> Seconds since boot
began
: 0<BR> RFC1532 broadcast,
etc.
: 4294934528<BR> Client IP
address
: 0.0.0.0<BR> 'Your' IP
address
: 192.168.1.31<BR> Server IP
address
: 192.168.1.3<BR> Gateway IP
address
: 0.0.0.0<BR> Server host name
64
:<BR> Boot file name
128
:</FONT></DIV>
<DIV><FONT face=Courier></FONT> </DIV>
<DIV><FONT face=Courier>DHCP dhcpDone -- got an offer</FONT></DIV>
<DIV><FONT face=Courier></FONT> </DIV>
<DIV><FONT face=Courier> Received IP
:192.168.1.31<BR> Received MASK :4.255.255.255<BR> Received GATE
:4.192.168.1</FONT></DIV>
<DIV><FONT face=Courier></FONT> </DIV>
<DIV><FONT face=Courier>DHCP dhcpDone
!!!</FONT></DIV></FONT></DIV></BODY></HTML>