#include <headers.h>
#include <datatypes.h>
#include <options.h>
#include <display.h>
#include <leases.h>
#include <parser.h>
Go to the source code of this file.
◆ MYPORT
Definition at line 8 of file main.c.
◆ main()
Definition at line 12 of file main.c.
13{
14#ifdef __MINGW32__
16 int nCode;
17#endif
18 int sockfd;
21 int addr_len, numbytes;
24
25#ifdef __MINGW32__
27 {
29 return 0;
30 }
31#endif
32
36 }
37
39
43 memset(&(my_addr.sin_zero),
'\0', 8);
44
49 }
50
53 (
struct sockaddr *)&their_addr, &addr_len)) != -1) {
54
57 continue;
59 continue;
61 continue;
62 }
63
65
66#ifdef __MINGW32__
68#endif
69
70 return 0;
71
72}
INT WSAAPI recvfrom(IN SOCKET s, OUT CHAR FAR *buf, IN INT len, IN INT flags, OUT LPSOCKADDR from, IN OUT INT FAR *fromlen)
INT WINAPI WSAStartup(IN WORD wVersionRequested, OUT LPWSADATA lpWSAData)
_CRTIMP void __cdecl perror(_In_opt_z_ const char *_ErrMsg)
int display_dhcp_packet(DHCPMESSAGE *dhcpm, DHCPOPTIONS *dhcpo)
int parse_dhcp_options(DHCPMESSAGE *, DHCPOPTIONS *)
int process_dhcp_packet(DHCPMESSAGE *, DHCPOPTIONS *)
INT WSAAPI bind(IN SOCKET s, IN CONST struct sockaddr *name, IN INT namelen)
SOCKET WSAAPI socket(IN INT af, IN INT type, IN INT protocol)
int PASCAL FAR WSACleanup(void)
◆ list