summaryrefslogtreecommitdiffstats
path: root/cpukit/libnetworking/rtems/bootp.h
blob: d8eeb76f8f4111863dfc28f1b54118aa84c9044e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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