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

xt_l2tp.h (739B)


  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. #ifndef _LINUX_NETFILTER_XT_L2TP_H
  3. #define _LINUX_NETFILTER_XT_L2TP_H
  4. #include <linux/types.h>
  5. enum xt_l2tp_type {
  6. XT_L2TP_TYPE_CONTROL,
  7. XT_L2TP_TYPE_DATA,
  8. };
  9. /* L2TP matching stuff */
  10. struct xt_l2tp_info {
  11. __u32 tid; /* tunnel id */
  12. __u32 sid; /* session id */
  13. __u8 version; /* L2TP protocol version */
  14. __u8 type; /* L2TP packet type */
  15. __u8 flags; /* which fields to match */
  16. };
  17. enum {
  18. XT_L2TP_TID = (1 << 0), /* match L2TP tunnel id */
  19. XT_L2TP_SID = (1 << 1), /* match L2TP session id */
  20. XT_L2TP_VERSION = (1 << 2), /* match L2TP protocol version */
  21. XT_L2TP_TYPE = (1 << 3), /* match L2TP packet type */
  22. };
  23. #endif /* _LINUX_NETFILTER_XT_L2TP_H */