Lines 738-745
int evaluate_dns_expression (result, packet, lease, client_state, in_options,
Link Here
|
738 |
(*result) -> r_data = |
738 |
(*result) -> r_data = |
739 |
(*result) -> r_data_ephem; |
739 |
(*result) -> r_data_ephem; |
740 |
/*%Audit% 16 bytes max. %2004.06.17,Safe%*/ |
740 |
/*%Audit% 16 bytes max. %2004.06.17,Safe%*/ |
741 |
sprintf ((char *)(*result) -> r_data_ephem, |
741 |
snprintf ((char *)(*result) -> r_data_ephem, |
742 |
"%u.%u.%u.%u", |
742 |
16, "%u.%u.%u.%u", |
743 |
data.data [0] & 0xff, |
743 |
data.data [0] & 0xff, |
744 |
data.data [1] & 0xff, |
744 |
data.data [1] & 0xff, |
745 |
data.data [2] & 0xff, |
745 |
data.data [2] & 0xff, |
Lines 3428-3434
int write_expression (file, expr, col, indent, firstp)
Link Here
|
3428 |
col = write_expression (file, expr -> data.extract_int, |
3428 |
col = write_expression (file, expr -> data.extract_int, |
3429 |
col, indent, 1); |
3429 |
col, indent, 1); |
3430 |
col = token_print_indent (file, col, scol, "", " ", ","); |
3430 |
col = token_print_indent (file, col, scol, "", " ", ","); |
3431 |
sprintf (obuf, "%d", width); |
3431 |
snprintf (obuf, sizeof(obuf), "%d", width); |
3432 |
col = token_print_indent (file, col, scol, " ", "", obuf); |
3432 |
col = token_print_indent (file, col, scol, " ", "", obuf); |
3433 |
col = token_print_indent (file, col, indent, "", "", ")"); |
3433 |
col = token_print_indent (file, col, indent, "", "", ")"); |
3434 |
break; |
3434 |
break; |
Lines 3451-3457
int write_expression (file, expr, col, indent, firstp)
Link Here
|
3451 |
col = write_expression (file, expr -> data.extract_int, |
3451 |
col = write_expression (file, expr -> data.extract_int, |
3452 |
col, indent, 1); |
3452 |
col, indent, 1); |
3453 |
col = token_print_indent (file, col, scol, "", " ", ","); |
3453 |
col = token_print_indent (file, col, scol, "", " ", ","); |
3454 |
sprintf (obuf, "%d", width); |
3454 |
snprintf (obuf, sizeof(obuf), "%d", width); |
3455 |
col = token_print_indent (file, col, scol, " ", "", obuf); |
3455 |
col = token_print_indent (file, col, scol, " ", "", obuf); |
3456 |
col = token_print_indent (file, col, indent, "", "", |
3456 |
col = token_print_indent (file, col, indent, "", "", |
3457 |
")"); |
3457 |
")"); |
Lines 3466-3472
int write_expression (file, expr, col, indent, firstp)
Link Here
|
3466 |
goto encode_int; |
3466 |
goto encode_int; |
3467 |
|
3467 |
|
3468 |
case expr_const_int: |
3468 |
case expr_const_int: |
3469 |
sprintf (obuf, "%lu", expr -> data.const_int); |
3469 |
snprintf (obuf, sizeof(obuf), "%lu", expr -> data.const_int); |
3470 |
col = token_print_indent (file, col, indent, "", "", obuf); |
3470 |
col = token_print_indent (file, col, indent, "", "", obuf); |
3471 |
break; |
3471 |
break; |
3472 |
|
3472 |
|
Lines 3615-3625
int write_expression (file, expr, col, indent, firstp)
Link Here
|
3615 |
col = token_print_indent (file, col, indent, " ", "", |
3615 |
col = token_print_indent (file, col, indent, " ", "", |
3616 |
"("); |
3616 |
"("); |
3617 |
scol = col; |
3617 |
scol = col; |
3618 |
sprintf (obuf, "%d", expr -> data.ns_add.rrclass); |
3618 |
snprintf (obuf, sizeof(obuf), "%d", expr -> data.ns_add.rrclass); |
3619 |
col = token_print_indent (file, col, scol, "", "", obuf); |
3619 |
col = token_print_indent (file, col, scol, "", "", obuf); |
3620 |
col = token_print_indent (file, col, scol, "", " ", |
3620 |
col = token_print_indent (file, col, scol, "", " ", |
3621 |
","); |
3621 |
","); |
3622 |
sprintf (obuf, "%d", expr -> data.ns_add.rrtype); |
3622 |
snprintf (obuf, sizeof(obuf), "%d", expr -> data.ns_add.rrtype); |
3623 |
col = token_print_indent (file, col, scol, "", "", obuf); |
3623 |
col = token_print_indent (file, col, scol, "", "", obuf); |
3624 |
col = token_print_indent (file, col, scol, "", " ", |
3624 |
col = token_print_indent (file, col, scol, "", " ", |
3625 |
","); |
3625 |
","); |
Lines 3644-3654
int write_expression (file, expr, col, indent, firstp)
Link Here
|
3644 |
"("); |
3644 |
"("); |
3645 |
finish_ns_small: |
3645 |
finish_ns_small: |
3646 |
scol = col; |
3646 |
scol = col; |
3647 |
sprintf (obuf, "%d", expr -> data.ns_add.rrclass); |
3647 |
snprintf (obuf, sizeof(obuf), "%d", expr -> data.ns_add.rrclass); |
3648 |
col = token_print_indent (file, col, scol, "", "", obuf); |
3648 |
col = token_print_indent (file, col, scol, "", "", obuf); |
3649 |
col = token_print_indent (file, col, scol, "", " ", |
3649 |
col = token_print_indent (file, col, scol, "", " ", |
3650 |
","); |
3650 |
","); |
3651 |
sprintf (obuf, "%d", expr -> data.ns_add.rrtype); |
3651 |
snprintf (obuf, sizeof(obuf), "%d", expr -> data.ns_add.rrtype); |
3652 |
col = token_print_indent (file, col, scol, "", "", obuf); |
3652 |
col = token_print_indent (file, col, scol, "", "", obuf); |
3653 |
col = token_print_indent (file, col, scol, "", " ", |
3653 |
col = token_print_indent (file, col, scol, "", " ", |
3654 |
","); |
3654 |
","); |