diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2012-06-06 14:06:48 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2012-06-06 14:06:48 +0200 |
commit | 87194f93b1b79346da5b074ee66be40ef962139a (patch) | |
tree | 09277304c432025ec48edd0b95923a9e3a5b7130 /cpukit/libnetworking/rtems/bootp.h | |
parent | Merge branch 'upstream' (diff) | |
parent | librpc: PR2066: Fix for short enums (diff) | |
download | rtems-87194f93b1b79346da5b074ee66be40ef962139a.tar.bz2 |
Merge branch 'upstream'
Diffstat (limited to 'cpukit/libnetworking/rtems/bootp.h')
-rw-r--r-- | cpukit/libnetworking/rtems/bootp.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/cpukit/libnetworking/rtems/bootp.h b/cpukit/libnetworking/rtems/bootp.h new file mode 100644 index 0000000000..d8eeb76f8f --- /dev/null +++ b/cpukit/libnetworking/rtems/bootp.h @@ -0,0 +1,41 @@ +/* Subroutines from cpukit/libnetworking/nfs/bootp_subr.c */ + +#if !defined (__RTEMS_BOOTP_H__) +#define __RTEMS_BOOTP_H__ + +#include <stdbool.h> + +#if __cplusplus +extern "C" +{ +#endif + +struct bootp_packet; +struct proc; +struct ifreq; +struct socket; +struct sockaddr_in; + +bool bootpc_init(bool, bool); + +int bootpc_call( + struct bootp_packet *call, + struct bootp_packet *reply, + struct proc *procp); +int bootpc_fakeup_interface(struct ifreq *ireq, + struct socket *so, + struct proc *procp); +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); + +void *bootp_strdup_realloc(char *dst, const char *src); + +#if __cplusplus +} +#endif + +#endif |