[BACK]Return to patch-sniffit_h CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / net / sniffit / patches

File: [cvs.NetBSD.org] / pkgsrc / net / sniffit / patches / patch-sniffit_h (download)

Revision 1.3, Fri Jan 11 00:02:13 2013 UTC (8 years, 10 months ago) by joerg
Branch: MAIN
CVS Tags: pkgsrc-2021Q3-base, pkgsrc-2021Q3, pkgsrc-2021Q2-base, pkgsrc-2021Q2, pkgsrc-2021Q1-base, pkgsrc-2021Q1, pkgsrc-2020Q4-base, pkgsrc-2020Q4, pkgsrc-2020Q3-base, pkgsrc-2020Q3, pkgsrc-2020Q2-base, pkgsrc-2020Q2, pkgsrc-2020Q1-base, pkgsrc-2020Q1, pkgsrc-2019Q4-base, pkgsrc-2019Q4, pkgsrc-2019Q3-base, pkgsrc-2019Q3, pkgsrc-2019Q2-base, pkgsrc-2019Q2, pkgsrc-2019Q1-base, pkgsrc-2019Q1, pkgsrc-2018Q4-base, pkgsrc-2018Q4, pkgsrc-2018Q3-base, pkgsrc-2018Q3, pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1, pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3, pkgsrc-2017Q2-base, pkgsrc-2017Q2, pkgsrc-2017Q1-base, pkgsrc-2017Q1, pkgsrc-2016Q4-base, pkgsrc-2016Q4, pkgsrc-2016Q3-base, pkgsrc-2016Q3, pkgsrc-2016Q2-base, pkgsrc-2016Q2, pkgsrc-2016Q1-base, pkgsrc-2016Q1, pkgsrc-2015Q4-base, pkgsrc-2015Q4, pkgsrc-2015Q3-base, pkgsrc-2015Q3, pkgsrc-2015Q2-base, pkgsrc-2015Q2, pkgsrc-2015Q1-base, pkgsrc-2015Q1, pkgsrc-2014Q4-base, pkgsrc-2014Q4, pkgsrc-2014Q3-base, pkgsrc-2014Q3, pkgsrc-2014Q2-base, pkgsrc-2014Q2, pkgsrc-2014Q1-base, pkgsrc-2014Q1, pkgsrc-2013Q4-base, pkgsrc-2013Q4, pkgsrc-2013Q3-base, pkgsrc-2013Q3, pkgsrc-2013Q2-base, pkgsrc-2013Q2, pkgsrc-2013Q1-base, pkgsrc-2013Q1, HEAD
Changes since 1.2: +8 -3 lines

PCAP handler callback is void.

$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 *);