diff packages/net/tcpip/current/src/lib/bootp_support.c @ 115:6ed91473a1cd ecos-sw-2000-08-21

Merge from eCos master repository on 2000-08-21-22:40:54-BST
author jlarmour
date Fri, 25 Aug 2000 17:32:38 +0000
parents 02ea4320376c
children 518f42066aba
line wrap: on
line diff
--- a/packages/net/tcpip/current/src/lib/bootp_support.c
+++ b/packages/net/tcpip/current/src/lib/bootp_support.c
@@ -59,6 +59,10 @@
 
 #include <network.h>
 
+#ifndef CYGPKG_LIBC_STDIO
+#define perror(s) diag_printf(#s ": %s\n", strerror(errno))
+#endif
+
 // This function sets up the interface it the simplest configuration.
 // Just enough to broadcast a BOOTP request and get a response.
 // It returns 'true' if a response was obtained.
@@ -178,7 +182,7 @@ do_bootp(const char *intf, struct bootp 
         perror("SIOCGIFHWADDR");
         return false;
     }
-    bootp_xmit.bp_htype = ifr.ifr_hwaddr.sa_family;
+    bootp_xmit.bp_htype = HTYPE_ETHERNET;
     bootp_xmit.bp_hlen = IFHWADDRLEN;
     bcopy(ifr.ifr_hwaddr.sa_data, &bootp_xmit.bp_chaddr, bootp_xmit.bp_hlen);