File: bug545595-tcpdump-private-functions

package info (click to toggle)
tcptrace 6.6.7-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, trixie
  • size: 9,440 kB
  • sloc: ansic: 24,663; sh: 3,704; makefile: 237; lex: 162; yacc: 99
file content (24 lines) | stat: -rw-r--r-- 677 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Index: tcptrace-6.6.1/tcpdump.c
===================================================================
--- tcptrace-6.6.1.orig/tcpdump.c
+++ tcptrace-6.6.1/tcpdump.c
@@ -67,10 +67,6 @@ static char const GCC_UNUSED rcsid[] =
 
 
 
-
-/* external ref, in case missing in older version */
-extern int pcap_offline_read(void *, int, pcap_handler, u_char *);
-
 /* global pointer, the pcap info header */
 static pcap_t *pcap;
 
@@ -248,7 +244,7 @@ pread_tcpdump(
     int ret;
 
     while (1) {
-	if ((ret = pcap_offline_read(pcap,1,(pcap_handler)callback,0)) != 1) {
+	if ((ret = pcap_dispatch(pcap,1,(pcap_handler)callback,0)) != 1) {
 	    /* prob EOF */
 
 	    if (ret == -1) {