xref: /dflybsd-src/contrib/tcpdump/interface.h (revision 59c07fbdf8168fa08c76c515186d561b5a92690c)
141c99275SPeter Avalos /*
241c99275SPeter Avalos  * Copyright (c) 1988-2002
341c99275SPeter Avalos  *	The Regents of the University of California.  All rights reserved.
441c99275SPeter Avalos  *
541c99275SPeter Avalos  * Redistribution and use in source and binary forms, with or without
641c99275SPeter Avalos  * modification, are permitted provided that: (1) source code distributions
741c99275SPeter Avalos  * retain the above copyright notice and this paragraph in its entirety, (2)
841c99275SPeter Avalos  * distributions including binary code include the above copyright notice and
941c99275SPeter Avalos  * this paragraph in its entirety in the documentation or other materials
1041c99275SPeter Avalos  * provided with the distribution, and (3) all advertising materials mentioning
1141c99275SPeter Avalos  * features or use of this software display the following acknowledgement:
1241c99275SPeter Avalos  * ``This product includes software developed by the University of California,
1341c99275SPeter Avalos  * Lawrence Berkeley Laboratory and its contributors.'' Neither the name of
1441c99275SPeter Avalos  * the University nor the names of its contributors may be used to endorse
1541c99275SPeter Avalos  * or promote products derived from this software without specific prior
1641c99275SPeter Avalos  * written permission.
1741c99275SPeter Avalos  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
1841c99275SPeter Avalos  * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
1941c99275SPeter Avalos  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
2041c99275SPeter Avalos  */
2141c99275SPeter Avalos 
2241c99275SPeter Avalos #ifndef tcpdump_interface_h
2341c99275SPeter Avalos #define tcpdump_interface_h
2441c99275SPeter Avalos 
2541c99275SPeter Avalos #ifdef HAVE_OS_PROTO_H
2641c99275SPeter Avalos #include "os-proto.h"
2741c99275SPeter Avalos #endif
2841c99275SPeter Avalos 
29*ed775ee7SAntonio Huete Jimenez #include "funcattrs.h"
3041c99275SPeter Avalos 
3141c99275SPeter Avalos #include <stdarg.h>
3241c99275SPeter Avalos 
3341c99275SPeter Avalos #if HAVE_STDINT_H
3441c99275SPeter Avalos #include <stdint.h>
3541c99275SPeter Avalos #endif
3641c99275SPeter Avalos 
3741c99275SPeter Avalos #ifndef HAVE_STRLCAT
3841c99275SPeter Avalos extern size_t strlcat(char *, const char *, size_t);
3941c99275SPeter Avalos #endif
4041c99275SPeter Avalos #ifndef HAVE_STRLCPY
4141c99275SPeter Avalos extern size_t strlcpy(char *, const char *, size_t);
4241c99275SPeter Avalos #endif
4341c99275SPeter Avalos 
4441c99275SPeter Avalos #ifndef HAVE_STRDUP
4541c99275SPeter Avalos extern char *strdup(const char *);
4641c99275SPeter Avalos #endif
4741c99275SPeter Avalos 
4841c99275SPeter Avalos #ifndef HAVE_STRSEP
4941c99275SPeter Avalos extern char *strsep(char **, const char *);
5041c99275SPeter Avalos #endif
5141c99275SPeter Avalos 
5241c99275SPeter Avalos #endif
5341c99275SPeter Avalos 
5441c99275SPeter Avalos extern char *program_name;	/* used to generate self-identifying messages */
5541c99275SPeter Avalos 
5641c99275SPeter Avalos #include <pcap.h>
5741c99275SPeter Avalos 
5841c99275SPeter Avalos #ifndef HAVE_BPF_DUMP
5941c99275SPeter Avalos struct bpf_program;
6041c99275SPeter Avalos 
61ea7b4bf5SPeter Avalos extern void bpf_dump(const struct bpf_program *, int);
6241c99275SPeter Avalos 
6341c99275SPeter Avalos #endif
64