logo

oasis-root

Compiled tree of Oasis Linux based on own branch at <https://hacktivis.me/git/oasis/> git clone https://anongit.hacktivis.me/git/oasis-root.git

net.h (1390B)


  1. /* SPDX-License-Identifier: LGPL-2.1+ WITH Linux-syscall-note */
  2. /*
  3. * net.h
  4. *
  5. * Copyright (C) 2000 Marcus Metzler <marcus@convergence.de>
  6. * & Ralph Metzler <ralph@convergence.de>
  7. * for convergence integrated media GmbH
  8. */
  9. #ifndef _DVBNET_H_
  10. #define _DVBNET_H_
  11. #include <linux/types.h>
  12. /**
  13. * struct dvb_net_if - describes a DVB network interface
  14. *
  15. * @pid: Packet ID (PID) of the MPEG-TS that contains data
  16. * @if_num: number of the Digital TV interface.
  17. * @feedtype: Encapsulation type of the feed.
  18. *
  19. * A MPEG-TS stream may contain packet IDs with IP packages on it.
  20. * This struct describes it, and the type of encoding.
  21. *
  22. * @feedtype can be:
  23. *
  24. * - %DVB_NET_FEEDTYPE_MPE for MPE encoding
  25. * - %DVB_NET_FEEDTYPE_ULE for ULE encoding.
  26. */
  27. struct dvb_net_if {
  28. __u16 pid;
  29. __u16 if_num;
  30. __u8 feedtype;
  31. #define DVB_NET_FEEDTYPE_MPE 0 /* multi protocol encapsulation */
  32. #define DVB_NET_FEEDTYPE_ULE 1 /* ultra lightweight encapsulation */
  33. };
  34. #define NET_ADD_IF _IOWR('o', 52, struct dvb_net_if)
  35. #define NET_REMOVE_IF _IO('o', 53)
  36. #define NET_GET_IF _IOWR('o', 54, struct dvb_net_if)
  37. /* binary compatibility cruft: */
  38. struct __dvb_net_if_old {
  39. __u16 pid;
  40. __u16 if_num;
  41. };
  42. #define __NET_ADD_IF_OLD _IOWR('o', 52, struct __dvb_net_if_old)
  43. #define __NET_GET_IF_OLD _IOWR('o', 54, struct __dvb_net_if_old)
  44. #endif /*_DVBNET_H_*/