18c2ecf20Sopenharmony_ci.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 28c2ecf20Sopenharmony_ci 38c2ecf20Sopenharmony_ci.. _net: 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_ci###################### 68c2ecf20Sopenharmony_ciDigital TV Network API 78c2ecf20Sopenharmony_ci###################### 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ciThe Digital TV net device controls the mapping of data packages that are part 108c2ecf20Sopenharmony_ciof a transport stream to be mapped into a virtual network interface, 118c2ecf20Sopenharmony_civisible through the standard Linux network protocol stack. 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ciCurrently, two encapsulations are supported: 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_ci- `Multi Protocol Encapsulation (MPE) <http://en.wikipedia.org/wiki/Multiprotocol_Encapsulation>`__ 168c2ecf20Sopenharmony_ci 178c2ecf20Sopenharmony_ci- `Ultra Lightweight Encapsulation (ULE) <http://en.wikipedia.org/wiki/Unidirectional_Lightweight_Encapsulation>`__ 188c2ecf20Sopenharmony_ci 198c2ecf20Sopenharmony_ciIn order to create the Linux virtual network interfaces, an application 208c2ecf20Sopenharmony_cineeds to tell to the Kernel what are the PIDs and the encapsulation 218c2ecf20Sopenharmony_citypes that are present on the transport stream. This is done through 228c2ecf20Sopenharmony_ci``/dev/dvb/adapter?/net?`` device node. The data will be available via 238c2ecf20Sopenharmony_civirtual ``dvb?_?`` network interfaces, and will be controlled/routed via 248c2ecf20Sopenharmony_cithe standard ip tools (like ip, route, netstat, ifconfig, etc). 258c2ecf20Sopenharmony_ci 268c2ecf20Sopenharmony_ciData types and and ioctl definitions are defined via ``linux/dvb/net.h`` 278c2ecf20Sopenharmony_ciheader. 288c2ecf20Sopenharmony_ci 298c2ecf20Sopenharmony_ci 308c2ecf20Sopenharmony_ci.. _net_fcalls: 318c2ecf20Sopenharmony_ci 328c2ecf20Sopenharmony_ciDigital TV net Function Calls 338c2ecf20Sopenharmony_ci############################# 348c2ecf20Sopenharmony_ci 358c2ecf20Sopenharmony_ci.. toctree:: 368c2ecf20Sopenharmony_ci :maxdepth: 1 378c2ecf20Sopenharmony_ci 388c2ecf20Sopenharmony_ci net-types 398c2ecf20Sopenharmony_ci net-add-if 408c2ecf20Sopenharmony_ci net-remove-if 418c2ecf20Sopenharmony_ci net-get-if 42