Skip to content

netmap: Add --netmap-wait-ping to work around STP blocking ports temporarily#796

Merged
zakird merged 2 commits intozmap:mainfrom
droe:droe/netmap-wait-ping
Feb 28, 2024
Merged

netmap: Add --netmap-wait-ping to work around STP blocking ports temporarily#796
zakird merged 2 commits intozmap:mainfrom
droe:droe/netmap-wait-ping

Conversation

@droe
Copy link
Contributor

@droe droe commented Feb 28, 2024

Going into and leaving netmap mode causes the link to go down and up as
part of a PHY reset. If the interface is connected to a switch with STP
enabled, then depending on port configuration, the switch might be
muting the port for as many as 30 seconds while the port goes through
the listening and learning STP states.

To work around this in situations where the switch cannot be
reconfigured, --netmap-wait-ping allows to wait for end-to-end ICMP
connectivity with an IP address before starting the scan.

Tested w/FreeBSD 14.0 on VM and bare metal.

droe added 2 commits February 28, 2024 00:57
Going into and leaving netmap mode causes the link to go down and up as
part of a PHY reset.  If the interface is connected to a switch with STP
enabled, then depending on port configuration, the switch might be
muting the port for as many as 30 seconds while the port goes through
the listening and learning STP states.

To work around this in situations where the switch cannot be
reconfigured, `--netmap-wait-ping` allows to wait for end-to-end ICMP
connectivity with an IP address before starting the scan.
@zakird zakird merged commit 981b3df into zmap:main Feb 28, 2024
@droe droe deleted the droe/netmap-wait-ping branch March 11, 2024 08:01
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.

2 participants