Changeset View
Changeset View
Standalone View
Standalone View
sbin/dhclient/options.c
Show First 20 Lines • Show All 622 Lines • ▼ Show 20 Lines | for (i = 0; i < priority_len; i++) { | ||||
} | } | ||||
} | } | ||||
return (bufix); | return (bufix); | ||||
} | } | ||||
/* | /* | ||||
* Format the specified option so that a human can easily read it. | * Format the specified option so that a human can easily read it. | ||||
*/ | */ | ||||
char * | const char * | ||||
pretty_print_option(unsigned int code, unsigned char *data, int len, | pretty_print_option(unsigned int code, unsigned char *data, int len, | ||||
int emit_commas, int emit_quotes) | int emit_commas, int emit_quotes) | ||||
{ | { | ||||
static char optbuf[32768]; /* XXX */ | static char optbuf[32768]; /* XXX */ | ||||
int hunksize = 0, numhunk = -1, numelem = 0; | int hunksize = 0, numhunk = -1, numelem = 0; | ||||
char fmtbuf[32], *op = optbuf; | char fmtbuf[32], *op = optbuf; | ||||
int i, j, k, opleft = sizeof(optbuf); | int i, j, k, opleft = sizeof(optbuf); | ||||
unsigned char *dp = data; | unsigned char *dp = data; | ||||
▲ Show 20 Lines • Show All 262 Lines • Show Last 20 Lines |