Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upstreamed? #2

Open
hmijail opened this issue Aug 25, 2017 · 1 comment
Open

upstreamed? #2

hmijail opened this issue Aug 25, 2017 · 1 comment

Comments

@hmijail
Copy link

hmijail commented Aug 25, 2017

I see that upstream libpcap contains some netmap-related code. So I wanted to ask, is this netmap-libpcap project still needed? Or does upstream already contain everything needed?

@leleobhz
Copy link

Hello!

I've tested with lattest master with the following script:

#!/bin/bash

# Source/GIT related code
if [[ ! -d ~/libpcap_git/netmap ]]; then
	echo "Creating new folder"
	mkdir -p ~/libpcap_git
	git clone https://github.com/the-tcpdump-group/libpcap.git ~/libpcap_git
else
	echo "Updating existent netmap"
	pushd ~/libpcap_git
	git reset --hard
	git clean -f -x
	git pull
	popd	
fi

# Compilation code
pushd ~/libpcap_git
	LANG=C ./configure --prefix=/usr/local/ --enable-packet-ring --enable-ipv6 --enable-remote --enable-netmap
	if [[ $? != 0 ]]; then
		less config.log
		popd
		exit 1
	fi
	make install
popd

And it worked in a CentOS7 with tshark using interface netmap:p2p1/rt (Because i have multiple instances capturing in same interface)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants