Changeset 6c18c97 in rtems
- Timestamp:
- 05/22/12 10:06:20 (11 years ago)
- Branches:
- 4.11, 5, master
- Children:
- 8250503
- Parents:
- eb1951a
- git-author:
- Sebastien Bourdeauducq <sebastien@…> (05/22/12 10:06:20)
- git-committer:
- Sebastian Huber <sebastian.huber@…> (06/06/12 11:30:14)
- Location:
- cpukit/libnetworking
- Files:
-
- 1 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/libnetworking/Makefile.am
reb1951a r6c18c97 5 5 6 6 EXTRA_DIST = README 7 EXTRA_DIST += rtems/bootp.h 7 8 8 9 # poll is not supported -
cpukit/libnetworking/nfs/bootp_subr.c
reb1951a r6c18c97 73 73 #include <inttypes.h> 74 74 75 #include "rtems/bootp.h" 76 75 77 #define BOOTP_MIN_LEN 300 /* Minimum size of bootp udp packet */ 76 78 … … 137 139 #endif 138 140 139 int bootpc_call(struct bootp_packet *call,140 struct bootp_packet *reply,141 struct proc *procp);142 143 int bootpc_fakeup_interface(struct ifreq *ireq,struct socket *so,144 struct proc *procp);145 146 int147 bootpc_adjust_interface(struct ifreq *ireq,struct socket *so,148 struct sockaddr_in *myaddr,149 struct sockaddr_in *netmask,150 struct sockaddr_in *gw,151 struct proc *procp);152 153 141 #ifdef BOOTP_DEBUG 154 142 void … … 270 258 * - copy string from src to dest 271 259 */ 272 staticvoid *bootp_strdup_realloc(char *dst,const char *src)260 void *bootp_strdup_realloc(char *dst,const char *src) 273 261 { 274 262 size_t len; -
cpukit/libnetworking/rtems/rtems_bootp.c
reb1951a r6c18c97 8 8 #include <rtems/rtems_bsdnet.h> 9 9 #include <rtems/rtems_bsdnet_internal.h> 10 11 #include "rtems/bootp.h" 10 12 11 13 /* -
cpukit/libnetworking/rtems/rtems_bsdnet_internal.h
reb1951a r6c18c97 174 174 void ipintr (void); 175 175 void arpintr (void); 176 bool bootpc_init(bool, bool);177 176 int socket (int, int, int); 178 177 int ioctl (int, ioctl_command_t, ...); -
cpukit/libnetworking/rtems/rtems_dhcp.c
reb1951a r6c18c97 100 100 101 101 #include "rtems/dhcp.h" 102 #include "rtems/bootp.h" 102 103 103 104 #ifndef EALEN … … 166 167 unsigned char vend[312]; 167 168 }; 168 169 /*170 * External Declarations for Functions found in171 * rtems/c/src/libnetworking/nfs/172 */173 extern int bootpc_call (struct dhcp_packet *call,174 struct dhcp_packet *reply,175 struct proc *procp);176 extern int bootpc_fakeup_interface (struct ifreq *ireq,177 struct socket *so,178 struct proc *procp);179 extern int bootpc_adjust_interface (struct ifreq *ireq,180 struct socket *so,181 struct sockaddr_in *myaddr,182 struct sockaddr_in *netmask,183 struct sockaddr_in *gw,184 struct proc *procp);185 extern void *bootp_strdup_realloc (char *dst,186 const char *src);187 169 188 170 /* … … 756 738 * Send the Request. 757 739 */ 758 error = bootpc_call ( &call,&dhcp_req, procp);740 error = bootpc_call ((struct bootp_packet *)&call, (struct bootp_packet *)&dhcp_req, procp); 759 741 if (error) { 760 742 rtems_bsdnet_semaphore_release (); … … 961 943 * Send the Discover. 962 944 */ 963 error = bootpc_call ( &call,&reply, procp);945 error = bootpc_call ((struct bootp_packet *)&call, (struct bootp_packet *)&reply, procp); 964 946 if (error) { 965 947 printf ("BOOTP call failed -- %s\n", strerror(error)); … … 990 972 dhcp_request_req (&call, &reply, sdl, true); 991 973 992 error = bootpc_call ( &call,&reply, procp);974 error = bootpc_call ((struct bootp_packet *)&call, (struct bootp_packet *)&reply, procp); 993 975 if (error) { 994 976 printf ("BOOTP call failed -- %s\n", strerror(error));
Note: See TracChangeset
for help on using the changeset viewer.