return (length);
}
-#ifndef UNIT_TEST
-
#ifdef DHCPv6
+#ifndef UNIT_TEST
/*
* Parse a downstream argument: [address%]interface[#index].
*/
if (if_id.data != NULL)
data_string_forget(&if_id, MDL);
}
+#endif /* UNIT_TEST */
/*
* Called by the dispatch packet handler with a decoded packet.
*/
void
dhcpv6(struct packet *packet) {
+#ifndef UNIT_TEST
struct stream_list *dp;
/* Try all relay-replies downwards. */
log_info("Can't process packet from interface '%s'.",
packet->interface->name);
+#endif /* UNIT_TEST */
}
-#endif
+#endif /* DHCPv6 */
/* Stub routines needed for linking with DHCP libraries. */
void
interface_snorf(tmp, (INTERFACE_REQUESTED | flags));
interface_dereference(&tmp, MDL);
}
-#endif /* UNIT_TEST */
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);
-}