tc_vlan.h 702 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * Copyright (c) 2014 Jiri Pirko <jiri@resnulli.us>
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation; either version 2 of the License, or
  7. * (at your option) any later version.
  8. */
  9. #ifndef __LINUX_TC_VLAN_H
  10. #define __LINUX_TC_VLAN_H
  11. #include <linux/pkt_cls.h>
  12. #define TCA_ACT_VLAN 12
  13. #define TCA_VLAN_ACT_POP 1
  14. #define TCA_VLAN_ACT_PUSH 2
  15. struct tc_vlan {
  16. tc_gen;
  17. int v_action;
  18. };
  19. enum {
  20. TCA_VLAN_UNSPEC,
  21. TCA_VLAN_TM,
  22. TCA_VLAN_PARMS,
  23. TCA_VLAN_PUSH_VLAN_ID,
  24. TCA_VLAN_PUSH_VLAN_PROTOCOL,
  25. __TCA_VLAN_MAX,
  26. };
  27. #define TCA_VLAN_MAX (__TCA_VLAN_MAX - 1)
  28. #endif