37 lines
1.8 KiB
Text
37 lines
1.8 KiB
Text
$NetBSD: patch-sniffit_h,v 1.3 2013/01/11 00:02:13 joerg Exp $
|
|
|
|
- move strlower to sn_cfgfile.h to make it visible in the right places
|
|
- my_exit should be file-static
|
|
- update const to match changes to sniffit.0.3.5.c
|
|
|
|
--- sniffit.h.orig 1997-04-18 09:33:58.000000000 +0000
|
|
+++ sniffit.h
|
|
@@ -5,24 +5,22 @@ int check_packet(unsigned long,
|
|
const struct packetheader *,
|
|
const unsigned char *,char *, char *,
|
|
struct unwrap *,char *,int);
|
|
-pcap_handler packethandler(unsigned char *,const struct packetheader *,
|
|
+void packethandler(unsigned char *,const struct packetheader *,
|
|
const unsigned char *);
|
|
int check_mask (const struct packetheader *,const unsigned char *, char *,
|
|
char *,struct unwrap *);
|
|
-pcap_handler interactive_packethandler( char *, const struct packetheader *,
|
|
+void interactive_packethandler( unsigned char *, const struct packetheader *,
|
|
const unsigned char *);
|
|
void print_iphead (struct IP_header *, char);
|
|
unsigned long getaddrbyname(char *);
|
|
void quit (char *);
|
|
void reset_all (void);
|
|
-char *strlower (char *);
|
|
struct file_info *add_dynam (char *, char, char, unsigned long, int);
|
|
void delete_dynam (char *, char, char);
|
|
-void record_buf(struct file_info *, unsigned long, char *, int, int);
|
|
+void record_buf(struct file_info *, unsigned long, const char *, int, int);
|
|
void sb_shift(struct file_info *);
|
|
-void sbuf_update(struct file_info *, unsigned long, char *, int);
|
|
+void sbuf_update(struct file_info *, unsigned long, const char *, int);
|
|
struct file_info *search_dynam(char *, char);
|
|
-void my_exit (void);
|
|
|
|
/**** Sniffit functions (plugins) *******************************************/
|
|
void start_plugin (int, struct Plugin_data *);
|