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 /net/netfilter | |
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 'net/netfilter')
-rw-r--r-- | net/netfilter/nf_conntrack_core.c | 10 | ||||
-rw-r--r-- | net/netfilter/nf_conntrack_netlink.c | 52 | ||||
-rw-r--r-- | net/netfilter/nf_conntrack_proto_gre.c | 4 | ||||
-rw-r--r-- | net/netfilter/nf_conntrack_proto_tcp.c | 22 | ||||
-rw-r--r-- | net/netfilter/nf_conntrack_proto_udp.c | 8 | ||||
-rw-r--r-- | net/netfilter/nf_conntrack_proto_udplite.c | 8 | ||||
-rw-r--r-- | net/netfilter/nfnetlink_log.c | 2 | ||||
-rw-r--r-- | net/netfilter/nfnetlink_queue.c | 4 |
8 files changed, 55 insertions, 55 deletions
diff --git a/net/netfilter/nf_conntrack_core.c b/net/netfilter/nf_conntrack_core.c index b64656abc4e..9edaaf2d57e 100644 --- a/net/netfilter/nf_conntrack_core.c +++ b/net/netfilter/nf_conntrack_core.c | |||
@@ -830,7 +830,7 @@ EXPORT_SYMBOL_GPL(__nf_ct_refresh_acct); | |||
830 | /* Generic function for tcp/udp/sctp/dccp and alike. This needs to be | 830 | /* Generic function for tcp/udp/sctp/dccp and alike. This needs to be |
831 | * in ip_conntrack_core, since we don't want the protocols to autoload | 831 | * in ip_conntrack_core, since we don't want the protocols to autoload |
832 | * or depend on ctnetlink */ | 832 | * or depend on ctnetlink */ |
833 | int nf_ct_port_tuple_to_nfattr(struct sk_buff *skb, | 833 | int nf_ct_port_tuple_to_nlattr(struct sk_buff *skb, |
834 | const struct nf_conntrack_tuple *tuple) | 834 | const struct nf_conntrack_tuple *tuple) |
835 | { | 835 | { |
836 | NLA_PUT(skb, CTA_PROTO_SRC_PORT, sizeof(u_int16_t), | 836 | NLA_PUT(skb, CTA_PROTO_SRC_PORT, sizeof(u_int16_t), |
@@ -842,20 +842,20 @@ int nf_ct_port_tuple_to_nfattr(struct sk_buff *skb, | |||
842 | nla_put_failure: | 842 | nla_put_failure: |
843 | return -1; | 843 | return -1; |
844 | } | 844 | } |
845 | EXPORT_SYMBOL_GPL(nf_ct_port_tuple_to_nfattr); | 845 | EXPORT_SYMBOL_GPL(nf_ct_port_tuple_to_nlattr); |
846 | 846 | ||
847 | static const size_t cta_min_proto[CTA_PROTO_MAX+1] = { | 847 | static const size_t cta_min_proto[CTA_PROTO_MAX+1] = { |
848 | [CTA_PROTO_SRC_PORT] = sizeof(u_int16_t), | 848 | [CTA_PROTO_SRC_PORT] = sizeof(u_int16_t), |
849 | [CTA_PROTO_DST_PORT] = sizeof(u_int16_t) | 849 | [CTA_PROTO_DST_PORT] = sizeof(u_int16_t) |
850 | }; | 850 | }; |
851 | 851 | ||
852 | int nf_ct_port_nfattr_to_tuple(struct nlattr *tb[], | 852 | int nf_ct_port_nlattr_to_tuple(struct nlattr *tb[], |
853 | struct nf_conntrack_tuple *t) | 853 | struct nf_conntrack_tuple *t) |
854 | { | 854 | { |
855 | if (!tb[CTA_PROTO_SRC_PORT] || !tb[CTA_PROTO_DST_PORT]) | 855 | if (!tb[CTA_PROTO_SRC_PORT] || !tb[CTA_PROTO_DST_PORT]) |
856 | return -EINVAL; | 856 | return -EINVAL; |
857 | 857 | ||
858 | if (nfattr_bad_size(tb, CTA_PROTO_MAX, cta_min_proto)) | 858 | if (nlattr_bad_size(tb, CTA_PROTO_MAX, cta_min_proto)) |
859 | return -EINVAL; | 859 | return -EINVAL; |
860 | 860 | ||
861 | t->src.u.tcp.port = *(__be16 *)nla_data(tb[CTA_PROTO_SRC_PORT]); | 861 | t->src.u.tcp.port = *(__be16 *)nla_data(tb[CTA_PROTO_SRC_PORT]); |
@@ -863,7 +863,7 @@ int nf_ct_port_nfattr_to_tuple(struct nlattr *tb[], | |||
863 | 863 | ||
864 | return 0; | 864 | return 0; |
865 | } | 865 | } |
866 | EXPORT_SYMBOL_GPL(nf_ct_port_nfattr_to_tuple); | 866 | EXPORT_SYMBOL_GPL(nf_ct_port_nlattr_to_tuple); |
867 | #endif | 867 | #endif |
868 | 868 | ||
869 | /* Used by ipt_REJECT and ip6t_REJECT. */ | 869 | /* Used by ipt_REJECT and ip6t_REJECT. */ |
diff --git a/net/netfilter/nf_conntrack_netlink.c b/net/netfilter/nf_conntrack_netlink.c index 221c38f889b..9f9bef2446a 100644 --- a/net/netfilter/nf_conntrack_netlink.c +++ b/net/netfilter/nf_conntrack_netlink.c | |||
@@ -61,8 +61,8 @@ ctnetlink_dump_tuples_proto(struct sk_buff *skb, | |||
61 | goto nla_put_failure; | 61 | goto nla_put_failure; |
62 | NLA_PUT(skb, CTA_PROTO_NUM, sizeof(u_int8_t), &tuple->dst.protonum); | 62 | NLA_PUT(skb, CTA_PROTO_NUM, sizeof(u_int8_t), &tuple->dst.protonum); |
63 | 63 | ||
64 | if (likely(l4proto->tuple_to_nfattr)) | 64 | if (likely(l4proto->tuple_to_nlattr)) |
65 | ret = l4proto->tuple_to_nfattr(skb, tuple); | 65 | ret = l4proto->tuple_to_nlattr(skb, tuple); |
66 | 66 | ||
67 | nla_nest_end(skb, nest_parms); | 67 | nla_nest_end(skb, nest_parms); |
68 | 68 | ||
@@ -84,8 +84,8 @@ ctnetlink_dump_tuples_ip(struct sk_buff *skb, | |||
84 | if (!nest_parms) | 84 | if (!nest_parms) |
85 | goto nla_put_failure; | 85 | goto nla_put_failure; |
86 | 86 | ||
87 | if (likely(l3proto->tuple_to_nfattr)) | 87 | if (likely(l3proto->tuple_to_nlattr)) |
88 | ret = l3proto->tuple_to_nfattr(skb, tuple); | 88 | ret = l3proto->tuple_to_nlattr(skb, tuple); |
89 | 89 | ||
90 | nla_nest_end(skb, nest_parms); | 90 | nla_nest_end(skb, nest_parms); |
91 | 91 | ||
@@ -153,7 +153,7 @@ ctnetlink_dump_protoinfo(struct sk_buff *skb, const struct nf_conn *ct) | |||
153 | struct nlattr *nest_proto; | 153 | struct nlattr *nest_proto; |
154 | int ret; | 154 | int ret; |
155 | 155 | ||
156 | if (!l4proto->to_nfattr) { | 156 | if (!l4proto->to_nlattr) { |
157 | nf_ct_l4proto_put(l4proto); | 157 | nf_ct_l4proto_put(l4proto); |
158 | return 0; | 158 | return 0; |
159 | } | 159 | } |
@@ -162,7 +162,7 @@ ctnetlink_dump_protoinfo(struct sk_buff *skb, const struct nf_conn *ct) | |||
162 | if (!nest_proto) | 162 | if (!nest_proto) |
163 | goto nla_put_failure; | 163 | goto nla_put_failure; |
164 | 164 | ||
165 | ret = l4proto->to_nfattr(skb, nest_proto, ct); | 165 | ret = l4proto->to_nlattr(skb, nest_proto, ct); |
166 | 166 | ||
167 | nf_ct_l4proto_put(l4proto); | 167 | nf_ct_l4proto_put(l4proto); |
168 | 168 | ||
@@ -195,8 +195,8 @@ ctnetlink_dump_helpinfo(struct sk_buff *skb, const struct nf_conn *ct) | |||
195 | goto nla_put_failure; | 195 | goto nla_put_failure; |
196 | NLA_PUT(skb, CTA_HELP_NAME, strlen(helper->name), helper->name); | 196 | NLA_PUT(skb, CTA_HELP_NAME, strlen(helper->name), helper->name); |
197 | 197 | ||
198 | if (helper->to_nfattr) | 198 | if (helper->to_nlattr) |
199 | helper->to_nfattr(skb, ct); | 199 | helper->to_nlattr(skb, ct); |
200 | 200 | ||
201 | nla_nest_end(skb, nest_helper); | 201 | nla_nest_end(skb, nest_helper); |
202 | out: | 202 | out: |
@@ -512,8 +512,8 @@ ctnetlink_parse_tuple_ip(struct nlattr *attr, struct nf_conntrack_tuple *tuple) | |||
512 | 512 | ||
513 | l3proto = nf_ct_l3proto_find_get(tuple->src.l3num); | 513 | l3proto = nf_ct_l3proto_find_get(tuple->src.l3num); |
514 | 514 | ||
515 | if (likely(l3proto->nfattr_to_tuple)) | 515 | if (likely(l3proto->nlattr_to_tuple)) |
516 | ret = l3proto->nfattr_to_tuple(tb, tuple); | 516 | ret = l3proto->nlattr_to_tuple(tb, tuple); |
517 | 517 | ||
518 | nf_ct_l3proto_put(l3proto); | 518 | nf_ct_l3proto_put(l3proto); |
519 | 519 | ||
@@ -534,7 +534,7 @@ ctnetlink_parse_tuple_proto(struct nlattr *attr, | |||
534 | 534 | ||
535 | nla_parse_nested(tb, CTA_PROTO_MAX, attr, NULL); | 535 | nla_parse_nested(tb, CTA_PROTO_MAX, attr, NULL); |
536 | 536 | ||
537 | if (nfattr_bad_size(tb, CTA_PROTO_MAX, cta_min_proto)) | 537 | if (nlattr_bad_size(tb, CTA_PROTO_MAX, cta_min_proto)) |
538 | return -EINVAL; | 538 | return -EINVAL; |
539 | 539 | ||
540 | if (!tb[CTA_PROTO_NUM]) | 540 | if (!tb[CTA_PROTO_NUM]) |
@@ -543,8 +543,8 @@ ctnetlink_parse_tuple_proto(struct nlattr *attr, | |||
543 | 543 | ||
544 | l4proto = nf_ct_l4proto_find_get(tuple->src.l3num, tuple->dst.protonum); | 544 | l4proto = nf_ct_l4proto_find_get(tuple->src.l3num, tuple->dst.protonum); |
545 | 545 | ||
546 | if (likely(l4proto->nfattr_to_tuple)) | 546 | if (likely(l4proto->nlattr_to_tuple)) |
547 | ret = l4proto->nfattr_to_tuple(tb, tuple); | 547 | ret = l4proto->nlattr_to_tuple(tb, tuple); |
548 | 548 | ||
549 | nf_ct_l4proto_put(l4proto); | 549 | nf_ct_l4proto_put(l4proto); |
550 | 550 | ||
@@ -602,18 +602,18 @@ static int nfnetlink_parse_nat_proto(struct nlattr *attr, | |||
602 | 602 | ||
603 | nla_parse_nested(tb, CTA_PROTONAT_MAX, attr, NULL); | 603 | nla_parse_nested(tb, CTA_PROTONAT_MAX, attr, NULL); |
604 | 604 | ||
605 | if (nfattr_bad_size(tb, CTA_PROTONAT_MAX, cta_min_protonat)) | 605 | if (nlattr_bad_size(tb, CTA_PROTONAT_MAX, cta_min_protonat)) |
606 | return -EINVAL; | 606 | return -EINVAL; |
607 | 607 | ||
608 | npt = nf_nat_proto_find_get(ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.dst.protonum); | 608 | npt = nf_nat_proto_find_get(ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.dst.protonum); |
609 | 609 | ||
610 | if (!npt->nfattr_to_range) { | 610 | if (!npt->nlattr_to_range) { |
611 | nf_nat_proto_put(npt); | 611 | nf_nat_proto_put(npt); |
612 | return 0; | 612 | return 0; |
613 | } | 613 | } |
614 | 614 | ||
615 | /* nfattr_to_range returns 1 if it parsed, 0 if not, neg. on error */ | 615 | /* nlattr_to_range returns 1 if it parsed, 0 if not, neg. on error */ |
616 | if (npt->nfattr_to_range(tb, range) > 0) | 616 | if (npt->nlattr_to_range(tb, range) > 0) |
617 | range->flags |= IP_NAT_RANGE_PROTO_SPECIFIED; | 617 | range->flags |= IP_NAT_RANGE_PROTO_SPECIFIED; |
618 | 618 | ||
619 | nf_nat_proto_put(npt); | 619 | nf_nat_proto_put(npt); |
@@ -637,7 +637,7 @@ nfnetlink_parse_nat(struct nlattr *nat, | |||
637 | 637 | ||
638 | nla_parse_nested(tb, CTA_NAT_MAX, nat, NULL); | 638 | nla_parse_nested(tb, CTA_NAT_MAX, nat, NULL); |
639 | 639 | ||
640 | if (nfattr_bad_size(tb, CTA_NAT_MAX, cta_min_nat)) | 640 | if (nlattr_bad_size(tb, CTA_NAT_MAX, cta_min_nat)) |
641 | return -EINVAL; | 641 | return -EINVAL; |
642 | 642 | ||
643 | if (tb[CTA_NAT_MINIP]) | 643 | if (tb[CTA_NAT_MINIP]) |
@@ -696,7 +696,7 @@ ctnetlink_del_conntrack(struct sock *ctnl, struct sk_buff *skb, | |||
696 | u_int8_t u3 = nfmsg->nfgen_family; | 696 | u_int8_t u3 = nfmsg->nfgen_family; |
697 | int err = 0; | 697 | int err = 0; |
698 | 698 | ||
699 | if (nfattr_bad_size(cda, CTA_MAX, cta_min)) | 699 | if (nlattr_bad_size(cda, CTA_MAX, cta_min)) |
700 | return -EINVAL; | 700 | return -EINVAL; |
701 | 701 | ||
702 | if (cda[CTA_TUPLE_ORIG]) | 702 | if (cda[CTA_TUPLE_ORIG]) |
@@ -754,7 +754,7 @@ ctnetlink_get_conntrack(struct sock *ctnl, struct sk_buff *skb, | |||
754 | ctnetlink_done); | 754 | ctnetlink_done); |
755 | } | 755 | } |
756 | 756 | ||
757 | if (nfattr_bad_size(cda, CTA_MAX, cta_min)) | 757 | if (nlattr_bad_size(cda, CTA_MAX, cta_min)) |
758 | return -EINVAL; | 758 | return -EINVAL; |
759 | 759 | ||
760 | if (cda[CTA_TUPLE_ORIG]) | 760 | if (cda[CTA_TUPLE_ORIG]) |
@@ -928,8 +928,8 @@ ctnetlink_change_protoinfo(struct nf_conn *ct, struct nlattr *cda[]) | |||
928 | 928 | ||
929 | l4proto = nf_ct_l4proto_find_get(l3num, npt); | 929 | l4proto = nf_ct_l4proto_find_get(l3num, npt); |
930 | 930 | ||
931 | if (l4proto->from_nfattr) | 931 | if (l4proto->from_nlattr) |
932 | err = l4proto->from_nfattr(tb, ct); | 932 | err = l4proto->from_nlattr(tb, ct); |
933 | nf_ct_l4proto_put(l4proto); | 933 | nf_ct_l4proto_put(l4proto); |
934 | 934 | ||
935 | return err; | 935 | return err; |
@@ -1045,7 +1045,7 @@ ctnetlink_new_conntrack(struct sock *ctnl, struct sk_buff *skb, | |||
1045 | u_int8_t u3 = nfmsg->nfgen_family; | 1045 | u_int8_t u3 = nfmsg->nfgen_family; |
1046 | int err = 0; | 1046 | int err = 0; |
1047 | 1047 | ||
1048 | if (nfattr_bad_size(cda, CTA_MAX, cta_min)) | 1048 | if (nlattr_bad_size(cda, CTA_MAX, cta_min)) |
1049 | return -EINVAL; | 1049 | return -EINVAL; |
1050 | 1050 | ||
1051 | if (cda[CTA_TUPLE_ORIG]) { | 1051 | if (cda[CTA_TUPLE_ORIG]) { |
@@ -1329,7 +1329,7 @@ ctnetlink_get_expect(struct sock *ctnl, struct sk_buff *skb, | |||
1329 | u_int8_t u3 = nfmsg->nfgen_family; | 1329 | u_int8_t u3 = nfmsg->nfgen_family; |
1330 | int err = 0; | 1330 | int err = 0; |
1331 | 1331 | ||
1332 | if (nfattr_bad_size(cda, CTA_EXPECT_MAX, cta_min_exp)) | 1332 | if (nlattr_bad_size(cda, CTA_EXPECT_MAX, cta_min_exp)) |
1333 | return -EINVAL; | 1333 | return -EINVAL; |
1334 | 1334 | ||
1335 | if (nlh->nlmsg_flags & NLM_F_DUMP) { | 1335 | if (nlh->nlmsg_flags & NLM_F_DUMP) { |
@@ -1393,7 +1393,7 @@ ctnetlink_del_expect(struct sock *ctnl, struct sk_buff *skb, | |||
1393 | unsigned int i; | 1393 | unsigned int i; |
1394 | int err; | 1394 | int err; |
1395 | 1395 | ||
1396 | if (nfattr_bad_size(cda, CTA_EXPECT_MAX, cta_min_exp)) | 1396 | if (nlattr_bad_size(cda, CTA_EXPECT_MAX, cta_min_exp)) |
1397 | return -EINVAL; | 1397 | return -EINVAL; |
1398 | 1398 | ||
1399 | if (cda[CTA_EXPECT_TUPLE]) { | 1399 | if (cda[CTA_EXPECT_TUPLE]) { |
@@ -1534,7 +1534,7 @@ ctnetlink_new_expect(struct sock *ctnl, struct sk_buff *skb, | |||
1534 | u_int8_t u3 = nfmsg->nfgen_family; | 1534 | u_int8_t u3 = nfmsg->nfgen_family; |
1535 | int err = 0; | 1535 | int err = 0; |
1536 | 1536 | ||
1537 | if (nfattr_bad_size(cda, CTA_EXPECT_MAX, cta_min_exp)) | 1537 | if (nlattr_bad_size(cda, CTA_EXPECT_MAX, cta_min_exp)) |
1538 | return -EINVAL; | 1538 | return -EINVAL; |
1539 | 1539 | ||
1540 | if (!cda[CTA_EXPECT_TUPLE] | 1540 | if (!cda[CTA_EXPECT_TUPLE] |
diff --git a/net/netfilter/nf_conntrack_proto_gre.c b/net/netfilter/nf_conntrack_proto_gre.c index bdbead8a7a8..ff8d03b8840 100644 --- a/net/netfilter/nf_conntrack_proto_gre.c +++ b/net/netfilter/nf_conntrack_proto_gre.c | |||
@@ -274,8 +274,8 @@ static struct nf_conntrack_l4proto nf_conntrack_l4proto_gre4 __read_mostly = { | |||
274 | .destroy = gre_destroy, | 274 | .destroy = gre_destroy, |
275 | .me = THIS_MODULE, | 275 | .me = THIS_MODULE, |
276 | #if defined(CONFIG_NF_CT_NETLINK) || defined(CONFIG_NF_CT_NETLINK_MODULE) | 276 | #if defined(CONFIG_NF_CT_NETLINK) || defined(CONFIG_NF_CT_NETLINK_MODULE) |
277 | .tuple_to_nfattr = nf_ct_port_tuple_to_nfattr, | 277 | .tuple_to_nlattr = nf_ct_port_tuple_to_nlattr, |
278 | .nfattr_to_tuple = nf_ct_port_nfattr_to_tuple, | 278 | .nlattr_to_tuple = nf_ct_port_nlattr_to_tuple, |
279 | #endif | 279 | #endif |
280 | }; | 280 | }; |
281 | 281 | ||
diff --git a/net/netfilter/nf_conntrack_proto_tcp.c b/net/netfilter/nf_conntrack_proto_tcp.c index 1d167e61cc4..84f47bc90f6 100644 --- a/net/netfilter/nf_conntrack_proto_tcp.c +++ b/net/netfilter/nf_conntrack_proto_tcp.c | |||
@@ -1067,7 +1067,7 @@ static int tcp_new(struct nf_conn *conntrack, | |||
1067 | #include <linux/netfilter/nfnetlink.h> | 1067 | #include <linux/netfilter/nfnetlink.h> |
1068 | #include <linux/netfilter/nfnetlink_conntrack.h> | 1068 | #include <linux/netfilter/nfnetlink_conntrack.h> |
1069 | 1069 | ||
1070 | static int tcp_to_nfattr(struct sk_buff *skb, struct nlattr *nla, | 1070 | static int tcp_to_nlattr(struct sk_buff *skb, struct nlattr *nla, |
1071 | const struct nf_conn *ct) | 1071 | const struct nf_conn *ct) |
1072 | { | 1072 | { |
1073 | struct nlattr *nest_parms; | 1073 | struct nlattr *nest_parms; |
@@ -1113,7 +1113,7 @@ static const size_t cta_min_tcp[CTA_PROTOINFO_TCP_MAX+1] = { | |||
1113 | [CTA_PROTOINFO_TCP_FLAGS_REPLY] = sizeof(struct nf_ct_tcp_flags) | 1113 | [CTA_PROTOINFO_TCP_FLAGS_REPLY] = sizeof(struct nf_ct_tcp_flags) |
1114 | }; | 1114 | }; |
1115 | 1115 | ||
1116 | static int nfattr_to_tcp(struct nlattr *cda[], struct nf_conn *ct) | 1116 | static int nlattr_to_tcp(struct nlattr *cda[], struct nf_conn *ct) |
1117 | { | 1117 | { |
1118 | struct nlattr *attr = cda[CTA_PROTOINFO_TCP]; | 1118 | struct nlattr *attr = cda[CTA_PROTOINFO_TCP]; |
1119 | struct nlattr *tb[CTA_PROTOINFO_TCP_MAX+1]; | 1119 | struct nlattr *tb[CTA_PROTOINFO_TCP_MAX+1]; |
@@ -1125,7 +1125,7 @@ static int nfattr_to_tcp(struct nlattr *cda[], struct nf_conn *ct) | |||
1125 | 1125 | ||
1126 | nla_parse_nested(tb, CTA_PROTOINFO_TCP_MAX, attr, NULL); | 1126 | nla_parse_nested(tb, CTA_PROTOINFO_TCP_MAX, attr, NULL); |
1127 | 1127 | ||
1128 | if (nfattr_bad_size(tb, CTA_PROTOINFO_TCP_MAX, cta_min_tcp)) | 1128 | if (nlattr_bad_size(tb, CTA_PROTOINFO_TCP_MAX, cta_min_tcp)) |
1129 | return -EINVAL; | 1129 | return -EINVAL; |
1130 | 1130 | ||
1131 | if (!tb[CTA_PROTOINFO_TCP_STATE]) | 1131 | if (!tb[CTA_PROTOINFO_TCP_STATE]) |
@@ -1387,10 +1387,10 @@ struct nf_conntrack_l4proto nf_conntrack_l4proto_tcp4 __read_mostly = | |||
1387 | .new = tcp_new, | 1387 | .new = tcp_new, |
1388 | .error = tcp_error, | 1388 | .error = tcp_error, |
1389 | #if defined(CONFIG_NF_CT_NETLINK) || defined(CONFIG_NF_CT_NETLINK_MODULE) | 1389 | #if defined(CONFIG_NF_CT_NETLINK) || defined(CONFIG_NF_CT_NETLINK_MODULE) |
1390 | .to_nfattr = tcp_to_nfattr, | 1390 | .to_nlattr = tcp_to_nlattr, |
1391 | .from_nfattr = nfattr_to_tcp, | 1391 | .from_nlattr = nlattr_to_tcp, |
1392 | .tuple_to_nfattr = nf_ct_port_tuple_to_nfattr, | 1392 | .tuple_to_nlattr = nf_ct_port_tuple_to_nlattr, |
1393 | .nfattr_to_tuple = nf_ct_port_nfattr_to_tuple, | 1393 | .nlattr_to_tuple = nf_ct_port_nlattr_to_tuple, |
1394 | #endif | 1394 | #endif |
1395 | #ifdef CONFIG_SYSCTL | 1395 | #ifdef CONFIG_SYSCTL |
1396 | .ctl_table_users = &tcp_sysctl_table_users, | 1396 | .ctl_table_users = &tcp_sysctl_table_users, |
@@ -1416,10 +1416,10 @@ struct nf_conntrack_l4proto nf_conntrack_l4proto_tcp6 __read_mostly = | |||
1416 | .new = tcp_new, | 1416 | .new = tcp_new, |
1417 | .error = tcp_error, | 1417 | .error = tcp_error, |
1418 | #if defined(CONFIG_NF_CT_NETLINK) || defined(CONFIG_NF_CT_NETLINK_MODULE) | 1418 | #if defined(CONFIG_NF_CT_NETLINK) || defined(CONFIG_NF_CT_NETLINK_MODULE) |
1419 | .to_nfattr = tcp_to_nfattr, | 1419 | .to_nlattr = tcp_to_nlattr, |
1420 | .from_nfattr = nfattr_to_tcp, | 1420 | .from_nlattr = nlattr_to_tcp, |
1421 | .tuple_to_nfattr = nf_ct_port_tuple_to_nfattr, | 1421 | .tuple_to_nlattr = nf_ct_port_tuple_to_nlattr, |
1422 | .nfattr_to_tuple = nf_ct_port_nfattr_to_tuple, | 1422 | .nlattr_to_tuple = nf_ct_port_nlattr_to_tuple, |
1423 | #endif | 1423 | #endif |
1424 | #ifdef CONFIG_SYSCTL | 1424 | #ifdef CONFIG_SYSCTL |
1425 | .ctl_table_users = &tcp_sysctl_table_users, | 1425 | .ctl_table_users = &tcp_sysctl_table_users, |
diff --git a/net/netfilter/nf_conntrack_proto_udp.c b/net/netfilter/nf_conntrack_proto_udp.c index 2a2fd1a764e..751ff7e2a0d 100644 --- a/net/netfilter/nf_conntrack_proto_udp.c +++ b/net/netfilter/nf_conntrack_proto_udp.c | |||
@@ -203,8 +203,8 @@ struct nf_conntrack_l4proto nf_conntrack_l4proto_udp4 __read_mostly = | |||
203 | .new = udp_new, | 203 | .new = udp_new, |
204 | .error = udp_error, | 204 | .error = udp_error, |
205 | #if defined(CONFIG_NF_CT_NETLINK) || defined(CONFIG_NF_CT_NETLINK_MODULE) | 205 | #if defined(CONFIG_NF_CT_NETLINK) || defined(CONFIG_NF_CT_NETLINK_MODULE) |
206 | .tuple_to_nfattr = nf_ct_port_tuple_to_nfattr, | 206 | .tuple_to_nlattr = nf_ct_port_tuple_to_nlattr, |
207 | .nfattr_to_tuple = nf_ct_port_nfattr_to_tuple, | 207 | .nlattr_to_tuple = nf_ct_port_nlattr_to_tuple, |
208 | #endif | 208 | #endif |
209 | #ifdef CONFIG_SYSCTL | 209 | #ifdef CONFIG_SYSCTL |
210 | .ctl_table_users = &udp_sysctl_table_users, | 210 | .ctl_table_users = &udp_sysctl_table_users, |
@@ -230,8 +230,8 @@ struct nf_conntrack_l4proto nf_conntrack_l4proto_udp6 __read_mostly = | |||
230 | .new = udp_new, | 230 | .new = udp_new, |
231 | .error = udp_error, | 231 | .error = udp_error, |
232 | #if defined(CONFIG_NF_CT_NETLINK) || defined(CONFIG_NF_CT_NETLINK_MODULE) | 232 | #if defined(CONFIG_NF_CT_NETLINK) || defined(CONFIG_NF_CT_NETLINK_MODULE) |
233 | .tuple_to_nfattr = nf_ct_port_tuple_to_nfattr, | 233 | .tuple_to_nlattr = nf_ct_port_tuple_to_nlattr, |
234 | .nfattr_to_tuple = nf_ct_port_nfattr_to_tuple, | 234 | .nlattr_to_tuple = nf_ct_port_nlattr_to_tuple, |
235 | #endif | 235 | #endif |
236 | #ifdef CONFIG_SYSCTL | 236 | #ifdef CONFIG_SYSCTL |
237 | .ctl_table_users = &udp_sysctl_table_users, | 237 | .ctl_table_users = &udp_sysctl_table_users, |
diff --git a/net/netfilter/nf_conntrack_proto_udplite.c b/net/netfilter/nf_conntrack_proto_udplite.c index b906b413997..4209ddb8fba 100644 --- a/net/netfilter/nf_conntrack_proto_udplite.c +++ b/net/netfilter/nf_conntrack_proto_udplite.c | |||
@@ -203,8 +203,8 @@ static struct nf_conntrack_l4proto nf_conntrack_l4proto_udplite4 __read_mostly = | |||
203 | .new = udplite_new, | 203 | .new = udplite_new, |
204 | .error = udplite_error, | 204 | .error = udplite_error, |
205 | #if defined(CONFIG_NF_CT_NETLINK) || defined(CONFIG_NF_CT_NETLINK_MODULE) | 205 | #if defined(CONFIG_NF_CT_NETLINK) || defined(CONFIG_NF_CT_NETLINK_MODULE) |
206 | .tuple_to_nfattr = nf_ct_port_tuple_to_nfattr, | 206 | .tuple_to_nlattr = nf_ct_port_tuple_to_nlattr, |
207 | .nfattr_to_tuple = nf_ct_port_nfattr_to_tuple, | 207 | .nlattr_to_tuple = nf_ct_port_nlattr_to_tuple, |
208 | #endif | 208 | #endif |
209 | #ifdef CONFIG_SYSCTL | 209 | #ifdef CONFIG_SYSCTL |
210 | .ctl_table_users = &udplite_sysctl_table_users, | 210 | .ctl_table_users = &udplite_sysctl_table_users, |
@@ -226,8 +226,8 @@ static struct nf_conntrack_l4proto nf_conntrack_l4proto_udplite6 __read_mostly = | |||
226 | .new = udplite_new, | 226 | .new = udplite_new, |
227 | .error = udplite_error, | 227 | .error = udplite_error, |
228 | #if defined(CONFIG_NF_CT_NETLINK) || defined(CONFIG_NF_CT_NETLINK_MODULE) | 228 | #if defined(CONFIG_NF_CT_NETLINK) || defined(CONFIG_NF_CT_NETLINK_MODULE) |
229 | .tuple_to_nfattr = nf_ct_port_tuple_to_nfattr, | 229 | .tuple_to_nlattr = nf_ct_port_tuple_to_nlattr, |
230 | .nfattr_to_tuple = nf_ct_port_nfattr_to_tuple, | 230 | .nlattr_to_tuple = nf_ct_port_nlattr_to_tuple, |
231 | #endif | 231 | #endif |
232 | #ifdef CONFIG_SYSCTL | 232 | #ifdef CONFIG_SYSCTL |
233 | .ctl_table_users = &udplite_sysctl_table_users, | 233 | .ctl_table_users = &udplite_sysctl_table_users, |
diff --git a/net/netfilter/nfnetlink_log.c b/net/netfilter/nfnetlink_log.c index c7fd82f6cb7..b656648537c 100644 --- a/net/netfilter/nfnetlink_log.c +++ b/net/netfilter/nfnetlink_log.c | |||
@@ -769,7 +769,7 @@ nfulnl_recv_config(struct sock *ctnl, struct sk_buff *skb, | |||
769 | 769 | ||
770 | UDEBUG("entering for msg %u\n", NFNL_MSG_TYPE(nlh->nlmsg_type)); | 770 | UDEBUG("entering for msg %u\n", NFNL_MSG_TYPE(nlh->nlmsg_type)); |
771 | 771 | ||
772 | if (nfattr_bad_size(nfula, NFULA_CFG_MAX, nfula_cfg_min)) { | 772 | if (nlattr_bad_size(nfula, NFULA_CFG_MAX, nfula_cfg_min)) { |
773 | UDEBUG("bad attribute size\n"); | 773 | UDEBUG("bad attribute size\n"); |
774 | return -EINVAL; | 774 | return -EINVAL; |
775 | } | 775 | } |
diff --git a/net/netfilter/nfnetlink_queue.c b/net/netfilter/nfnetlink_queue.c index 068e88b46ba..1c34668588f 100644 --- a/net/netfilter/nfnetlink_queue.c +++ b/net/netfilter/nfnetlink_queue.c | |||
@@ -796,7 +796,7 @@ nfqnl_recv_verdict(struct sock *ctnl, struct sk_buff *skb, | |||
796 | struct nfqnl_queue_entry *entry; | 796 | struct nfqnl_queue_entry *entry; |
797 | int err; | 797 | int err; |
798 | 798 | ||
799 | if (nfattr_bad_size(nfqa, NFQA_MAX, nfqa_verdict_min)) { | 799 | if (nlattr_bad_size(nfqa, NFQA_MAX, nfqa_verdict_min)) { |
800 | QDEBUG("bad attribute size\n"); | 800 | QDEBUG("bad attribute size\n"); |
801 | return -EINVAL; | 801 | return -EINVAL; |
802 | } | 802 | } |
@@ -876,7 +876,7 @@ nfqnl_recv_config(struct sock *ctnl, struct sk_buff *skb, | |||
876 | 876 | ||
877 | QDEBUG("entering for msg %u\n", NFNL_MSG_TYPE(nlh->nlmsg_type)); | 877 | QDEBUG("entering for msg %u\n", NFNL_MSG_TYPE(nlh->nlmsg_type)); |
878 | 878 | ||
879 | if (nfattr_bad_size(nfqa, NFQA_CFG_MAX, nfqa_cfg_min)) { | 879 | if (nlattr_bad_size(nfqa, NFQA_CFG_MAX, nfqa_cfg_min)) { |
880 | QDEBUG("bad attribute size\n"); | 880 | QDEBUG("bad attribute size\n"); |
881 | return -EINVAL; | 881 | return -EINVAL; |
882 | } | 882 | } |