linux/include/linux/netfilter/nf_osf.h
<<
>>
Prefs
   1#include <uapi/linux/netfilter/nf_osf.h>
   2
   3/* Initial window size option state machine: multiple of mss, mtu or
   4 * plain numeric value. Can also be made as plain numeric value which
   5 * is not a multiple of specified value.
   6 */
   7enum nf_osf_window_size_options {
   8        OSF_WSS_PLAIN   = 0,
   9        OSF_WSS_MSS,
  10        OSF_WSS_MTU,
  11        OSF_WSS_MODULO,
  12        OSF_WSS_MAX,
  13};
  14
  15enum osf_fmatch_states {
  16        /* Packet does not match the fingerprint */
  17        FMATCH_WRONG = 0,
  18        /* Packet matches the fingerprint */
  19        FMATCH_OK,
  20        /* Options do not match the fingerprint, but header does */
  21        FMATCH_OPT_WRONG,
  22};
  23
  24struct nf_osf_finger {
  25        struct rcu_head                 rcu_head;
  26        struct list_head                finger_entry;
  27        struct nf_osf_user_finger       finger;
  28};
  29
  30bool nf_osf_match(const struct sk_buff *skb, u_int8_t family,
  31                  int hooknum, struct net_device *in, struct net_device *out,
  32                  const struct nf_osf_info *info, struct net *net,
  33                  const struct list_head *nf_osf_fingers);
  34