includes/ctrace.h

Go to the documentation of this file.
00001 /* trace.h
00002 
00003    Definitions for dhcp tracing facility... */
00004 
00005 /*
00006  * Copyright (c) 2004,2009,2014 by Internet Systems Consortium, Inc. ("ISC")
00007  * Copyright (c) 2001-2003 by Internet Software Consortium
00008  *
00009  * Permission to use, copy, modify, and distribute this software for any
00010  * purpose with or without fee is hereby granted, provided that the above
00011  * copyright notice and this permission notice appear in all copies.
00012  *
00013  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES
00014  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
00015  * MERCHANTABILITY AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR
00016  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
00017  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
00018  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
00019  * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
00020  *
00021  *   Internet Systems Consortium, Inc.
00022  *   950 Charter Street
00023  *   Redwood City, CA 94063
00024  *   <info@isc.org>
00025  *   https://www.isc.org/
00026  *
00027  */
00028 
00029 typedef struct {
00030         struct in_addr primary_address;
00031         u_int32_t index;
00032         struct hardware hw_address;
00033         char name [IFNAMSIZ];
00034 } trace_interface_packet_t;
00035 
00036 typedef struct {
00037         u_int32_t index;
00038         struct iaddr from;
00039         u_int16_t from_port;
00040         struct hardware hfrom;
00041         u_int8_t havehfrom;
00042 } trace_inpacket_t;
00043 
00044 typedef struct {
00045         u_int32_t index;
00046         struct iaddr from;
00047         struct iaddr to;
00048         u_int16_t to_port;
00049         struct hardware hto;
00050         u_int8_t havehto;
00051 } trace_outpacket_t;
00052 
00053 void trace_interface_register (trace_type_t *, struct interface_info *);
00054 void trace_interface_input (trace_type_t *, unsigned, char *);
00055 void trace_interface_stop (trace_type_t *);
00056 void trace_inpacket_stash (struct interface_info *,
00057                            struct dhcp_packet *, unsigned, unsigned int,
00058                            struct iaddr, struct hardware *);
00059 void trace_inpacket_input (trace_type_t *, unsigned, char *);
00060 void trace_inpacket_stop (trace_type_t *);
00061 void trace_outpacket_input (trace_type_t *, unsigned, char *);
00062 void trace_outpacket_stop (trace_type_t *);
00063 ssize_t trace_packet_send (struct interface_info *,
00064                            struct packet *, struct dhcp_packet *, size_t, 
00065                            struct in_addr,
00066                            struct sockaddr_in *, struct hardware *);
00067 void trace_icmp_input_input (trace_type_t *, unsigned, char *);
00068 void trace_icmp_input_stop (trace_type_t *);
00069 void trace_icmp_output_input (trace_type_t *, unsigned, char *);
00070 void trace_icmp_output_stop (trace_type_t *);
00071 void trace_seed_stash (trace_type_t *, unsigned);
00072 void trace_seed_input (trace_type_t *, unsigned, char *);
00073 void trace_seed_stop (trace_type_t *);

Generated on 5 Apr 2014 for ISC DHCP by  doxygen 1.6.1