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

socket: provide local definition of struct fanout_args #241

Merged
merged 1 commit into from
Oct 17, 2024
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
19 changes: 15 additions & 4 deletions lib/socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -1396,12 +1396,23 @@ static struct_t st_tpacket_auxdata = {
}
};

struct fanout_args_local {
#if __BYTE_ORDER == __LITTLE_ENDIAN
uint16_t id;
uint16_t type_flags;
#else
uint16_t type_flags;
uint16_t id;
#endif
uint32_t max_num_members;
};

static struct_t st_fanout_args = {
.size = sizeof(struct fanout_args),
.size = sizeof(struct fanout_args_local),
.members = (member_t []){
STRUCT_MEMBER_NP(fanout_args, id, DT_UNSIGNED),
STRUCT_MEMBER_NP(fanout_args, type_flags, DT_UNSIGNED),
STRUCT_MEMBER_NP(fanout_args, max_num_members, DT_UNSIGNED),
STRUCT_MEMBER_NP(fanout_args_local, id, DT_UNSIGNED),
STRUCT_MEMBER_NP(fanout_args_local, type_flags, DT_UNSIGNED),
STRUCT_MEMBER_NP(fanout_args_local, max_num_members, DT_UNSIGNED),
{ 0 }
}
};
Expand Down
Loading