Changeset a078d6f0 in rtems
- Timestamp:
- 05/22/12 10:06:20 (11 years ago)
- Branches:
- 4.10
- Children:
- 17fa7d6
- Parents:
- 89dd2ec4
- git-author:
- Sebastien Bourdeauducq <sebastien@…> (05/22/12 10:06:20)
- git-committer:
- Gedare Bloom <gedare@…> (01/11/18 17:13:21)
- Location:
- cpukit/libnetworking
- Files:
-
- 1 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/libnetworking/Makefile.am
r89dd2ec4 ra078d6f0 9 9 10 10 EXTRA_DIST = README 11 EXTRA_DIST += rtems/bootp.h 11 12 12 13 # poll is not supported -
cpukit/libnetworking/nfs/bootp_subr.c
r89dd2ec4 ra078d6f0 75 75 #include <inttypes.h> 76 76 77 #include "rtems/bootp.h" 78 77 79 #define BOOTP_MIN_LEN 300 /* Minimum size of bootp udp packet */ 78 80 … … 138 140 void bootpboot_p_iflist(void); 139 141 #endif 140 141 int bootpc_call(struct bootp_packet *call,142 struct bootp_packet *reply,143 struct proc *procp);144 145 int bootpc_fakeup_interface(struct ifreq *ireq,struct socket *so,146 struct proc *procp);147 148 int149 bootpc_adjust_interface(struct ifreq *ireq,struct socket *so,150 struct sockaddr_in *myaddr,151 struct sockaddr_in *netmask,152 struct sockaddr_in *gw,153 struct proc *procp);154 142 155 143 #ifdef BOOTP_DEBUG -
cpukit/libnetworking/rtems/rtems_bootp.c
r89dd2ec4 ra078d6f0 12 12 #include <rtems/rtems_bsdnet.h> 13 13 #include <rtems/rtems_bsdnet_internal.h> 14 15 #include "rtems/bootp.h" 14 16 15 17 /* -
cpukit/libnetworking/rtems/rtems_bsdnet_internal.h
r89dd2ec4 ra078d6f0 180 180 void ipintr (void); 181 181 void arpintr (void); 182 bool bootpc_init(bool, bool);183 182 int socket (int, int, int); 184 183 int ioctl (int, ioctl_command_t, ...); -
cpukit/libnetworking/rtems/rtems_dhcp.c
r89dd2ec4 ra078d6f0 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 /* … … 758 740 * Send the Request. 759 741 */ 760 error = bootpc_call ( &call,&dhcp_req, procp);742 error = bootpc_call ((struct bootp_packet *)&call, (struct bootp_packet *)&dhcp_req, procp); 761 743 if (error) { 762 744 rtems_bsdnet_semaphore_release (); … … 964 946 * Send the Discover. 965 947 */ 966 error = bootpc_call ( &call,&reply, procp);948 error = bootpc_call ((struct bootp_packet *)&call, (struct bootp_packet *)&reply, procp); 967 949 if (error) { 968 950 printf ("BOOTP call failed -- %s\n", strerror(error)); … … 993 975 dhcp_request_req (&call, &reply, sdl, true); 994 976 995 error = bootpc_call ( &call,&reply, procp);977 error = bootpc_call ((struct bootp_packet *)&call, (struct bootp_packet *)&reply, procp); 996 978 if (error) { 997 979 printf ("BOOTP call failed -- %s\n", strerror(error));
Note: See TracChangeset
for help on using the changeset viewer.