Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix afxdp.h Struct Initialization #799

Merged
merged 2 commits into from
Feb 14, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions published/external/xdp/details/afxdp.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ XskBind(
_In_ XSK_BIND_FLAGS Flags
)
{
XSK_BIND_IN Bind = {};
XSK_BIND_IN Bind = {0};

Bind.IfIndex = IfIndex;
Bind.QueueId = QueueId;
Expand Down Expand Up @@ -120,7 +120,7 @@ XskActivate(
_In_ XSK_ACTIVATE_FLAGS Flags
)
{
XSK_ACTIVATE_IN Activate = {};
XSK_ACTIVATE_IN Activate = {0};

Activate.Flags = Flags;

Expand Down Expand Up @@ -156,7 +156,7 @@ XskSetSockopt(
_In_ UINT32 OptionLength
)
{
XSK_SET_SOCKOPT_IN Sockopt = {};
XSK_SET_SOCKOPT_IN Sockopt = {0};

Sockopt.Option = OptionName;
Sockopt.InputBuffer = OptionValue;
Expand Down Expand Up @@ -247,7 +247,7 @@ XskNotifySocket(
{
XDP_STATUS Res;
DWORD BytesReturned;
XSK_NOTIFY_IN Notify = {};
XSK_NOTIFY_IN Notify = {0};

Notify.Flags = Flags;
Notify.WaitTimeoutMilliseconds = WaitTimeoutMilliseconds;
Expand Down Expand Up @@ -281,7 +281,7 @@ XskNotifyAsync(
)
{
DWORD BytesReturned;
XSK_NOTIFY_IN Notify = {};
XSK_NOTIFY_IN Notify = {0};

Notify.Flags = Flags;
Notify.WaitTimeoutMilliseconds = XDP_INFINITE;
Expand Down