diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2009-06-02 14:03:35 -0400 |
---|---|---|
committer | pablo <pablo@1984.(none)> | 2009-06-02 14:03:35 -0400 |
commit | f2f3e38c63c58a3d39bd710039af8bbd15ecaff6 (patch) | |
tree | 5a67e8661b877dbd170867d72bf5b4387a49decb /net/netfilter | |
parent | 8b0a231d4d6336baf10f13b6142fd5c1f628247e (diff) |
netfilter: ctnetlink: rename tuple() by nf_ct_tuple() macro definition
This patch move the internal tuple() macro definition to the
header file as nf_ct_tuple().
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter')
-rw-r--r-- | net/netfilter/nf_conntrack_netlink.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/net/netfilter/nf_conntrack_netlink.c b/net/netfilter/nf_conntrack_netlink.c index 2d7d69ff215..3553f394125 100644 --- a/net/netfilter/nf_conntrack_netlink.c +++ b/net/netfilter/nf_conntrack_netlink.c | |||
@@ -346,8 +346,6 @@ nla_put_failure: | |||
346 | return -1; | 346 | return -1; |
347 | } | 347 | } |
348 | 348 | ||
349 | #define tuple(ct, dir) (&(ct)->tuplehash[dir].tuple) | ||
350 | |||
351 | static int | 349 | static int |
352 | ctnetlink_fill_info(struct sk_buff *skb, u32 pid, u32 seq, | 350 | ctnetlink_fill_info(struct sk_buff *skb, u32 pid, u32 seq, |
353 | int event, const struct nf_conn *ct) | 351 | int event, const struct nf_conn *ct) |
@@ -369,14 +367,14 @@ ctnetlink_fill_info(struct sk_buff *skb, u32 pid, u32 seq, | |||
369 | nest_parms = nla_nest_start(skb, CTA_TUPLE_ORIG | NLA_F_NESTED); | 367 | nest_parms = nla_nest_start(skb, CTA_TUPLE_ORIG | NLA_F_NESTED); |
370 | if (!nest_parms) | 368 | if (!nest_parms) |
371 | goto nla_put_failure; | 369 | goto nla_put_failure; |
372 | if (ctnetlink_dump_tuples(skb, tuple(ct, IP_CT_DIR_ORIGINAL)) < 0) | 370 | if (ctnetlink_dump_tuples(skb, nf_ct_tuple(ct, IP_CT_DIR_ORIGINAL)) < 0) |
373 | goto nla_put_failure; | 371 | goto nla_put_failure; |
374 | nla_nest_end(skb, nest_parms); | 372 | nla_nest_end(skb, nest_parms); |
375 | 373 | ||
376 | nest_parms = nla_nest_start(skb, CTA_TUPLE_REPLY | NLA_F_NESTED); | 374 | nest_parms = nla_nest_start(skb, CTA_TUPLE_REPLY | NLA_F_NESTED); |
377 | if (!nest_parms) | 375 | if (!nest_parms) |
378 | goto nla_put_failure; | 376 | goto nla_put_failure; |
379 | if (ctnetlink_dump_tuples(skb, tuple(ct, IP_CT_DIR_REPLY)) < 0) | 377 | if (ctnetlink_dump_tuples(skb, nf_ct_tuple(ct, IP_CT_DIR_REPLY)) < 0) |
380 | goto nla_put_failure; | 378 | goto nla_put_failure; |
381 | nla_nest_end(skb, nest_parms); | 379 | nla_nest_end(skb, nest_parms); |
382 | 380 | ||
@@ -509,7 +507,8 @@ static int ctnetlink_conntrack_event(struct notifier_block *this, | |||
509 | if (!item->report && !nfnetlink_has_listeners(group)) | 507 | if (!item->report && !nfnetlink_has_listeners(group)) |
510 | return NOTIFY_DONE; | 508 | return NOTIFY_DONE; |
511 | 509 | ||
512 | skb = ctnetlink_alloc_skb(tuple(ct, IP_CT_DIR_ORIGINAL), GFP_ATOMIC); | 510 | skb = ctnetlink_alloc_skb(nf_ct_tuple(ct, IP_CT_DIR_ORIGINAL), |
511 | GFP_ATOMIC); | ||
513 | if (!skb) | 512 | if (!skb) |
514 | goto errout; | 513 | goto errout; |
515 | 514 | ||
@@ -528,14 +527,14 @@ static int ctnetlink_conntrack_event(struct notifier_block *this, | |||
528 | nest_parms = nla_nest_start(skb, CTA_TUPLE_ORIG | NLA_F_NESTED); | 527 | nest_parms = nla_nest_start(skb, CTA_TUPLE_ORIG | NLA_F_NESTED); |
529 | if (!nest_parms) | 528 | if (!nest_parms) |
530 | goto nla_put_failure; | 529 | goto nla_put_failure; |
531 | if (ctnetlink_dump_tuples(skb, tuple(ct, IP_CT_DIR_ORIGINAL)) < 0) | 530 | if (ctnetlink_dump_tuples(skb, nf_ct_tuple(ct, IP_CT_DIR_ORIGINAL)) < 0) |
532 | goto nla_put_failure; | 531 | goto nla_put_failure; |
533 | nla_nest_end(skb, nest_parms); | 532 | nla_nest_end(skb, nest_parms); |
534 | 533 | ||
535 | nest_parms = nla_nest_start(skb, CTA_TUPLE_REPLY | NLA_F_NESTED); | 534 | nest_parms = nla_nest_start(skb, CTA_TUPLE_REPLY | NLA_F_NESTED); |
536 | if (!nest_parms) | 535 | if (!nest_parms) |
537 | goto nla_put_failure; | 536 | goto nla_put_failure; |
538 | if (ctnetlink_dump_tuples(skb, tuple(ct, IP_CT_DIR_REPLY)) < 0) | 537 | if (ctnetlink_dump_tuples(skb, nf_ct_tuple(ct, IP_CT_DIR_REPLY)) < 0) |
539 | goto nla_put_failure; | 538 | goto nla_put_failure; |
540 | nla_nest_end(skb, nest_parms); | 539 | nla_nest_end(skb, nest_parms); |
541 | 540 | ||