xref: /freebsd/contrib/tcpdump/print.h (revision ee67461e56828dd1f8de165947ba83f6d9148a87)
13340d773SGleb Smirnoff /*
23340d773SGleb Smirnoff  * Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 2000
33340d773SGleb Smirnoff  *	The Regents of the University of California.  All rights reserved.
43340d773SGleb Smirnoff  *
53340d773SGleb Smirnoff  * Redistribution and use in source and binary forms, with or without
63340d773SGleb Smirnoff  * modification, are permitted provided that: (1) source code distributions
73340d773SGleb Smirnoff  * retain the above copyright notice and this paragraph in its entirety, (2)
83340d773SGleb Smirnoff  * distributions including binary code include the above copyright notice and
93340d773SGleb Smirnoff  * this paragraph in its entirety in the documentation or other materials
103340d773SGleb Smirnoff  * provided with the distribution, and (3) all advertising materials mentioning
113340d773SGleb Smirnoff  * features or use of this software display the following acknowledgement:
123340d773SGleb Smirnoff  * ``This product includes software developed by the University of California,
133340d773SGleb Smirnoff  * Lawrence Berkeley Laboratory and its contributors.'' Neither the name of
143340d773SGleb Smirnoff  * the University nor the names of its contributors may be used to endorse
153340d773SGleb Smirnoff  * or promote products derived from this software without specific prior
163340d773SGleb Smirnoff  * written permission.
173340d773SGleb Smirnoff  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
183340d773SGleb Smirnoff  * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
193340d773SGleb Smirnoff  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
203340d773SGleb Smirnoff  *
213340d773SGleb Smirnoff  * Support for splitting captures into multiple files with a maximum
223340d773SGleb Smirnoff  * file size:
233340d773SGleb Smirnoff  *
243340d773SGleb Smirnoff  * Copyright (c) 2001
253340d773SGleb Smirnoff  *	Seth Webster <swebster@sst.ll.mit.edu>
263340d773SGleb Smirnoff  */
273340d773SGleb Smirnoff 
283340d773SGleb Smirnoff #ifndef print_h
293340d773SGleb Smirnoff #define print_h
303340d773SGleb Smirnoff 
31*ee67461eSJoseph Mingrone void	init_print(netdissect_options *ndo, uint32_t localnet, uint32_t mask);
323340d773SGleb Smirnoff 
333340d773SGleb Smirnoff int	has_printer(int type);
343340d773SGleb Smirnoff 
35*ee67461eSJoseph Mingrone if_printer get_if_printer(int type);
363340d773SGleb Smirnoff 
373340d773SGleb Smirnoff void	pretty_print_packet(netdissect_options *ndo,
383340d773SGleb Smirnoff 	    const struct pcap_pkthdr *h, const u_char *sp,
393340d773SGleb Smirnoff 	    u_int packets_captured);
403340d773SGleb Smirnoff 
413340d773SGleb Smirnoff void	ndo_set_function_pointers(netdissect_options *ndo);
423340d773SGleb Smirnoff 
433340d773SGleb Smirnoff #endif /* print_h */
44