net/sniffit: Update version 0.6=>0.7

Changelog: https://github.com/resurrecting-open-source-projects/sniffit/releases/tag/sniffit-0.7
This commit is contained in:
Muhammad Moinur Rahman
2025-09-23 08:07:15 +02:00
parent 92ea2d04d8
commit 70d07c1f17
4 changed files with 27 additions and 39 deletions
+1 -8
View File
@@ -1,5 +1,5 @@
PORTNAME= sniffit
PORTVERSION= 0.6
DISTVERSION= 0.7
DISTVERSIONPREFIX= ${PORTNAME}-
CATEGORIES= net security
@@ -18,13 +18,6 @@ GNU_CONFIGURE= yes
OPTIONS_DEFINE= DOCS EXAMPLES
.include <bsd.port.options.mk>
.if ${OPSYS} == FreeBSD
CFLAGS+= -Wno-error=int-conversion
CFLAGS+= -Wno-error=incompatible-function-pointer-types
.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/sniffit ${STAGEDIR}${PREFIX}/sbin
${INSTALL_MAN} ${WRKSRC}/man/sniffit.5 ${STAGEDIR}${PREFIX}/share/man/man5
+3 -3
View File
@@ -1,3 +1,3 @@
TIMESTAMP = 1714413613
SHA256 (resurrecting-open-source-projects-sniffit-sniffit-0.6_GH0.tar.gz) = 1e2857d0960078315ec002125b2965563546e146c5f33a9831ca7be0b166b221
SIZE (resurrecting-open-source-projects-sniffit-sniffit-0.6_GH0.tar.gz) = 60163
TIMESTAMP = 1758606858
SHA256 (resurrecting-open-source-projects-sniffit-sniffit-0.7_GH0.tar.gz) = 9a8c3472414e105479296b6ca83be419cfd37551982e6ddaca34dfa4916a4c47
SIZE (resurrecting-open-source-projects-sniffit-sniffit-0.7_GH0.tar.gz) = 59904
+21 -17
View File
@@ -1,24 +1,28 @@
--- src/sn_data.h.orig 2020-04-20 01:57:30 UTC
--- src/sn_data.h.orig 2025-09-22 23:50:28 UTC
+++ src/sn_data.h
@@ -38,9 +38,9 @@ int HEADSIZE[]={0 ,14}; /* ppp: 4 or 0 or nothing
char *NETDEV[]={"ppp","ed"};
int HEADSIZE[]={4 ,14};
*/
@@ -32,15 +32,10 @@ int HEADSIZE[]={0 ,14}; /* ppp: 4 or 0 or nothing
int HEADSIZE[]={0 ,14}; /* ppp: 4 or 0 or nothing */
#endif
-#ifdef FREEBSD /* ppp: 4 or 0 ? */
-/*
-#define NETDEV_NR 2
-char *NETDEV[]={"ppp","ed"};
-int HEADSIZE[]={4 ,14};
-*/
-#define NETDEV_NR 1
-char *NETDEV[]={"ed"};
-int HEADSIZE[]={14};
++#define NETDEV_NR 6
++char *NETDEV[]={"fxp","re","em","ppp","tun","lo"};
++int HEADSIZE[]={14 ,14 ,14 ,4 ,4 ,4 };
+#ifdef __FreeBSD__ /* ppp: 4 or 0 ? */
+#define NETDEV_NR 6
+char *NETDEV[]={"fxp","re","em","ppp","tun","lo"};
+int HEADSIZE[]={14 ,14 ,14 ,4 ,4 ,4 };
#endif
#ifdef BSDI /* ppp: 4 or 0 ? */
@@ -155,7 +155,7 @@ char *SHARED, *connection_data, *timing, *running_conn
*logged_connections;
int *LISTlength, *DATAlength, memory_id;
unsigned int *TCP_nr_of_packets, *ICMP_nr_of_packets, *UDP_nr_of_packets;
-extern unsigned int *IP_nr_of_packets;
+unsigned int *IP_nr_of_packets;
unsigned long *TCP_bytes_in_packets, *UDP_bytes_in_packets;
int *DESC_LEN;
@@ -203,5 +198,3 @@ unsigned int debug_cnt=0;
FILE *debug_dev;
unsigned int debug_cnt=0;
#endif
-
-
+2 -11
View File
@@ -1,15 +1,6 @@
--- src/sn_interface.c.orig 2020-04-20 01:57:30 UTC
--- src/sn_interface.c.orig 2025-09-22 23:50:28 UTC
+++ src/sn_interface.c
@@ -22,7 +22,7 @@
extern char *SHARED, *connection_data, *timing, *running_connections,
*logged_connections;
extern int *LISTlength, *DATAlength, memory_id;
-extern unsigned int *TCP_nr_of_packets, *ICMP_nr_of_packets, *UDP_nr_of_packets; unsigned int *IP_nr_of_packets;
+extern unsigned int *TCP_nr_of_packets, *ICMP_nr_of_packets, *UDP_nr_of_packets, *IP_nr_of_packets;
extern unsigned long *TCP_bytes_in_packets, *UDP_bytes_in_packets;
extern int *DESC_LEN; /* For the connection desciption */
@@ -526,7 +526,7 @@ reset_shell_mode();
@@ -535,7 +535,7 @@ if(shmctl(memory_id,IPC_RMID,0)<0)
void mem_exit (void)
{
if(shmctl(memory_id,IPC_RMID,0)<0)