search for: max_attrs

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

2024 Jul 15
0
[ANNOUNCE] libnftnl 1.2.7 release
Hi! The Netfilter project proudly presents: libnftnl 1.2.7 libnftnl is a userspace library providing a low-level netlink programming interface (API) to the in-kernel nf_tables subsystem. This library is currently used by nftables. This release contains fixes only: * Avoid potential use-after-free when clearing set's expression list * Avoid misc buffer overflows in attribute
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(data...