Created attachment 185900 [details] patch without options FYI, I plan to submit a patch to provide a base/port option for net-mgmt/tcpreplay to use either libpcap from base or from net/libpcap The attached patch works, but provides no option. If you're keen to do the work yourself, great. Otherwise, I'll complete the work soon. The need came about because one of our folks needed the newer libpcap to avoid a bug. Thank you.
Created attachment 185932 [details] patch with base/port options I've tested this patch: * with nothing set (builds with base) * with base set * with port set Expected results were obtained. e.g. root@103R-working:~ # tcprewrite --version tcprewrite version: 4.2.6 (build git:) Copyright 2013-2017 by Fred Klassen <tcpreplay at appneta dot com> - AppNeta Copyright 2000-2012 by Aaron Turner <aturner at synfin dot net> The entire Tcpreplay Suite is licensed under the GPLv3 Cache file supported: 04 Compiled against libdnet: 1.12 Compiled against libpcap: 1.4.0 64 bit packet counters: enabled Verbose printing via tcpdump: enabled Fragroute engine: enabled root@103R-working:~ #
Thanks for the patch. LGTM, please feel free to commit.
A commit references this bug: Author: dvl Date: Wed Aug 30 19:32:01 UTC 2017 New revision: 448998 URL: https://svnweb.freebsd.org/changeset/ports/448998 Log: Add base/port options for libpcap PR: 221923 Approved by: ehaupt (maintainer) Changes: head/net-mgmt/tcpreplay/Makefile
Done. Thank you.
A commit references this bug: Author: feld Date: Thu Aug 31 19:29:19 UTC 2017 New revision: 449051 URL: https://svnweb.freebsd.org/changeset/ports/449051 Log: MFH: r448998 r449000 r449020 Add base/port options for libpcap PR: 221923 Approved by: ehaupt (maintainer) Correctly define the _DESC values Reported by: ehaupt,mat Fix OPTIONS_SINGLE logic. The two options (LIBPCAP_BASE and LIBPCAP_PORTS) need to be mutually exclusive. If LIBPCAP_BASE is selected, make sure the binary is linked against the libpcap from base, even if net/libpcap is present. Bump PORTREVISION to make sure the OPTIONS change is tracked. Reported by: jbeich Approved by: ports-secteam (with hat) Changes: _U branches/2017Q3/ branches/2017Q3/net-mgmt/tcpreplay/Makefile