search for: max_attr

Displaying 2 results from an estimated 2 matches for "max_attr".

Did you mean: max_attrs
2024 Jul 15
0
[ANNOUNCE] libnftnl 1.2.7 release
...boundaries expr: immediate: check for chain attribute to release chain name udata: incorrect userdata buffer size validation utils: remove unused code Phil Sutter (24): set: Do not leave free'd expr_list elements in place tests: Fix objref test case expr: Repurpose struct expr_ops::max_attr field expr: Call expr_ops::set with legal types only include: Sync nf_log.h with kernel headers expr: Introduce struct expr_ops::attr_policy expr: Enforce attr_policy compliance in nftnl_expr_set() chain: Validate NFTNL_CHAIN_USE, too table: Validate NFTNL_TABLE_USE, too flowtable: Va...
2012 Oct 12
9
[PATCH] Fits: tool to parse stream
..."FILE_OFFSET", TYPE_INT }, + { "DATA", TYPE_LEN_ONLY }, + { "CLONE_UUID", TYPE_BINARY }, + { "CLONE_CTRANSID", TYPE_INT }, + { "CLONE_PATH", TYPE_STRING }, + { "CLONE_OFFSET", TYPE_INT }, + { "CLONE_LEN", TYPE_INT } +}; +#define MAX_ATTRS (sizeof(attrs) / sizeof(struct attr_types)) + +uint16_t +read16(const void *d) +{ + const uint8_t *data = d; + + return data[0] + (1 << 8) * (uint16_t)data[1]; +} + +uint32_t +read32(const void *d) +{ + const uint8_t *data = d; + + return read16(data) + (1 << 16) * (uint32_t)read16(dat...