diff options
author | Patrick McHardy <kaber@trash.net> | 2007-09-28 17:37:41 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 19:53:32 -0400 |
commit | fdf708322d4658daa6eb795d1a835b97efdb335e (patch) | |
tree | 101258e5e2316c139106d7d69726b8370c1bc1a2 /include/net | |
parent | df6fb868d6118686805c2fa566e213a8f31c8e4f (diff) |
[NETFILTER]: nfnetlink: rename functions containing 'nfattr'
There is no struct nfattr anymore, rename functions to 'nlattr'.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/netfilter/nf_conntrack_helper.h | 2 | ||||
-rw-r--r-- | include/net/netfilter/nf_conntrack_l3proto.h | 4 | ||||
-rw-r--r-- | include/net/netfilter/nf_conntrack_l4proto.h | 12 | ||||
-rw-r--r-- | include/net/netfilter/nf_nat_protocol.h | 8 |
4 files changed, 13 insertions, 13 deletions
diff --git a/include/net/netfilter/nf_conntrack_helper.h b/include/net/netfilter/nf_conntrack_helper.h index d04f99964d94..0dcc4c828ce9 100644 --- a/include/net/netfilter/nf_conntrack_helper.h +++ b/include/net/netfilter/nf_conntrack_helper.h | |||
@@ -36,7 +36,7 @@ struct nf_conntrack_helper | |||
36 | 36 | ||
37 | void (*destroy)(struct nf_conn *ct); | 37 | void (*destroy)(struct nf_conn *ct); |
38 | 38 | ||
39 | int (*to_nfattr)(struct sk_buff *skb, const struct nf_conn *ct); | 39 | int (*to_nlattr)(struct sk_buff *skb, const struct nf_conn *ct); |
40 | }; | 40 | }; |
41 | 41 | ||
42 | extern struct nf_conntrack_helper * | 42 | extern struct nf_conntrack_helper * |
diff --git a/include/net/netfilter/nf_conntrack_l3proto.h b/include/net/netfilter/nf_conntrack_l3proto.h index c02402d5ec36..f6c372d4ec1f 100644 --- a/include/net/netfilter/nf_conntrack_l3proto.h +++ b/include/net/netfilter/nf_conntrack_l3proto.h | |||
@@ -63,10 +63,10 @@ struct nf_conntrack_l3proto | |||
63 | int (*get_l4proto)(const struct sk_buff *skb, unsigned int nhoff, | 63 | int (*get_l4proto)(const struct sk_buff *skb, unsigned int nhoff, |
64 | unsigned int *dataoff, u_int8_t *protonum); | 64 | unsigned int *dataoff, u_int8_t *protonum); |
65 | 65 | ||
66 | int (*tuple_to_nfattr)(struct sk_buff *skb, | 66 | int (*tuple_to_nlattr)(struct sk_buff *skb, |
67 | const struct nf_conntrack_tuple *t); | 67 | const struct nf_conntrack_tuple *t); |
68 | 68 | ||
69 | int (*nfattr_to_tuple)(struct nlattr *tb[], | 69 | int (*nlattr_to_tuple)(struct nlattr *tb[], |
70 | struct nf_conntrack_tuple *t); | 70 | struct nf_conntrack_tuple *t); |
71 | 71 | ||
72 | #ifdef CONFIG_SYSCTL | 72 | #ifdef CONFIG_SYSCTL |
diff --git a/include/net/netfilter/nf_conntrack_l4proto.h b/include/net/netfilter/nf_conntrack_l4proto.h index a43c4e484ea1..658daccc6b56 100644 --- a/include/net/netfilter/nf_conntrack_l4proto.h +++ b/include/net/netfilter/nf_conntrack_l4proto.h | |||
@@ -65,15 +65,15 @@ struct nf_conntrack_l4proto | |||
65 | int pf, unsigned int hooknum); | 65 | int pf, unsigned int hooknum); |
66 | 66 | ||
67 | /* convert protoinfo to nfnetink attributes */ | 67 | /* convert protoinfo to nfnetink attributes */ |
68 | int (*to_nfattr)(struct sk_buff *skb, struct nlattr *nla, | 68 | int (*to_nlattr)(struct sk_buff *skb, struct nlattr *nla, |
69 | const struct nf_conn *ct); | 69 | const struct nf_conn *ct); |
70 | 70 | ||
71 | /* convert nfnetlink attributes to protoinfo */ | 71 | /* convert nfnetlink attributes to protoinfo */ |
72 | int (*from_nfattr)(struct nlattr *tb[], struct nf_conn *ct); | 72 | int (*from_nlattr)(struct nlattr *tb[], struct nf_conn *ct); |
73 | 73 | ||
74 | int (*tuple_to_nfattr)(struct sk_buff *skb, | 74 | int (*tuple_to_nlattr)(struct sk_buff *skb, |
75 | const struct nf_conntrack_tuple *t); | 75 | const struct nf_conntrack_tuple *t); |
76 | int (*nfattr_to_tuple)(struct nlattr *tb[], | 76 | int (*nlattr_to_tuple)(struct nlattr *tb[], |
77 | struct nf_conntrack_tuple *t); | 77 | struct nf_conntrack_tuple *t); |
78 | 78 | ||
79 | #ifdef CONFIG_SYSCTL | 79 | #ifdef CONFIG_SYSCTL |
@@ -111,9 +111,9 @@ extern int nf_conntrack_l4proto_register(struct nf_conntrack_l4proto *proto); | |||
111 | extern void nf_conntrack_l4proto_unregister(struct nf_conntrack_l4proto *proto); | 111 | extern void nf_conntrack_l4proto_unregister(struct nf_conntrack_l4proto *proto); |
112 | 112 | ||
113 | /* Generic netlink helpers */ | 113 | /* Generic netlink helpers */ |
114 | extern int nf_ct_port_tuple_to_nfattr(struct sk_buff *skb, | 114 | extern int nf_ct_port_tuple_to_nlattr(struct sk_buff *skb, |
115 | const struct nf_conntrack_tuple *tuple); | 115 | const struct nf_conntrack_tuple *tuple); |
116 | extern int nf_ct_port_nfattr_to_tuple(struct nlattr *tb[], | 116 | extern int nf_ct_port_nlattr_to_tuple(struct nlattr *tb[], |
117 | struct nf_conntrack_tuple *t); | 117 | struct nf_conntrack_tuple *t); |
118 | 118 | ||
119 | /* Log invalid packets */ | 119 | /* Log invalid packets */ |
diff --git a/include/net/netfilter/nf_nat_protocol.h b/include/net/netfilter/nf_nat_protocol.h index 90a82de7e7e0..14c7b2d7263c 100644 --- a/include/net/netfilter/nf_nat_protocol.h +++ b/include/net/netfilter/nf_nat_protocol.h | |||
@@ -38,10 +38,10 @@ struct nf_nat_protocol | |||
38 | enum nf_nat_manip_type maniptype, | 38 | enum nf_nat_manip_type maniptype, |
39 | const struct nf_conn *ct); | 39 | const struct nf_conn *ct); |
40 | 40 | ||
41 | int (*range_to_nfattr)(struct sk_buff *skb, | 41 | int (*range_to_nlattr)(struct sk_buff *skb, |
42 | const struct nf_nat_range *range); | 42 | const struct nf_nat_range *range); |
43 | 43 | ||
44 | int (*nfattr_to_range)(struct nlattr *tb[], | 44 | int (*nlattr_to_range)(struct nlattr *tb[], |
45 | struct nf_nat_range *range); | 45 | struct nf_nat_range *range); |
46 | }; | 46 | }; |
47 | 47 | ||
@@ -62,9 +62,9 @@ extern int init_protocols(void) __init; | |||
62 | extern void cleanup_protocols(void); | 62 | extern void cleanup_protocols(void); |
63 | extern struct nf_nat_protocol *find_nat_proto(u_int16_t protonum); | 63 | extern struct nf_nat_protocol *find_nat_proto(u_int16_t protonum); |
64 | 64 | ||
65 | extern int nf_nat_port_range_to_nfattr(struct sk_buff *skb, | 65 | extern int nf_nat_port_range_to_nlattr(struct sk_buff *skb, |
66 | const struct nf_nat_range *range); | 66 | const struct nf_nat_range *range); |
67 | extern int nf_nat_port_nfattr_to_range(struct nlattr *tb[], | 67 | extern int nf_nat_port_nlattr_to_range(struct nlattr *tb[], |
68 | struct nf_nat_range *range); | 68 | struct nf_nat_range *range); |
69 | 69 | ||
70 | #endif /*_NF_NAT_PROTO_H*/ | 70 | #endif /*_NF_NAT_PROTO_H*/ |