]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/net/netfilter/nf_conntrack_l3proto.h
devcgroup: always show positive major/minor num
[linux-2.6-omap-h63xx.git] / include / net / netfilter / nf_conntrack_l3proto.h
index b886e3ae6cad69bf78df1819456cd661daf95387..0378676c3dd816ba97a172359240a59153612e84 100644 (file)
@@ -28,31 +28,20 @@ struct nf_conntrack_l3proto
         * Try to fill in the third arg: nhoff is offset of l3 proto
          * hdr.  Return true if possible.
         */
-       int (*pkt_to_tuple)(const struct sk_buff *skb, unsigned int nhoff,
-                           struct nf_conntrack_tuple *tuple);
+       bool (*pkt_to_tuple)(const struct sk_buff *skb, unsigned int nhoff,
+                            struct nf_conntrack_tuple *tuple);
 
        /*
         * Invert the per-proto part of the tuple: ie. turn xmit into reply.
         * Some packets can't be inverted: return 0 in that case.
         */
-       int (*invert_tuple)(struct nf_conntrack_tuple *inverse,
-                           const struct nf_conntrack_tuple *orig);
+       bool (*invert_tuple)(struct nf_conntrack_tuple *inverse,
+                            const struct nf_conntrack_tuple *orig);
 
        /* Print out the per-protocol part of the tuple. */
        int (*print_tuple)(struct seq_file *s,
                           const struct nf_conntrack_tuple *);
 
-       /* Returns verdict for packet, or -1 for invalid. */
-       int (*packet)(struct nf_conn *ct,
-                     const struct sk_buff *skb,
-                     enum ip_conntrack_info ctinfo);
-
-       /*
-        * Called when a new connection for this protocol found;
-        * returns TRUE if it's OK.  If so, packet() called next.
-        */
-       int (*new)(struct nf_conn *ct, const struct sk_buff *skb);
-
        /*
         * Called before tracking. 
         *      *dataoff: offset of protocol header (TCP, UDP,...) in skb