Changeset View
Changeset View
Standalone View
Standalone View
libexec/tftpd/tftp-utils.c
Show First 20 Lines • Show All 198 Lines • ▼ Show 20 Lines | |||||
int debug = DEBUG_NONE; | int debug = DEBUG_NONE; | ||||
struct debugs debugs[] = { | struct debugs debugs[] = { | ||||
{ DEBUG_PACKETS, "packet", "Packet debugging" }, | { DEBUG_PACKETS, "packet", "Packet debugging" }, | ||||
{ DEBUG_SIMPLE, "simple", "Simple debugging" }, | { DEBUG_SIMPLE, "simple", "Simple debugging" }, | ||||
{ DEBUG_OPTIONS, "options", "Options debugging" }, | { DEBUG_OPTIONS, "options", "Options debugging" }, | ||||
{ DEBUG_ACCESS, "access", "TCPd access debugging" }, | { DEBUG_ACCESS, "access", "TCPd access debugging" }, | ||||
{ DEBUG_NONE, NULL, "No debugging" }, | { DEBUG_NONE, NULL, "No debugging" }, | ||||
}; | }; | ||||
int packetdroppercentage = 0; | unsigned int packetdroppercentage = 0; | ||||
int | int | ||||
debug_find(char *s) | debug_find(char *s) | ||||
{ | { | ||||
int i = 0; | int i = 0; | ||||
while (debugs[i].name != NULL) { | while (debugs[i].name != NULL) { | ||||
if (strcasecmp(debugs[i].name, s) == 0) | if (strcasecmp(debugs[i].name, s) == 0) | ||||
▲ Show 20 Lines • Show All 113 Lines • Show Last 20 Lines |