<div dir="ltr">Dear Sir,<div><br></div><div>I am sorry. </div><div>At this time, I didn't use BOOTP option. therefore, I used static ethernet IP configuration.</div><div><br></div><div>My ethernet configuration is below;</div>
<div><br></div><div><div>extern int _rtems_smsc9220_driver_attach (struct rtems_bsdnet_ifconfig *config, int attach) ;</div><div><br></div><div>struct rtems_bsdnet_ifconfig lan9220_ifconfig =</div><div>{</div><div><span class="" style="white-space:pre"> </span>"lan0", /* name */</div>
<div><span class="" style="white-space:pre"> </span>_rtems_smsc9220_driver_attach,/* attach funtion */</div><div><span class="" style="white-space:pre"> </span>NULL, /* next interface */</div><div>
#if defined(RTEMS_USE_BOOTP)</div><div><span class="" style="white-space:pre"> </span>NULL,</div><div><span class="" style="white-space:pre"> </span>NULL,</div><div>#else</div><div><span class="" style="white-space:pre"> </span>"192.168.137.100", /* ip address */</div>
<div><span class="" style="white-space:pre"> </span>"255.255.255.0", /* ip netmask */</div><div>#endif</div><div><span class="" style="white-space:pre"> </span>NULL, /* hardware address */</div>
<div> 0, /* ignore broadcast */</div><div> 0, /* mtu */</div><div> 0, /* rbuf count */</div><div> 0, /* xbuf count */</div>
<div> 0, /* port */</div><div> 0, /* irno */</div><div> 0, /* bpar */</div><div> 0 /* drv ctrl */</div><div>};</div>
<div><br></div><div>struct rtems_bsdnet_config rtems_bsdnet_config = {</div><div> &lan9220_ifconfig, /* Loop back interface only */</div><div>#if defined(RTEMS_USE_BOOTP)</div><div> rtems_bsdnet_do_dhcp, /* do not use bootp */</div>
<div>#else</div><div> NULL,</div><div>#endif</div><div> 20, /* Default network task priority */</div><div> 256*1024, /* Default mbuf capacity */</div><div> 256*1024, /* Default mbuf cluster capacity */</div>
<div>#if defined(RTEMS_USE_BOOTP)</div><div> NULL,</div><div> NULL,</div><div> NULL,</div><div> NULL,</div><div> { NULL },</div><div> /* NTP server(s) */</div><div> { "64.4.10.33", /* <a href="http://time.windows.com">time.windows.com</a> (Microsoft) */</div>
<div> "210.98.16.100" }, /* <a href="http://time.kriss.re.kr">time.kriss.re.kr</a> (KRISS) */</div><div>#else</div><div> "rtems", /* Host name */</div><div> "<a href="http://nodomain.com">nodomain.com</a>", /* Domain name */</div>
<div> "192.168.137.1", /* Gateway */</div><div> "127.0.0.1", /* Log host */</div><div> {"61.41.153.2", /* Name server(s) */</div><div> "1.214.68.2" },</div><div>
/* NTP server(s) */</div><div> { "64.4.10.33", /* <a href="http://time.windows.com">time.windows.com</a> (Microsoft) */</div><div> "210.98.16.100" }, /* <a href="http://time.kriss.re.kr">time.kriss.re.kr</a> (KRISS) */</div>
<div>#endif</div><div> 0, /* sb_efficiency */</div><div> 0, /* udp_tx_buf_size */</div><div> 0, /* udp_rx_buf_size */</div><div> 0, /* tcp_tx_buf_size */</div>
<div> 0 /* tcp_rx_buf_size */</div><div><br></div><div>};</div></div><div><br></div><div>Best Regards,</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-06-16 18:38 GMT+09:00 Thomas Kim <span dir="ltr"><<a href="mailto:thomas73.kim@gmail.com" target="_blank">thomas73.kim@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Dear Sir,<div><br></div><div>I have still a problem for using TFTP test code.</div><div><br></div><div>As I check in rtems_tftp_open_works() function, I guess that BOOTP should be enabled for running TFTP.</div>
<div>At this time, if_address, ip_netmask and hardware_address of struct rtems_bsdnet_ifconfig are NULL.</div><div><br></div><div>I don't know TFTP operation is related with BOOTP.</div><div><br></div><div>Please advise me.</div>
<div><br></div><div>Best Regards,</div><div> </div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-05-15 15:42 GMT+09:00 Thomas Kim <span dir="ltr"><<a href="mailto:thomas73.kim@gmail.com" target="_blank">thomas73.kim@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Dear Sir,<div><br></div><div>I am testing RTEMS FreeBSD networking using network-demos-network-demos-4.10.2.</div>
<div><br></div><div>At this time, testing code about dnstest, http are OK.</div><div><br></div>
<div>When I try to test tftpTest, there is below problem.</div><div><br></div><div>Function flow for TFTP request is below;</div><div> - rtems_tftp_open()</div><div> - rtems_tftp_open_worker()</div><div> - sendto()</div>
<div> - udp_output()</div><div> - ip_output() ==> My problem is here !!!</div><div><br></div><div>Normal case using TCP, if_output() function entry in ip_output is ether_output().</div><div>But, abnormal case using UDP, if_output() function entry is looutout().</div>
<div>It mean that UDP is tring to use loopback interface.</div><div><br></div><div>I don't know the reason about this problem.</div><div><br></div><div>Please could you let me know how to resolve this ?</div><div><br>
</div><div>Best Regards.</div><div><br></div></div>
</blockquote></div><br></div>
</blockquote></div><br></div>