ISC DHCP 4.4.3-P1
A reference DHCPv4 and DHCPv6 implementation
 
Loading...
Searching...
No Matches
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
29typedef struct {
30 struct in_addr primary_address;
31 u_int32_t index;
33 char name [IFNAMSIZ];
35
36typedef struct {
37 u_int32_t index;
38 struct iaddr from;
39 u_int16_t from_port;
41 u_int8_t havehfrom;
43
44typedef 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
54void trace_interface_input (trace_type_t *, unsigned, char *);
57 struct dhcp_packet *, unsigned, unsigned int,
58 struct iaddr, struct hardware *);
59void trace_inpacket_input (trace_type_t *, unsigned, char *);
61void 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 *);
67void trace_icmp_input_input (trace_type_t *, unsigned, char *);
69void trace_icmp_output_input (trace_type_t *, unsigned, char *);
71void trace_seed_stash (trace_type_t *, unsigned);
72void 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
u_int16_t from_port
Definition ctrace.h:39
struct iaddr from
Definition ctrace.h:38
u_int32_t index
Definition ctrace.h:37
u_int8_t havehfrom
Definition ctrace.h:41
struct hardware hfrom
Definition ctrace.h:40
struct in_addr primary_address
Definition ctrace.h:30
struct hardware hw_address
Definition ctrace.h:32
char name[IFNAMSIZ]
Definition ctrace.h:33
u_int8_t havehto
Definition ctrace.h:50
struct hardware hto
Definition ctrace.h:49
struct iaddr from
Definition ctrace.h:46
u_int32_t index
Definition ctrace.h:45
u_int16_t to_port
Definition ctrace.h:48
struct iaddr to
Definition ctrace.h:47
struct trace_type trace_type_t
Definition trace.h:63