dsniff  2.4b2
About: A collection of tools for network auditing
  Fossies Dox: dsniff-2.4b2.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

tcp_raw.h
Go to the documentation of this file.
1 /*
2  * tcp_raw.h
3  *
4  * Raw (best-effort, half-duplex) TCP reassembly. Haaacccck.
5  *
6  * Copyright (c) 2000 Dug Song <dugsong@monkey.org>
7  *
8  * $Id: tcp_raw.h,v 1.5 2001/03/15 08:33:06 dugsong Exp $
9  */
10 #ifndef TCP_RAW_H
11 #define TCP_RAW_H
12 
13 typedef void (*tcp_raw_callback_t)(in_addr_t src, in_addr_t dst,
14  u_short sport, u_short dport,
15  u_char *buf, int len);
16 
17 struct iovec *tcp_raw_input(struct libnet_ipv4_hdr *ip,
18  struct libnet_tcp_hdr *tcp, int len);
19 
20 void tcp_raw_timeout(int timeout, tcp_raw_callback_t callback);
21 
22 #endif /* TCP_RAW_H */
tcp_raw_callback_t
void(* tcp_raw_callback_t)(in_addr_t src, in_addr_t dst, u_short sport, u_short dport, u_char *buf, int len)
Definition: tcp_raw.h:13
buf
static u_char buf[BUFSIZ]
Definition: filenamesnarf.c:29
tcp_raw_timeout
void tcp_raw_timeout(int timeout, tcp_raw_callback_t callback)
Definition: tcp_raw.c:216
in_addr_t
#define in_addr_t
Definition: config.h:32
tcp_raw_input
struct iovec * tcp_raw_input(struct libnet_ipv4_hdr *ip, struct libnet_tcp_hdr *tcp, int len)
Definition: tcp_raw.c:122