Temporarily disable the optimization from r304436
r304436 attempted to optimize the handling of incoming UDP packet by only making an expensive call to in_broadcast() if the mbuf was marked as an broadcast packet. Unfortunately, this cannot work in the case of point-to- point L2 protocols like PPP, which have no notion of "broadcast". Discussions on how to properly fix r304436 are ongoing, but in the meantime disable the optimization to ensure that no existing network setups are broken. Reported by: bms
This commit is contained in:
parent
f3ccb446d2
commit
23424a2021
@ -126,7 +126,7 @@ SYSCTL_INT(_net_inet_udp, OID_AUTO, blackhole, CTLFLAG_VNET | CTLFLAG_RW,
|
||||
&VNET_NAME(udp_blackhole), 0,
|
||||
"Do not send port unreachables for refused connects");
|
||||
|
||||
static VNET_DEFINE(int, udp_require_l2_bcast) = 1;
|
||||
static VNET_DEFINE(int, udp_require_l2_bcast) = 0;
|
||||
#define V_udp_require_l2_bcast VNET(udp_require_l2_bcast)
|
||||
SYSCTL_INT(_net_inet_udp, OID_AUTO, require_l2_bcast, CTLFLAG_VNET | CTLFLAG_RW,
|
||||
&VNET_NAME(udp_require_l2_bcast), 0,
|
||||
|
Loading…
x
Reference in New Issue
Block a user