diff options
| author | David S. Miller <davem@davemloft.net> | 2010-08-02 18:07:58 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2010-08-02 18:07:58 -0400 |
| commit | 83bf2e4089bebc2c7fd14a79de5954b26fe8d4af (patch) | |
| tree | ab2cb1f229ba4c2d7236406c997e41a223daf74d /include/net | |
| parent | de38483010bae523f533bb6bf9f7b7353772f6eb (diff) | |
| parent | 6661481d5a8975657742c7ed40ae16bdaa7d0a6e (diff) | |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/kaber/nf-next-2.6
Diffstat (limited to 'include/net')
| -rw-r--r-- | include/net/ip_vs.h | 14 | ||||
| -rw-r--r-- | include/net/netfilter/nf_conntrack_extend.h | 9 | ||||
| -rw-r--r-- | include/net/netfilter/nf_nat_protocol.h | 8 | ||||
| -rw-r--r-- | include/net/netfilter/nfnetlink_log.h | 2 |
4 files changed, 25 insertions, 8 deletions
diff --git a/include/net/ip_vs.h b/include/net/ip_vs.h index fe82b1e10a29..a4747a0f7303 100644 --- a/include/net/ip_vs.h +++ b/include/net/ip_vs.h | |||
| @@ -632,10 +632,22 @@ extern struct ip_vs_conn *ip_vs_ct_in_get | |||
| 632 | (int af, int protocol, const union nf_inet_addr *s_addr, __be16 s_port, | 632 | (int af, int protocol, const union nf_inet_addr *s_addr, __be16 s_port, |
| 633 | const union nf_inet_addr *d_addr, __be16 d_port); | 633 | const union nf_inet_addr *d_addr, __be16 d_port); |
| 634 | 634 | ||
| 635 | struct ip_vs_conn * ip_vs_conn_in_get_proto(int af, const struct sk_buff *skb, | ||
| 636 | struct ip_vs_protocol *pp, | ||
| 637 | const struct ip_vs_iphdr *iph, | ||
| 638 | unsigned int proto_off, | ||
| 639 | int inverse); | ||
| 640 | |||
| 635 | extern struct ip_vs_conn *ip_vs_conn_out_get | 641 | extern struct ip_vs_conn *ip_vs_conn_out_get |
| 636 | (int af, int protocol, const union nf_inet_addr *s_addr, __be16 s_port, | 642 | (int af, int protocol, const union nf_inet_addr *s_addr, __be16 s_port, |
| 637 | const union nf_inet_addr *d_addr, __be16 d_port); | 643 | const union nf_inet_addr *d_addr, __be16 d_port); |
| 638 | 644 | ||
| 645 | struct ip_vs_conn * ip_vs_conn_out_get_proto(int af, const struct sk_buff *skb, | ||
| 646 | struct ip_vs_protocol *pp, | ||
| 647 | const struct ip_vs_iphdr *iph, | ||
| 648 | unsigned int proto_off, | ||
| 649 | int inverse); | ||
| 650 | |||
| 639 | /* put back the conn without restarting its timer */ | 651 | /* put back the conn without restarting its timer */ |
| 640 | static inline void __ip_vs_conn_put(struct ip_vs_conn *cp) | 652 | static inline void __ip_vs_conn_put(struct ip_vs_conn *cp) |
| 641 | { | 653 | { |
| @@ -736,8 +748,6 @@ extern void ip_vs_app_inc_put(struct ip_vs_app *inc); | |||
| 736 | 748 | ||
| 737 | extern int ip_vs_app_pkt_out(struct ip_vs_conn *, struct sk_buff *skb); | 749 | extern int ip_vs_app_pkt_out(struct ip_vs_conn *, struct sk_buff *skb); |
| 738 | extern int ip_vs_app_pkt_in(struct ip_vs_conn *, struct sk_buff *skb); | 750 | extern int ip_vs_app_pkt_in(struct ip_vs_conn *, struct sk_buff *skb); |
| 739 | extern int ip_vs_skb_replace(struct sk_buff *skb, gfp_t pri, | ||
| 740 | char *o_buf, int o_len, char *n_buf, int n_len); | ||
| 741 | extern int ip_vs_app_init(void); | 751 | extern int ip_vs_app_init(void); |
| 742 | extern void ip_vs_app_cleanup(void); | 752 | extern void ip_vs_app_cleanup(void); |
| 743 | 753 | ||
diff --git a/include/net/netfilter/nf_conntrack_extend.h b/include/net/netfilter/nf_conntrack_extend.h index 32d15bd6efa3..0772d296dfdb 100644 --- a/include/net/netfilter/nf_conntrack_extend.h +++ b/include/net/netfilter/nf_conntrack_extend.h | |||
| @@ -28,9 +28,14 @@ struct nf_ct_ext { | |||
| 28 | char data[0]; | 28 | char data[0]; |
| 29 | }; | 29 | }; |
| 30 | 30 | ||
| 31 | static inline int nf_ct_ext_exist(const struct nf_conn *ct, u8 id) | 31 | static inline bool __nf_ct_ext_exist(const struct nf_ct_ext *ext, u8 id) |
| 32 | { | 32 | { |
| 33 | return (ct->ext && ct->ext->offset[id]); | 33 | return !!ext->offset[id]; |
| 34 | } | ||
| 35 | |||
| 36 | static inline bool nf_ct_ext_exist(const struct nf_conn *ct, u8 id) | ||
| 37 | { | ||
| 38 | return (ct->ext && __nf_ct_ext_exist(ct->ext, id)); | ||
| 34 | } | 39 | } |
| 35 | 40 | ||
| 36 | static inline void *__nf_ct_ext_find(const struct nf_conn *ct, u8 id) | 41 | static inline void *__nf_ct_ext_find(const struct nf_conn *ct, u8 id) |
diff --git a/include/net/netfilter/nf_nat_protocol.h b/include/net/netfilter/nf_nat_protocol.h index c398017ccfa3..df17bac46bf5 100644 --- a/include/net/netfilter/nf_nat_protocol.h +++ b/include/net/netfilter/nf_nat_protocol.h | |||
| @@ -27,9 +27,9 @@ struct nf_nat_protocol { | |||
| 27 | 27 | ||
| 28 | /* Alter the per-proto part of the tuple (depending on | 28 | /* Alter the per-proto part of the tuple (depending on |
| 29 | maniptype), to give a unique tuple in the given range if | 29 | maniptype), to give a unique tuple in the given range if |
| 30 | possible; return false if not. Per-protocol part of tuple | 30 | possible. Per-protocol part of tuple is initialized to the |
| 31 | is initialized to the incoming packet. */ | 31 | incoming packet. */ |
| 32 | bool (*unique_tuple)(struct nf_conntrack_tuple *tuple, | 32 | void (*unique_tuple)(struct nf_conntrack_tuple *tuple, |
| 33 | const struct nf_nat_range *range, | 33 | const struct nf_nat_range *range, |
| 34 | enum nf_nat_manip_type maniptype, | 34 | enum nf_nat_manip_type maniptype, |
| 35 | const struct nf_conn *ct); | 35 | const struct nf_conn *ct); |
| @@ -63,7 +63,7 @@ extern bool nf_nat_proto_in_range(const struct nf_conntrack_tuple *tuple, | |||
| 63 | const union nf_conntrack_man_proto *min, | 63 | const union nf_conntrack_man_proto *min, |
| 64 | const union nf_conntrack_man_proto *max); | 64 | const union nf_conntrack_man_proto *max); |
| 65 | 65 | ||
| 66 | extern bool nf_nat_proto_unique_tuple(struct nf_conntrack_tuple *tuple, | 66 | extern void nf_nat_proto_unique_tuple(struct nf_conntrack_tuple *tuple, |
| 67 | const struct nf_nat_range *range, | 67 | const struct nf_nat_range *range, |
| 68 | enum nf_nat_manip_type maniptype, | 68 | enum nf_nat_manip_type maniptype, |
| 69 | const struct nf_conn *ct, | 69 | const struct nf_conn *ct, |
diff --git a/include/net/netfilter/nfnetlink_log.h b/include/net/netfilter/nfnetlink_log.h index b0569ff0775e..e2dec42c2db2 100644 --- a/include/net/netfilter/nfnetlink_log.h +++ b/include/net/netfilter/nfnetlink_log.h | |||
| @@ -10,5 +10,7 @@ nfulnl_log_packet(u_int8_t pf, | |||
| 10 | const struct nf_loginfo *li_user, | 10 | const struct nf_loginfo *li_user, |
| 11 | const char *prefix); | 11 | const char *prefix); |
| 12 | 12 | ||
| 13 | #define NFULNL_COPY_DISABLED 0xff | ||
| 14 | |||
| 13 | #endif /* _KER_NFNETLINK_LOG_H */ | 15 | #endif /* _KER_NFNETLINK_LOG_H */ |
| 14 | 16 | ||
