---
name: "skb_set_timestamp"
section: "9"
platform: "linux"
package: "linux-manual-2.6.18"
version: "2.6.18.dfsg.1-26etch2"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/skb_set_timestamp"
---

# skb\_set\_timestamp(9)

set timestamp of a skb

## NAME

skb\_set\_timestamp - set timestamp of a skb

## SYNOPSIS

**void skb\_set\_timestamp(struct sk\_buff \*** *skb***, const struct timeval \*** *stamp***);**

## ARGUMENTS

*skb*

skb to set stamp of

*stamp*

pointer to struct timeval to get stamp from

## DESCRIPTION

Timestamps are stored in the skb as offsets to a base timestamp. This function converts a struct timeval to an offset and stores it in the skb.

## COPYRIGHT
