Conversation
with SYN scan The SYN scan in combination with a specified source IP would cause to hang indefinitely. This issue occurred when attempting to create an ethernet frame w/o proper validation of available HW addresses. Signed-off-by: Dwi Siswanto <git@dw1.io>
WalkthroughThe update revises the Changes
Sequence Diagram(s)sequenceDiagram
participant Function as sendAsyncTCP4
participant Handler as listenHandler
participant Router as Routing Module
participant Interface as Network Interface
Function->>Handler: Check if hasSourceIp and SourceHW exist
alt Both Source IP & HW available
Function->>Function: Prepare Ethernet framing
Function->>Interface: Validate interface (iface not nil)
Function->>Interface: Send packet with Ethernet framing
else Only Source IP available
Function->>Handler: Set source IP to SourceIp4 for raw socket
Function->>Interface: Send packet using raw socket
else Neither available
Function->>Router: Route destination IP to determine source IP
Router-->>Function: Return valid source IP or error
Function->>Interface: Send packet using raw socket (if valid)
end
Poem
Tip ⚡🧪 Multi-step agentic review comment chat (experimental)
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms (7)
🔇 Additional comments (3)
✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
The SYN scan in combination with a specified
source IP would cause to hang indefinitely. This
issue occurred when attempting to create an
ethernet frame w/o proper validation of available
HW addresses.
fixes #1408
Summary by CodeRabbit