nftnl_expr_hash(3)

πŸ’– nftnl_expr_hash πŸ’–

okay bestie, welcome to the nftnl_expr_hash(3) page β€” it's a library functions manual situation, and honestly? it's giving "here are the fields of a struct, go off." no cap.


✨ NAME ✨

nftnl_expr_hash β€” the struct that holds all the deets for a hash expression in libnftnl. that's it, that's the name. iconic of her honestly.


🌸 SYNOPSIS 🌸

πŸŽ€ Data Fields πŸŽ€

the whole squad, assembled:

enum nft_hash_types type
enum nft_registers sreg
enum nft_registers dreg
unsigned int len
unsigned int modulus
unsigned int seed
unsigned int offset

seven fields. seven little besties. all sitting in a struct together, vibing.


πŸ¦‹ Detailed Description πŸ¦‹

okay so the actual definition of this whole thing lives at line 18 of the file hash.c. that's the origin story. that's where she was born. remember that number, we're gonna keep referencing it because apparently that's the whole personality of this page.


πŸ’… Field Documentation πŸ’…

this is the part where we go field by field and say "yep, that's where it's defined." buckle up, it's a lot of line numbers and we're obsessed with every single one.

🌈 enum nft_registers nftnl_expr_hash::dreg

the destination register. defined at line 21 of hash.c.

🌈 unsigned int nftnl_expr_hash::len

the length. defined at line 22 of hash.c.

🌈 unsigned int nftnl_expr_hash::modulus

the modulus. defined at line 23 of hash.c.

🌈 unsigned int nftnl_expr_hash::offset

the offset. defined at line 25 of hash.c.

🌈 unsigned int nftnl_expr_hash::seed

the seed. defined at line 24 of hash.c. (yes, she comes after offset in the alphabetically-sorted docs but before offset in the file. the doc generator does not care about your timeline. we love a chaotic queen. πŸ’€)

🌈 enum nft_registers nftnl_expr_hash::sreg

the source register. defined at line 20 of hash.c.

🌈 enum nft_hash_types nftnl_expr_hash::type

the type. defined at line 19 of hash.c.


lowkey important: every single one of these fields is just documented with a definition line. there's no extra prose, no hidden lore, no secret behaviour notes. what you see is what you get, fr fr. don't go reading meaning into it that isn't there. πŸ™ˆ

πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for libnftnl from the source code. so technically the author is a robot. a very thorough robot. we stan. 🫢


and that's the page!! mwah πŸ’‹ thanks for reading, bestie β€” this was libnftnl, Version 1.3.1, and yeah the manpage is literally just a field dump but we made it cute anyway. slay. βœ¨πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from