Skip to content

sniff() use conf.iface by default#1420

Merged
p-l- merged 1 commit intosecdev:masterfrom
guedou:Issue_#1356
May 15, 2018
Merged

sniff() use conf.iface by default#1420
p-l- merged 1 commit intosecdev:masterfrom
guedou:Issue_#1356

Conversation

@guedou
Copy link
Member

@guedou guedou commented May 15, 2018

This PR fixes #1356.

@p-l- p-l- merged commit f4dea32 into secdev:master May 15, 2018
wangxin pushed a commit to sonic-net/sonic-mgmt that referenced this pull request May 12, 2025
What is the motivation for this PR?
On scapy with version v2.40 and under, the sniffer will capture packets on every interface if no interface is given.
On scapy with version v.2.50 and higher, the sniffer will capture packets on conf.iface if no interface is given; on the ptf, conf.iface is mgmt, so dual_tor_sniffer is not able to capture any meaningful dataplane packets.

secdev/scapy#1420

Signed-off-by: Longxiang Lyu [email protected]

How did you do it?
Let dual_tor_sniffer explicitly sniff on dataplane ports (any ptf ports starting with eth)

How did you verify/test it?
Run dualtor I/O testcase.

Signed-off-by: Longxiang Lyu <[email protected]>
mssonicbld pushed a commit to mssonicbld/sonic-mgmt that referenced this pull request May 13, 2025
What is the motivation for this PR?
On scapy with version v2.40 and under, the sniffer will capture packets on every interface if no interface is given.
On scapy with version v.2.50 and higher, the sniffer will capture packets on conf.iface if no interface is given; on the ptf, conf.iface is mgmt, so dual_tor_sniffer is not able to capture any meaningful dataplane packets.

secdev/scapy#1420

Signed-off-by: Longxiang Lyu [email protected]

How did you do it?
Let dual_tor_sniffer explicitly sniff on dataplane ports (any ptf ports starting with eth)

How did you verify/test it?
Run dualtor I/O testcase.

Signed-off-by: Longxiang Lyu <[email protected]>
wangxin pushed a commit to sonic-net/sonic-mgmt that referenced this pull request May 19, 2025
What is the motivation for this PR?
On scapy with version v2.40 and under, the sniffer will capture packets on every interface if no interface is given.
On scapy with version v.2.50 and higher, the sniffer will capture packets on conf.iface if no interface is given; on the ptf, conf.iface is mgmt, so dual_tor_sniffer is not able to capture any meaningful dataplane packets.

secdev/scapy#1420

Signed-off-by: Longxiang Lyu [email protected]

How did you do it?
Let dual_tor_sniffer explicitly sniff on dataplane ports (any ptf ports starting with eth)

How did you verify/test it?
Run dualtor I/O testcase.

Signed-off-by: Longxiang Lyu <[email protected]>
Co-authored-by: Longxiang Lyu <[email protected]>
opcoder0 pushed a commit to opcoder0/sonic-mgmt that referenced this pull request Dec 8, 2025
What is the motivation for this PR?
On scapy with version v2.40 and under, the sniffer will capture packets on every interface if no interface is given.
On scapy with version v.2.50 and higher, the sniffer will capture packets on conf.iface if no interface is given; on the ptf, conf.iface is mgmt, so dual_tor_sniffer is not able to capture any meaningful dataplane packets.

secdev/scapy#1420

Signed-off-by: Longxiang Lyu [email protected]

How did you do it?
Let dual_tor_sniffer explicitly sniff on dataplane ports (any ptf ports starting with eth)

How did you verify/test it?
Run dualtor I/O testcase.

Signed-off-by: Longxiang Lyu <[email protected]>
AharonMalkin pushed a commit to AharonMalkin/sonic-mgmt that referenced this pull request Dec 16, 2025
What is the motivation for this PR?
On scapy with version v2.40 and under, the sniffer will capture packets on every interface if no interface is given.
On scapy with version v.2.50 and higher, the sniffer will capture packets on conf.iface if no interface is given; on the ptf, conf.iface is mgmt, so dual_tor_sniffer is not able to capture any meaningful dataplane packets.

secdev/scapy#1420

Signed-off-by: Longxiang Lyu [email protected]

How did you do it?
Let dual_tor_sniffer explicitly sniff on dataplane ports (any ptf ports starting with eth)

How did you verify/test it?
Run dualtor I/O testcase.

Signed-off-by: Longxiang Lyu <[email protected]>
Signed-off-by: Aharon Malkin <[email protected]>
gshemesh2 pushed a commit to gshemesh2/sonic-mgmt that referenced this pull request Dec 21, 2025
What is the motivation for this PR?
On scapy with version v2.40 and under, the sniffer will capture packets on every interface if no interface is given.
On scapy with version v.2.50 and higher, the sniffer will capture packets on conf.iface if no interface is given; on the ptf, conf.iface is mgmt, so dual_tor_sniffer is not able to capture any meaningful dataplane packets.

secdev/scapy#1420

Signed-off-by: Longxiang Lyu [email protected]

How did you do it?
Let dual_tor_sniffer explicitly sniff on dataplane ports (any ptf ports starting with eth)

How did you verify/test it?
Run dualtor I/O testcase.

Signed-off-by: Longxiang Lyu <[email protected]>
Signed-off-by: Guy Shemesh <[email protected]>
gshemesh2 pushed a commit to gshemesh2/sonic-mgmt that referenced this pull request Jan 26, 2026
What is the motivation for this PR?
On scapy with version v2.40 and under, the sniffer will capture packets on every interface if no interface is given.
On scapy with version v.2.50 and higher, the sniffer will capture packets on conf.iface if no interface is given; on the ptf, conf.iface is mgmt, so dual_tor_sniffer is not able to capture any meaningful dataplane packets.

secdev/scapy#1420

Signed-off-by: Longxiang Lyu [email protected]

How did you do it?
Let dual_tor_sniffer explicitly sniff on dataplane ports (any ptf ports starting with eth)

How did you verify/test it?
Run dualtor I/O testcase.

Signed-off-by: Longxiang Lyu <[email protected]>
Signed-off-by: Guy Shemesh <[email protected]>
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

Successfully merging this pull request may close these issues.

Sniff on all interfaces won't filter.

2 participants