Bug 20907
Summary: | RFE: add option to specify all devices with '-i' | ||||||
---|---|---|---|---|---|---|---|
Product: | [Retired] Red Hat Raw Hide | Reporter: | Enrico Scholz <rh-bugzilla> | ||||
Component: | tcpdump | Assignee: | Harald Hoyer <harald> | ||||
Status: | CLOSED RAWHIDE | QA Contact: | |||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 1.0 | CC: | pekkas | ||||
Target Milestone: | --- | Keywords: | FutureFeature | ||||
Target Release: | --- | ||||||
Hardware: | i386 | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Enhancement | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2001-01-22 15:49:53 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 20906 | ||||||
Attachments: |
|
Description
Enrico Scholz
2000-11-15 15:28:11 UTC
reminder: a man page change would also be necessary. This patch: * adds -i 'any' and 'all'. 'any' looks up an interface using the old algorithm. 'all' tries to use all interfaces (no error message if used in -R where it wouldn't work). * changes default behaviour for -R so that 'any' is assumed (no need to always use -i anymore). * document some stuff in -i and -p, fix a typo. --- -i Listen on interface. Special keywords ``all'' or ``any'' may also be used. ``all'' is effective only in default, packet socket mode. ``any'' means that tcpdump searches the system interface list for the lowest numbered, configured up interface (excluding loopback). Ties are broken by choosing the earliest match. The default is ``all'' in packet and ``any'' in raw socket mode. [...] -p Do put the interface into promiscuous mode. Note that legacy mode was to use promiscuous mode by default. tcpdump can only listen to one interface in promiscuous mode. Also note that the interface might be in promiscuous mode for some other reason. --- Created attachment 6862 [details]
fix -i behaviour and documentation plus minor odds and ends
It seems tcpdump.org has semantics where 'any' mean "all". In the hindsight, for the future compatibility it would probably be better make all and any synonyms and use something like 'one' for the algorithm. Oh well. Changed the behaviour in patches above to 'any' and 'one' as the patch had to be modified anyway for another reason. |