Fix credential ospf logic, fix udp subnet proxy loop protection (#2315)

This commit is contained in:
KKRainbow
2026-06-07 12:40:09 +08:00
committed by GitHub
parent 793b57c2a1
commit e38b1354b3
24 changed files with 1892 additions and 703 deletions
@@ -78,7 +78,7 @@ struct DataPlaneAsyncOp {
#[cfg(feature = "ffi-dataplane")]
enum DataPlaneAsyncOpState {
Pending,
Ready(DataPlaneAsyncOpResult),
Ready(Box<DataPlaneAsyncOpResult>),
Failed(String),
Consumed,
}
@@ -158,7 +158,7 @@ fn complete_op(op: &DataPlaneAsyncOp, result: Result<DataPlaneAsyncOpResult, Str
return;
}
*state = match result {
Ok(result) => DataPlaneAsyncOpState::Ready(result),
Ok(result) => DataPlaneAsyncOpState::Ready(Box::new(result)),
Err(err) => DataPlaneAsyncOpState::Failed(err),
};
op.ready.notify_all();
@@ -325,7 +325,7 @@ fn take_completed_op(
};
match completed {
DataPlaneAsyncOpState::Ready(result) => Some(result),
DataPlaneAsyncOpState::Ready(result) => Some(*result),
DataPlaneAsyncOpState::Failed(err) => {
set_error_msg(&err);
None