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