Skip to content

Commit

Permalink
Patch for issue #2
Browse files Browse the repository at this point in the history
  • Loading branch information
haegardev committed Apr 21, 2017
1 parent 2742fe8 commit 6add953
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
pcapdj: pcapdj.o
gcc -Wall -o pcapdj pcapdj.o -lwiretap `pkg-config --libs glib-2.0` -lpcap -lhiredis -ggdb
pcapdj.o: pcapdj.c
gcc -Wall -c pcapdj.c `pkg-config --cflags glib-2.0` -I /usr/include/wireshark/wiretap `pkg-config --libs glib-2.0` -I /usr/local/include/hiredis -ggdb
gcc -Wall -c pcapdj.c `pkg-config --cflags glib-2.0` -I /usr/include/wireshark/wiretap -I /usr/include/wireshark/wsutil -I /usr/include/wireshark `pkg-config --libs glib-2.0` -I /usr/local/include/hiredis -ggdb

clean:
-rm pcapdj
Expand Down
3 changes: 2 additions & 1 deletion pcapdj.c
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,8 @@ void process_file(redisContext* ctx, pcap_dumper_t* dumper, char* filename)
update_next_file(ctx, filename);
fprintf(stderr,"[INFO] Waiting authorization to process file %s\n",filename);
wait_auth_to_proceed(ctx, filename);
wth = wtap_open_offline ( filename, (int*)&err, (char**)&errinfo, FALSE);
wth = wtap_open_offline ( filename, WTAP_TYPE_AUTO, (int*)&err,
(char**)&errinfo, FALSE);
if (wth) {
stats.num_files++;
/* Loop over the packets and adjust the headers */
Expand Down

0 comments on commit 6add953

Please sign in to comment.