Bug 1292056 - Use -Q instead of -P to set capture direction
Use -Q instead of -P to set capture direction
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: tcpdump (Show other bugs)
7.4
Unspecified Unspecified
medium Severity medium
: rc
: ---
Assigned To: Martin Sehnoutka
Jaroslav Aster
Vladimír Slávik
: FastFix, Patch
Depends On:
Blocks: 1380362
  Show dependency treegraph
 
Reported: 2015-12-16 06:05 EST by Jaroslav Aster
Modified: 2017-08-01 08:13 EDT (History)
3 users (show)

See Also:
Fixed In Version: tcpdump-4.5.1-6.el7
Doc Type: Release Note
Doc Text:
The option to set capture direction for *tcpdump* changed from "-P" to "-Q" Previously, the *tcpdump* utility in Red Hat Enterprise Linux used the "-P" option to set the capture direction, while the upstream version used "-Q". The "-Q" option has been implemented and is now preferred. The "-P" option retains the previous function as an alias of "-Q", but displays a warning.
Story Points: ---
Clone Of: 1292055
Environment:
Last Closed: 2017-08-01 08:13:36 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Jaroslav Aster 2015-12-16 06:05:55 EST
The same issue on rhel-7. Tested on tcpdump-4.5.1-3.el7.

+++ This bug was initially created as a clone of Bug #1292055 +++

Description of problem:

In tcpdump-4.0.0-5.20090921gitdf3cb4.2.el6 new option -P was introduced (bug 1099701), but upstream uses -Q option for the same thing, so there is difference between RHEL and upstream. RHEL should use the same option as upstream.

--- Additional comment from Jaroslav Aster on 2015-12-16 06:03:31 EST ---

I suggest to save backward compatibility and use -P as an alias for -Q and print some warning when -P is used.
Comment 5 Jaroslav Aster 2017-04-11 10:45:46 EDT
Hi Martin,

could you please confirm to me that setting -P/-Q is not supposed to work on aarch64? Other architectures work fine. Thanks.

tcpdump: nflog: pcap_setdirection() failed: Setting direction is not implemented on this platform
Comment 6 Martin Sehnoutka 2017-04-24 08:04:46 EDT
Yes, it is not supposed to work everywhere as stated here:
http://www.tcpdump.org/manpages/pcap_setdirection.3pcap.html
Comment 10 errata-xmlrpc 2017-08-01 08:13:36 EDT
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2017:1871

Note You need to log in before you can comment on or make changes to this bug.