diff options
author | Vijay Kumar Banerjee <vijay@rtems.org> | 2021-02-03 19:46:50 -0700 |
---|---|---|
committer | Vijay Kumar Banerjee <vijay@rtems.org> | 2021-02-24 19:01:17 -0700 |
commit | fbc7459c2c3a86a4d94e19463417b759900ff51c (patch) | |
tree | 19d5451b8cee3d0c51a432c23bd598eafe9a53b0 /rtems/bootp.h | |
download | rtems-net-legacy-fbc7459c2c3a86a4d94e19463417b759900ff51c.tar.bz2 |
Initial Commit: Add all files from RTEMS libnetworking directory
Diffstat (limited to 'rtems/bootp.h')
-rw-r--r-- | rtems/bootp.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/rtems/bootp.h b/rtems/bootp.h new file mode 100644 index 0000000..4891430 --- /dev/null +++ b/rtems/bootp.h @@ -0,0 +1,44 @@ +/* Subroutines from cpukit/libnetworking/nfs/bootp_subr.c */ + +#if !defined (__RTEMS_BOOTP_H__) +#define __RTEMS_BOOTP_H__ + +#include <stddef.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, + const void *exp_vend, + size_t exp_vend_len); +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 |