# NetworkPacketOpenOptions

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

Network packet endpoint options.

```ds title="NetworkPacketOpenOptions"
export struct NetworkPacketOpenOptions {
    backend: NetworkPacketBackend;
    interfaceIndex: uint32;
    snapLength: uint32;
    timeoutMilliseconds: uint32;
    isPromiscuous: boolean;
}
```

[language/library/src/net/binding/raw.ds:75:86](https://github.com/destack-sh/destack/blob/main/language/library/src/net/binding/raw.ds#L75-L86)

## Members

### `backend: NetworkPacketBackend`

Preferred packet backend.

### `interfaceIndex: uint32`

Interface index for capture or injection.

### `snapLength: uint32`

Maximum frame bytes per packet.

### `timeoutMilliseconds: uint32`

Capture timeout in milliseconds.

### `isPromiscuous: boolean`

Whether promiscuous mode is requested.
