summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Markwalder <tmark@isc.org>2020-01-17 11:46:58 -0500
committerThomas Markwalder <tmark@isc.org>2020-01-17 11:46:58 -0500
commit2d00b7b15d464e6f702f9f8a27eac803dc38a17b (patch)
treef25c4b3b98f6b4c9dbcce713a583e088695b0899
parent1d9e7c832a001c4e43185f7cafd8378c004ecbfa (diff)
downloadisc-dhcp-80_v1_1_esv-add-missing-symbols-to-relay-unittests.tar.gz
[#80] Adding function definitions to relay_unittests.c80_v1_1_esv-add-missing-symbols-to-relay-unittests
-rw-r--r--relay/tests/relay_unittests.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/relay/tests/relay_unittests.c b/relay/tests/relay_unittests.c
index dd30bf2f..2297050a 100644
--- a/relay/tests/relay_unittests.c
+++ b/relay/tests/relay_unittests.c
@@ -406,3 +406,29 @@ ATF_TP_ADD_TCS(tp) {
return (atf_no_error());
}
+
+/* Below are dummy function definitions to satisfy "required" symbols */
+isc_result_t find_class (struct class **c, const char *s,
+ const char *file, int line) {
+ return 0;
+}
+
+int check_collection (struct packet *packet, struct lease *lease,
+ struct collection *collection) {
+ return 0;
+}
+
+void classify (struct packet *packet, struct class *class){}
+void bootp(struct packet *packet){}
+void dhcp(struct packet *packet){}
+void dhcpv6(struct packet *packet){}
+
+int parse_allow_deny (struct option_cache **oc, struct parse *cfile,
+ int flag) {
+ return 0;
+}
+
+isc_result_t dhcp_set_control_state (control_object_state_t oldstate,
+ control_object_state_t newstate) {
+ return (ISC_R_SUCCESS);
+}