ISC DHCP  4.3.3
A reference DHCPv4 and DHCPv6 implementation
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
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,2009,2014 by Internet Systems Consortium, Inc. ("ISC")
7  * Copyright (c) 2001-2003 by Internet Software Consortium
8  *
9  * Permission to use, copy, modify, and distribute this software for any
10  * purpose with or without fee is hereby granted, provided that the above
11  * copyright notice and this permission notice appear in all copies.
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  * 950 Charter Street
23  * Redwood City, CA 94063
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 *);
63 ssize_t trace_packet_send (struct interface_info *,
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_icmp_output_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_icmp_input_input(trace_type_t *, unsigned, char *)
u_int16_t from_port
Definition: ctrace.h:39
void trace_icmp_output_stop(trace_type_t *)
void trace_outpacket_stop(trace_type_t *)
void trace_inpacket_stop(trace_type_t *)
void trace_seed_stop(trace_type_t *)
u_int8_t havehfrom
Definition: ctrace.h:41
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_input(trace_type_t *, unsigned, char *)
Definition: dhcpd.h:405
u_int16_t to_port
Definition: ctrace.h:48
u_int8_t havehto
Definition: ctrace.h:50
void trace_seed_stash(trace_type_t *, unsigned)
Definition: inet.h:31
u_int32_t index
Definition: ctrace.h:45
void trace_interface_input(trace_type_t *, unsigned, char *)
u_int32_t index
Definition: ctrace.h:37
void trace_inpacket_stash(struct interface_info *, struct dhcp_packet *, unsigned, unsigned int, struct iaddr, struct hardware *)
void trace_seed_input(trace_type_t *, unsigned, char *)
void trace_interface_stop(trace_type_t *)