# NetworkPacketRecord

`import { NetworkPacketRecord } from "destack:net/binding";`

Captured network packet metadata.

```ds title="NetworkPacketRecord"
export struct NetworkPacketRecord {
    bytes: uint64;
    interfaceIndex: uint32;
    timestampClock: NetworkPacketTimestampClock;
    timestampNanoseconds: uint64;
    isTruncated: boolean;
}
```

[language/library/src/net/binding/raw.ds:89:100](https://github.com/destack-sh/destack/blob/main/language/library/src/net/binding/raw.ds#L89-L100)

## Members

### `bytes: uint64`

Packet bytes written to the payload buffer.

### `interfaceIndex: uint32`

Interface index that produced the packet.

### `timestampClock: NetworkPacketTimestampClock`

Packet timestamp clock domain.

### `timestampNanoseconds: uint64`

Capture timestamp in nanoseconds for `timestampClock`.

### `isTruncated: boolean`

Whether packet bytes were truncated.
