51 while( opointer < olength )
53 switch( dhcpm->
options[opointer] ){
101 opointer += dhcpm->
options[opointer] + 1;
181 fprintf(
stdout,
"parse_dhcp_options: END option found! [end]!\n");
201 if( (!dhcpm) || (!dhcpo) )
205 switch( dhcpo->
type ){
335 sprintf(
name,
"%u.%u.%u.%u", (dhcpl.
ip & 0xFF), ((dhcpl.
ip>>8) & 0xFF), ((dhcpl.
ip>>16)&0xFF), (dhcpl.
ip>>24));
385 their_addr.
sin_addr.s_addr = 0xFFFFFFFF;
397 printf(
"sent %d bytes to %s\n", numbytes,
int strcmp(const char *String1, const char *String2)
char * strcpy(char *DstString, const char *SrcString)
char * strncpy(char *DstString, const char *SrcString, ACPI_SIZE Count)
INT WSAAPI sendto(IN SOCKET s, IN CONST CHAR FAR *buf, IN INT len, IN INT flags, IN CONST struct sockaddr *to, IN INT tolen)
PHOSTENT WSAAPI gethostbyname(IN const char FAR *name)
GLsizei const GLvoid * pointer
_CRTIMP void __cdecl perror(_In_opt_z_ const char *_ErrMsg)
_Check_return_opt_ _CRTIMP int __cdecl fprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const char *_Format,...)
int find_lease(DHCPLEASE *, u32b, u8b *)
int confirm_lease(DHCPLEASE *, u32b)
int display_dhcp_packet(DHCPMESSAGE *dhcpm, DHCPOPTIONS *dhcpo)
int parse_dhcp_options(DHCPMESSAGE *dhcpm, DHCPOPTIONS *dhcpo)
int process_dhcp_packet(DHCPMESSAGE *dhcpm, DHCPOPTIONS *dhcpo)
int write_packet(DHCPMESSAGE *dhcpm, char *name)
#define sprintf(buf, format,...)
INT WSAAPI setsockopt(IN SOCKET s, IN INT level, IN INT optname, IN CONST CHAR FAR *optval, IN INT optlen)
SOCKET WSAAPI socket(IN INT af, IN INT type, IN INT protocol)