~ubuntu-branches/debian/experimental/linux-tools/experimental

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Ben Hutchings
  • Date: 2014-02-02 16:57:49 UTC
  • mfrom: (1.1.10) (0.1.21 sid)
  • Revision ID: package-import@ubuntu.com-20140202165749-tw94o9t1t0a8txk6
Tags: 3.13-1~exp2
Merge changes from sid up to 3.12.6-3

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
struct sk_buff;
8
8
 
9
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 protoff,
14
 
                                      unsigned int match_offset,
15
 
                                      unsigned int match_len,
16
 
                                      const char *rep_buffer,
17
 
                                      unsigned int rep_len, bool adjust);
 
10
int __nf_nat_mangle_tcp_packet(struct sk_buff *skb, struct nf_conn *ct,
 
11
                               enum ip_conntrack_info ctinfo,
 
12
                               unsigned int protoff, unsigned int match_offset,
 
13
                               unsigned int match_len, const char *rep_buffer,
 
14
                               unsigned int rep_len, bool adjust);
18
15
 
19
16
static inline int nf_nat_mangle_tcp_packet(struct sk_buff *skb,
20
17
                                           struct nf_conn *ct,
30
27
                                          rep_buffer, rep_len, true);
31
28
}
32
29
 
33
 
extern int nf_nat_mangle_udp_packet(struct sk_buff *skb,
34
 
                                    struct nf_conn *ct,
35
 
                                    enum ip_conntrack_info ctinfo,
36
 
                                    unsigned int protoff,
37
 
                                    unsigned int match_offset,
38
 
                                    unsigned int match_len,
39
 
                                    const char *rep_buffer,
40
 
                                    unsigned int rep_len);
 
30
int nf_nat_mangle_udp_packet(struct sk_buff *skb, struct nf_conn *ct,
 
31
                             enum ip_conntrack_info ctinfo,
 
32
                             unsigned int protoff, unsigned int match_offset,
 
33
                             unsigned int match_len, const char *rep_buffer,
 
34
                             unsigned int rep_len);
41
35
 
42
36
/* Setup NAT on this expected conntrack so it follows master, but goes
43
37
 * to port ct->master->saved_proto. */
44
 
extern void nf_nat_follow_master(struct nf_conn *ct,
45
 
                                 struct nf_conntrack_expect *this);
 
38
void nf_nat_follow_master(struct nf_conn *ct, struct nf_conntrack_expect *this);
46
39
 
47
40
#endif