Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F135389641
D31327.id92834.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
740 B
Referenced Files
None
Subscribers
None
D31327.id92834.diff
View Options
Index: sys/net/debugnet_inet.c
===================================================================
--- sys/net/debugnet_inet.c
+++ sys/net/debugnet_inet.c
@@ -347,13 +347,19 @@
" server or gateway)\n", buf);
return;
}
+ if (pcb->dp_state >= DN_STATE_HAVE_GW_MAC) {
+ inet_ntoa_r(isaddr, buf);
+ DNETDEBUG("ignoring server ARP reply from %s (already"
+ " have gateway address)\n", buf);
+ return;
+ }
+ MPASS(pcb->dp_state == DN_STATE_INIT);
memcpy(pcb->dp_gw_mac.octet, ar_sha(ah),
min(ah->ar_hln, ETHER_ADDR_LEN));
DNETDEBUG("got server MAC address %6D\n",
pcb->dp_gw_mac.octet, ":");
- MPASS(pcb->dp_state == DN_STATE_INIT);
pcb->dp_state = DN_STATE_HAVE_GW_MAC;
return;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 10, 10:00 AM (17 h, 24 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
25104105
Default Alt Text
D31327.id92834.diff (740 B)
Attached To
Mode
D31327: debugnet_handle_arp(): Fix false-positive assertion for dp_state
Attached
Detach File
Event Timeline
Log In to Comment