network.h (ssldump-0.9b3) | : | network.h (ssldump-1.3) | ||
---|---|---|---|---|
skipping to change at line 47 | skipping to change at line 47 | |||
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY SUCH DAMA GE. | OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY SUCH DAMA GE. | |||
$Id: network.h,v 1.3 2001/09/14 22:29:14 ekr Exp $ | $Id: network.h,v 1.3 2001/09/14 22:29:14 ekr Exp $ | |||
ekr@rtfm.com Tue Dec 29 09:53:50 1998 | ekr@rtfm.com Tue Dec 29 09:53:50 1998 | |||
*/ | */ | |||
#ifndef _network_h | #ifndef _network_h | |||
#define _network_h | #define _network_h | |||
#ifdef HAVE_CONFIG_H | ||||
#include <config.h> | ||||
#endif | ||||
#include <stdlib.h> | #include <stdlib.h> | |||
#include <string.h> | #include <string.h> | |||
#include <r_common.h> | #include <r_common.h> | |||
#include <sys/types.h> | #include <sys/types.h> | |||
#ifndef _WIN32 | #ifndef _WIN32 | |||
#include <sys/socket.h> | #include <sys/socket.h> | |||
#include <netinet/in.h> | #include <netinet/in.h> | |||
#else | #else | |||
#include <winsock2.h> | #include <winsock2.h> | |||
skipping to change at line 71 | skipping to change at line 75 | |||
#include <r_time.h> | #include <r_time.h> | |||
#include <r_data.h> | #include <r_data.h> | |||
typedef struct network_handler_ n_handler; | typedef struct network_handler_ n_handler; | |||
typedef struct proto_mod_ proto_mod; | typedef struct proto_mod_ proto_mod; | |||
typedef struct proto_handler_ proto_handler; | typedef struct proto_handler_ proto_handler; | |||
typedef struct packet_ packet; | typedef struct packet_ packet; | |||
int network_handler_create PROTO_LIST((proto_mod *mod, | int network_handler_create PROTO_LIST((proto_mod *mod, | |||
n_handler **handlerp)); | n_handler **handlerp)); | |||
int network_handler_destroy PROTO_LIST((n_handler **handlerp)); | int network_handler_destroy PROTO_LIST((proto_mod *mod,n_handler **handlerp)); | |||
int network_process_packet PROTO_LIST((n_handler *handler, | int network_process_packet PROTO_LIST((n_handler *handler, | |||
struct timeval *timestamp,UCHAR *data,int length)); | struct timeval *timestamp,UCHAR *data,int length)); | |||
int packet_copy PROTO_LIST((packet *in,packet **out)); | int packet_copy PROTO_LIST((packet *in,packet **out)); | |||
int packet_destroy PROTO_LIST((packet *p)); | int packet_destroy PROTO_LIST((packet *p)); | |||
int timestamp_diff PROTO_LIST(( struct timeval *t1,struct timeval *t0, | int timestamp_diff PROTO_LIST(( struct timeval *t1,struct timeval *t0, | |||
struct timeval *diff)); | struct timeval *diff)); | |||
int lookuphostname PROTO_LIST((struct in_addr *addr,char **name)); | int lookuphostname PROTO_LIST((struct in_addr *addr,char **name)); | |||
struct packet_ { | struct packet_ { | |||
struct timeval ts; | struct timeval ts; | |||
skipping to change at line 102 | skipping to change at line 106 | |||
#include "tcpconn.h" | #include "tcpconn.h" | |||
#include "proto_mod.h" | #include "proto_mod.h" | |||
extern UINT4 NET_print_flags; | extern UINT4 NET_print_flags; | |||
#define NET_PRINT_TCP_HDR 1 | #define NET_PRINT_TCP_HDR 1 | |||
#define NET_PRINT_TYPESET 2 | #define NET_PRINT_TYPESET 2 | |||
#define NET_PRINT_ACKS 4 | #define NET_PRINT_ACKS 4 | |||
#define NET_PRINT_NO_RESOLVE 8 | #define NET_PRINT_NO_RESOLVE 8 | |||
#define NET_PRINT_JSON 16 | ||||
#endif | #endif | |||
End of changes. 3 change blocks. | ||||
1 lines changed or deleted | 6 lines changed or added |