include/linux/netfilter.h

  1.  struct nf_sockopt_ops
  2.  {
  3.   struct list_head list;
  4.  
  5.   int pf;
  6.  
  7.   /* Non-inclusive ranges: use 0/0/NULL to never get called. */
  8.   int set_optmin;
  9.   int set_optmax;
  10.   int (*set)(struct sock *sk, int optval, void __user *user, unsigned int len);
  11.   int (*compat_set)(struct sock *sk, int optval,
  12.   void __user *user, unsigned int len);
  13.  
  14.   int get_optmin;
  15.   int get_optmax;
  16.   int (*get)(struct sock *sk, int optval, void __user *user, int *len);
  17.   int (*compat_get)(struct sock *sk, int optval,
  18.   void __user *user, int *len);
  19.  
  20.   /* Use the module struct to lock set/get code in place */
  21.   struct module *owner;
  22.  };