| 1 |
struct nl_context { |
| 2 |
void *cmd_private; |
| 3 |
}; |
| 4 |
|
| 5 |
struct sfeatures_context { |
| 6 |
int a; |
| 7 |
int req_mask[0]; |
| 8 |
}; |
| 9 |
|
| 10 |
int set_sf_req_mask_idx; |
| 11 |
|
| 12 |
extern void fill_legacy_flag(); |
| 13 |
|
| 14 |
void |
| 15 |
fill_sfeatures_bitmap(struct nl_context *nlctx) { |
| 16 |
while (nlctx) { |
| 17 |
fill_legacy_flag(); |
| 18 |
struct nl_context __trans_tmp_1 = *nlctx; |
| 19 |
struct sfeatures_context *sfctx = __trans_tmp_1.cmd_private; |
| 20 |
sfctx->req_mask[set_sf_req_mask_idx] |= 1; |
| 21 |
} |
| 22 |
} |
| 23 |
|
| 24 |
void |
| 25 |
nl_sfeatures() { |
| 26 |
struct nl_context nlctx; |
| 27 |
struct sfeatures_context *sfctx; |
| 28 |
nlctx.cmd_private = &sfctx; |
| 29 |
sfctx = 0; |
| 30 |
fill_sfeatures_bitmap(&nlctx); |
| 31 |
} |