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 of byteorder.c. she's the one things get written to. main character energy honestly πŸ‘‘
  • unsigned int nftnl_expr_byteorder::len β€” a plain little unsigned int, defined at line 24 of byteorder.c. no thoughts, just length ✨
  • enum nft_byteorder_ops nftnl_expr_byteorder::op β€” the operation itself, typed as enum nft_byteorder_ops, defined at line 23 of byteorder.c. she decides what goes down πŸ”₯
  • unsigned int nftnl_expr_byteorder::size β€” another unsigned int, defined at line 25 of byteorder.c. yes, len and size are 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 of byteorder.c. she's where the data comes from. the way that sreg and dreg are literally right next to each other in the source... soulmates, honestly πŸ’œ
quick recap so it sticks: sreg line 21, dreg line 22, op line 23, len line 24, size line 25. all of them chillin' in byteorder.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