#include <headers.h>
#include <datatypes.h>
#include <display.h>
#include <options.h>
Go to the source code of this file.
◆ display_dhcp_packet()
Definition at line 6 of file display.c.
12 fprintf(
stdout,
"op: %s\t|htype: %s\t|hlen: %u\t|hops: %u\n", (dhcpm->
op == 1)?
"BOOTREQUEST":
"BOOTREPLY", (dhcpm->
htype==1)?
"Ethernet 10Mb":
"unknown", dhcpm->
hlen, dhcpm->
hops);
27 strcpy( mtype,
"DHCPDISCOVER" );
31 strcpy( mtype,
"DHCPREQUEST" );
35 strcpy( mtype,
"DHCPACK" );
39 strcpy( mtype,
"DHCPNAK" );
43 strcpy( mtype,
"DHCPRELEASE" );
47 strcpy( mtype,
"DHCPDECLINE" );
51 strcpy( mtype,
"DHCPOFFER" );
55 strcpy( mtype,
"Unknown Type" );
ACPI_SIZE strlen(const char *String)
_Check_return_opt_ _CRTIMP int __cdecl fprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const char *_Format,...)
char * strcpy(char *DstString, const char *SrcString)
Referenced by main(), and process_dhcp_packet().