ISC DHCP  4.4.3
A reference DHCPv4 and DHCPv6 implementation
ctrace.h
Go to the documentation of this file.
1 /* trace.h
2 
3  Definitions for dhcp tracing facility... */
4 
5 /*
6  * Copyright (C) 2004-2022 Internet Systems Consortium, Inc. ("ISC")
7  * Copyright (c) 2001-2003 by Internet Software Consortium
8  *
9  * This Source Code Form is subject to the terms of the Mozilla Public
10  * License, v. 2.0. If a copy of the MPL was not distributed with this
11  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
12  *
13  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES
14  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
15  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR
16  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
17  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
18  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
19  * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
20  *
21  * Internet Systems Consortium, Inc.
22  * PO Box 360
23  * Newmarket, NH 03857 USA
24  * <info@isc.org>
25  * https://www.isc.org/
26  *
27  */
28 
29 typedef struct {
30  struct in_addr primary_address;
31  u_int32_t index;
32  struct hardware hw_address;
33  char name [IFNAMSIZ];
35 
36 typedef struct {
37  u_int32_t index;
38  struct iaddr from;
39  u_int16_t from_port;
40  struct hardware hfrom;
41  u_int8_t havehfrom;
43 
44 typedef struct {
45  u_int32_t index;
46  struct iaddr from;
47  struct iaddr to;
48  u_int16_t to_port;
49  struct hardware hto;
50  u_int8_t havehto;
52 
54 void trace_interface_input (trace_type_t *, unsigned, char *);
57  struct dhcp_packet *, unsigned, unsigned int,
58  struct iaddr, struct hardware *);
59 void trace_inpacket_input (trace_type_t *, unsigned, char *);
61 void trace_outpacket_input (trace_type_t *, unsigned, char *);
64  struct packet *, struct dhcp_packet *, size_t,
65  struct in_addr,
66  struct sockaddr_in *, struct hardware *);
67 void trace_icmp_input_input (trace_type_t *, unsigned, char *);
69 void trace_icmp_output_input (trace_type_t *, unsigned, char *);
71 void trace_seed_stash (trace_type_t *, unsigned);
72 void trace_seed_input (trace_type_t *, unsigned, char *);
void trace_interface_input(trace_type_t *, unsigned, char *)
void trace_seed_input(trace_type_t *, unsigned, char *)
void trace_icmp_input_input(trace_type_t *, unsigned, char *)
void trace_interface_register(trace_type_t *, struct interface_info *)
void trace_icmp_input_stop(trace_type_t *)
void trace_outpacket_input(trace_type_t *, unsigned, char *)
void trace_seed_stop(trace_type_t *)
void trace_icmp_output_stop(trace_type_t *)
void trace_inpacket_input(trace_type_t *, unsigned, char *)
void trace_interface_stop(trace_type_t *)
ssize_t trace_packet_send(struct interface_info *, struct packet *, struct dhcp_packet *, size_t, struct in_addr, struct sockaddr_in *, struct hardware *)
void trace_inpacket_stash(struct interface_info *, struct dhcp_packet *, unsigned, unsigned int, struct iaddr, struct hardware *)
void trace_outpacket_stop(trace_type_t *)
void trace_seed_stash(trace_type_t *, unsigned)
void trace_inpacket_stop(trace_type_t *)
void trace_icmp_output_input(trace_type_t *, unsigned, char *)
Definition: inet.h:31
Definition: dhcpd.h:405
u_int16_t from_port
Definition: ctrace.h:39
u_int8_t havehfrom
Definition: ctrace.h:41
u_int8_t havehto
Definition: ctrace.h:50