Debian Codegraph @

include/udata.h

raw symbols SCIP
1 #cxx . . $ `<file>/include/udata.h`/ifndef _LIBNFTNL_UDATA_INTERNAL_H_
2 #define _LIBNFTNL_UDATA_INTERNAL_H_cxx . . $ `include/udata.h:2:9`!
3
4 #include <stdint.h>
5 #include <stddef.h>
6
7 /*
8 * TLV structures:
9 * nftnl_udata
10 * <-------- HEADER --------> <------ PAYLOAD ------>
11 * +------------+-------------+- - - - - - - - - - - -+
12 * | type | len | value |
13 * | (1 byte) | (1 byte) | |
14 * +--------------------------+- - - - - - - - - - - -+
15 * <-- sizeof(nftnl_udata) -> <-- nftnl_udata->len -->
16 */
17 struct nftnl_udatacxx . . $ nftnl_udata# {
18 uint8_tcxx . . $ uint8_t# typecxx . . $ nftnl_udata#type.;
19 uint8_tcxx . . $ uint8_t# lencxx . . $ nftnl_udata#len.;
20 unsigned char valuecxx . . $ nftnl_udata#value.[];
21 } __attribute__((__packed__));
22
23 /*
24 * +---------------------------------++
25 * | data[] ||
26 * | || ||
27 * | \/ \/
28 * +-------+-------+-------+-------+ ... +-------+- - - - - - -+
29 * | size | end | TLV | TLV | | TLV | Empty |
30 * +-------+-------+-------+-------+ ... +-------+- - - - - - -+
31 * |<---- nftnl_udata_len() ---->|
32 * |<----------- nftnl_udata_size() ---------->|
33 */
34 struct nftnl_udata_bufcxx . . $ nftnl_udata_buf# {
35 uint32_tcxx . . $ uint32_t# sizecxx . . $ nftnl_udata_buf#size.;
36 char *endcxx . . $ nftnl_udata_buf#end.;
37 char datacxx . . $ nftnl_udata_buf#data.[];
38 };
39
40 #endif /* _LIBNFTNL_UDATA_INTERNAL_H_ */