# Net Data Types

_Peios Kernel / Userspace interfaces / System and device interfaces / Digital television (DVB)_

> Reference for Net Data Types.

<a id="rst-net-data-types"></a>
<a id="rst-net-types"></a>

<!-- SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later -->


#### <a id="c-struct-dvb_net_if"></a>`struct dvb_net_if`

describes a DVB network interface

**Definition**

```c
struct dvb_net_if {
        __u16 pid;
        __u16 if_num;
        __u8 feedtype;
    #define DVB_NET_FEEDTYPE_MPE 0;
    #define DVB_NET_FEEDTYPE_ULE 1;
};
```

**Members**

- `pid`: Packet ID (PID) of the MPEG-TS that contains data
- `if_num`: number of the Digital TV interface.
- `feedtype`: Encapsulation type of the feed.

**Description**

A MPEG-TS stream may contain packet IDs with IP packages on it.
This struct describes it, and the type of encoding.

**feedtype** can be:

- `DVB_NET_FEEDTYPE_MPE` for MPE encoding
- `DVB_NET_FEEDTYPE_ULE` for ULE encoding.
