flow_keys.h 319 B

1234567891011121314151617
  1. #ifndef _NET_FLOW_KEYS_H
  2. #define _NET_FLOW_KEYS_H
  3. struct flow_keys {
  4. /* (src,dst) must be grouped, in the same way than in IP header */
  5. __be32 src;
  6. __be32 dst;
  7. union {
  8. __be32 ports;
  9. __be16 port16[2];
  10. };
  11. u8 ip_proto;
  12. };
  13. extern bool skb_flow_dissect(const struct sk_buff *skb, struct flow_keys *flow);
  14. #endif