Printing(3)
π NAME π
Printing β Printing [DEPRECATED] π
okay bestie, before literally anything else: this whole page is flagged DEPRECATED. it's giving vintage. it's giving "we keep it around but don't @ me." π the manual name is Printing and it lives in section 3 (that's Library Functions Manual energy, iykyk). now let's get into it π
β¨ SYNOPSIS β¨
π¦ Functions π¦
int nfq_snprintf_xml (char *buf, size_t rem, struct nfq_data *tb, int
flags)
π« Detailed Description π«
lowkey there's not a big blob of prose here, the actual tea is all down in Function Documentation. so scroll, babe, it's right there π
π Function Documentation π
int nfq_snprintf_xml (char * buf, size_t rem, struct nfq_data * tb, int flags)
nfq_snprintf_xml β bestie, this one prints the enqueued packet in XML format straight into a buffer. it's giving "packet, but make it β¨markupβ¨" π
πΈ Parameters πΈ
bufβ the buffer that you want to use to print the logged packetremβ the size of the buffer that you have passedtbβ Netlink packet data handle passed to callback functionflagsβ the flag that tell what to print into the buffer
this function supports the following flags:
NFQ_XML_HW: include the hardware link layer addressNFQ_XML_MARK: include the packet markNFQ_XML_DEV: include the device informationNFQ_XML_PHYSDEV: include the physical device informationNFQ_XML_PAYLOAD: include the payload (in hexadecimal)NFQ_XML_TIME: include the timestampNFQ_XML_ALL: include all the logging information (all flags set)
you can combine this flags with an binary OR. (yes, mix and match, it's a whole vibe, the bitwise way π«Ά)
β Returns β
-1 in case of failure, otherwise the length of the string that would have been printed into the buffer (in case that there is enough room in it). See snprintf() return value for more information. π
ok so real talk, that return value is the snprintf classic β it tells you how long the string would have been, so don't get it twisted when the buffer's too small bestie π
Definition at line 1378 of file libnetfilter_queue.c.
π Author π
Generated automatically by Doxygen for libnetfilter_queue from the source code. π€β¨ (yes it wrote itself, main character behavior fr fr)
and that's the whole page, bestie!! this lil doc came from libnetfilter_queue, Version 1.0.5, and the page you're reading is Printing(3) β mwah, take care of her, she's deprecated but she's iconic πππ¦
π¦ where this page comes from
- ubuntu noble: libnetfilter-queue-doc 1.0.5-4build1 Β· GPL-2.0-or-later
- ubuntu questing: libnetfilter-queue-doc 1.0.5-4build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms