diff options
author | Sebastien Bourdeauducq <sebastien@milkymist.org> | 2012-05-22 12:06:20 +0200 |
---|---|---|
committer | Gedare Bloom <gedare@rtems.org> | 2018-01-11 12:13:21 -0500 |
commit | a078d6f0ab707dd43aac94b029ebf23ab5e92f6a (patch) | |
tree | 374fa929e2cabcf4569e51dfb871a72c87fe9902 /cpukit/libnetworking/rtems/rtems_dhcp.c | |
parent | dosfs: Fix for no space left on device condition (diff) | |
download | rtems-a078d6f0ab707dd43aac94b029ebf23ab5e92f6a.tar.bz2 |
network/bootp: PR2031: Add and use header file
Diffstat (limited to '')
-rw-r--r-- | cpukit/libnetworking/rtems/rtems_dhcp.c | 26 |
1 files changed, 4 insertions, 22 deletions
diff --git a/cpukit/libnetworking/rtems/rtems_dhcp.c b/cpukit/libnetworking/rtems/rtems_dhcp.c index f71d83e570..d941ee87d8 100644 --- a/cpukit/libnetworking/rtems/rtems_dhcp.c +++ b/cpukit/libnetworking/rtems/rtems_dhcp.c @@ -99,6 +99,7 @@ #include <rtems/mkrootfs.h> #include "rtems/dhcp.h" +#include "rtems/bootp.h" #ifndef EALEN #define EALEN 6 @@ -167,25 +168,6 @@ struct dhcp_packet }; /* - * External Declarations for Functions found in - * rtems/c/src/libnetworking/nfs/ - */ -extern int bootpc_call (struct dhcp_packet *call, - struct dhcp_packet *reply, - struct proc *procp); -extern int bootpc_fakeup_interface (struct ifreq *ireq, - struct socket *so, - struct proc *procp); -extern int bootpc_adjust_interface (struct ifreq *ireq, - struct socket *so, - struct sockaddr_in *myaddr, - struct sockaddr_in *netmask, - struct sockaddr_in *gw, - struct proc *procp); -extern void *bootp_strdup_realloc (char *dst, - const char *src); - -/* * Variables */ static int dhcp_option_overload = 0; @@ -757,7 +739,7 @@ dhcp_task (rtems_task_argument _sdl) /* * Send the Request. */ - error = bootpc_call (&call, &dhcp_req, procp); + error = bootpc_call ((struct bootp_packet *)&call, (struct bootp_packet *)&dhcp_req, procp); if (error) { rtems_bsdnet_semaphore_release (); printf ("DHCP call failed -- error %d", error); @@ -963,7 +945,7 @@ dhcp_init (int update_files) /* * Send the Discover. */ - error = bootpc_call (&call, &reply, procp); + error = bootpc_call ((struct bootp_packet *)&call, (struct bootp_packet *)&reply, procp); if (error) { printf ("BOOTP call failed -- %s\n", strerror(error)); soclose (so); @@ -992,7 +974,7 @@ dhcp_init (int update_files) */ dhcp_request_req (&call, &reply, sdl, true); - error = bootpc_call (&call, &reply, procp); + error = bootpc_call ((struct bootp_packet *)&call, (struct bootp_packet *)&reply, procp); if (error) { printf ("BOOTP call failed -- %s\n", strerror(error)); soclose (so); |