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_dscp.h (701B)


  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. /* x_tables module for matching the IPv4/IPv6 DSCP field
  3. *
  4. * (C) 2002 Harald Welte <laforge@gnumonks.org>
  5. * This software is distributed under GNU GPL v2, 1991
  6. *
  7. * See RFC2474 for a description of the DSCP field within the IP Header.
  8. *
  9. * xt_dscp.h,v 1.3 2002/08/05 19:00:21 laforge Exp
  10. */
  11. #ifndef _XT_DSCP_H
  12. #define _XT_DSCP_H
  13. #include <linux/types.h>
  14. #define XT_DSCP_MASK 0xfc /* 11111100 */
  15. #define XT_DSCP_SHIFT 2
  16. #define XT_DSCP_MAX 0x3f /* 00111111 */
  17. /* match info */
  18. struct xt_dscp_info {
  19. __u8 dscp;
  20. __u8 invert;
  21. };
  22. struct xt_tos_match_info {
  23. __u8 tos_mask;
  24. __u8 tos_value;
  25. __u8 invert;
  26. };
  27. #endif /* _XT_DSCP_H */