xref: /dflybsd-src/contrib/tcpdump/print.h (revision 59c07fbdf8168fa08c76c515186d561b5a92690c)
1411677aeSAaron LI /*
2411677aeSAaron LI  * Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 2000
3411677aeSAaron LI  *	The Regents of the University of California.  All rights reserved.
4411677aeSAaron LI  *
5411677aeSAaron LI  * Redistribution and use in source and binary forms, with or without
6411677aeSAaron LI  * modification, are permitted provided that: (1) source code distributions
7411677aeSAaron LI  * retain the above copyright notice and this paragraph in its entirety, (2)
8411677aeSAaron LI  * distributions including binary code include the above copyright notice and
9411677aeSAaron LI  * this paragraph in its entirety in the documentation or other materials
10411677aeSAaron LI  * provided with the distribution, and (3) all advertising materials mentioning
11411677aeSAaron LI  * features or use of this software display the following acknowledgement:
12411677aeSAaron LI  * ``This product includes software developed by the University of California,
13411677aeSAaron LI  * Lawrence Berkeley Laboratory and its contributors.'' Neither the name of
14411677aeSAaron LI  * the University nor the names of its contributors may be used to endorse
15411677aeSAaron LI  * or promote products derived from this software without specific prior
16411677aeSAaron LI  * written permission.
17411677aeSAaron LI  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
18411677aeSAaron LI  * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
19411677aeSAaron LI  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
20411677aeSAaron LI  *
21411677aeSAaron LI  * Support for splitting captures into multiple files with a maximum
22411677aeSAaron LI  * file size:
23411677aeSAaron LI  *
24411677aeSAaron LI  * Copyright (c) 2001
25411677aeSAaron LI  *	Seth Webster <swebster@sst.ll.mit.edu>
26411677aeSAaron LI  */
27411677aeSAaron LI 
28411677aeSAaron LI #ifndef print_h
29411677aeSAaron LI #define print_h
30411677aeSAaron LI 
31*ed775ee7SAntonio Huete Jimenez void	init_print(netdissect_options *ndo, uint32_t localnet, uint32_t mask);
32411677aeSAaron LI 
33411677aeSAaron LI int	has_printer(int type);
34411677aeSAaron LI 
35*ed775ee7SAntonio Huete Jimenez if_printer get_if_printer(int type);
36411677aeSAaron LI 
37411677aeSAaron LI void	pretty_print_packet(netdissect_options *ndo,
38411677aeSAaron LI 	    const struct pcap_pkthdr *h, const u_char *sp,
39411677aeSAaron LI 	    u_int packets_captured);
40411677aeSAaron LI 
41411677aeSAaron LI void	ndo_set_function_pointers(netdissect_options *ndo);
42411677aeSAaron LI 
43411677aeSAaron LI #endif /* print_h */
44