nftnl_expr_byteorder(3)
π nftnl_expr_byteorder π
okay bestie, gather round, because today we're meeting nftnl_expr_byteorder from the libnftnl library functions manual, and she is lowkey iconic π
This is the struct you wanna know about if you're messing with byte order stuff. No cap.
β¨ SYNOPSIS β¨
π Data Fields
enum nft_registers sreg
enum nft_registers dreg
enum nft_byteorder_ops op
unsigned int len
unsigned int size
like... five fields. five little besties. each one doing her own thing π«Ά
πΈ Detailed Description πΈ
the whole vibe of nftnl_expr_byteorder is defined at line 20 of the file byteorder.c. that's where she lives. that's her home address fr fr π
π¦ Field Documentation π¦
enum nft_registers nftnl_expr_byteorder::dregβ the destination register, defined at line 22 ofbyteorder.c. she's the one things get written to. main character energy honestly πunsigned int nftnl_expr_byteorder::lenβ a plain littleunsigned int, defined at line 24 ofbyteorder.c. no thoughts, just length β¨enum nft_byteorder_ops nftnl_expr_byteorder::opβ the operation itself, typed asenum nft_byteorder_ops, defined at line 23 ofbyteorder.c. she decides what goes down π₯unsigned int nftnl_expr_byteorder::sizeβ anotherunsigned int, defined at line 25 ofbyteorder.c. yes,lenandsizeare both here. yes, they are different. don't ask, just vibe πenum nft_registers nftnl_expr_byteorder::sregβ the source register, defined at line 21 ofbyteorder.c. she's where the data comes from. the way thatsreganddregare literally right next to each other in the source... soulmates, honestly π
quick recap so it sticks:sregline 21,dregline 22,opline 23,lenline 24,sizeline 25. all of them chillin' inbyteorder.c. memorise it, bestie, it's giving flashcards π
π Author π
Generated automatically by Doxygen for libnftnl from the source code. yeah, a robot wrote this one. she ate though πβ¨
and that's the whole page, bestie!! π this was libnftnl, Version 1.3.1, and the page is nftnl_expr_byteorder(3) β go forth and byte-order responsibly, ily, bye ππ¦πΈ
π¦ where this page comes from
- ubuntu resolute: libnftnl-dev-doc 1.3.1-1 Β· GPL-2.0-or-later
- ubuntu stonking: libnftnl-dev-doc 1.3.1-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms