~csurbhi/ubuntu/maverick/iptables/iptable-fix.600195

« back to all changes in this revision

Viewing changes to linux/include/net/netfilter/nf_nat_helper.h

  • Committer: Bazaar Package Importer
  • Author(s): Soren Hansen
  • Date: 2008-06-24 15:06:04 UTC
  • mfrom: (5.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20080624150604-5t7r1o1kxq0ycz81
Tags: 1.4.0-4ubuntu1
* Merge from debian unstable, remaining changes:
  - Took references to 2.4 kernel out of doc-base control files (Jordan
    Mantha, Malone #25972) (patches/all/091-fix-2.4-references.patch)
  - Use linux-libc-dev instead of local copy of kernel-headers.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifndef _NF_NAT_HELPER_H
2
 
#define _NF_NAT_HELPER_H
3
 
/* NAT protocol helper routines. */
4
 
 
5
 
#include <net/netfilter/nf_conntrack.h>
6
 
 
7
 
struct sk_buff;
8
 
 
9
 
/* These return true or false. */
10
 
extern int nf_nat_mangle_tcp_packet(struct sk_buff **skb,
11
 
                                    struct nf_conn *ct,
12
 
                                    enum ip_conntrack_info ctinfo,
13
 
                                    unsigned int match_offset,
14
 
                                    unsigned int match_len,
15
 
                                    const char *rep_buffer,
16
 
                                    unsigned int rep_len);
17
 
extern int nf_nat_mangle_udp_packet(struct sk_buff **skb,
18
 
                                    struct nf_conn *ct,
19
 
                                    enum ip_conntrack_info ctinfo,
20
 
                                    unsigned int match_offset,
21
 
                                    unsigned int match_len,
22
 
                                    const char *rep_buffer,
23
 
                                    unsigned int rep_len);
24
 
extern int nf_nat_seq_adjust(struct sk_buff **pskb,
25
 
                             struct nf_conn *ct,
26
 
                             enum ip_conntrack_info ctinfo);
27
 
 
28
 
/* Setup NAT on this expected conntrack so it follows master, but goes
29
 
 * to port ct->master->saved_proto. */
30
 
extern void nf_nat_follow_master(struct nf_conn *ct,
31
 
                                 struct nf_conntrack_expect *this);
32
 
#endif