return NULL;
}
+bool
+config_get_op_log_enabled(void)
+{
+ return true;
+}
+
+char const *
+config_get_op_log_prefix(void)
+{
+ return NULL;
+}
+
+bool
+config_get_op_log_color_output(void)
+{
+ return false;
+}
+
+enum filename_format
+config_get_op_log_filename_format(void)
+{
+ return FNF_NAME;
+}
+
uint8_t
-config_get_log_level(void)
+config_get_op_log_level(void)
{
return 3; /* LOG_ERR */
}
enum log_output
-config_get_log_output(void)
+config_get_op_log_output(void)
{
return CONSOLE;
}
+uint32_t
+config_get_op_log_facility(void)
+{
+ return (3<<3); /* LOG_DAEMON */
+}
+
+bool
+config_get_val_log_enabled(void)
+{
+ return true;
+}
+
+char const *
+config_get_val_log_prefix(void)
+{
+ return "VALIDATION";
+}
+
+bool
+config_get_val_log_color_output(void)
+{
+ return false;
+}
+
+enum filename_format
+config_get_val_log_filename_format(void)
+{
+ return FNF_NAME;
+}
+
+uint8_t
+config_get_val_log_level(void)
+{
+ return 3; /* LOG_ERR */
+}
+
+enum log_output
+config_get_val_log_output(void)
+{
+ return CONSOLE;
+}
+
+uint32_t
+config_get_val_log_facility(void)
+{
+ return (3<<3); /* LOG_DAEMON */
+}
+
unsigned int
config_get_asn1_decode_max_stack(void)
{
int
send_cache_reset_pdu(int fd, uint8_t version)
{
- pr_info(" Server sent Cache Reset.");
+ pr_op_info(" Server sent Cache Reset.");
ck_assert_int_eq(pop_expected_pdu(), PDU_TYPE_CACHE_RESET);
return 0;
}
int
send_cache_response_pdu(int fd, uint8_t version)
{
- pr_info(" Server sent Cache Response.");
+ pr_op_info(" Server sent Cache Response.");
ck_assert_int_eq(pop_expected_pdu(), PDU_TYPE_CACHE_RESPONSE);
return 0;
}
* we'll just check `M + N` contiguous Prefix PDUs.
*/
uint8_t pdu_type = pop_expected_pdu();
- pr_info(" Server sent Prefix PDU.");
+ pr_op_info(" Server sent Prefix PDU.");
ck_assert_msg(pdu_type == PDU_TYPE_IPV4_PREFIX
|| pdu_type == PDU_TYPE_IPV6_PREFIX,
"Server's PDU type is %d, not one of the IP Prefixes.", pdu_type);
* we'll just check `M + N` contiguous Prefix PDUs.
*/
uint8_t pdu_type = pop_expected_pdu();
- pr_info(" Server sent Router Key PDU.");
+ pr_op_info(" Server sent Router Key PDU.");
ck_assert_msg(pdu_type == PDU_TYPE_ROUTER_KEY,
"Server's PDU type is %d, not Router Key type.", pdu_type);
return 0;
int
send_end_of_data_pdu(int fd, uint8_t version, serial_t end_serial)
{
- pr_info(" Server sent End of Data.");
+ pr_op_info(" Server sent End of Data.");
ck_assert_int_eq(pop_expected_pdu(), PDU_TYPE_END_OF_DATA);
return 0;
}
send_error_report_pdu(int fd, uint8_t version, uint16_t code,
struct rtr_request const *request, char *message)
{
- pr_info(" Server sent Error Report %u: '%s'", code, message);
+ pr_op_info(" Server sent Error Report %u: '%s'", code, message);
ck_assert_int_eq(pop_expected_pdu(), PDU_TYPE_ERROR_REPORT);
return 0;
}
struct rtr_request request;
struct reset_query_pdu client_pdu;
- pr_info("-- Start or Restart --");
+ pr_op_info("-- Start or Restart --");
/* Prepare DB */
init_db_full();
struct rtr_request request;
struct serial_query_pdu client_pdu;
- pr_info("-- Typical Exchange --");
+ pr_op_info("-- Typical Exchange --");
/* Prepare DB */
init_db_full();
struct rtr_request request;
struct serial_query_pdu serial_query;
- pr_info("-- No Incremental Update Available --");
+ pr_op_info("-- No Incremental Update Available --");
/* Prepare DB */
init_db_full();
struct serial_query_pdu serial_query;
struct reset_query_pdu reset_query;
- pr_info("-- Cache Has No Data Available --");
+ pr_op_info("-- Cache Has No Data Available --");
/* Prepare DB */
ck_assert_int_eq(0, vrps_init());
struct rtr_request request;
struct serial_query_pdu client_pdu;
- pr_info("-- Bad Session ID --");
+ pr_op_info("-- Bad Session ID --");
/* Prepare DB */
init_db_full();
unsigned char buf[BUF_SIZE];
int fd;
- pr_info("-- Bad Length --");
+ pr_op_info("-- Bad Length --");
/* Prepare DB */
init_db_full();