xref: /netbsd-src/external/mpl/dhcp/dist/tests/t_api_dhcp.c (revision d16b7486a53dcb8072b60ec6fcb4373a2d0c27b7)
1 /*	$NetBSD: t_api_dhcp.c,v 1.2 2018/04/07 22:37:30 christos Exp $	*/
2 
3 /*
4  * We have to have a number of symbols defined in order to build a
5  * DHCP program.
6  */
7 
8 #include <config.h>
9 #include "dhcpd.h"
10 
11 void
12 bootp(struct packet *packet) {
13 }
14 
15 void
16 dhcp(struct packet *packet) {
17 }
18 
19 void
20 dhcpv6(struct packet *packet) {
21 }
22 
23 isc_result_t
24 dhcpv4o6_handler(omapi_object_t *h) {
25 	return ISC_R_NOTIMPLEMENTED;
26 }
27 
28 isc_result_t
29 dhcp_set_control_state(control_object_state_t old, control_object_state_t new) {
30 	return ISC_R_NOTIMPLEMENTED;
31 }
32 
33 int
34 check_collection(struct packet *p, struct lease *l, struct collection *c) {
35 	return 0;
36 }
37 
38 void
39 classify (struct packet *p, struct class *c) {
40 }
41 
42 isc_result_t
43 find_class(struct class **class, const char *c1, const char *c2, int i) {
44         return ISC_R_NOTFOUND;
45 }
46 
47 int
48 parse_allow_deny(struct option_cache **oc, struct parse *p, int i) {
49         return 0;
50 }
51 
52