---
name: "pktb_push"
section: "3"
platform: "linux"
package: "libnetfilter-queue-doc"
version: "1.0.5-4"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/pktb_push"
---

# pktb\_push(3)

Internal functions

## NAME

uselessfns - Internal functions

## 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)\

## Detailed Description

**Warning**

Do not use these functions. Instead, always use the mangle function appropriate to the level at which you are working. \
 **pktb\_mangle()** uses all the below functions except *pktb\_pull*, which is not used by anything.

## 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.
