opnsense-ports/net/tcpdstat/files/patch-net_read.c
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

11 lines
348 B
C

--- net_read.orig Wed Dec 13 23:11:59 2006
+++ net_read.c Wed Dec 13 23:12:17 2006
@@ -137,7 +137,7 @@
pcap_t *pd;
int pcapfd;
-static int packet_length; /* length of current packet */
+int packet_length; /* length of current packet */
#define STAT_ADD(name) \
{ tcpdstat[(name)].packets++; tcpdstat[(name)].bytes += packet_length; }