summaryrefslogtreecommitdiff
path: root/pcap.h
diff options
context:
space:
mode:
authorguy <guy>2004-03-23 19:18:04 +0000
committerguy <guy>2004-03-23 19:18:04 +0000
commit2d2890dd3774c9b1f90828f41d06e4998191d2f7 (patch)
treeff0fffc64592d13d9a4a364b9fb2ca051f28d686 /pcap.h
parent3380fa10dbcb28d2c58ba852f1539ef67f3bbcca (diff)
downloadlibpcap-2d2890dd3774c9b1f90828f41d06e4998191d2f7.tar.gz
Add support for sending packets; includes contributions from Mark
Pizzolato <List-tcpdump-workers@subscriptions.pizzolato.net>.
Diffstat (limited to 'pcap.h')
-rw-r--r--pcap.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/pcap.h b/pcap.h
index b2cc62f3..55bca95d 100644
--- a/pcap.h
+++ b/pcap.h
@@ -31,7 +31,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * @(#) $Header: /tcpdump/master/libpcap/pcap.h,v 1.49 2004-01-27 09:44:14 risso Exp $ (LBL)
+ * @(#) $Header: /tcpdump/master/libpcap/pcap.h,v 1.50 2004-03-23 19:18:07 guy Exp $ (LBL)
*/
#ifndef lib_pcap_h
@@ -184,6 +184,8 @@ int pcap_setfilter(pcap_t *, struct bpf_program *);
int pcap_getnonblock(pcap_t *, char *);
int pcap_setnonblock(pcap_t *, int, char *);
void pcap_perror(pcap_t *, char *);
+int pcap_inject(pcap_t *, const void *, size_t);
+int pcap_sendpacket(pcap_t *, const u_char *, int);
char *pcap_strerror(int);
char *pcap_geterr(pcap_t *);
int pcap_compile(pcap_t *, struct bpf_program *, char *, int,
@@ -230,7 +232,6 @@ void bpf_dump(struct bpf_program *, int);
int pcap_setbuff(pcap_t *p, int dim);
int pcap_setmode(pcap_t *p, int mode);
-int pcap_sendpacket(pcap_t *p, u_char *buf, int size);
int pcap_setmintocopy(pcap_t *p, int size);
#ifdef WPCAP