* [PATCH] Fix tcpdump.
@ 2015-07-15 14:17 Ricardo Wurmus
2015-07-15 16:16 ` Mark H Weaver
2015-07-15 16:18 ` Ludovic Courtès
0 siblings, 2 replies; 3+ messages in thread
From: Ricardo Wurmus @ 2015-07-15 14:17 UTC (permalink / raw)
To: Guix-devel
[-- Attachment #1: Type: text/plain, Size: 694 bytes --]
Hi Guix,
libpcap comes with a couple of backends that are disabled by default.
Among those available backends is “pcap-linux”. By default the only
backends are
pcap-null
pcap-usb-linux
pcap-can-linux
pcap-netfilter-linux
pcap-common
‘netfilter-linux’ doesn’t work out of the box and I think it requires
loading iptables/netfilter kernel modules (I have not yet found the
correct modules to load, so I can only guess). When “--with-pcap=linux”
is passed “pcap-linux.c” is compiled as well, which makes tcpdump work
out of the box without the need to load any further modules.
Thanks to Ludovic for providing a crucial bit of information!
~~ Ricardo
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-libpcap-Enable-plain-linux-backend.patch --]
[-- Type: text/x-patch, Size: 1088 bytes --]
From 7ca2d0dc5cc1232605e2b78167ea3ae5c92be531 Mon Sep 17 00:00:00 2001
From: Ricardo Wurmus <rekado@elephly.net>
Date: Wed, 15 Jul 2015 16:11:50 +0200
Subject: [PATCH] gnu: libpcap: Enable plain "linux" backend.
* gnu/packages/admin.scm (libpcap)[arguments]: Add "--with-pcap=linux"
configure flag.
---
gnu/packages/admin.scm | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index c96e116..5b56599 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -476,7 +476,8 @@ tools: server, client, and relay agent.")
"14wyjywrdi1ikaj6yc9c72m6m2r64z94lb0gm7k1a3q6q5cj3scs"))))
(build-system gnu-build-system)
(native-inputs `(("bison" ,bison) ("flex" ,flex)))
- (arguments '(#:tests? #f)) ; no 'check' target
+ (arguments '(#:configure-flags '("--with-pcap=linux")
+ #:tests? #f)) ; no 'check' target
(home-page "http://www.tcpdump.org")
(synopsis "Network packet capture library")
(description
--
2.4.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] Fix tcpdump.
2015-07-15 14:17 [PATCH] Fix tcpdump Ricardo Wurmus
@ 2015-07-15 16:16 ` Mark H Weaver
2015-07-15 16:18 ` Ludovic Courtès
1 sibling, 0 replies; 3+ messages in thread
From: Mark H Weaver @ 2015-07-15 16:16 UTC (permalink / raw)
To: Ricardo Wurmus; +Cc: Guix-devel
Ricardo Wurmus <rekado@elephly.net> writes:
> From 7ca2d0dc5cc1232605e2b78167ea3ae5c92be531 Mon Sep 17 00:00:00 2001
> From: Ricardo Wurmus <rekado@elephly.net>
> Date: Wed, 15 Jul 2015 16:11:50 +0200
> Subject: [PATCH] gnu: libpcap: Enable plain "linux" backend.
>
> * gnu/packages/admin.scm (libpcap)[arguments]: Add "--with-pcap=linux"
> configure flag.
Looks good, please push!
Thanks,
Mark
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Fix tcpdump.
2015-07-15 14:17 [PATCH] Fix tcpdump Ricardo Wurmus
2015-07-15 16:16 ` Mark H Weaver
@ 2015-07-15 16:18 ` Ludovic Courtès
1 sibling, 0 replies; 3+ messages in thread
From: Ludovic Courtès @ 2015-07-15 16:18 UTC (permalink / raw)
To: Ricardo Wurmus; +Cc: Guix-devel
Ricardo Wurmus <rekado@elephly.net> skribis:
> From 7ca2d0dc5cc1232605e2b78167ea3ae5c92be531 Mon Sep 17 00:00:00 2001
> From: Ricardo Wurmus <rekado@elephly.net>
> Date: Wed, 15 Jul 2015 16:11:50 +0200
> Subject: [PATCH] gnu: libpcap: Enable plain "linux" backend.
>
> * gnu/packages/admin.scm (libpcap)[arguments]: Add "--with-pcap=linux"
> configure flag.
Sure, go ahead. Thanks for investigating!
Ludo’.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-07-15 16:19 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-15 14:17 [PATCH] Fix tcpdump Ricardo Wurmus
2015-07-15 16:16 ` Mark H Weaver
2015-07-15 16:18 ` Ludovic Courtès
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.