Skip to content
This repository has been archived by the owner on Dec 28, 2022. It is now read-only.

Commit

Permalink
Initial commit including rpcapd and patched libpcap library.
Browse files Browse the repository at this point in the history
  • Loading branch information
frgtn committed Mar 8, 2012
1 parent fd411e7 commit 409fd7e
Show file tree
Hide file tree
Showing 233 changed files with 89,165 additions and 3 deletions.
50 changes: 50 additions & 0 deletions Makefile
@@ -0,0 +1,50 @@
################################
# Makefile for the remote daemon
################################

CC = gcc
CFLAGS = -pthread -D_DEBUG -g -Wall -DHAVE_REMOTE -DHAVE_SNPRINTF -static
#flags for debugging: -D_DEBUG -g -Wall

INCLUDE = -Ilibpcap/

LIB = -lpcap -lcrypt
#Solaris: add '-lsocket'

LIBPATH = -Llibpcap/

# Files that are needed to compile this project
FILES = rpcapd.o daemon.o utils.o fileconf.o pcap-remote.o sockutils.o pcap-new.o

# Makefile syntax:
# Project name : dependencies
# command line

rpcapd: $(FILES)
$(CC) $(CFLAGS) $(INCLUDE) -o rpcapd $(FILES) $(LIBPATH) $(LIB)

rpcapd.o: rpcapd.c
$(CC) $(CFLAGS) $(INCLUDE) -c rpcapd.c

daemon.o: daemon.c
$(CC) $(CFLAGS) $(INCLUDE) -c daemon.c

utils.o: utils.c
$(CC) $(CFLAGS) $(INCLUDE) -c utils.c

fileconf.o: fileconf.c
$(CC) $(CFLAGS) $(INCLUDE) -c fileconf.c

sockutils.o: libpcap/sockutils.c
$(CC) $(CFLAGS) $(INCLUDE) -c libpcap/sockutils.c

pcap-remote.o: libpcap/pcap-remote.c
$(CC) $(CFLAGS) $(INCLUDE) -c libpcap/pcap-remote.c

pcap-new.o: libpcap/pcap-new.c
$(CC) $(CFLAGS) $(INCLUDE) -c libpcap/pcap-new.c

clean:
rm -f *.o
rm rpcapd

9 changes: 6 additions & 3 deletions README.md
@@ -1,10 +1,13 @@
# rpcapd utility for Linux
rpcapd is a daemon that provides remote traffic capture for popular Wireshark protocol analyzer. It is shipped with WinPCAP network interface capture library for Windows but is absent from libpcap in Linux.
This fork is modified to compile and work in Linux.
rpcapd is a daemon that provides remote traffic capture for Windows version of [Wireshark](http://www.wireshark.org) protocol analyzer. It is shipped with [WinPCAP](http://www.winpcap.org/) network capture library for Windows but is absent from libpcap in Linux.

This is a fork of rpcapd modified to compile and work in Linux.

It is still quite messy and may not compile or work. Also contains a memory leak when client (Wireshark) is requesting available interfaces.

## Installing
## Building
This fork ships with a patched libpcap version found in WinPCAP library.

Installation under Ubuntu Linux:

sudo apt-get build-dep libpcap
Expand Down

0 comments on commit 409fd7e

Please sign in to comment.