tc_skbmod.h 765 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * Copyright (c) 2016, Jamal Hadi Salim
  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 __NET_TC_SKBMOD_H
  10. #define __NET_TC_SKBMOD_H
  11. #include <net/act_api.h>
  12. #include <linux/tc_act/tc_skbmod.h>
  13. struct tcf_skbmod_params {
  14. struct rcu_head rcu;
  15. u64 flags; /*up to 64 types of operations; extend if needed */
  16. u8 eth_dst[ETH_ALEN];
  17. u16 eth_type;
  18. u8 eth_src[ETH_ALEN];
  19. };
  20. struct tcf_skbmod {
  21. struct tc_action common;
  22. struct tcf_skbmod_params __rcu *skbmod_p;
  23. };
  24. #define to_skbmod(a) ((struct tcf_skbmod *)a)
  25. #endif /* __NET_TC_SKBMOD_H */