uselessfns(3)

πŸ“¦
version 1.0.5 Β· 4 versions
, in ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– uselessfns πŸ’–

okay bestie, so this is the uselessfns page from the library functions manual, and the name is lowkey a spoiler alert: these are internal functions. That's the whole NAME entry. That's it. We move. ✨


🌸 SYNOPSIS 🌸

✨ Functions ✨

void pktb_push (struct pkt_buff *pktb, unsigned int len)
void pktb_pull (struct pkt_buff *pktb, unsigned int len)
void pktb_put (struct pkt_buff *pktb, unsigned int len)
void pktb_trim (struct pkt_buff *pktb, unsigned int len)

look at those four little gremlins. adorable. anywayβ€”


🚨 Detailed Description 🚨

Warning πŸ›‘ Do not use these functions. Instead, always use the mangle function appropriate to the level at which you are working.

no fr fr, hands off. 🫢 instead you reach for the mangle function that matches the level you're actually working at, okay?

and here's the tea: pktb_mangle() uses all the below functions except pktb_pull, which is not used by anything. πŸ’€ like, not one single thing. it's giving orphaned. it's giving ghosted. we still love her though.


πŸ“– Function Documentation πŸ“–

void pktb_pull (struct pkt_buff * pktb, unsigned int len)

pktb_pull β€” increment pointer to packet buffer πŸ¦‹

Parameters

  • pktb β€” Pointer to userspace packet buffer
  • len β€” Number of bytes to add to packet start address

Definition at line 178 of file pktbuff.c. ⭐


void pktb_push (struct pkt_buff * pktb, unsigned int len)

pktb_push β€” decrement pointer to packet buffer πŸ’…

Parameters

  • pktb β€” Pointer to userspace packet buffer
  • len β€” Number of bytes to subtract from packet start address

Definition at line 166 of file pktbuff.c. ⭐


void pktb_put (struct pkt_buff * pktb, unsigned int len)

pktb_put β€” add extra bytes to the tail of the packet buffer πŸŽ€

Parameters

  • pktb β€” Pointer to userspace packet buffer
  • len β€” Number of bytes to add to packet tail (and length)

Definition at line 190 of file pktbuff.c. ⭐


void pktb_trim (struct pkt_buff * pktb, unsigned int len)

pktb_trim β€” set new length for this packet buffer βœ‚οΈ

Parameters

  • pktb β€” Pointer to userspace packet buffer
  • len β€” New packet length (tail is adjusted to reflect this)

Definition at line 201 of file pktbuff.c. ⭐


πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for libnetfilter_queue from the source code. not a human, just a robot doing its lil thing, and honestly? respect. πŸ€–βœ¨


and that's the whole page, babe β€” brought to you by libnetfilter_queue, Version 1.0.5, page uselessfns(3), manual name uselessfns, filed under Library Functions Manual. mwah. πŸ’œ