Deleted Added
full compact
pcap.h (17684) pcap.h (38151)
1/*
2 * Copyright (c) 1993, 1994, 1995, 1996
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 29 unchanged lines hidden (view full) ---

38
39#include <sys/types.h>
40#include <sys/time.h>
41
42#include <net/bpf.h>
43
44#include <stdio.h>
45
1/*
2 * Copyright (c) 1993, 1994, 1995, 1996
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 29 unchanged lines hidden (view full) ---

38
39#include <sys/types.h>
40#include <sys/time.h>
41
42#include <net/bpf.h>
43
44#include <stdio.h>
45
46#ifdef __cplusplus
47extern "C" {
48#endif
49
50
46#define PCAP_VERSION_MAJOR 2
47#define PCAP_VERSION_MINOR 4
48
49#define PCAP_ERRBUF_SIZE 256
50
51/*
52 * Compatibility for systems that have a bpf.h that
53 * predates the bpf typedefs for 64-bit support.

--- 75 unchanged lines hidden (view full) ---

129
130pcap_dumper_t *pcap_dump_open(pcap_t *, char *);
131void pcap_dump_close(pcap_dumper_t *);
132void pcap_dump(u_char *, const struct pcap_pkthdr *, const u_char *);
133
134/* XXX this guy lives in the bpf tree */
135u_int bpf_filter(struct bpf_insn *, u_char *, u_int, u_int);
136char *bpf_image(struct bpf_insn *, int);
51#define PCAP_VERSION_MAJOR 2
52#define PCAP_VERSION_MINOR 4
53
54#define PCAP_ERRBUF_SIZE 256
55
56/*
57 * Compatibility for systems that have a bpf.h that
58 * predates the bpf typedefs for 64-bit support.

--- 75 unchanged lines hidden (view full) ---

134
135pcap_dumper_t *pcap_dump_open(pcap_t *, char *);
136void pcap_dump_close(pcap_dumper_t *);
137void pcap_dump(u_char *, const struct pcap_pkthdr *, const u_char *);
138
139/* XXX this guy lives in the bpf tree */
140u_int bpf_filter(struct bpf_insn *, u_char *, u_int, u_int);
141char *bpf_image(struct bpf_insn *, int);
142
143#ifdef __cplusplus
144}
137#endif
145#endif
146
147
148#endif